htcheck-2.0.0~rc1.orig/0000755000000000000000000000000011245531570011556 5ustar htcheck-2.0.0~rc1.orig/depcomp0000755000000000000000000002753311177570304013147 0ustar #! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # 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 . 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 # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi 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. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. 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. stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" outname="$stripped.o" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a space and a tab in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. We will use -o /dev/null later, # however we can't do the remplacement now because # `-o $object' might simply not be used 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 "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; -*) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--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 '/^# [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 proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 htcheck-2.0.0~rc1.orig/installdirs/0000755000000000000000000000000011245531570014106 5ustar htcheck-2.0.0~rc1.orig/installdirs/htcheck.conf0000644000000000000000000002310511245223616016366 0ustar # Example of configuration file for ht://Check - version 1.2 # # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Some Portions Copyright (c) 2008 Devise.IT srl # Author: Gabriele Bartolini - Prato - Italy # # For copyright details, see the file COPYING in your distribution # or the GNU General Public License version 2 or later # # ################# # Crawling Info # ################# # Starting Url # This is the list of URLs that will be used to start a # dig when there was no existing database. Note that # multiple URLs can be given here. start_url: http://htcheck.sourceforge.net/ # This specifies a set of patterns that all URLs have to # match against in order for them to be included in the # search. Any number of strings can be specified, # separated by spaces. If multiple patterns are given, at # least one of the patterns has to match the URL. # Matching is a case-insensitive string match on the URL # to be used. The match will be performed after # the relative references have been converted to a valid # URL. # Granted, this is not the perfect way of doing this, # but it is simple enough and it covers most cases. #limit_urls_to: .sdsu.edu kpbs limit_urls_to: $(start_url) # This specifies a set of patterns that all URLs have to # match against in order for them to be included in the # search. Unlike the limit_urls_to directive, this is done # after the URL is normalized. #limit_normalized: http://www.mydomain.com # If a URL contains any of the space separated patterns, # it will be rejected. This is used to exclude such # common things such as an infinite virtual web-tree # which start with cgi-bin. #exclude_urls: students.html cgi-bin # Max number of clicks from the first crawled page # After that number, URL won't be retrieved anymore #max_hop_count: 10 # Maximum number of URLs to be parsed # After that number, ht://Check stops parsing URLs and performs # a simple check for existance. Default: -1 (infinite) #max_urls_count: 100 # This is a list of extensions on URLs which are # considered non-parsable. This list is used mainly to # supplement the MIME-types that the HTTP server provides # with documents. Some HTTP servers do not have a correct # list of MIME-types and so can advertise certain # documents as text while they are some binary format. #bad_extensions: .foo .bar .bad # This is a list of CGI query strings to be excluded from # indexing. This can be used in conjunction with CGI-generated # portions of a website to control which pages are # indexed. #bad_querystr: forum=private section=topsecret&passwd=required # If set to true, htcheck check if external Urls exist or not. # An external Url is an Url which doesn't match limit configuration # attributes. External URLs aren't parsed. check_external: true ################# ################# ################# # Database Info # ################# # Name of the MySQL database to be created or read. db_name: htcheck # Prefix for the MySQL configuration file to be searched. Default is 'my' and # The file searched is usually '~/.my.cnf' (suggested). If it is not found # the /etc/.my.cnf file is searched. For its syntax, look at 'Option File' # contents inside the MySQL documentation. ht://Check at the moment # accept only the host, user, password, port and socket settings. # IMPORTANT: only for MySQL 3.23, 4.0, 4.1 and 5.0 #mysql_conf_file_prefix: htcheck # Group to be searched inside the .my.cnf file of MySQL for getting the # settings for the connection to the server. In other words, it's the # section marked with [] inside the MySQL option file (default # is [client]). #mysql_conf_group: htcheck # Database charset (charset of the database that will be created by htcheck) # Default value is 'default' which maps to the value of the --with-db-charset # configure option (compilation time) or - alternatively - the server's default #mysql_db_charset: utf8 # Client charset. Charset to be used by htcheck when sending queries to the # mysql server. Default value is empty (server's setting). #mysql_client_charset: utf8 # This number specifies the length of the index of the # Url field in the Schedule and Url tables of the database. # You can set different values depending on the average # length of the URLs that htcheck can find in your # sites. If you don't want to set any limitation, just # put a '-1' value. # This now allows the user to control the length of the index # for the Url field in the Schedule and Url tables. This attribute # may affect the performance of the crawls, as long as the length # of an index can either slow down or speed up the spidering process. # Default value is 64. # url_index_length: -1 # Optimize the database tables at the end of the crawl. Disable it if # the database server doesn't support it. Default is 'false'. #optimize_db: true # Enable or disable this option that is useful when performing huge queries. # Otherwise, sometimes when it's not set, the MySQL db server may return # a 'table is full' error. Default is 'true'. #sql_big_table_option: false ################# ################# ################################ # Information storing settings # ################################ # Maximum size of the document max_doc_size: 1000000 # If set to false, htcheck will store in the DB tag he finds # in every document he crawls. # If set to true, htcheck stores only those Html attributes and statements # that produce a link or set an anchor # (identified by the pair tag: A, attribute: name). #store_only_links: false # This attribute allows to store the contents of the parsed URLs. # It is very useful, but also dangerous. You must know what you # are doing, if you enable this your performances may slow down # and your disk requirements can get extremely high. It is recommended # to use this only for small crawls. #store_url_contents: true ################################ ################################ ################### # Connection Info # ################### # User Agent for HTTP connections user_agent: ht://check # HTTP/1.1 persistent connections (if possible on every server) persistent_connections: true # We make a HEAD call before a GET call (HTTP/1.1) head_before_get: true # Connection timeout timeout: 3 # This tells htcheck to send the supplied # username:password with each HTTP request. # The credentials will be encoded using the "Basic" authentication # scheme. There must be a colon (:) between the username and # password. #authorization: myusername:mypassword # Number of attempts for retrieving a document max_retries: 1 # Wait time after a connection timeouts tcp_wait_time: 1 # And number of retries (TCP layer) tcp_max_retries: 1 # When this attribute is set, all HTTP document # retrievals will be done using the HTTP-PROXY protocol. # The URL specified in this attribute points to the host # and port where the proxy server resides. # The use of a proxy server greatly improves performance # of the indexing process. Default: empty #http_proxy: http://proxy.bigbucks.com:3128 # When this is set, URLs matching this will not use the # proxy. This is useful when you have a mixture of sites # near to the digging server and far away. #http_proxy_exclude: http://intranet.foo.com/ # This attribute allows to restrict the set of natural languages that are # preferred as a response to an HTTP request performed by the digger. This can be # done by putting one or more language tags (as defined by RFC 1766) in the # preferred order, separated by spaces. By doing this, when the server performs a # content negotiation based on the 'accept-language' given by the HTTP user agent, # a different content can be shown depending on the value of this attribute. If # set empty, no language will be sent and the server default will be returned. #accept_language: en-us en it", " # If set to 'true', htcheck will disable the HTTP cookies management. #disable_cookies: true # Set the input file to be used when importing cookies for the # crawl; cookies must be specified according to Netscape's format. # For more information, give a look at the example cookies file # distributed with ht://Check. By default, no input file is read. # cookies_input_file: /tmp/cookies.txt # This string allows to customise the set of characters that can be considered # as reserverd in a URL, avoiding their coding under the RFC1738 standard. # This string is used when checking whether a URL is well-encoded or not, # issuing a 'BadEncoded' state for the link which created it. # The default value is slightly different from what the RFC says, giving # more flexibility to the spider (it is suggested not to change it unless you # are extremely sure of what you are doing). #url_reserved_chars: \\;/?:@&=+\$,._%-#x~ ################### ################### ############### # Report Info # ############### # Enable or disable the show of the summary of the HTML anchors that # have not been found. Default is enabled (true). #summary_anchor_not_found: false ################### ################### ######################## # Accessibility Checks # ######################## # Enable or disable the recognition of accessibility problems, using # some of the checks proposed by the Open Accessibility Checks project # by the Adaptive TechnologyResource Center at the University Of Toronto. # From version 1.2.3, ht://Checks internally stores this kind of # information in the 'AccessibilityChecks' table using the code number # specified in OAC (http://oac.atrc.utoronto.ca). #accessibility_checks: false ############### ############### htcheck-2.0.0~rc1.orig/installdirs/Makefile.am0000644000000000000000000000223411177570304016145 0ustar # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy include $(top_srcdir)/Makefile.config EXTRA_DIST = htcheck.conf cookies.txt install-data-local: all @echo "Installing default configuration files..." $(mkinstalldirs) $(DESTDIR)$(CONFIG_DIR) @cat $(top_srcdir)/installdirs/htcheck.conf >$(DESTDIR)$(DEFAULT_CONFIG_FILE).default; echo $(DEFAULT_CONFIG_FILE).default; chmod 600 $(DESTDIR)$(DEFAULT_CONFIG_FILE).default @if [ ! -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ]; then cat $(top_srcdir)/installdirs/htcheck.conf >$(DESTDIR)$(DEFAULT_CONFIG_FILE); echo $(DEFAULT_CONFIG_FILE); chmod 600 $(DESTDIR)$(DEFAULT_CONFIG_FILE); fi @echo "Installing default cookies input file (for example purposes)..." @cat $(top_srcdir)/installdirs/cookies.txt >$(DESTDIR)$(CONFIG_DIR)/cookies.txt.default; echo $(CONFIG_DIR)/cookies.txt.default; chmod 600 $(DESTDIR)$(CONFIG_DIR)/cookies.txt.default @if [ ! -f $(CONFIG_DIR)/cookies.txt ]; then cat $(top_srcdir)/installdirs/cookies.txt >$(DESTDIR)$(CONFIG_DIR)/cookies.txt; echo $(CONFIG_DIR)/cookies.txt; chmod 600 $(DESTDIR)$(CONFIG_DIR)/cookies.txt; fi htcheck-2.0.0~rc1.orig/installdirs/._htcheck.conf0000644000000000000000000000031511245223616016601 0ustar Mac OS X  2›ÍATTRTÚ+͘5˜5com.apple.quarantineq/0000;4a95411b;Thunderbird;|org.mozilla.thunderbirdhtcheck-2.0.0~rc1.orig/installdirs/cookies.txt0000644000000000000000000000335111177570304016307 0ustar # # Example of input file for cookies for ht://Check - version 1.2 # # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy # # For copyright details, see the file COPYING in your distribution # or the GNU General Public License version 2 or later # # # This file must be located through the 'cookies_input_file' directive, and # its purpose is to pre-load cookies into ht://Check and to be used for a # crawl. Each line contains one name-value pair. Lines beginning with '#' # or empty ones are ignored. # # Info have been taken from: http://www.cookiecentral.com/faq/#3.5 # # Each line represents a single piece of stored information. # A tab is inserted between each of the fields. From left-to-right, # here is what each field represents: # # domain The domain that created AND that can read the variable. # flag A TRUE/FALSE value indicating if all machines within a given # domain can access the variable. This value is IGNORED. # path The path within the domain that the variable is valid for. # secure A TRUE/FALSE value indicating if a secure connection with the # domain is needed to access the variable. IGNORED. # expiration The UNIX time that the variable will expire on. UNIX time is # defined as the number of seconds since epoc (Jan 1, 1970 00:00:00 GMT). # If you want to issue a session cookie, just set this field # value to '0'. # name The name of the variable. # value The value of the variable. # # For instance, a cookies.txt file may have an entry that looks like this: # # .netscape.com TRUE / FALSE 946684799 NETSCAPE_ID 100103 htcheck-2.0.0~rc1.orig/installdirs/Makefile.in0000644000000000000000000002633711245527335016172 0ustar # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.config subdir = installdirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline EXTRA_DIST = htcheck.conf cookies.txt all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign installdirs/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign installdirs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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 info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am 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 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: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am install-data-local: all @echo "Installing default configuration files..." $(mkinstalldirs) $(DESTDIR)$(CONFIG_DIR) @cat $(top_srcdir)/installdirs/htcheck.conf >$(DESTDIR)$(DEFAULT_CONFIG_FILE).default; echo $(DEFAULT_CONFIG_FILE).default; chmod 600 $(DESTDIR)$(DEFAULT_CONFIG_FILE).default @if [ ! -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ]; then cat $(top_srcdir)/installdirs/htcheck.conf >$(DESTDIR)$(DEFAULT_CONFIG_FILE); echo $(DEFAULT_CONFIG_FILE); chmod 600 $(DESTDIR)$(DEFAULT_CONFIG_FILE); fi @echo "Installing default cookies input file (for example purposes)..." @cat $(top_srcdir)/installdirs/cookies.txt >$(DESTDIR)$(CONFIG_DIR)/cookies.txt.default; echo $(CONFIG_DIR)/cookies.txt.default; chmod 600 $(DESTDIR)$(CONFIG_DIR)/cookies.txt.default @if [ ! -f $(CONFIG_DIR)/cookies.txt ]; then cat $(top_srcdir)/installdirs/cookies.txt >$(DESTDIR)$(CONFIG_DIR)/cookies.txt; echo $(CONFIG_DIR)/cookies.txt; chmod 600 $(DESTDIR)$(CONFIG_DIR)/cookies.txt; fi # 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: htcheck-2.0.0~rc1.orig/config.guess0000755000000000000000000013061111245527335014104 0ustar #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-11-15' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: htcheck-2.0.0~rc1.orig/INSTALL0000644000000000000000000000256411177570304012620 0ustar Installation Instructions for ht://Check ---------------------------------------- Copyright (c) 1999-2004 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group Some Portions Copyright (c) 2008 Devise.IT srl Author: Gabriele Bartolini - Prato - Italy $Id: INSTALL,v 1.17 2008-11-16 18:28:51 angusgb Exp $ ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. Please see the README file first. ht://Check is a world-wide-web utility for an intranet or small internet available at http://htcheck.sourceforge.net/ . Note that you already must have installed MySQL on your system. For info about MySQL and its license, go to . See the 'doc' dir for the documentation, available in these formats: - html - pdf - text - postscript == Quick MySQL Setup == Suppose you want to have an 'htcheck' user which is able to create/drop all the databases that start with 'htcheck_'. Perform the following steps (please be followed by a DBA) as superuser of the MySQL instance: create user htcheck identified by 'htcheck'; grant all on `htcheck\_%`.* to htcheck@localhost; Feel free to change the password. It is then suggested to add the following lines in your .my.cnf file: [htcheck] user: htcheck password: htcheck htcheck-2.0.0~rc1.orig/htlib/0000755000000000000000000000000011245531567012666 5ustar htcheck-2.0.0~rc1.orig/htlib/Queue.cc0000644000000000000000000000404311177570304014256 0ustar // // Queue.cc // // Queue: This class implements a linked list of objects. It itself is also an // object // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Queue.cc,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Queue.h" struct Queuenode { Queuenode *next; Object *obj; }; //*************************************************************************** // Queue::Queue() // Queue::Queue() { head = tail = 0; size = 0; } //*************************************************************************** // Queue::~Queue() // Queue::~Queue() { destroy(); } //*************************************************************************** // void Queue::destroy() // void Queue::destroy() { while (head) { Object *obj = pop(); delete obj; } size = 0; head = tail = 0; } //*************************************************************************** // void Queue::push(Object *obj) // Push an object onto the Queue. // void Queue::push(Object *obj) { Queuenode *node = new Queuenode; node->obj = obj; node->next = 0; if (tail) ((Queuenode *) tail)->next = node; tail = node; if (!head) head = tail; size++; } //*************************************************************************** // Object *Queue::pop() // Return the object at the head of the Queue and remove it // Object *Queue::pop() { if (size == 0) return 0; Queuenode *node = (Queuenode *) head; Object *obj = node->obj; head = (void *) node->next; delete node; size--; if (!head) tail = 0; return obj; } //*************************************************************************** // Object *Queue::peek() // Return the object at the top of the Queue. // Object *Queue::peek() { if (size == 0) return 0; return ((Queuenode *)head)->obj; } htcheck-2.0.0~rc1.orig/htlib/Stack.cc0000644000000000000000000000377511177570304014252 0ustar // // Stack.cc // // Stack: This class implements a linked list of objects. It itself is also an // object // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Stack.cc,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Stack.h" struct stacknode { stacknode *next; Object *obj; }; //*************************************************************************** // Stack::Stack() // Stack::Stack() { sp = 0; size = 0; } //*************************************************************************** // Stack::~Stack() // Stack::~Stack() { while (sp) { Object *obj = pop(); delete obj; } } //*************************************************************************** // void Stack::destroy() // void Stack::destroy() { while (sp) { Object *obj = pop(); delete obj; } } //*************************************************************************** // void Stack::push(Object *obj) // PURPOSE: // Push an object onto the stack. // void Stack::push(Object *obj) { stacknode *node = new stacknode; node->obj = obj; node->next = (stacknode *) sp; sp = node; size++; } //*************************************************************************** // Object *Stack::pop() // PURPOSE: // Return the object at the top of the stack and remove it from the stack. // Object *Stack::pop() { if (size == 0) return 0; stacknode *node = (stacknode *) sp; Object *obj = node->obj; sp = (void *) node->next; delete node; size--; return obj; } //*************************************************************************** // Object *Stack::peek() // PURPOSE: // Return the object at the top of the stack. // Object *Stack::peek() { if (size == 0) return 0; return ((stacknode *)sp)->obj; } htcheck-2.0.0~rc1.orig/htlib/strptime.cc0000755000000000000000000001703411177570304015050 0ustar /* * Copyright (c) 1994 Powerdog Industries. All rights reserved. * * Redistribution and use in source and binary forms, without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * 3. All advertising materials mentioning features or use of this * software must display the following acknowledgement: * This product includes software developed by Powerdog Industries. * 4. The name of Powerdog Industries may not be used to endorse or * promote products derived from this software without specific prior * written permission. * * THIS SOFTWARE IS PROVIDED BY POWERDOG INDUSTRIES ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE POWERDOG INDUSTRIES BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef lint /* static char copyright[] = "@(#) Copyright (c) 1994 Powerdog Industries. All rights reserved."; static char sccsid[] = "@(#)strptime.c 1.0 (Powerdog) 94/03/27"; */ #endif /* not lint */ #include #include #include #include #include #define asizeof(a) ((int)(sizeof (a) / sizeof ((a)[0]))) struct mydtconv { char *abbrev_month_names[12]; char *month_names[12]; char *abbrev_weekday_names[7]; char *weekday_names[7]; char *time_format; char *sdate_format; char *dtime_format; char *am_string; char *pm_string; char *ldate_format; }; static struct mydtconv En_US = { { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }, { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }, { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }, { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }, "%H:%M:%S", "%m/%d/%y", "%a %b %e %T %Z %Y", "AM", "PM", "%A, %B, %e, %Y" }; char * mystrptime(const char *buf, const char *fmt, struct tm *tm) { char c; const char *ptr; int i, len = 0; ptr = fmt; while (*ptr != 0) { if (*buf == 0) break; c = *ptr++; if (c != '%') { if (isspace(c)) while (*buf != 0 && isspace(*buf)) buf++; else if (c != *buf++) return 0; continue; } c = *ptr++; switch (c) { case 0: case '%': if (*buf++ != '%') return 0; break; case 'C': buf = mystrptime(buf, En_US.ldate_format, tm); if (buf == 0) return 0; break; case 'c': buf = mystrptime(buf, "%x %X", tm); if (buf == 0) return 0; break; case 'D': buf = mystrptime(buf, "%m/%d/%y", tm); if (buf == 0) return 0; break; case 'R': buf = mystrptime(buf, "%H:%M", tm); if (buf == 0) return 0; break; case 'r': buf = mystrptime(buf, "%I:%M:%S %p", tm); if (buf == 0) return 0; break; case 'T': buf = mystrptime(buf, "%H:%M:%S", tm); if (buf == 0) return 0; break; case 'X': buf = mystrptime(buf, En_US.time_format, tm); if (buf == 0) return 0; break; case 'x': buf = mystrptime(buf, En_US.sdate_format, tm); if (buf == 0) return 0; break; case 'j': if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (i > 365) return 0; tm->tm_yday = i; break; case 'M': case 'S': if (*buf == 0 || isspace(*buf)) break; if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (i > 59) return 0; if (c == 'M') tm->tm_min = i; else tm->tm_sec = i; if (*buf != 0 && isspace(*buf)) while (*ptr != 0 && !isspace(*ptr)) ptr++; break; case 'H': case 'I': case 'k': case 'l': if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (c == 'H' || c == 'k') { if (i > 23) return 0; } else if (i > 11) return 0; tm->tm_hour = i; if (*buf != 0 && isspace(*buf)) while (*ptr != 0 && !isspace(*ptr)) ptr++; break; case 'p': len = strlen(En_US.am_string); if (mystrncasecmp(buf, En_US.am_string, len) == 0) { if (tm->tm_hour > 12) return 0; if (tm->tm_hour == 12) tm->tm_hour = 0; buf += len; break; } len = strlen(En_US.pm_string); if (mystrncasecmp(buf, En_US.pm_string, len) == 0) { if (tm->tm_hour > 12) return 0; if (tm->tm_hour != 12) tm->tm_hour += 12; buf += len; break; } return 0; case 'A': case 'a': for (i = 0; i < asizeof(En_US.weekday_names); i++) { len = strlen(En_US.weekday_names[i]); if (mystrncasecmp(buf, En_US.weekday_names[i], len) == 0) break; len = strlen(En_US.abbrev_weekday_names[i]); if (mystrncasecmp(buf, En_US.abbrev_weekday_names[i], len) == 0) break; } if (i == asizeof(En_US.weekday_names)) return 0; tm->tm_wday = i; buf += len; break; case 'd': case 'e': if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (i > 31) return 0; tm->tm_mday = i; if (*buf != 0 && isspace(*buf)) while (*ptr != 0 && !isspace(*ptr)) ptr++; break; case 'B': case 'b': case 'h': for (i = 0; i < asizeof(En_US.month_names); i++) { len = strlen(En_US.month_names[i]); if (mystrncasecmp(buf, En_US.month_names[i], len) == 0) break; len = strlen(En_US.abbrev_month_names[i]); if (mystrncasecmp(buf, En_US.abbrev_month_names[i], len) == 0) break; } if (i == asizeof(En_US.month_names)) return 0; tm->tm_mon = i; buf += len; break; case 'm': if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (i < 1 || i > 12) return 0; tm->tm_mon = i - 1; if (*buf != 0 && isspace(*buf)) while (*ptr != 0 && !isspace(*ptr)) ptr++; break; case 'Y': case 'y': if (*buf == 0 || isspace(*buf)) break; if (!isdigit(*buf)) return 0; for (i = 0; *buf != 0 && isdigit(*buf); buf++) { i *= 10; i += *buf - '0'; } if (c == 'y' && i < 69) /* Unix Epoch pivot year */ i += 100; if (c == 'Y') i -= 1900; if (i < 0) return 0; tm->tm_year = i; if (*buf != 0 && isspace(*buf)) while (*ptr != 0 && !isspace(*ptr)) ptr++; break; } } return (char *) buf; } htcheck-2.0.0~rc1.orig/htlib/htString.h0000644000000000000000000001510711177570304014641 0ustar // // htString.h // // htString: (implementation in String.cc) Just Another String class. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: htString.h,v 1.4 2003-06-20 16:47:30 mnencia Exp $ // #ifndef __String_h #define __String_h #include "Object.h" #include #include #ifndef NOSTREAM #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #endif /* NOSTREAM */ class String : public Object { public: String() { Length = 0; Allocated = 0; Data = 0; } // Create an empty string String(int init); // initial allocated length String(const char *s); // from null terminated s String(const char *s, int len); // from s with length len String(const String &s); // Copy constructor // // This can be used for performance reasons if it is known the // String will need to grow. // String(const String &s, int allocation_hint); ~String(); inline int length() const; char *get(); const char *get() const; operator char*() { return get(); } operator const char*() { return get(); } operator const char*() const { return get(); } operator int() const; // // Interpretation // int as_integer(int def = 0) const; double as_double(double def = 0) const; int empty() const { return length() == 0; } // // If it is not posible to use the constructor with an initial // allocation size, use the following member to set the size. // void allocate(int init) {reallocate_space(init);} // // allocate space for a new char *, and copy the String in. // char *new_char() const; // // Assignment // inline String& set(const char *s, int l) { trunc(); append(s, l); return *this; } inline String& set(char *s) { trunc(); append(s, strlen(s)); return *this; } void operator = (const String &s); void operator = (const char *s); inline void operator += (const String &s) { append(s); } inline void operator += (const char *s) { append(s); } // // Appending // inline String &operator << (const char *); inline String &operator << (char); inline String &operator << (unsigned char c) {return *this<<(char)c;} String &operator << (int); String &operator << (unsigned int); String &operator << (long); inline String &operator << (short i) {return *this<<(int)i;} String &operator << (const String &); String &operator << (const String *s) {return *this << *s;} // // Access to specific characters // inline char &operator [] (int n); inline char operator [] (int n) const; inline char Nth (int n) { return (*this)[n]; } inline char last() const { return Length > 0 ? Data[Length - 1] : '\0'; } // // Removing // char operator >> (char c); // // Comparison // Return: // 0 : 'this' is equal to 's'. // -1 : 'this' is less than 's'. // 1 : 'this' is greater than 's'. // int compare(const Object& s) const { return compare((const String&)s); } int compare(const String& s) const; int nocase_compare(const String &s) const; // // Searching for parts // int lastIndexOf(char c) const; int lastIndexOf(char c, int pos) const; int indexOf(char c) const; int indexOf(char c, int pos) const; int indexOf(const char *) const; int indexOf(const char *, int pos) const; // // Manipulation // void append(const String &s); void append(const char *s); void append(const char *s, int n); void append(char ch); inline String &trunc() { Length = 0; return *this; } String &chop(int n = 1); String &chop(char ch = '\n'); String &chop(const char *str = "\r\n"); // // SubStrings // // The string starting at postion 'start' and length 'len'. // String sub(int start, int len) const; String sub(int start) const; // // IO // int Write(int fd) const; #ifndef NOSTREAM void debug(ostream &o); #endif /* NOSTREAM */ // // Non-member operators // friend String operator + (const String &a, const String &b); friend int operator == (const String &a, const String &b); friend int operator != (const String &a, const String &b); friend int operator < (const String &a, const String &b); friend int operator > (const String &a, const String &b); friend int operator <= (const String &a, const String &b); friend int operator >= (const String &a, const String &b); #ifndef NOSTREAM friend ostream &operator << (ostream &o, const String &s); friend istream &operator >> (istream &in, String &line); #endif /* NOSTREAM */ int readLine(FILE *in); int lowercase(); int uppercase(); void replace(char c1, char c2); int remove(const char *); Object *Copy() const { return new String(*this); } // // Persistent storage support // void Serialize(String &); void Deserialize(String &, int &); private: int Length; // Current Length int Allocated; // Total space allocated char *Data; // The actual contents void copy_data_from(const char *s, int len, int dest_offset = 0); void copy(const char *s, int len, int allocation_hint); // // Possibly make Data bigger. // void reallocate_space(int len); // // Allocate some space for the data. Delete Data if it // has been allocated. // void allocate_space(int len); // Allocate some space without rounding void allocate_fix_space(int len); friend class StringIndex; }; extern char *form(const char *, ...); extern char *vform(const char *, va_list); // // Inline methods. // inline String &String::operator << (const char *str) { append(str); return *this; } inline String &String::operator << (char ch) { append(ch); return *this; } inline int String::length() const { return Length; } inline char String::operator [] (int n) const { if(n < 0) n = Length + n; if(n >= Length || n < 0) return '\0'; return Data[n]; } static char null = '\0'; inline char &String::operator [] (int n) { if(n < 0) n = Length + n; if(n >= Length || n < 0) return null; return Data[n]; } // // Non friend, non member operators // #endif htcheck-2.0.0~rc1.orig/htlib/memmove.c0000644000000000000000000000762211177570304014502 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ /* * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifndef NO_SYSTEM_INCLUDES #include #endif #ifndef HAVE_MEMMOVE /* * sizeof(word) MUST BE A POWER OF TWO * SO THAT wmask BELOW IS ALL ONES */ typedef int word; /* "word" used for optimal copy speed */ #undef wsize #define wsize sizeof(word) #undef wmask #define wmask (wsize - 1) /* * Copy a block of memory, handling overlap. * This is the routine that actually implements * (the portable versions of) bcopy, memcpy, and memmove. */ /* * PUBLIC: #ifndef HAVE_MEMMOVE * PUBLIC: void *memmove __P((void *, const void *, size_t)); * PUBLIC: #endif */ void * memmove(dst0, src0, length) void *dst0; const void *src0; register size_t length; { register char *dst = dst0; register const char *src = src0; register size_t t; if (length == 0 || dst == src) /* nothing to do */ goto done; /* * Macros: loop-t-times; and loop-t-times, t>0 */ #undef TLOOP #define TLOOP(s) if (t) TLOOP1(s) #undef TLOOP1 #define TLOOP1(s) do { s; } while (--t) if ((unsigned long)dst < (unsigned long)src) { /* * Copy forward. */ t = (int)src; /* only need low bits */ if ((t | (int)dst) & wmask) { /* * Try to align operands. This cannot be done * unless the low bits match. */ if ((t ^ (int)dst) & wmask || length < wsize) t = length; else t = wsize - (t & wmask); length -= t; TLOOP1(*dst++ = *src++); } /* * Copy whole words, then mop up any trailing bytes. */ t = length / wsize; TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); t = length & wmask; TLOOP(*dst++ = *src++); } else { /* * Copy backwards. Otherwise essentially the same. * Alignment works as before, except that it takes * (t&wmask) bytes to align, not wsize-(t&wmask). */ src += length; dst += length; t = (int)src; if ((t | (int)dst) & wmask) { if ((t ^ (int)dst) & wmask || length <= wsize) t = length; else t &= wmask; length -= t; TLOOP1(*--dst = *--src); } t = length / wsize; TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src); t = length & wmask; TLOOP(*--dst = *--src); } done: return (dst0); } #endif /* HAVE_MEMOVE */ htcheck-2.0.0~rc1.orig/htlib/StringList.h0000644000000000000000000000372711177570304015146 0ustar // // StringList.h // // StringList: Specialized List containing String objects. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: StringList.h,v 1.2 2002-11-14 16:59:04 angusgb Exp $ // #ifndef _StringList_h_ #define _StringList_h_ #include "Object.h" #include "List.h" #include "htString.h" class StringList : public List { public: // // Construction/Destruction // StringList(); // // Creation of a String from a string or String // StringList(const char *str, char sep = '\t') { Create(str, sep); } StringList(const String &str, char sep = '\t') { Create(str, sep); } StringList(const char *str, const char *sep) { Create(str, sep); } StringList(const String &str, const char *sep) { Create(str, sep); } int Create(const char *str, char sep = '\t'); int Create(const String &str, char sep = '\t') { return Create(str.get(), sep); } int Create(const char *str, const char *sep); int Create(const String &str, const char *sep) { return Create(str.get(), sep); } // // Standard List operations... // void Add(char *); void Add(String *obj) { List::Add(obj); } void Insert(char *, int pos); void Insert(String *obj, int pos) { List::Insert(obj, pos); } void Assign(char *, int pos); void Assign(String *obj, int pos) { List::Assign(obj, pos); } // // Since we know we only store strings, we can reliably sort them. // If direction is 1, the sort will be in descending order // void Sort(int direction = 0); // // Join the Elements of the StringList together // String Join(char) const; // // Getting at the parts of the StringList // char *operator [] (int n); private: }; #endif htcheck-2.0.0~rc1.orig/htlib/Makefile.am0000644000000000000000000000201011245247536014713 0ustar # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy include $(top_srcdir)/Makefile.config pkglib_LTLIBRARIES = libht.la libht_la_SOURCES = Configuration.cc Dictionary.cc \ IntObject.cc List.cc Object.cc \ ParsedString.cc Queue.cc Stack.cc \ String.cc StringList.cc String_fmt.cc StringMatch.cc \ good_strtok.cc strcasecmp.cc \ HtVector.cc HtHeap.cc HtRegex.cc \ HtPack.cc HtDateTime.cc \ mktime.c strptime.cc timegm.c \ getcwd.c memcmp.c memcpy.c memmove.c raise.c strerror.c libht_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ Configuration.h \ Dictionary.h \ HtDateTime.h \ HtHeap.h \ HtPack.h \ HtRegex.h \ HtVector.h \ IntObject.h \ List.h \ Object.h \ ParsedString.h \ Queue.h \ Stack.h \ StringList.h \ StringMatch.h \ good_strtok.h \ htString.h \ lib.h \ regex.h htcheck-2.0.0~rc1.orig/htlib/HtDateTime.cc0000644000000000000000000006666011177570304015177 0ustar // // HtDateTime.cc // // HtDateTime: Parse, split, compare and format dates and times. // Uses locale. // // Part of the ht://Dig package // Copyright (c) 1999-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtDateTime.cc,v 1.8 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtDateTime.h" #include #include #include #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #ifndef HAVE_STRPTIME // mystrptime() declared in lib.h, defined in htlib/strptime.cc #define strptime(s,f,t) mystrptime(s,f,t) #else /* HAVE_STRPTIME */ #ifndef HAVE_STRPTIME_DECL extern "C" { extern char *strptime(const char *__s, const char *__fmt, struct tm *__tp); } #endif /* HAVE_STRPTIME_DECL */ #endif /* HAVE_STRPTIME */ /////// // Static local variable : Visible only here !!! /////// #define MAXSTRTIME 256 // Max length of _strtime static struct tm Ht_tm; static char _strtime[MAXSTRTIME]; /////// // Recognized Date Formats /////// // RFC1123: Sun, 06 Nov 1994 08:49:37 GMT #define RFC1123_FORMAT "%a, %d %b %Y %H:%M:%S %Z" #define LOOSE_RFC1123_FORMAT "%d %b %Y %H:%M:%S" // RFC850 : Sunday, 06-Nov-94 08:49:37 GMT #define RFC850_FORMAT "%A, %d-%b-%y %H:%M:%S %Z" #define LOOSE_RFC850_FORMAT "%d-%b-%y %H:%M:%S" // ANSI C's asctime() format : Sun Nov 6 08:49:37 1994 #define ASCTIME_FORMAT "%a %b %e %H:%M:%S %Y" #define LOOSE_ASCTIME_FORMAT "%b %e %H:%M:%S %Y" // ISO8601 : 1994-11-06 08:49:37 GMT #define ISO8601_FORMAT "%Y-%m-%d %H:%M:%S %Z" // ISO8601 (short version): 1994-11-06 #define ISO8601_SHORT_FORMAT "%Y-%m-%d" // Timestamp : 19941106084937 #define TIMESTAMP_FORMAT "%Y%m%d%H%M%S" /////// // Initialization /////// const int HtDateTime::days[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; /////// // Input Formats // /////// /////// // Generalized date/time parser for "LOOSE" formats // - converts LOOSE RFC850 or RFC1123 date string into a time value // - converts SHORT ISO8601 date string into a time value // - autodetects which of these formats is used // - assumes midnight if time portion omitted // We've had problems using strptime() and timegm() on a few platforms // while parsing these formats, so this is an attempt to sidestep them. // // Returns 0 if parsing failed, or returns number of characters parsed // in date string otherwise, and sets Ht_t field to time_t value. /////// #define EPOCH 1970 int HtDateTime::Parse(const char *date) { register const char *s; register const char *t; int day, month, year, hour, minute, second; // // Three possible time designations: // Tuesday, 01-Jul-97 16:48:02 GMT (RFC850) // or // Thu, 01 May 1997 00:40:42 GMT (RFC1123) // or // 1997-05-01 00:40:42 GMT (ISO8601) // // We strip off the weekday because we don't need it, and // because some servers send invalid weekdays! // (Some don't even send a weekday, but we'll be flexible...) s = date; while (*s && *s != ',') s++; if (*s) s++; else s = date; while (isspace(*s)) s++; // check for ISO8601 format month = 0; t = s; while (isdigit(*t)) t++; if (t > s && *t == '-' && isdigit(t[1])) day = -1; else { // not ISO8601, so try RFC850 or RFC1123 // get day... if (!isdigit(*s)) return 0; day = 0; while (isdigit(*s)) day = day * 10 + (*s++ - '0'); if (day > 31) return 0; while (*s == '-' || isspace(*s)) s++; // get month... // (it's ugly, but it works) switch (*s++) { case 'J': case 'j': switch (*s++) { case 'A': case 'a': month = 1; s++; break; case 'U': case 'u': switch (*s++) { case 'N': case 'n': month = 6; break; case 'L': case 'l': month = 7; break; default: return 0; } break; default: return 0; } break; case 'F': case 'f': month = 2; s += 2; break; case 'M': case 'm': switch (*s++) { case 'A': case 'a': switch (*s++) { case 'R': case 'r': month = 3; break; case 'Y': case 'y': month = 5; break; default: return 0; } break; default: return 0; } break; case 'A': case 'a': switch (*s++) { case 'P': case 'p': month = 4; s++; break; case 'U': case 'u': month = 8; s++; break; default: return 0; } break; case 'S': case 's': month = 9; s += 2; break; case 'O': case 'o': month = 10; s += 2; break; case 'N': case 'n': month = 11; s += 2; break; case 'D': case 'd': month = 12; s += 2; break; default: return 0; } while (*s == '-' || isspace(*s)) s++; } // get year... if (!isdigit(*s)) return 0; year = 0; while (isdigit(*s)) year = year * 10 + (*s++ - '0'); if (year < 69) year += 2000; else if (year < 1900) year += 1900; else if (year >= 19100) // seen some programs do it, why not check? year -= (19100-2000); while (*s == '-' || isspace(*s)) s++; if (day < 0) { // still don't have day, so it's ISO8601 format // get month... if (!isdigit(*s)) return 0; month = 0; while (isdigit(*s)) month = month * 10 + (*s++ - '0'); if (month < 1 || month > 12) return 0; while (*s == '-' || isspace(*s)) s++; // get day... if (!isdigit(*s)) return 0; day = 0; while (isdigit(*s)) day = day * 10 + (*s++ - '0'); if (day < 1 || day > 31) return 0; while (*s == '-' || isspace(*s)) s++; } // optionally get hour... hour = 0; while (isdigit(*s)) hour = hour * 10 + (*s++ - '0'); if (hour > 23) return 0; while (*s == ':' || isspace(*s)) s++; // optionally get minute... minute = 0; while (isdigit(*s)) minute = minute * 10 + (*s++ - '0'); if (minute > 59) return 0; while (*s == ':' || isspace(*s)) s++; // optionally get second... second = 0; while (isdigit(*s)) second = second * 10 + (*s++ - '0'); if (second > 59) return 0; while (*s == ':' || isspace(*s)) s++; // Assign the new value to time_t field // // Calculate date as seconds since 01 Jan 1970 00:00:00 GMT // This is based somewhat on the date calculation code in NetBSD's // cd9660_node.c code, for which I was unable to find a reference. // It works, though! // Ht_t = (time_t) (((((367L*year - 7L*(year+(month+9)/12)/4 - 3L*(((year)+((month)+9)/12-1)/100+1)/4 + 275L*(month)/9 + day) - (367L*EPOCH - 7L*(EPOCH+(1+9)/12)/4 - 3L*((EPOCH+(1+9)/12-1)/100+1)/4 + 275L*1/9 + 1)) * 24 + hour) * 60 + minute) * 60 + second); // cerr << "Date string '" << date << "' converted to time_t " // << (int)Ht_t << ", used " << (s-date) << " characters\n"; return s-date; } /////// // Personalized format such as C strftime function // Overloaded version 1 // It ignores, for now, Time Zone values /////// char *HtDateTime::SetFTime(const char *buf, const char *format) { register char *p; register int r; ToGMTime(); // This must be set cos strptime always stores in GM p = (char *) buf; if (*format == '%') // skip any unexpected white space while (isspace(*p)) p++; // Special handling for LOOSE/SHORT formats... if ((strcmp((char *) format, LOOSE_RFC850_FORMAT) == 0 || strcmp((char *) format, LOOSE_RFC1123_FORMAT) == 0 || strcmp((char *) format, ISO8601_SHORT_FORMAT) == 0) && (r = Parse(p)) > 0) return p+r; p = (char *) strptime (p, (char *) format, & Ht_tm); #ifdef TEST_HTDATETIME // ViewStructTM(& Ht_tm); #endif // Assign the new value to time_t value SetDateTime(Ht_tm); return p; } /////// // C asctime() standard format /////// void HtDateTime::SetAscTime(char *s) { // Unfortunately, I cannot think of an easy test to // see if we have a weekday *FIX* SetFTime(s, ASCTIME_FORMAT); } /////// // RFC1123 standard Date format // Sun, 06 Nov 1994 08:49:37 GMT /////// void HtDateTime::SetRFC1123(char *s) { // abbreviated weekday name; // day of the month; // abbreviated month name; // year as ccyy; // hour ( 00 - 23); // minute ( 00 - 59); // seconds ( 00 - 59); // time zone name; // First, if we have it, strip off the weekday char *stripped; stripped = strchr(s, ','); if (stripped) stripped++; else stripped = s; SetFTime(stripped, LOOSE_RFC1123_FORMAT); } /////// // RFC850 standard Date format // Sunday, 06-Nov-1994 08:49:37 GMT /////// void HtDateTime::SetRFC850(char *s) { // weekday name; // day of the month; // abbreviated month name; // year within century; // hour ( 00 - 23); // minute ( 00 - 59); // seconds ( 00 - 59); // time zone name; // First, if we have it, strip off the weekday char *stripped; stripped = strchr(s, ','); if (stripped) stripped++; else stripped = s; SetFTime(stripped, LOOSE_RFC850_FORMAT); } /////// // ISO8601 standard Date format // 1994-11-06 08:49:37 GMT /////// void HtDateTime::SetISO8601(char *s) { // year as ccyy; // month ( 01 - 12) // day of the month // hour ( 00 - 23) // minute ( 00 - 59) // seconds ( 00 - 59); // time zone name; SetFTime(s, ISO8601_FORMAT); } /////// // Timestamp Date format (MySQL) without timezone // 19941106084937 /////// void HtDateTime::SetTimeStamp(char *s) { // year as ccyy; // month ( 01 - 12) // day of the month // hour ( 00 - 23) // minute ( 00 - 59) // seconds ( 00 - 59); SetFTime(s, TIMESTAMP_FORMAT); } /////// // Default date and time format for the locale /////// void HtDateTime::SetDateTimeDefault(char *s) { SetFTime(s, "%c"); } /////// // Output Formats // /////// /////// // Personalized format such as C strftime function // Overloaded version 1 /////// size_t HtDateTime::GetFTime(char *s, size_t max, const char *format) const { // Refresh static struct tm variable RefreshStructTM(); return strftime(s, max, format, & Ht_tm); } /////// // Personalized format such as C strftime function // Overloaded version 2 - The best to be used outside // for temporary uses /////// char *HtDateTime::GetFTime(const char *format) const { // Invoke GetFTime overloaded method if(GetFTime(_strtime, MAXSTRTIME, format)) return (char *)_strtime; else return 0; } /////// // RFC1123 standard Date format // Sun, 06 Nov 1994 08:49:37 GMT /////// char *HtDateTime::GetRFC1123() const { // abbreviated weekday name; // day of the month; // abbreviated month name; // year as ccyy; // hour ( 00 - 23); // minute ( 00 - 59); // seconds ( 00 - 59); // time zone name; GetFTime(_strtime, MAXSTRTIME, RFC1123_FORMAT); return (char *)_strtime; } /////// // RFC850 standard Date format // Sunday, 06-Nov-94 08:49:37 GMT /////// char *HtDateTime::GetRFC850() const { // full weekday name // day of the month // abbreviated month name // year within century ( 00 - 99 ) // hour ( 00 - 23) // minute ( 00 - 59) // seconds ( 00 - 59); // time zone name; GetFTime(_strtime, MAXSTRTIME, RFC850_FORMAT); return (char *)_strtime; } /////// // C asctime() standard format /////// char *HtDateTime::GetAscTime() const { GetFTime(_strtime, MAXSTRTIME, ASCTIME_FORMAT); return (char *)_strtime; } /////// // ISO8601 standard Date format // 1994-11-06 08:49:37 GMT /////// char *HtDateTime::GetISO8601() const { // year as ccyy; // month ( 01 - 12) // day of the month // hour ( 00 - 23) // minute ( 00 - 59) // seconds ( 00 - 59); // time zone name; GetFTime(_strtime, MAXSTRTIME, ISO8601_FORMAT); return (char *)_strtime; } /////// // ISO8601 standard Date format // 1994-11-06 08:49:37 GMT /////// char *HtDateTime::GetShortISO8601() const { // year as ccyy; // month ( 01 - 12) // day of the month GetFTime(_strtime, MAXSTRTIME, ISO8601_SHORT_FORMAT); return (char *)_strtime; } /////// // Timestamp Date format (MySQL) without timezone // 19941106084937 /////// char *HtDateTime::GetTimeStamp() const { // year as ccyy; // month ( 01 - 12) // day of the month // hour ( 00 - 23) // minute ( 00 - 59) // seconds ( 00 - 59); GetFTime(_strtime, MAXSTRTIME, TIMESTAMP_FORMAT); return (char *)_strtime; } /////// // Default date and time format for the locale /////// char *HtDateTime::GetDateTimeDefault() const { GetFTime(_strtime, MAXSTRTIME, "%c"); return (char *)_strtime; } /////// // Default date format for the locale /////// char *HtDateTime::GetDateDefault() const { GetFTime(_strtime, MAXSTRTIME, "%x"); return (char *)_strtime; } /////// // Default time format for the locale /////// char *HtDateTime::GetTimeDefault() const { GetFTime(_strtime, MAXSTRTIME, "%X"); return (char *)_strtime; } /////// // Set the static struct tm depending on localtime status /////// void HtDateTime::RefreshStructTM() const { if(local_time) // Setting localtime memcpy(& Ht_tm, localtime(&Ht_t), sizeof(struct tm)); else // Setting UTC or GM time memcpy(& Ht_tm , gmtime(&Ht_t), sizeof(struct tm)); } // Set the date time from a struct tm pointer void HtDateTime::SetDateTime(struct tm *ptm) { if(local_time) Ht_t = mktime(ptm); // Invoke mktime else Ht_t = HtTimeGM(ptm); // Invoke timegm alike function } // Set time to now void HtDateTime::SettoNow() { Ht_t = time(0); } // Sets date by passing specific values // The values are reffered to the GM date time // Return false if failed bool HtDateTime::SetGMDateTime ( int year, int mon, int mday, int hour, int min, int sec) { struct tm tm_tmp; // Year if ( ! isAValidYear (year) ) return false; if( year < 100) year=Year_From2To4digits (year); // For further checks it's converted // Assigning the year tm_tmp.tm_year=year-1900; // Month if( ! isAValidMonth(mon) ) return false; tm_tmp.tm_mon=mon-1; // Assigning the month to the structure // Day if ( ! isAValidDay ( mday, mon, year ) ) return false; tm_tmp.tm_mday=mday; // Assigning the day of the month if(hour >= 0 && hour < 24) tm_tmp.tm_hour = hour; else return false; if(min >= 0 && min < 60) tm_tmp.tm_min = min; else return false; if(sec >= 0 && sec < 60) tm_tmp.tm_sec = sec; else return false; tm_tmp.tm_yday = 0; // day of the year (to be ignored) tm_tmp.tm_isdst = 0; // default for GM (to be ignored) // Now we are going to insert the new values as time_t value // This can only be done using GM Time and so ... if (isLocalTime()) { ToGMTime(); // Change to GM Time SetDateTime(&tm_tmp); // commit it ToLocalTime(); // And then return to Local Time } else SetDateTime(&tm_tmp); // only commit it return true; } /////// // Gets a struct tm from the value stored in the object // It's a protected method. Not visible outside the class /////// struct tm &HtDateTime::GetStructTM() const { RefreshStructTM(); // refresh it return Ht_tm; } struct tm &HtDateTime::GetGMStructTM() const { GetGMStructTM (Ht_tm); return Ht_tm; } void HtDateTime::GetGMStructTM(struct tm & t) const { // Directly gets gmtime value memcpy(& t , gmtime(& Ht_t), sizeof(struct tm)); } /////// // Is a leap year? /////// bool HtDateTime::LeapYear (int y) { if(y % 400 == 0 || ( y % 100 != 0 && y % 4 == 0)) return true; // a leap year else return false; // and not } /////// // Is a valid year number? /////// bool HtDateTime::isAValidYear (int y) { if(y >= 1970 && y < 2069) return true; // simple check and most likely if(y >= 0 && y < 100) return true; // 2 digits year number return false; } /////// // Is a valid month number? /////// bool HtDateTime::isAValidMonth (int m) { if( m >= 1 && m <= 12) return true; else return false; } /////// // Is a valid day? /////// bool HtDateTime::isAValidDay (int d, int m, int y) { if ( ! isAValidYear (y) ) return false; // Checks for the year if ( ! isAValidMonth (m) ) return false; // Checks for the month if(m == 2) { // Expands the 2 digits year number if ( y < 100 ) y=Year_From2To4digits(y); if ( LeapYear (y) ) // Checks for the leap year { if (d >= 1 && d <= 29) return true; else return false; } } // Acts as default if (d >= 1 && d <= days [m -1]) return true; else return false; } /////// // Comparison methods /////// int HtDateTime::DateTimeCompare (const HtDateTime & right) const { int result; // Let's compare the date result=DateCompare(right); if(result) return result; // Same date. Let's compare the time result=TimeCompare(right); return result; // Nothing more to check } int HtDateTime::GMDateTimeCompare (const HtDateTime & right) const { // We must compare the whole time_t value if ( * this > right) return 1; // 1st greater than 2nd if ( * this < right) return 1; // 1st lower than 2nd return 0; } int HtDateTime::DateCompare (const HtDateTime & right) const { // We must transform them in 2 struct tm variables struct tm tm1, tm2; this->GetGMStructTM (tm1); right.GetGMStructTM (tm2); // Let's compare them return DateCompare (&tm1, &tm2); } int HtDateTime::GMDateCompare (const HtDateTime & right) const { // We must transform them in 2 struct tm variables // both referred to GM time struct tm tm1, tm2; this->GetGMStructTM (tm1); right.GetGMStructTM (tm2); // Let's compare them return DateCompare (&tm1, &tm2); } int HtDateTime::TimeCompare (const HtDateTime & right) const { // We must transform them in 2 struct tm variables struct tm tm1, tm2; this->GetStructTM (tm1); right.GetStructTM (tm2); return TimeCompare (&tm1, &tm2); } int HtDateTime::GMTimeCompare (const HtDateTime & right) const { // We must transform them in 2 struct tm variables struct tm tm1, tm2; // We take the GM value of the time this->GetGMStructTM (tm1); right.GetGMStructTM (tm2); return TimeCompare (&tm1, &tm2); } /////// // Static methods of comparison between 2 struct tm pointers /////// /////// // Compares only the date (ignoring the time) /////// int HtDateTime::DateCompare(const struct tm *tm1, const struct tm *tm2) { // Let's check the year if (tm1->tm_year < tm2->tm_year) return -1; if (tm1->tm_year > tm2->tm_year) return 1; // Same year. Let's check the month if (tm1->tm_mon < tm2->tm_mon) return -1; if (tm1->tm_mon > tm2->tm_mon) return 1; // Same month. Let's check the day of the month if (tm1->tm_mday < tm2->tm_mday) return -1; if (tm1->tm_mday > tm2->tm_mday) return 1; // They are equal for the date return 0; } /////// // Compares only the time (ignoring the date) /////// int HtDateTime::TimeCompare(const struct tm *tm1, const struct tm *tm2) { // Let's check the hour if (tm1->tm_hour < tm2->tm_hour) return -1; if (tm1->tm_hour > tm2->tm_hour) return 1; // Same hour . Let's check the minutes if (tm1->tm_min < tm2->tm_min) return -1; if (tm1->tm_min > tm2->tm_min) return 1; // Ooops !!! Same minute. Let's check the seconds if (tm1->tm_sec < tm2->tm_sec) return -1; if (tm1->tm_sec > tm2->tm_sec) return 1; // They are equal for the time return 0; } /////// // Compares both date and time /////// int HtDateTime::DateTimeCompare(const struct tm *tm1, const struct tm *tm2) { int compare_date = DateCompare(tm1, tm2); if(compare_date) return compare_date; // Different days // We are in the same day. Let's check the time int compare_time = TimeCompare(tm1, tm2); if(compare_time) return compare_time; // Different time // Equal return 0; } time_t HtDateTime::HtTimeGM (struct tm *tm) { #if HAVE_TIMEGM return timegm (tm); #else return Httimegm (tm); // timegm replacement in timegm.c // static time_t gmtime_offset; // tm->tm_isdst = 0; // return __mktime_internal (tm, gmtime, &gmtime_offset); #endif } // Returns the difference in seconds between two HtDateTime Objects int HtDateTime::GetDiff(const HtDateTime &d1, const HtDateTime &d2) { return (int) ( d1.Ht_t - d2.Ht_t ); } /////// // Only for test and debug /////// #ifdef TEST_HTDATETIME /////// // View of struct tm fields /////// void HtDateTime::ViewStructTM() { // Default viewing: refresh depending on time_t value RefreshStructTM(); // Refresh static variable ViewStructTM(&Ht_tm); } void HtDateTime::ViewStructTM(struct tm *ptm) { cout << "Struct TM fields" << endl; cout << "================" << endl; cout << "tm_sec :\t" << ptm->tm_sec << endl; cout << "tm_min :\t" << ptm->tm_min << endl; cout << "tm_hour :\t" << ptm->tm_hour << endl; cout << "tm_mday :\t" << ptm->tm_mday << endl; cout << "tm_mon :\t" << ptm->tm_mon << endl; cout << "tm_year :\t" << ptm->tm_year << endl; cout << "tm_wday :\t" << ptm->tm_wday << endl; cout << "tm_yday :\t" << ptm->tm_yday << endl; cout << "tm_isdst :\t" << ptm->tm_isdst<< endl; } int HtDateTime::Test(void) { int ok=1; const char *test_dates[] = { "1970.01.01 00:00:00", "1970.01.01 00:00:01", "1972.02.05 23:59:59", "1972.02.28 00:59:59", "1972.02.28 23:59:59", "1972.02.29 00:00:00", "1972.03.01 13:00:04", "1973.03.01 12:00:00", "1980.01.01 00:00:05", "1984.12.31 23:00:00", "1997.06.05 17:55:35", "1999.12.31 23:00:00", "2000.01.01 00:00:05", "2000.02.28 23:00:05", "2000.02.29 23:00:05", "2000.03.01 00:00:05", "2007.06.05 17:55:35", "2038.01.19 03:14:07", 0 }; const char *test_dates_ISO8601[] = { "1970-01-01 00:00:00 GMT", "1970-01-01 00:00:00 CET", "1990-02-27 23:30:20 GMT", "1999-02-28 06:53:40 GMT", "1975-04-27 06:53:40 CET", 0 }; const char *test_dates_RFC1123[] = { "Sun, 06 Nov 1994 08:49:37 GMT", "Sun, 25 Apr 1999 17:49:37 GMT", "Sun, 25 Apr 1999 17:49:37 CET", 0 }; const char *test_dates_RFC850[] = { "Sunday, 06-Nov-94 08:49:37 GMT", "Sunday, 25-Apr-99 17:49:37 GMT", "Sunday, 25-Apr-99 17:49:37 CET", 0 }; const char myformat[]="%Y.%m.%d %H:%M:%S"; // Tests a personal format cout << endl << "Beginning Test of a personal format such as " << myformat << endl << endl; if (Test((char **)test_dates, (const char *)myformat)) cout << "Test OK." << endl; else { cout << "Test Failed." << endl; ok=0; } // Tests ISO 8601 Format cout << endl << "Beginning Test of ISO 8601 format" << endl << endl; if(Test((char **)test_dates_ISO8601, (const char *)ISO8601_FORMAT)) cout << "Test OK." << endl; else { cout << "Test Failed." << endl; ok=0; } // Tests RFC 1123 Format cout << endl << "Beginning Test of RFC 1123 format" << endl << endl; if (Test((char **)test_dates_RFC1123, (const char *)RFC1123_FORMAT)) cout << "Test OK." << endl; else { cout << "Test Failed." << endl; ok=0; } // Tests RFC 850 Format cout << endl << "Beginning Test of RFC 850 format" << endl << endl; if (Test((char **)test_dates_RFC850, (const char *)RFC850_FORMAT)) cout << "Test OK." << endl; else { cout << "Test Failed." << endl; ok=0; } return(ok ? 1 : 0); } int HtDateTime::Test(char **test_dates, const char *format) { int i, ok = 1; HtDateTime orig, conv; for (i = 0; (test_dates[i]); i++) { cout << "\t " << i+1 << "\tDate string parsing of:" << endl; cout << "\t\t" << test_dates[i] << endl; cout << "\t\tusing format: " << format << endl << endl; orig.SetFTime(test_dates[i], format); orig.ComparisonTest(conv); conv=orig; if (orig != conv) { cout << "HtDateTime test failed!" << endl; cout << "\t Original : " << orig.GetRFC1123() << endl; cout << "\t Converted: " << orig.GetRFC1123() << endl; ok = 0; } else { orig.ToLocalTime(); cout << endl << "\t Localtime viewing" << endl; orig.ViewFormats(); orig.ToGMTime(); cout << endl << "\t GMtime viewing" << endl; orig.ViewFormats(); //orig.ViewStructTM(); } cout << endl; } return ok; } void HtDateTime::ComparisonTest (const HtDateTime &right) const { int result; cout << "Comparison between:" << endl; cout << " 1. " << this->GetRFC1123() << endl; cout << " 2. " << right.GetRFC1123() << endl; cout << endl; /////// // Complete comparison /////// cout << "\tComplete comparison (date and time)" << endl; result = this->DateTimeCompare (right); cout << "\t\t " << this->GetDateTimeDefault(); if (result > 0 ) cout << " is greater than "; else if (result < 0 ) cout << " is lower than "; else cout << " is equal to "; cout << " " << right.GetDateTimeDefault() << endl; /////// // Date comparison /////// cout << "\tDate comparison (ignoring time)" << endl; result = this->DateCompare (right); cout << "\t\t " << this->GetDateDefault(); if (result > 0 ) cout << " is greater than "; else if (result < 0 ) cout << " is lower than "; else cout << " is equal to "; cout << " " << right.GetDateDefault() << endl; /////// // Date comparison (after GM time conversion) /////// cout << "\tDate comparison (ignoring time) - GM time conversion" << endl; result = this->GMDateCompare (right); cout << "\t\t " << this->GetDateDefault(); if (result > 0 ) cout << " is greater than "; else if (result < 0 ) cout << " is lower than "; else cout << " is equal to "; cout << " " << right.GetDateDefault() << endl; /////// // Time comparison /////// cout << "\tTime comparison (ignoring date)" << endl; result = this->TimeCompare (right); cout << "\t\t " << this->GetTimeDefault(); if (result > 0 ) cout << " is greater than "; else if (result < 0 ) cout << " is lower than "; else cout << " is equal to "; cout << " " << right.GetTimeDefault() << endl; /////// // Time comparison (after GM time conversion) /////// cout << "\tTime comparison (ignoring date) - GM time conversion" << endl; result = this->GMTimeCompare (right); cout << "\t\t " << this->GetTimeDefault(); if (result > 0 ) cout << " is greater than "; else if (result < 0 ) cout << " is lower than "; else cout << " is equal to "; cout << " " << right.GetTimeDefault() << endl; } void HtDateTime::ViewFormats() { cout << "\t\t RFC 1123 Format : " << GetRFC1123() << endl; cout << "\t\t RFC 850 Format : " << GetRFC850() << endl; cout << "\t\t C Asctime Format: " << GetAscTime() << endl; cout << "\t\t ISO 8601 Format : " << GetISO8601() << endl; } #endif htcheck-2.0.0~rc1.orig/htlib/StringMatch.h0000644000000000000000000001027311177570304015261 0ustar // // StringMatch.h // // StringMatch: This class provides an interface to a fairly specialized string // lookup facility. It is intended to be used as a replace for any // regular expression matching when the pattern string is in the form: // // |||... // // Just like regular expression routines, the pattern needs to be // compiled before it can be used. This is done using the Pattern() // member function. Once the pattern has been compiled, the member // function Find() can be used to search for the pattern in a string. // If a string has been found, the "which" and "length" parameters // will be set to the string index and string length respectively. // (The string index is counted starting from 0) The return value of // Find() is the position at which the string was found or -1 if no // strings could be found. If a case insensitive match needs to be // performed, call the IgnoreCase() member function before calling // Pattern(). This function will setup a character translation table // which will convert all uppercase characters to lowercase. If some // other translation is required, the TranslationTable() member // function can be called to provide a custom table. This table needs // to be 256 characters. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: StringMatch.h,v 1.2 2001-03-16 08:26:45 angusgb Exp $ // #ifndef _StringMatch_h_ #define _StringMatch_h_ #include "Object.h" #include "HtWordType.h" class StringMatch : public Object { public: // // Construction/Destruction // StringMatch(); ~StringMatch(); // // Set the pattern to search for. If given as a string needs to // be in the form ||... If in the form of a // List, it should be a list of String objects. // void Pattern(char *pattern, char sep = '|'); // // Search for any of the strings in the pattern in the given // string The return value is the offset in the source a pattern // was found. In this case, the which variable will be set to the // index of the pattern string and length will be set to the // length of that pattern string. If none of the pattern strings // could be found, the return value will be -1 // int FindFirst(const char *string, int &which, int &length); int FindFirst(const char *string); int FindFirstWord(const char *string, int &which, int &length); int FindFirstWord(const char *string); // // If you are interested in matching instead of searching, use // the following. Same parameters except that the return value will // be 1 if there was a match, 0 if there was not. // int Compare(const char *string, int &which, int &length); int Compare(const char *string); int CompareWord(const char *string, int &which, int &length); int CompareWord(const char *string); // // Provide a character translation table which will be applied to // both the pattern and the input string. This table should be an // array of 256 characters. If is the caller's responsibility to // manage this table's allocation. The table should remain valid // until this object has been destroyed. // void TranslationTable(char *table); // // Build a local translation table which maps all uppercase // characters to lowercase // void IgnoreCase(); // // Build a local translation table which ignores all given punctuation // characters // void IgnorePunct(char *punct = NULL); // // Determine if there is a pattern associated with this Match object. // int hasPattern() {return table[0] != 0;} protected: int *table[256]; unsigned char *trans; int local_alloc; }; #endif htcheck-2.0.0~rc1.orig/htlib/getcwd.c0000644000000000000000000001534311177570304014311 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ /* * Copyright (c) 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include #include #if HAVE_DIRENT_H # include # define NAMLEN(dirent) strlen((dirent)->d_name) #else # define dirent direct # define NAMLEN(dirent) (dirent)->d_namlen # if HAVE_SYS_NDIR_H # include # endif # if HAVE_SYS_DIR_H # include # endif # if HAVE_NDIR_H # include # endif #endif #include #include #include #include #include #ifndef HAVE_GETCWD #define ISDOT(dp) \ (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) #ifndef dirfd #define dirfd(dirp) ((dirp)->dd_fd) #endif /* * getcwd -- * Get the current working directory. * * PUBLIC: #ifndef HAVE_GETCWD * PUBLIC: char *getcwd __P((char *, size_t)); * PUBLIC: #endif */ char * getcwd(pt, size) char *pt; size_t size; { register struct dirent *dp; register DIR *dir; register dev_t dev; register ino_t ino; register int first; register char *bpt, *bup; struct stat s; dev_t root_dev; ino_t root_ino; size_t ptsize, upsize; int ret, save_errno; char *ept, *eup, *up; /* * If no buffer specified by the user, allocate one as necessary. * If a buffer is specified, the size has to be non-zero. The path * is built from the end of the buffer backwards. */ if (pt) { ptsize = 0; if (!size) { __os_set_errno(EINVAL); return (NULL); } if (size == 1) { __os_set_errno(ERANGE); return (NULL); } ept = pt + size; } else { if ((ret = __os_malloc(ptsize = 1024 - 4, NULL, &pt)) != 0) { __os_set_errno(ret); return (NULL); } ept = pt + ptsize; } bpt = ept - 1; *bpt = '\0'; /* * Allocate bytes (1024 - malloc space) for the string of "../"'s. * Should always be enough (it's 340 levels). If it's not, allocate * as necessary. Special case the first stat, it's ".", not "..". */ if ((ret = __os_malloc(upsize = 1024 - 4, NULL, &up)) != 0) goto err; eup = up + 1024; bup = up; up[0] = '.'; up[1] = '\0'; /* Save root values, so know when to stop. */ if (stat("/", &s)) goto err; root_dev = s.st_dev; root_ino = s.st_ino; __os_set_errno(0); /* XXX readdir has no error return. */ for (first = 1;; first = 0) { /* Stat the current level. */ if (lstat(up, &s)) goto err; /* Save current node values. */ ino = s.st_ino; dev = s.st_dev; /* Check for reaching root. */ if (root_dev == dev && root_ino == ino) { *--bpt = PATH_SEPARATOR[0]; /* * It's unclear that it's a requirement to copy the * path to the beginning of the buffer, but it's always * been that way and stuff would probably break. */ bcopy(bpt, pt, ept - bpt); __os_free(up, upsize); return (pt); } /* * Build pointer to the parent directory, allocating memory * as necessary. Max length is 3 for "../", the largest * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) { if (__os_realloc(upsize *= 2, NULL, &up) != 0) goto err; bup = up; eup = up + upsize; } *bup++ = '.'; *bup++ = '.'; *bup = '\0'; /* Open and stat parent directory. */ if (!(dir = opendir(up)) || fstat(dirfd(dir), &s)) goto err; /* Add trailing slash for next directory. */ *bup++ = PATH_SEPARATOR[0]; /* * If it's a mount point, have to stat each element because * the inode number in the directory is for the entry in the * parent directory, not the inode number of the mounted file. */ save_errno = 0; if (s.st_dev == dev) { for (;;) { if (!(dp = readdir(dir))) goto notfound; if (dp->d_fileno == ino) break; } } else for (;;) { if (!(dp = readdir(dir))) goto notfound; if (ISDOT(dp)) continue; bcopy(dp->d_name, bup, dp->d_namlen + 1); /* Save the first error for later. */ if (lstat(up, &s)) { if (save_errno == 0) save_errno = __os_get_errno(); __os_set_errno(0); continue; } if (s.st_dev == dev && s.st_ino == ino) break; } /* * Check for length of the current name, preceding slash, * leading slash. */ if (bpt - pt < dp->d_namlen + (first ? 1 : 2)) { size_t len, off; if (!ptsize) { __os_set_errno(ERANGE); goto err; } off = bpt - pt; len = ept - bpt; if (__os_realloc(ptsize *= 2, NULL, &pt) != 0) goto err; bpt = pt + off; ept = pt + ptsize; bcopy(bpt, ept - len, len); bpt = ept - len; } if (!first) *--bpt = PATH_SEPARATOR[0]; bpt -= dp->d_namlen; bcopy(dp->d_name, bpt, dp->d_namlen); (void)closedir(dir); /* Truncate any file name. */ *bup = '\0'; } notfound: /* * If readdir set errno, use it, not any saved error; otherwise, * didn't find the current directory in its parent directory, set * errno to ENOENT. */ if (__os_get_errno() == 0) __os_set_errno(save_errno == 0 ? ENOENT : save_errno); /* FALLTHROUGH */ err: if (ptsize) __os_free(pt, ptsize); __os_free(up, upsize); return (NULL); } #endif /* HAVE_GETCWD */ htcheck-2.0.0~rc1.orig/htlib/mktime.c0000644000000000000000000003542111177570304014321 0ustar /* Convert a `struct tm' to a time_t value. Copyright (C) 1993, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert (eggert@twinsun.com). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Define this to have a standalone program to test this implementation of mktime. */ /* #define DEBUG 1 */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif #ifdef _LIBC # define HAVE_LIMITS_H 1 # define STDC_HEADERS 1 #endif /* Assume that leap seconds are possible, unless told otherwise. If the host has a `zic' command with a `-L leapsecondfilename' option, then it supports leap seconds; otherwise it probably doesn't. */ #ifndef LEAP_SECONDS_POSSIBLE # define LEAP_SECONDS_POSSIBLE 1 #endif #include /* Some systems define `time_t' here. */ #include #if HAVE_LIMITS_H # include #endif #if DEBUG # include # if STDC_HEADERS # include # endif /* Make it work even if the system's libc has its own mktime routine. */ # define mktime my_mktime #endif /* DEBUG */ #ifndef __P # if defined __GNUC__ || (defined __STDC__ && __STDC__) # define __P(args) args # else # define __P(args) () # endif /* GCC. */ #endif /* Not __P. */ #ifndef CHAR_BIT # define CHAR_BIT 8 #endif /* The extra casts work around common compiler bugs. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The outer cast is needed to work around a bug in Cray C 5.0.3.0. It is necessary at least when t == time_t. */ #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) #ifndef INT_MIN # define INT_MIN TYPE_MINIMUM (int) #endif #ifndef INT_MAX # define INT_MAX TYPE_MAXIMUM (int) #endif #ifndef TIME_T_MIN # define TIME_T_MIN TYPE_MINIMUM (time_t) #endif #ifndef TIME_T_MAX # define TIME_T_MAX TYPE_MAXIMUM (time_t) #endif #define TM_YEAR_BASE 1900 #define EPOCH_YEAR 1970 #ifndef __isleap /* Nonzero if YEAR is a leap year (every 4 years, except every 100th isn't, and every 400th is). */ # define __isleap(year) \ ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) #endif /* How many days come before each month (0-12). */ const unsigned short int __mon_yday[2][13] = { /* Normal years. */ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, /* Leap years. */ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } }; #ifdef _LIBC # define my_mktime_localtime_r __localtime_r #else /* If we're a mktime substitute in a GNU program, then prefer localtime to localtime_r, since many localtime_r implementations are buggy. */ static struct tm * my_mktime_localtime_r (const time_t *t, struct tm *tp) { struct tm *l = localtime (t); if (! l) return 0; *tp = *l; return tp; } #endif /* ! _LIBC */ /* Yield the difference between (YEAR-YDAY HOUR:MIN:SEC) and (*TP), measured in seconds, ignoring leap seconds. YEAR uses the same numbering as TM->tm_year. All values are in range, except possibly YEAR. If TP is null, return a nonzero value. If overflow occurs, yield the low order bits of the correct answer. */ static time_t ydhms_tm_diff (int year, int yday, int hour, int min, int sec, const struct tm *tp) { if (!tp) return 1; else { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow. time_t overflow is OK, since only the low order bits of the correct time_t answer are needed. Don't convert to time_t until after all divisions are done, since time_t might be unsigned. */ int a4 = (year >> 2) + (TM_YEAR_BASE >> 2) - ! (year & 3); int b4 = (tp->tm_year >> 2) + (TM_YEAR_BASE >> 2) - ! (tp->tm_year & 3); int a100 = a4 / 25 - (a4 % 25 < 0); int b100 = b4 / 25 - (b4 % 25 < 0); int a400 = a100 >> 2; int b400 = b100 >> 2; int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); time_t years = year - (time_t) tp->tm_year; time_t days = (365 * years + intervening_leap_days + (yday - tp->tm_yday)); return (60 * (60 * (24 * days + (hour - tp->tm_hour)) + (min - tp->tm_min)) + (sec - tp->tm_sec)); } } /* Use CONVERT to convert *T to a broken down time in *TP. If *T is out of range for conversion, adjust it so that it is the nearest in-range value and then convert that. */ static struct tm * ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), time_t *t, struct tm *tp) { struct tm *r; if (! (r = (*convert) (t, tp)) && *t) { time_t bad = *t; time_t ok = 0; struct tm tm; /* BAD is a known unconvertible time_t, and OK is a known good one. Use binary search to narrow the range between BAD and OK until they differ by 1. */ while (bad != ok + (bad < 0 ? -1 : 1)) { time_t mid = *t = (bad < 0 ? bad + ((ok - bad) >> 1) : ok + ((bad - ok) >> 1)); if ((r = (*convert) (t, tp))) { tm = *r; ok = mid; } else bad = mid; } if (!r && ok) { /* The last conversion attempt failed; revert to the most recent successful attempt. */ *t = ok; *tp = tm; r = tp; } } return r; } /* Convert *TP to a time_t value, inverting the monotonic and mostly-unit-linear conversion function CONVERT. Use *OFFSET to keep track of a guess at the offset of the result, compared to what the result would be for UTC without leap seconds. If *OFFSET's guess is correct, only one CONVERT call is needed. */ time_t __mktime_internal (struct tm *tp, struct tm *(*convert) (const time_t *, struct tm *), time_t *offset) { time_t t, dt, t0, t1, t2; struct tm tm; /* The maximum number of probes (calls to CONVERT) should be enough to handle any combinations of time zone rule changes, solar time, leap seconds, and oscillations around a spring-forward gap. POSIX.1 prohibits leap seconds, but some hosts have them anyway. */ int remaining_probes = 6; /* Time requested. Copy it in case CONVERT modifies *TP; this can occur if TP is localtime's returned value and CONVERT is localtime. */ int sec = tp->tm_sec; int min = tp->tm_min; int hour = tp->tm_hour; int mday = tp->tm_mday; int mon = tp->tm_mon; int year_requested = tp->tm_year; int isdst = tp->tm_isdst; /* Ensure that mon is in range, and set year accordingly. */ int mon_remainder = mon % 12; int negative_mon_remainder = mon_remainder < 0; int mon_years = mon / 12 - negative_mon_remainder; int year = year_requested + mon_years; /* The other values need not be in range: the remaining code handles minor overflows correctly, assuming int and time_t arithmetic wraps around. Major overflows are caught at the end. */ /* Calculate day of year from year, month, and day of month. The result need not be in range. */ int yday = ((__mon_yday[__isleap (year + TM_YEAR_BASE)] [mon_remainder + 12 * negative_mon_remainder]) + mday - 1); int sec_requested = sec; #if LEAP_SECONDS_POSSIBLE /* Handle out-of-range seconds specially, since ydhms_tm_diff assumes every minute has 60 seconds. */ if (sec < 0) sec = 0; if (59 < sec) sec = 59; #endif /* Invert CONVERT by probing. First assume the same offset as last time. Then repeatedly use the error to improve the guess. */ tm.tm_year = EPOCH_YEAR - TM_YEAR_BASE; tm.tm_yday = tm.tm_hour = tm.tm_min = tm.tm_sec = 0; t0 = ydhms_tm_diff (year, yday, hour, min, sec, &tm); for (t = t1 = t2 = t0 + *offset; (dt = ydhms_tm_diff (year, yday, hour, min, sec, ranged_convert (convert, &t, &tm))); t1 = t2, t2 = t, t += dt) if (t == t1 && t != t2 && (isdst < 0 || tm.tm_isdst < 0 || (isdst != 0) != (tm.tm_isdst != 0))) /* We can't possibly find a match, as we are oscillating between two values. The requested time probably falls within a spring-forward gap of size DT. Follow the common practice in this case, which is to return a time that is DT away from the requested time, preferring a time whose tm_isdst differs from the requested value. In practice, this is more useful than returning -1. */ break; else if (--remaining_probes == 0) return -1; /* If we have a match, check whether tm.tm_isdst has the requested value, if any. */ if (dt == 0 && isdst != tm.tm_isdst && 0 <= isdst && 0 <= tm.tm_isdst) { /* tm.tm_isdst has the wrong value. Look for a neighboring time with the right value, and use its UTC offset. Heuristic: probe the previous three calendar quarters (approximately), looking for the desired isdst. This isn't perfect, but it's good enough in practice. */ int quarter = 7889238; /* seconds per average 1/4 Gregorian year */ int i; /* If we're too close to the time_t limit, look in future quarters. */ if (t < TIME_T_MIN + 3 * quarter) quarter = -quarter; for (i = 1; i <= 3; i++) { time_t ot = t - i * quarter; struct tm otm; ranged_convert (convert, &ot, &otm); if (otm.tm_isdst == isdst) { /* We found the desired tm_isdst. Extrapolate back to the desired time. */ t = ot + ydhms_tm_diff (year, yday, hour, min, sec, &otm); ranged_convert (convert, &t, &tm); break; } } } *offset = t - t0; #if LEAP_SECONDS_POSSIBLE if (sec_requested != tm.tm_sec) { /* Adjust time to reflect the tm_sec requested, not the normalized value. Also, repair any damage from a false match due to a leap second. */ t += sec_requested - sec + (sec == 0 && tm.tm_sec == 60); if (! (*convert) (&t, &tm)) return -1; } #endif if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3) { /* time_t isn't large enough to rule out overflows in ydhms_tm_diff, so check for major overflows. A gross check suffices, since if t has overflowed, it is off by a multiple of TIME_T_MAX - TIME_T_MIN + 1. So ignore any component of the difference that is bounded by a small value. */ double dyear = (double) year_requested + mon_years - tm.tm_year; double dday = 366 * dyear + mday; double dsec = 60 * (60 * (24 * dday + hour) + min) + sec_requested; /* On Irix4.0.5 cc, dividing TIME_T_MIN by 3 does not produce correct results, ie., it erroneously gives a positive value of 715827882. Setting a variable first then doing math on it seems to work. (ghazi@caip.rutgers.edu) */ const time_t time_t_max = TIME_T_MAX; const time_t time_t_min = TIME_T_MIN; if (time_t_max / 3 - time_t_min / 3 < (dsec < 0 ? - dsec : dsec)) return -1; } *tp = tm; return t; } static time_t localtime_offset; /* Convert *TP to a time_t value. */ time_t mymktime (tp) struct tm *tp; { #ifdef _LIBC /* POSIX.1 8.1.1 requires that whenever mktime() is called, the time zone names contained in the external variable `tzname' shall be set as if the tzset() function had been called. */ __tzset (); #endif return __mktime_internal (tp, my_mktime_localtime_r, &localtime_offset); } #ifdef weak_alias weak_alias (mktime, timelocal) #endif #if DEBUG static int not_equal_tm (a, b) struct tm *a; struct tm *b; { return ((a->tm_sec ^ b->tm_sec) | (a->tm_min ^ b->tm_min) | (a->tm_hour ^ b->tm_hour) | (a->tm_mday ^ b->tm_mday) | (a->tm_mon ^ b->tm_mon) | (a->tm_year ^ b->tm_year) | (a->tm_mday ^ b->tm_mday) | (a->tm_yday ^ b->tm_yday) | (a->tm_isdst ^ b->tm_isdst)); } static void print_tm (tp) struct tm *tp; { if (tp) printf ("%04d-%02d-%02d %02d:%02d:%02d yday %03d wday %d isdst %d", tp->tm_year + TM_YEAR_BASE, tp->tm_mon + 1, tp->tm_mday, tp->tm_hour, tp->tm_min, tp->tm_sec, tp->tm_yday, tp->tm_wday, tp->tm_isdst); else printf ("0"); } static int check_result (tk, tmk, tl, lt) time_t tk; struct tm tmk; time_t tl; struct tm *lt; { if (tk != tl || !lt || not_equal_tm (&tmk, lt)) { printf ("mktime ("); print_tm (&tmk); printf (")\nyields ("); print_tm (lt); printf (") == %ld, should be %ld\n", (long) tl, (long) tk); return 1; } return 0; } int main (argc, argv) int argc; char **argv; { int status = 0; struct tm tm, tmk, tml; struct tm *lt; time_t tk, tl; char trailer; if ((argc == 3 || argc == 4) && (sscanf (argv[1], "%d-%d-%d%c", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &trailer) == 3) && (sscanf (argv[2], "%d:%d:%d%c", &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &trailer) == 3)) { tm.tm_year -= TM_YEAR_BASE; tm.tm_mon--; tm.tm_isdst = argc == 3 ? -1 : atoi (argv[3]); tmk = tm; tl = mktime (&tmk); lt = localtime (&tl); if (lt) { tml = *lt; lt = &tml; } printf ("mktime returns %ld == ", (long) tl); print_tm (&tmk); printf ("\n"); status = check_result (tl, tmk, tl, lt); } else if (argc == 4 || (argc == 5 && strcmp (argv[4], "-") == 0)) { time_t from = atol (argv[1]); time_t by = atol (argv[2]); time_t to = atol (argv[3]); if (argc == 4) for (tl = from; tl <= to; tl += by) { lt = localtime (&tl); if (lt) { tmk = tml = *lt; tk = mktime (&tmk); status |= check_result (tk, tmk, tl, tml); } else { printf ("localtime (%ld) yields 0\n", (long) tl); status = 1; } } else for (tl = from; tl <= to; tl += by) { /* Null benchmark. */ lt = localtime (&tl); if (lt) { tmk = tml = *lt; tk = tl; status |= check_result (tk, tmk, tl, tml); } else { printf ("localtime (%ld) yields 0\n", (long) tl); status = 1; } } } else printf ("Usage:\ \t%s YYYY-MM-DD HH:MM:SS [ISDST] # Test given time.\n\ \t%s FROM BY TO # Test values FROM, FROM+BY, ..., TO.\n\ \t%s FROM BY TO - # Do not test those values (for benchmark).\n", argv[0], argv[0], argv[0]); return status; } #endif /* DEBUG */ /* Local Variables: compile-command: "gcc -DDEBUG -DHAVE_LIMITS_H -DSTDC_HEADERS -Wall -W -O -g mktime.c -o mktime" End: */ htcheck-2.0.0~rc1.orig/htlib/memcpy.c0000644000000000000000000000762011177570304014325 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ /* * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifndef NO_SYSTEM_INCLUDES #include #endif #ifndef HAVE_MEMCPY /* * sizeof(word) MUST BE A POWER OF TWO * SO THAT wmask BELOW IS ALL ONES */ typedef int word; /* "word" used for optimal copy speed */ #undef wsize #define wsize sizeof(word) #undef wmask #define wmask (wsize - 1) /* * Copy a block of memory, handling overlap. * This is the routine that actually implements * (the portable versions of) bcopy, memcpy, and memmove. */ /* * PUBLIC: #ifndef HAVE_MEMCPY * PUBLIC: void *memcpy __P((void *, const void *, size_t)); * PUBLIC: #endif */ void * memcpy(dst0, src0, length) void *dst0; const void *src0; register size_t length; { register char *dst = dst0; register const char *src = src0; register size_t t; if (length == 0 || dst == src) /* nothing to do */ goto done; /* * Macros: loop-t-times; and loop-t-times, t>0 */ #undef TLOOP #define TLOOP(s) if (t) TLOOP1(s) #undef TLOOP1 #define TLOOP1(s) do { s; } while (--t) if ((unsigned long)dst < (unsigned long)src) { /* * Copy forward. */ t = (int)src; /* only need low bits */ if ((t | (int)dst) & wmask) { /* * Try to align operands. This cannot be done * unless the low bits match. */ if ((t ^ (int)dst) & wmask || length < wsize) t = length; else t = wsize - (t & wmask); length -= t; TLOOP1(*dst++ = *src++); } /* * Copy whole words, then mop up any trailing bytes. */ t = length / wsize; TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); t = length & wmask; TLOOP(*dst++ = *src++); } else { /* * Copy backwards. Otherwise essentially the same. * Alignment works as before, except that it takes * (t&wmask) bytes to align, not wsize-(t&wmask). */ src += length; dst += length; t = (int)src; if ((t | (int)dst) & wmask) { if ((t ^ (int)dst) & wmask || length <= wsize) t = length; else t &= wmask; length -= t; TLOOP1(*--dst = *--src); } t = length / wsize; TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src); t = length & wmask; TLOOP(*--dst = *--src); } done: return (dst0); } #endif /* HAVE_MEMCPY */ htcheck-2.0.0~rc1.orig/htlib/IntObject.h0000644000000000000000000000133211177570304014713 0ustar // // IntObject.h // // IntObject: int variable encapsulated in Object derived class // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: IntObject.h,v 1.1.1.1 2000-05-08 11:14:31 angusgb Exp $ // #ifndef _IntObject_h_ #define _IntObject_h_ #include "Object.h" class IntObject : public Object { public: // // Construction/Destruction // IntObject(); IntObject(int v) { value = v; } ~IntObject(); int Value() {return value;} void Value(int v) {value = v;} private: int value; }; #endif htcheck-2.0.0~rc1.orig/htlib/Dictionary.h0000644000000000000000000000501411177570304015140 0ustar // // Dictionary.h // // Dictionary: This class provides an object lookup table. // Each object in the dictionary is indexed with a string. // The objects can be returned by mentioning their // string index. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: Dictionary.h,v 1.1.1.1 2000-05-08 11:12:00 angusgb Exp $ // #ifndef _Dictionary_h_ #define _Dictionary_h_ #include "Object.h" #include "htString.h" #include "List.h" class Dictionary; class DictionaryEntry; class DictionaryCursor { public: // // Support for the Start_Get and Get_Next routines // int currentTableIndex; DictionaryEntry *currentDictionaryEntry; }; class Dictionary : public Object { public: // // Construction/Destruction // Dictionary(); Dictionary(const Dictionary& other); Dictionary(int initialCapacity); Dictionary(int initialCapacity, float loadFactor); ~Dictionary(); // // Adding and deleting items to and from the dictionary // void Add(const String& name, Object *obj); int Remove(const String& name); // // Searching can be done with the Find() member of the array indexing // operator // Object *Find(const String& name) const; Object *operator[](const String& name) const; int Exists(const String& name) const; // // We want to be able to go through all the entries in the // dictionary in sequence. To do this, we have the same // traversal interface as the List class // void Start_Get() { Start_Get(cursor); } void Start_Get(DictionaryCursor& cursor) const; // // Get the next key // char *Get_Next() { return Get_Next(cursor); } char *Get_Next(DictionaryCursor& cursor) const; // // Get the next entry // Object *Get_NextElement() { return Get_NextElement(cursor); } Object *Get_NextElement(DictionaryCursor& cursor) const; void Release(); void Destroy(); int Count() const { return count; } private: DictionaryEntry **table; int tableLength; int initialCapacity; int count; int threshold; float loadFactor; DictionaryCursor cursor; void rehash(); void init(int, float); unsigned int hashCode(const char *key) const; }; #endif htcheck-2.0.0~rc1.orig/htlib/HtVector.h0000644000000000000000000000712711177570304014600 0ustar // // HtVector.h // // HtVector: A Vector class which holds objects of type Object. // (A vector is an array that can expand as necessary) // This class is very similar in interface to the List class // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtVector.h,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // // #ifndef _HtVector_h_ #define _HtVector_h_ #include "Object.h" class HtVector : public Object { public: // // Constructor/Destructor // HtVector(); HtVector(int capacity); ~HtVector(); // // Add() will append an Object to the end of the vector // void Add(Object *); // // Insert() will insert an object at the given position. If the // position is larger than the number of objects in the vector, the // object is appended; no new objects are created between the end // of the vector and the given position. // void Insert(Object *, int position); // // Assign() will assign the object to the given position, replacing // the object currently there. It is functionally equivalent to calling // RemoveFrom() followed by Insert() void Assign(Object *, int position); // // Find the given object in the vector and remove it from the vector. // The object will NOT be deleted. If the object is not found, // NOTOK will be returned, else OK. // int Remove(Object *); // // Remove the object at the given position // (in some sense, the inverse of Insert) // int RemoveFrom(int position); // // Release() will remove all the objects from the vector. // This will NOT delete them void Release(); // // Destroy() will delete all the objects in the vector. This is // equivalent to calling the destructor // void Destroy(); // // Vector traversel (a bit redundant since you can use []) // void Start_Get() {current_index = -1;} Object *Get_Next(); Object *Get_First(); Object *Next(Object *current); Object *Previous(Object *current); Object *Last() {return element_count<=0?(Object *)NULL:data[element_count-1];} // // Direct access to vector items. To assign new objects, use // Insert() or Add() or Assign() // Object *operator[] (int n) {return (n<0||n>=element_count)?(Object *)NULL:data[n];} Object *Nth(int n) {return (n<0||n>=element_count)?(Object *)NULL:data[n];} // // Access to the number of elements // int Count() const {return element_count;} int IsEmpty() {return element_count==0;} // // Get the index number of an object. If the object is not found, // returns -1 // int Index(Object *); // // Deep copy member function // Object *Copy() const; // // Vector Assignment // HtVector &operator= (HtVector *vector) {return *this = *vector;} HtVector &operator= (HtVector &vector); protected: // // The actual internal data array Object **data; // // For traversal it is nice to know where we are... // int current_index; // // It's nice to keep track of how many things we contain... // as well as how many slots we've declared // int element_count; int allocated; // // Protected function to ensure capacity // void Allocate(int ensureCapacity); }; #endif htcheck-2.0.0~rc1.orig/htlib/Object.h0000644000000000000000000000225311177570304014243 0ustar // // Object.h // // Object: This baseclass defines how an object should behave. // This includes the ability to be put into a list // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Object.h,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // #ifndef _Object_h_ #define _Object_h_ #include "lib.h" #include class String; class Object { public: // // Constructor/Destructor // Object() {} virtual ~Object() {} // // To ensure a consistent comparison interface and to allow comparison // of all kinds of different objects, we will define a comparison functions. // virtual int compare(const Object &) const { return 0;} // // To allow a deep copy of data structures we will define a standard interface... // This member will return a copy of itself, freshly allocated and deep copied. // virtual Object *Copy() const { fprintf(stderr, "Object::Copy: derived class does not implement Copy\n"); return new Object(); } }; #endif htcheck-2.0.0~rc1.orig/htlib/memcmp.c0000644000000000000000000000433311177570304014307 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1996, 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ /* * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include #ifndef HAVE_MEMCMP /* * memcmp -- * * PUBLIC: #ifndef HAVE_MEMCMP * PUBLIC: int memcmp __P((const void *, const void *, size_t)); * PUBLIC: #endif */ int memcmp(s1, s2, n) char *s1, *s2; size_t n; { if (n != 0) { unsigned char *p1 = (unsigned char *)s1, *p2 = (unsigned char *)s2; do { if (*p1++ != *p2++) return (*--p1 - *--p2); } while (--n != 0); } return (0); } #endif /* HAVE_MEMCMP */ htcheck-2.0.0~rc1.orig/htlib/lib.h0000644000000000000000000000271111177570304013602 0ustar // // lib.h // // lib: Contains typical declarations and header inclusions used by // most sources in this directory. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: lib.h,v 1.3 2008-11-16 18:28:52 angusgb Exp $ // #ifndef _lib_h #define _lib_h #include #include // for scandir #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif // // Other defines used throughout the library // #define OK 0 #define NOTOK (-1) // // To get rid of inconsistencies between different machines we will ALWAYS // use our own version of the following routines // int mystrcasecmp(const char *, const char *); int mystrncasecmp(const char *, const char *, int); // // The standard strstr() function is limited in that it does case-sensitive // searches. This version will ignore case. // const char *mystrcasestr(const char *s, const char *pattern); // // Too many problems with system strptime() functions... Just use our own // version of it. // char *mystrptime(const char *buf, const char *fmt, struct tm *tm); // // timegm() is quite rare, so provide our own. // extern "C" time_t Httimegm(struct tm *tm); #endif htcheck-2.0.0~rc1.orig/htlib/Configuration.h0000644000000000000000000001464511177570304015654 0ustar // // Configuration.h // // NAME // // reads the configuration file and manages it in memory. // // SYNOPSIS // // #include // // Configuration config; // // ConfigDefault config_defaults = { // { "verbose", "true" }, // { 0, 0 } // }; // // config.Defaults(config_defaults); // // config.Read("~/.myconfig") ; // // config.Add("sync", "false"); // // if(config["sync"]) ... // if(config.Value("rate") < 50) ... // if(config.Boolean("sync")) ... // // DESCRIPTION // // The primary purpose of the Configuration class is to parse // a configuration file and allow the application to modify the internal // data structure. All values are strings and are converted by the // appropriate accessors. For instance the Boolean method will // return numerical true (not zero) if the string either contains // a number that is different from zero or the string true. // // The ConfigDefaults type is a structure of two char pointers: // the name of the configuration attribute and it's value. The end of // the array is the first entry that contains a null pointer instead of // the attribute name. Numerical // values must be in strings. For instance: //
// ConfigDefault* config_defaults = {
//   { "wordlist_compress", "true" },
//   { "wordlist_page_size", "8192" },
//   { 0, 0 }
// };
// 
// Returns the configuration (object of type Configuration) // built if a file was found or config_defaults // provided, 0 otherwise. // The additional // fields of the ConfigDefault are purely informative. // // FILE FORMAT // // This configuration file is a plain ASCII text file. Each line in // the file is either a comment or contains an attribute. // Comment lines are blank lines or lines that start with a '#'. // Attributes consist of a variable name and an associated // value: // //
// <name>:<whitespace><value><newline>
// 
// // The <name> contains any alphanumeric character or // underline (_) The <value> can include any character // except newline. It also cannot start with spaces or tabs since // those are considered part of the whitespace after the colon. It // is important to keep in mind that any trailing spaces or tabs // will be included. // // It is possible to split the <value> across several // lines of the configuration file by ending each line with a // backslash (\). The effect on the value is that a space is // added where the line split occurs. // // A configuration file can include another file, by using the special // <name>, include. The <value> is taken as // the file name of another configuration file to be read in at // this point. If the given file name is not fully qualified, it is // taken relative to the directory in which the current configuration // file is found. Variable expansion is permitted in the file name. // Multiple include statements, and nested includes are also permitted. // //
// include: common.conf
// 
// // // END // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Configuration.h,v 1.3 2003-01-28 13:35:09 angusgb Exp $ // #ifndef _Configuration_h_ #define _Configuration_h_ #include "Dictionary.h" #include "htString.h" struct ConfigDefaults { char *name; // Name of the attribute char *value; // Default value }; class Configuration : public Object { public: //- // Constructor // Configuration(); #ifndef SWIG Configuration(const Configuration& config) : dcGlobalVars(config.dcGlobalVars), separators(config.separators) { allow_multiple = config.allow_multiple; } #endif /* SWIG */ //- // Destructor // ~Configuration() {} // // Adding and deleting items to and from the Configuration // #ifndef SWIG //- // Add configuration item str to the configuration. The value // associated with it is undefined. // void Add(const String& str); #endif /* SWIG */ //- // Add configuration item name to the configuration and associate // it with value. // void Add(const String& name, const String& value); void AddParsed(const String& name, const String& value); //- // Remove the name from the configuration. // int Remove(const String& name); //- // Let the Configuration know how to parse name value pairs. // Each character of string s is a valid separator between // the name and the value. // void NameValueSeparators(const String& s); //- // Read name/value configuration pairs from the file filename. // virtual int Read(const String& filename); //- // Return the value of configuration attribute name as a // String. // const String Find(const String& name) const; #ifndef SWIG //- // Alias to the Find method. // const String operator[](const String& name) const; #endif /* SWIG */ //- // Return the value associated with the configuration attribute // name, converted to integer using the atoi(3) function. // If the attribute is not found in the configuration and // a default_value is provided, return it. // int Value(const String& name, int default_value = 0) const; //- // Return the value associated with the configuration attribute // name, converted to double using the atof(3) function. // If the attribute is not found in the configuration and // a default_value is provided, return it. // double Double(const String& name, double default_value = 0) const; //- // Return 1 if the value associated to name is // either 1, yes or true. // Return 0 if the value associated to name is // either 0, no or false. // int Boolean(const String& name, int default_value = 0) const; Object *Get_Object(char *name); //- // Load configuration attributes from the name and value // members of the array argument. // void Defaults(const ConfigDefaults *array); protected: Dictionary dcGlobalVars; String separators; int allow_multiple; }; #endif htcheck-2.0.0~rc1.orig/htlib/Queue.h0000644000000000000000000000162711177570304014125 0ustar // // Queue.h // // Queue: This class implements a linked list of objects. It itself is also an // object // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Queue.h,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // #ifndef _Queue_h_ #define _Queue_h_ #include "Object.h" class Queue : public Object { public: // // Constructors/Destructor // Queue(); ~Queue(); // // Queue access // void push(Object *obj); Object *peek(); Object *pop(); int Size() {return size;} // // Queue destruction // void destroy(); protected: // // These variables are to keep track of the linked list // void *head; void *tail; int size; }; #endif htcheck-2.0.0~rc1.orig/htlib/IntObject.cc0000644000000000000000000000144711177570304015060 0ustar // // IntObject.cc // // IntObject: int variable encapsulated in Object derived class // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: IntObject.cc,v 1.2 2002-11-14 17:02:25 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "IntObject.h" //******************************************************************************* // IntObject::IntObject() // IntObject::IntObject() { } //******************************************************************************* // IntObject::~IntObject() // IntObject::~IntObject() { } htcheck-2.0.0~rc1.orig/htlib/ParsedString.h0000644000000000000000000000177211177570304015447 0ustar // // ParsedString.h // // ParsedString: Contains a string. The string my contain $var, ${var}, $(var) // `filename`. The get method will expand those using the // dictionary given in argument. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: ParsedString.h,v 1.1.1.1 2000-05-08 11:14:55 angusgb Exp $ #ifndef _ParsedString_h_ #define _ParsedString_h_ #include "Object.h" #include "htString.h" #include "Dictionary.h" class ParsedString : public Object { public: // // Construction/Destruction // ParsedString(); ParsedString(const String& s); ~ParsedString(); void set(const String& s); const String get(const Dictionary &d) const; private: String value; void getFileContents(String &str, const String& filename) const; }; #endif htcheck-2.0.0~rc1.orig/htlib/String_fmt.cc0000644000000000000000000000225211177570304015306 0ustar // // String_fmt.cc // // String_fmt: Formatting functions for the String class. Those functions // are also used in other files, they are not purely internal // to the String class. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: String_fmt.cc,v 1.3 2002-11-14 16:59:04 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "htString.h" #include #include static char buf[10000]; //***************************************************************************** // char *form(char *fmt, ...) // char *form(const char *fmt, ...) { va_list args; va_start(args, fmt); vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); return buf; } //***************************************************************************** // char *vform(char *fmt, va_list args) // char *vform(const char *fmt, va_list args) { vsnprintf(buf, sizeof(buf), fmt, args); return buf; } htcheck-2.0.0~rc1.orig/htlib/strcasecmp.cc0000644000000000000000000000414411177570304015340 0ustar // // strcasecmp.cc // // strcasecmp: replacement of the strcasecmp functions for architectures that do // not have it. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: strcasecmp.cc,v 1.2 2001-03-16 08:26:45 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "lib.h" #include //***************************************************************************** // int mystrcasecmp(const char *str1, const char *str2) { if (!str1 && !str2) return 0; if (!str1) return 1; if (!str2) return -1; while (*str1 && *str2 && tolower((unsigned char)*str1) == tolower((unsigned char)*str2)) { str1++; str2++; } return tolower((unsigned char)*str1) - tolower((unsigned char)*str2); } //#define tolower(ch) (isupper(ch) ? (ch) + 'a' - 'A' : (ch)) //***************************************************************************** // int mystrncasecmp(const char *str1, const char *str2, int n) { if (!str1 && !str2) return 0; if (!str1) return 1; if (!str2) return -1; if (n < 0) return 0; while (n && *str1 && *str2 && tolower((unsigned char)*str1) == tolower((unsigned char)*str2)) { str1++; str2++; n--; } return n == 0 ? 0 : tolower((unsigned char)*str1) - tolower((unsigned char)*str2); } //***************************************************************************** // char *strdup(char *str) // char *strdup(char *str) { char *p = new char[strlen(str) + 1]; strcpy(p, str); return p; } //***************************************************************************** // char *mystrcasestr(const char *s, const char *pattern) // const char * mystrcasestr(const char *s, const char *pattern) { int length = strlen(pattern); while (*s) { if (mystrncasecmp(s, pattern, length) == 0) return s; s++; } return 0; } htcheck-2.0.0~rc1.orig/htlib/List.cc0000644000000000000000000002256611177570304014117 0ustar // // List.cc // // List: A List class which holds objects of type Object. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: List.cc,v 1.2 2001-03-16 08:26:45 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "List.h" class listnode { public: listnode *next; Object *object; }; //********************************************************************* // List::List() // Constructor // List::List() { head = tail = 0; number = 0; } //********************************************************************* // List::~List() // Destructor // List::~List() { Destroy(); } //********************************************************************* // void List::Release() // Release all the objects from our list. // void List::Release() { listnode *node; while (head) { node = head; head = head->next; delete node; } head = tail = 0; number = 0; cursor.Clear(); } //********************************************************************* // void List::Destroy() // Delete all the objects from our list. // void List::Destroy() { listnode *node; while (head) { node = head; head = head->next; delete node->object; delete node; } head = tail = 0; number = 0; cursor.Clear(); } //********************************************************************* // void List::Add(Object *object) // Add an object to the list. // void List::Add(Object *object) { listnode *node = new listnode; node->next = 0; node->object = object; if (tail) { tail->next = node; tail = node; } else { head = tail = node; } number++; } //********************************************************************* // void List::Insert(Object *object, int position) // Add an object to the list. // void List::Insert(Object *object, int position) { listnode *node = new listnode; node->next = 0; node->object = object; listnode *ln = head; listnode *prev = 0; for (int i = 0; i < position && ln; i++, ln = ln->next) prev = ln; if (!ln) { if (tail) tail->next = node; tail = node; // // The list is empty. This is a simple case, then. // if (!head) head = node; } else { if (ln == head) { node->next = head; head = node; } else { node->next = ln; prev->next = node; } } cursor.current_index = -1; number++; } //********************************************************************* // void List::Assign(Object *object, int position) // Assign a new value to an index. // void List::Assign(Object *object, int position) { // // First make sure that there is something there! // while (number < position + 1) { Add(0); } // // Now find the listnode to put the new object in // listnode *temp = head; for (int i = 0; temp && i < position; i++) { temp = temp->next; } cursor.current_index = -1; delete temp->object; temp->object = object; } //********************************************************************* // int List::Remove(Object *object) // Remove an object from the list. // int List::Remove(Object *object) { listnode *node = head; listnode *prev = 0; while (node) { if (node->object == object) { // // Found it! // // // If we are in the middle of a Get_Next() sequence, we need to // fix up any problems with the current node. // if (cursor.current == node) { cursor.current = node->next; } if (head == tail) { head = tail = 0; } else if (head == node) { head = head->next; } else if (tail == node) { tail = prev; tail->next = 0; } else { prev->next = node->next; } delete node; number--; cursor.current_index = -1; return 1; } prev = node; node = node->next; } return 0; } //********************************************************************* // int List::Remove(int position, int action /* = LIST_REMOVE_DESTROY */) { Object *o = List::operator[](position); if(action == LIST_REMOVE_DESTROY) delete o; return List::Remove(o); } //********************************************************************* // Object *List::Get_Next() // Return the next object in the list. // Object *List::Get_Next(ListCursor& cursor) const { listnode *temp = cursor.current; if (cursor.current) { cursor.prev = cursor.current; cursor.current = cursor.current->next; if (cursor.current_index >= 0) cursor.current_index++; } else return 0; return temp->object; } //********************************************************************* // Object *List::Get_First() // Return the first object in the list. // Object *List::Get_First() { if (head) return head->object; else return 0; } //********************************************************************* // int List::Index(Object *obj) // Return the index of an object in the list. // int List::Index(Object *obj) { listnode *temp = head; int index = 0; while (temp && temp->object != obj) { temp = temp->next; index++; } if (index >= number) return -1; else return index; } //********************************************************************* // Object *List::Next(Object *prev) // Return the next object in the list. Using this, the list will // appear as a circular list. // Object *List::Next(Object *prev) { listnode *node = head; while (node) { if (node->object == prev) { node = node->next; if (!node) return head->object; else return node->object; } node = node->next; } return 0; } //********************************************************************* // Object *List::Previous(Object *next) // Return the next object in the list. Using this, the list will // appear as a circular list. // Object *List::Previous(Object *next) { listnode *node = head; listnode *prev = 0; while (node) { if (node->object == next) { if (!prev) return 0; else return prev->object; } prev = node; node = node->next; } return 0; } //********************************************************************* // Return the nth object in the list. // const Object *List::Nth(ListCursor& cursor, int n) const { if (n < 0 || n >= number) return 0; listnode *temp = head; if (cursor.current_index == n) return cursor.current->object; if (cursor.current && cursor.current_index >= 0 && n == cursor.current_index + 1) { cursor.prev = cursor.current; cursor.current = cursor.current->next; if (!cursor.current) { cursor.current_index = -1; return 0; } cursor.current_index = n; return cursor.current->object; } for (int i = 0; temp && i < n; i++) { temp = temp->next; } if (temp) { cursor.current_index = n; cursor.current = temp; return temp->object; } else return 0; } //********************************************************************* // Object *List::Last() // Return the last object inserted. // Object *List::Last() { if (tail) { return tail->object; } return 0; } //********************************************************************* // Object *List::Pop(int action /* = LIST_REMOVE_DESTROY */) { Object *o = 0; listnode *ln = head; listnode *prev = 0; if (tail) { if(action == LIST_REMOVE_DESTROY) { delete tail->object; } else { o = tail->object; } if(head == tail) { head = tail = 0; } else { for (int i = 0; ln != tail; i++, ln = ln->next) prev = ln; tail = prev; tail->next = 0; } } return o; } //********************************************************************* // Object *List::Copy() const // Return a deep copy of the list. // Object *List::Copy() const { List *list = new List; ListCursor cursor; Start_Get(cursor); Object *obj; while ((obj = Get_Next(cursor))) { list->Add(obj->Copy()); } return list; } //********************************************************************* // List &List::operator=(List &list) // Return a deep copy of the list. // List &List::operator=(List &list) { Destroy(); list.Start_Get(); Object *obj; while ((obj = list.Get_Next())) { Add(obj->Copy()); } return *this; } //********************************************************************* // void AppendList(List &list) // Move contents of other list to the end of this list, and empty the // other list. // void List::AppendList(List &list) { // Never mind an empty list or ourselves. if (list.number == 0 || &list == this) return; // Correct our pointers in head and tail. if (tail) { // Link in other list. tail->next = list.head; // Update members for added contents. number += list.number; tail = list.tail; } else { head = list.head; tail = list.tail; number = list.number; } // Clear others members to be an empty list. list.head = list.tail = 0; list.cursor.current = 0; list.cursor.current_index = -1; list.number = 0; } htcheck-2.0.0~rc1.orig/htlib/HtHeap.cc0000644000000000000000000001145511177570304014350 0ustar // // HtHeap.cc // // HtHeap: A Heap class which holds objects of type Object. // (A heap is a semi-ordered tree-like structure. // it ensures that the first item is *always* the largest. // NOTE: To use a heap, you must implement the Compare() function for // your Object classes. The assumption used here is -1 means // less-than, 0 means equal, and +1 means greater-than. Thus // this is a "min heap" for that definition.) // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtHeap.cc,v 1.3 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtHeap.h" #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ //********************************************************************* // void HtHeap::HtHeap() // Default constructor // HtHeap::HtHeap() { data = new HtVector; } //********************************************************************* // void HtHeap::HtHeap(HtVector vector) // Constructor from vector // (has the side effect of not allocating double memory) // HtHeap::HtHeap(HtVector vector) { int size = vector.Count(); data = static_cast(vector.Copy()); // Now we have to "heapify" -- start at the first interior node // And push each node down into its subtree // (This is O(n)!) for (int i = parentOf(size); i >= 0; i--) pushDownRoot(i); } //********************************************************************* // void HtHeap::~HtHeap() // Destructor // HtHeap::~HtHeap() { Destroy(); } //********************************************************************* // void HtHeap::Destroy() // Deletes all objects from the heap // void HtHeap::Destroy() { data->Destroy(); delete data; } //********************************************************************* // void HtHeap::Add(Object *object) // Add an object to the heap. // void HtHeap::Add(Object *object) { data->Add(object); percolateUp(data->Count() - 1); } //********************************************************************* // Object *HtHeap::Remove() // Remove an object from the top of the heap // This requires re-heapifying by placing the last element on the top // and pushing it down. // Object *HtHeap::Remove() { Object *min = Peek(); data->Assign(data->Last(), 0); data->RemoveFrom(data->Count()-1); if (data->Count() > 1) pushDownRoot(0); return min; } //********************************************************************* // HtHeap *HtHeap::Copy() const // Return a deep copy of the heap. // Object *HtHeap::Copy() const { HtHeap *heap = new HtHeap(*data); return heap; } //********************************************************************* // HtHeap &HtHeap::operator=(HtHeap &heap) // Return a deep copy of the heap. // HtHeap &HtHeap::operator=(HtHeap &heap) { Destroy(); data = heap.data; return *this; } //********************************************************************* // voide HtHeap::percolateUp(int leaf) // Pushes the node pointed to by leaf upwards // it will travel as far as possible upwards to ensure the data is a heap // void HtHeap:: percolateUp(int leaf) { int parent = parentOf(leaf); Object *value = data->Nth(leaf); while (leaf > 0 && (value->compare(*(data->Nth(parent))) < 0)) { data->Assign(data->Nth(parent), leaf); leaf = parent; parent = parentOf(leaf); } data->Assign(value, leaf); } //********************************************************************* // void HtHeap::pushDownRoot(int root) // Pushes the node pointed to by root into the heap // it will go down as far as necessary to ensure the data is a heap // void HtHeap::pushDownRoot(int root) { int size = data->Count() - 1; Object *value = data->Nth(root); while (root < size) { int childPos = leftChildOf(root); if (childPos < size) { if ( rightChildOf(root) < size && data->Nth(childPos + 1)->compare(*(data->Nth(childPos))) < 0 ) { childPos++; } if ( data->Nth(childPos)->compare(*value) < 0 ) // -1, so smaller { // We have to swap this node with the root and then loop data->Assign(data->Nth(childPos), root); data->Assign(value, childPos); root = childPos; } else { // Found the right position, so we're done data->Assign(value, root); return; } } else // childPos >= heapSize { // At a leaf, so we're done data->Assign(value, root); return; } } } htcheck-2.0.0~rc1.orig/htlib/HtDateTime.h0000644000000000000000000003546611177570304015041 0ustar // // HtDateTime.h // // HtDateTime: Parse, split, compare and format dates and times. // Uses locale. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtDateTime.h,v 1.8 2006-07-03 13:45:17 angusgb Exp $ /////// // Class for Date and Time // Gabriele Bartolini - Prato - Italia // Started: 22.04.1999 /////// // Version: 1.0 // Release date: 07.05.1999 // // General purpose of HtDateTime // The general purpose of this class, is to provide an interface for // date and time managing, and to unload the programmer to manage // time_t, struct tm, time system functions and other related procedures // locally ... Everything regarding time and date must be put here. // D'you agree with me? Well, here is a summary of the class capabilities. // Attributes of the class: // // HtDateTime class has only 2 member attributes // - time_t Ht_t // - bool local_time // // Obviously Ht_t contains the most important piece of information. // local_time assumes a true value if we wanna consider the date and // time information as local. False means that our object value is // referred to the Greenwich Meridian time. // Interface provided: // // Construction: // - Default: set the date time value to now // - By passing a time_t value or pointer: Set to it // - By passing a struct tm value or pointer: Set to it // The last one could be useful sometimes. But it had better not to // be used. // // Parsing interface: // Not yet implemented ... :-) // // Setting Interface: // - from time_t: copy the time_t value into the object // - from struct tm: set the object's time_t value by converting // the value from the struct tm. If local_time is set to true, // converts it with mktime, else uses HtTimeGM. // - set to now // - from a string, by passing the input format: the method uses // strptime syntax (and invokes Htstrptime). For now, timezone // is ignored, and so data are stored as a GM date time value. // - from an int series, by specifying all the information (year, // month, day, hour, minute and second). It's all stored as // GM value. // - from various standard formats, such as C asctime, RFC 1123, // RFC 850 (these 3 types are suggested by the HTTP/1.1 standard), // ISO 8601, date and time default representation for the locale. // This list could get longer ... It all depends on us. // - setting the date and time to be represented in a local value // or universal (GM) one. // // Getting Interface // - in a personalized output format, by passing a string with // strftime values. // - in various standard formats, like C asctime, RFC 1123, // RFC 850, ISO 8601 (short too), date and time default // representation for the locale. // - getting the time_t value // - queries the local time status // - getting specific piece of information of both the date and the // the time, like the year, the month, the day of the week, of // the year or of the month, ... In short, every kind of thing // a tm structure is able to store ... // // Operator overloading // - Copy // - Every kind of logical comparison between 2 objects // // Comparison interface // This is divided in 2 sections. // - Static section: // comparison are made on a 2 struct tm values basis. // It's possible to compare the whole date time value, or // simply the date or the time value. // - Member functions section: // comparison are made between 2 HtDateTime objects. // You can compare either the whole date time, or the date, or the // time, both as they are or referring their values to the GM value. // // System functions interface // They are all done with previous "configure" checks // - for strptime // - for timegm // // Static methods // - check for a leap year // - check for a valid year number (according with time_t capabilities) // - check for a valid month number // - check for a valid day // - converts a 2 digits year number into a 4 digits one: from 1970 to 2069. // - converts a 4 digits year number into a 2 digits one. // - retrieve the difference in seconds between 2 HtDateTime objs // // Test Interface (only by defining TEST_HTDATETIME directive). // #ifndef _HTDATETIME_H #define _HTDATETIME_H #ifdef HAVE_CONFIG_H # include "htconfig.h" #endif #if TIME_WITH_SYS_TIME #include #include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #include "htString.h" // If you wanna do some tests #define TEST_HTDATETIME class HtDateTime { public: /////// // Construction /////// // Default: now and local HtDateTime() {SettoNow(); ToLocalTime();} // From an integer (seconds from epoc) HtDateTime(const int i) {SetDateTime((time_t)i); ToLocalTime();} // From a time_t value and pointer HtDateTime(time_t &t) {SetDateTime(t); ToLocalTime();} HtDateTime(time_t *t) {SetDateTime(t); ToLocalTime();} // From a struct tm value and pointer HtDateTime(struct tm &t) {SetDateTime(t); ToLocalTime();} HtDateTime(struct tm *t) {SetDateTime(t); ToLocalTime();} // Copy constructor inline HtDateTime(const HtDateTime& rhs); /////// // Interface methods /////// /////// // "Parsing" interface /////// int Parse(const char *); // It looks for the similar format // then sets the date by invoking // right method /////// // "Setting" interface /////// // Setting from a time_t value void SetDateTime(const time_t &t) { Ht_t = t; } // by reference void SetDateTime(const time_t *t) { Ht_t = *t; } // by pointer // Set object time_t value from a struct tm void SetDateTime(struct tm *); // by pointer inline void SetDateTime(struct tm &t) { SetDateTime(&t);} // by reference // Set GM Time from single values input // Return true if it all went good, false else bool SetGMDateTime( int year, int mon, int mday, int hour=0, int min=0, int sec=0); // Set to Now void SettoNow(); // Parsing various input string format // It ignores time Zone value - always stores as GM char *SetFTime(const char *, const char *); // as strptime void SetAscTime(char *); // Sun Nov 6 08:49:37 1994 void SetRFC1123(char *); // Sun, 06 Nov 1994 08:49:37 GMT void SetRFC850(char *); // Sunday, 06-Nov-94 08:49:37 GMT void SetISO8601(char *); // 1994-11-06 08:49:37 GMT void SetTimeStamp(char *); // 19941106084937 void SetDateTimeDefault(char *); // Default date and time representation // for the locale /////// // Methods for setting Local and GM time formats (Switches) /////// void ToLocalTime() {local_time=true;} void ToGMTime() {local_time=false;} /////// // "Getting" interface /////// /////// // Output formats /////// // Personalized output char *GetFTime(const char *format) const; // as strftime size_t GetFTime(char *, size_t, const char *) const; // as strftime char *GetAscTime() const; // Sun Nov 6 08:49:37 1994 char *GetRFC1123() const; // Sun, 06 Nov 1994 08:49:37 GMT char *GetRFC850() const; // Sunday, 06-Nov-94 08:49:37 GMT char *GetISO8601() const; // 1994-11-06 08:49:37 GMT char *GetTimeStamp() const; // 19941106084937 char *GetDateTimeDefault() const; // Default date and time representation // for the locale // Partial (only date or only time) char *GetShortISO8601() const; // 1994-11-06 char *GetDateDefault() const; // Default date form for the locale char *GetTimeDefault() const; // Default time form for the locale /////// // Gets the time_t value /////// time_t GetTime_t() const {return Ht_t;} /////// // Gets specific date and time values (from a struct tm) /////// // Gets the year int GetYear() const { return ( GetStructTM().tm_year + 1900) ;} // Gets the month int GetMonth() const { return (GetStructTM().tm_mon + 1);} // Gets the day of the week (since Sunday) int GetWDay() const { return (GetStructTM().tm_wday + 1);} // Gets the day of the month int GetMDay() const { return GetStructTM().tm_mday;} // Gets the day since january 1 int GetYDay() const { return (GetStructTM().tm_yday + 1);} // Gets the hour int GetHour() const { return GetStructTM().tm_hour;} // Gets the minute int GetMinute() const { return GetStructTM().tm_min;} // Gets the second int GetSecond() const { return GetStructTM().tm_sec;} // Daylight saving time is in effect at that time? int GetIsDst() const { return GetStructTM().tm_isdst;} /////// // Methods for querying localtime status /////// bool isLocalTime() const {return local_time;} bool isGMTime() const {return !local_time;} /////// // Methods for comparison /////// // Returns 0 if equal, -1 if tm1 is lower than tm2, 1 if tm1 is greater than tm2 int DateTimeCompare (const HtDateTime &) const; // Compares both date and time int DateCompare (const HtDateTime &) const; // Compares the date int TimeCompare (const HtDateTime &) const; // Compares the time // Refers the date and the time to a GM value, then compares int GMDateTimeCompare (const HtDateTime &) const; // Compares both date and time int GMDateCompare (const HtDateTime &) const; // Compares the date int GMTimeCompare (const HtDateTime &) const; // Compares the time /////// // Operator overloading /////// // For comparisons - between objects of the same class inline bool operator==(const HtDateTime &right) const; inline bool operator<(const HtDateTime &right) const; bool operator!=(const HtDateTime &right) const {return !( *this == right );} bool operator>=(const HtDateTime &right) const {return !( *this < right);} bool operator<=(const HtDateTime &right) const {return !( right < *this);} bool operator>(const HtDateTime &right) const {return right < *this; } // For comparisons - between HtDateTime objects and int bool operator==(const int right) const // with an int {return ( Ht_t == (time_t) right );} bool operator<(const int right) const // with an int {return ( Ht_t < (time_t) right );} bool operator!=(const int right) const // with an int {return !( *this == right );} bool operator>=(const int right) const // with an int {return !( *this < right);} bool operator<=(const int right) const // with an int {return !( *this > right);} bool operator>(const int right) const // with an int {return (Ht_t > (time_t) right); } // For Copy inline HtDateTime &operator=(const HtDateTime &right); inline HtDateTime &operator=(const int right); /////// // STATIC METHODS // /////// // Here we can add static methods as we want more :-) // Then invoke them with HtDateTime::MethodXXX () inline static bool LeapYear(int); // Is a leap year? // These checks are made for time_t compatibility inline static bool isAValidYear(int); // Is a valid year number inline static bool isAValidMonth(int); // Is a valid month number inline static bool isAValidDay(int, int, int); // Is a valid day // Converts a 2 digits year in a 4 one - with no checks static int Year_From2To4digits (int y) { if ( y >= 70 ) return y+1900; else return y+2000; } // Converts a 4 digits year in a 2 one - with no checks static int Year_From4To2digits (int y) { if ( y >= 2000 ) return y - 2000; else return y - 1900; } static int GetDiff(const HtDateTime &, const HtDateTime &); // Check equality from 2 struct tm pointers // Returns 0 if equal, -1 if tm1 is lower than tm2, 1 if tm1 is greater than tm2 // Compares the whole time information (both date and time) static int DateTimeCompare(const struct tm *tm1, const struct tm *tm2); // Compares only date static int DateCompare(const struct tm *tm1, const struct tm *tm2); // Compares only time static int TimeCompare(const struct tm *tm1, const struct tm *tm2); /////// // HIDDEN ATTRIBUTES & METHODS // /////// protected: // to permit inheritance time_t Ht_t; bool local_time; static const int days[]; /////// // Sets and gets the struct tm depending on local_time status /////// void RefreshStructTM() const; // Refresh its content struct tm &GetStructTM() const; // gets it void GetStructTM(struct tm & t) const { t=GetStructTM(); } // Gets and copy /////// // Gets the struct tm ignoring local_time status /////// struct tm &GetGMStructTM() const; // gets it void GetGMStructTM(struct tm &) const; // Gets and copy /////// // Interface for system functions /////// // Interface for timegm static time_t HtTimeGM (struct tm*); #ifdef TEST_HTDATETIME /////// // Only for debug: view of struct tm fields /////// public: static void ViewStructTM(struct tm *); // view of struct tm fields void ViewStructTM(); // view of struct tm fields void ViewFormats(); // View of various formats void ComparisonTest (const HtDateTime &) const; // comparison // Test of the class static int Test(void); static int Test(char **test_dates, const char *format); #endif }; /////// // Copy constructor /////// inline HtDateTime::HtDateTime (const HtDateTime& rhs) { // Copy the contents Ht_t = rhs.Ht_t; local_time = rhs.local_time; } /////// // Operator overloading /////// inline bool HtDateTime::operator==(const HtDateTime &right) const { if(Ht_t==right.Ht_t) return true; else return false; } inline bool HtDateTime::operator<(const HtDateTime &right) const { if(Ht_t < right.Ht_t) return true; else return false; } /////// // Copy /////// inline HtDateTime &HtDateTime::operator=(const HtDateTime &right) { if (this != &right) { Ht_t=right.Ht_t; // Copy the time_t value local_time=right.local_time; // Copy the local_time flag } return *this; } inline HtDateTime &HtDateTime::operator=(const int right) { Ht_t=(time_t)right; // Copy the int as a time_t value ToLocalTime(); return *this; } #endif htcheck-2.0.0~rc1.orig/htlib/Makefile.in0000644000000000000000000004122411245527335014734 0ustar # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config subdir = htlib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkglibdir)" pkglibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(pkglib_LTLIBRARIES) libht_la_LIBADD = am_libht_la_OBJECTS = Configuration.lo Dictionary.lo IntObject.lo \ List.lo Object.lo ParsedString.lo Queue.lo Stack.lo String.lo \ StringList.lo String_fmt.lo StringMatch.lo good_strtok.lo \ strcasecmp.lo HtVector.lo HtHeap.lo HtRegex.lo HtPack.lo \ HtDateTime.lo mktime.lo strptime.lo timegm.lo getcwd.lo \ memcmp.lo memcpy.lo memmove.lo raise.lo strerror.lo libht_la_OBJECTS = $(am_libht_la_OBJECTS) libht_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libht_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libht_la_SOURCES) DIST_SOURCES = $(libht_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline pkglib_LTLIBRARIES = libht.la libht_la_SOURCES = Configuration.cc Dictionary.cc \ IntObject.cc List.cc Object.cc \ ParsedString.cc Queue.cc Stack.cc \ String.cc StringList.cc String_fmt.cc StringMatch.cc \ good_strtok.cc strcasecmp.cc \ HtVector.cc HtHeap.cc HtRegex.cc \ HtPack.cc HtDateTime.cc \ mktime.c strptime.cc timegm.c \ getcwd.c memcmp.c memcpy.c memmove.c raise.c strerror.c libht_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ Configuration.h \ Dictionary.h \ HtDateTime.h \ HtHeap.h \ HtPack.h \ HtRegex.h \ HtVector.h \ IntObject.h \ List.h \ Object.h \ ParsedString.h \ Queue.h \ Stack.h \ StringList.h \ StringMatch.h \ good_strtok.h \ htString.h \ lib.h \ regex.h all: all-am .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htlib/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htlib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ else :; fi; \ done uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libht.la: $(libht_la_OBJECTS) $(libht_la_DEPENDENCIES) $(libht_la_LINK) -rpath $(pkglibdir) $(libht_la_OBJECTS) $(libht_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: $(LTCOMPILE) -c -o $@ $< .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags 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-pkglibLTLIBRARIES \ 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 uninstall uninstall-am uninstall-pkglibLTLIBRARIES # 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: htcheck-2.0.0~rc1.orig/htlib/strerror.c0000644000000000000000000000503511177570304014713 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifndef HAVE_STRERROR /* * strerror -- * Return the string associated with an errno. * * PUBLIC: #ifndef HAVE_STRERROR * PUBLIC: char *strerror __P((int)); * PUBLIC: #endif */ char * strerror(num) int num; { extern int sys_nerr; extern char *sys_errlist[]; #undef UPREFIX #define UPREFIX "Unknown error: " static char ebuf[40] = UPREFIX; /* 64-bit number + slop */ int errnum; char *p, *t, tmp[40]; errnum = num; /* convert to unsigned */ if (errnum < sys_nerr) return(sys_errlist[errnum]); /* Do this by hand, so we don't include stdio(3). */ t = tmp; do { *t++ = "0123456789"[errnum % 10]; } while (errnum /= 10); for (p = ebuf + sizeof(UPREFIX) - 1;;) { *p++ = *--t; if (t <= tmp) break; } return(ebuf); } #endif /* HAVE_STRERROR */ htcheck-2.0.0~rc1.orig/htlib/String.cc0000644000000000000000000003106111177570304014440 0ustar // // String.cc // // String: (interface in htString.h) Just Another String class. // // Part of the ht://Dig package // Copyright (c) 1995-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: String.cc,v 1.5 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "htString.h" #include "Object.h" #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include #include #include #include const int MinimumAllocationSize = 4; // Should be power of two. #ifdef NOINLINE String::String() { Length = Allocated = 0; Data = 0; } #endif String::String(int init) { Length = 0; Allocated = init >= MinimumAllocationSize ? init : MinimumAllocationSize; Data = new char[Allocated]; } String::String(const char *s) { Allocated = Length = 0; Data = 0; int len; if (s) { len = strlen(s); copy(s, len, len); } } String::String(const char *s, int len) { Allocated = Length = 0; Data = 0; if (s && len != 0) copy(s, len, len); } String::String(const String &s) { Allocated = Length = 0; Data = 0; if (s.length() != 0) copy(s.Data, s.length(), s.length()); } // // This can be used for performance reasons if it is known the // String will need to grow. // String::String(const String &s, int allocation_hint) { Allocated = Length = 0; Data = 0; if (s.length() != 0) { if (allocation_hint < s.length()) allocation_hint = s.length(); copy(s.Data, s.length(), allocation_hint); } } String::~String() { if (Allocated) delete [] Data; } void String::operator = (const String &s) { if (s.length() > 0) { allocate_space(s.length()); Length = s.length(); copy_data_from(s.Data, Length); } else { Length = 0; } } void String::operator = (const char *s) { if (s) { int len = strlen(s); allocate_fix_space(len); Length = len; copy_data_from(s, Length); } else Length = 0; } void String::append(const String &s) { if (s.length() == 0) return; int new_len = Length + s.length(); reallocate_space(new_len); copy_data_from(s.Data, s.length(), Length); Length = new_len; } void String::append(const char *s) { if (!s) return; append(s,strlen(s)); } void String::append(const char *s, int slen) { if (!s || !slen) return; // if ( slen == 1 ) // { // append(*s); // return; // } int new_len = Length + slen; if (new_len + 1 > Allocated) reallocate_space(new_len); copy_data_from(s, slen, Length); Length = new_len; } void String::append(char ch) { int new_len = Length +1; if (new_len + 1 > Allocated) reallocate_space(new_len); Data[Length] = ch; Length = new_len; } int String::compare(const String& obj) const { int len; int result; const char *p1 = Data; const char *p2 = obj.Data; len = Length; result = 0; if (Length > obj.Length) { result = 1; len = obj.Length; } else if (Length < obj.Length) result = -1; while (len) { if (*p1 > *p2) return 1; if (*p1 < *p2) return -1; p1++; p2++; len--; } // // Strings are equal up to the shortest length. // The result depends upon the length difference. // return result; } int String::nocase_compare(const String &s) const { const char *p1 = get(); const char *p2 = s.get(); return mystrcasecmp(p1, p2); } int String::Write(int fd) const { int left = Length; char *wptr = Data; while (left) { int result = write(fd, wptr, left); if (result < 0) return result; left -= result; wptr += result; } return left; } const char *String::get() const { static const char *null = ""; if (!Allocated) return null; Data[Length] = '\0'; // We always leave room for this. return Data; } char *String::get() { static char *null = ""; if (!Allocated) return null; Data[Length] = '\0'; // We always leave room for this. return Data; } String::operator int () const { fprintf(stderr, "String: int(): either use empty() or as_integer()\n"); abort(); } char *String::new_char() const { char *r; if (!Allocated) { r = new char[1]; *r = '\0'; return r; } Data[Length] = '\0'; // We always leave room for this. r = new char[Length + 1]; strcpy(r, Data); return r; } int String::as_integer(int def) const { if (Length <= 0) return def; Data[Length] = '\0'; return atoi(Data); } double String::as_double(double def) const { if (Length <= 0) return def; Data[Length] = '\0'; return atof(Data); } String String::sub(int start, int len) const { if (start > Length) return 0; if (len > Length - start) len = Length - start; return String(Data + start, len); } String String::sub(int start) const { return sub(start, Length - start); } int String::indexOf(const char *str) const { char *c; // // Set the first char after string end to zero to prevent finding // substrings including symbols after actual end of string // if (!Allocated) return -1; Data[Length] = '\0'; /* OLD CODE: for (i = 0; i < Length; i++) */ #ifdef HAVE_STRSTR if ((c = strstr(Data, str)) != NULL) return(c -Data); #else int len = strlen(str); int i; for (i = 0; i <= Length-len; i++) { if (strncmp(&Data[i], str, len) == 0) return i; } #endif return -1; } int String::indexOf(char ch) const { int i; for (i = 0; i < Length; i++) { if (Data[i] == ch) return i; } return -1; } int String::indexOf(char ch, int pos) const { if (pos >= Length) return -1; for (int i = pos; i < Length; i++) { if (Data[i] == ch) return i; } return -1; } int String::lastIndexOf(char ch, int pos) const { if (pos >= Length) return -1; while (pos >= 0) { if (Data[pos] == ch) return pos; pos--; } return -1; } int String::lastIndexOf(char ch) const { return lastIndexOf(ch, Length - 1); } #ifdef NOINLINE String &String::operator << (const char *str) { append(str); return *this; } String &String::operator << (char ch) { append(&ch, 1); return *this; } #endif String &String::operator << (int i) { char str[20]; sprintf(str, "%d", i); append(str); return *this; } String &String::operator << (unsigned int i) { char str[20]; sprintf(str, "%u", i); append(str); return *this; } String &String::operator << (long l) { char str[20]; sprintf(str, "%ld", l); append(str); return *this; } String &String::operator << (const String &s) { append(s.get(), s.length()); return *this; } char String::operator >> (char c) { c = '\0'; if (Allocated && Length) { c = Data[Length - 1]; Data[Length - 1] = '\0'; Length--; } return c; } int String::lowercase() { int converted = 0; for (int i = 0; i < Length; i++) { if (isupper((unsigned char)Data[i])) { Data[i] = tolower((unsigned char)Data[i]); converted++; } } return converted; } int String::uppercase() { int converted = 0; for (int i = 0; i < Length; i++) { if (islower((unsigned char)Data[i])) { Data[i] = toupper((unsigned char)Data[i]); converted++; } } return converted; } void String::replace(char c1, char c2) { for (int i = 0; i < Length; i++) if (Data[i] == c1) Data[i] = c2; } int String::remove(const char *chars) { if (Length <= 0) return 0; char *good, *bad; int skipped = 0; good = bad = Data; for (int i = 0; i < Length; i++) { if (strchr(chars, *bad)) skipped++; else *good++ = *bad; bad++; } Length -= skipped; return skipped; } String &String::chop(int n) { Length -= n; if (Length < 0) Length = 0; return *this; } String &String::chop(char ch) { while (Length > 0 && Data[Length - 1] == ch) Length--; return *this; } String &String::chop(const char *str) { while (Length > 0 && strchr(str, Data[Length - 1])) Length--; return *this; } void String::Serialize(String &dest) { dest.append((char *) &Length, sizeof(Length)); dest.append(get(), Length); } void String::Deserialize(String &source, int &index) { memcpy((char *) &Length, (char *) source.get() + index, sizeof(Length)); index += sizeof(Length); allocate_fix_space(Length); copy_data_from(source.get() + index, Length); index += Length; } //------------------------------------------------------------------------ // Non member operators. // String operator + (const String &a, const String &b) { String result(a, a.length() + b.length()); result.append(b); return result; } int operator == (const String &a, const String &b) { if (a.Length != b.Length) return 0; return a.compare(b) == 0; } int operator != (const String &a, const String &b) { return a.compare(b) != 0; } int operator < (const String &a, const String &b) { return a.compare(b) == -1; } int operator > (const String &a, const String &b) { return a.compare(b) == 1; } int operator <= (const String &a, const String &b) { return a.compare(b) <= 0; } int operator >= (const String &a, const String &b) { return a.compare(b) >= 0; } #ifndef NOSTREAM ostream &operator << (ostream &o, const String &s) { o.write(s.Data, s.length()); return o; } #endif /* NOSTREAM */ //------------------------------------------------------------------------ // Private Methods. // void String::copy_data_from(const char *s, int len, int dest_offset) { memcpy(Data + dest_offset, s, len); } void String::allocate_space(int len) { len++; // In case we want to add a null. if (len <= Allocated) return; if (Allocated) delete [] Data; Allocated = MinimumAllocationSize; while (Allocated < len) Allocated <<= 1; Data = new char[Allocated]; } void String::allocate_fix_space(int len) { len++; // In case we want to add a null. if (len <= Allocated) return; if (Allocated) delete [] Data; Allocated = len; if (Allocated < MinimumAllocationSize) Allocated = MinimumAllocationSize; Data = new char[Allocated]; } void String::reallocate_space(int len) { char *old_data = 0; int old_data_len = 0; if (Allocated) { old_data = Data; old_data_len = Length; Allocated = 0; } allocate_space(len); if (old_data) { copy_data_from(old_data, old_data_len); delete [] old_data; } } void String::copy(const char *s, int len, int allocation_hint) { if (len == 0 || allocation_hint == 0) return; // We're not actually copying anything! allocate_fix_space(allocation_hint); Length = len; copy_data_from(s, len); } #ifndef NOSTREAM void String::debug(ostream &o) { o << "Length: " << Length << " Allocated: " << Allocated << " Data: " << ((void*) Data) << " '" << *this << "'\n"; } #endif /* NOSTREAM */ int String::readLine(FILE *in) { Length = 0; allocate_fix_space(2048); while (fgets(Data + Length, Allocated - Length, in)) { Length += strlen(Data + Length); if (Length == 0) continue; if (Data[Length - 1] == '\n') { // // A full line has been read. Return it. // chop('\n'); return 1; } if (Allocated > Length + 1) { // // Not all available space filled. Probably EOF? // continue; } // // Only a partial line was read. Increase available space in // string and read some more. // reallocate_space(Allocated << 1); } chop('\n'); return Length > 0; } #ifndef NOSTREAM istream &operator >> (istream &in, String &line) { line.Length = 0; line.allocate_fix_space(2048); while (in.get(line.Data + line.Length, line.Allocated - line.Length)) { line.Length += strlen(line.Data + line.Length); int c = in.get(); if (c == '\n' || c == EOF) { // // A full line has been read. Return it. // break; } if (line.Allocated > line.Length + 2) { // // Not all available space filled. // line.Data[line.Length++] = char(c); continue; } // // Only a partial line was read. Increase available space in // string and read some more. // line.reallocate_space(line.Allocated << 1); line.Data[line.Length++] = char(c); } return in; } #endif /* NOSTREAM */ htcheck-2.0.0~rc1.orig/htlib/HtPack.cc0000644000000000000000000002317211177570304014350 0ustar // // HtPack.cc // // HtPack: Compress and uncompress data in e.g. simple structures. // The structure must have the layout defined in the ABI; // the layout the compiler generates. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtPack.cc,v 1.2 2002-11-14 16:59:04 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtPack.h" #include #include // For the moment, these formats are accepted: // "i" native int, with most compressed value 0 // "u" unsigned int, with most compressed value 0 // "c" unsigned int, with most compressed value 1. // // If someone adds other formats (and uses them), please note // that structure padding may give surprising effects on some // (most) platforms, for example if you try to unpack a // structure with the imagined signature "isi" (int, short, int). // You will want to solve that portably. // // Compression is done to 2 bits description (overhead) each, // plus variable-sized data. // Theoretically, different formats can use different number of // bits in the description with a few changes. // The description is located in a byte before every four // "fields". String htPack(const char format[], const char *data) { const char *s = format; // We insert the encodings by number, rather than shifting and // inserting at the "bottom". This should make it faster for // decoding, which presumably is more important than the speed // of encoding. int code_no = 0; // Make a wild guess that we will compress some ordinary sized // struct. This guess only has speed effects. String compressed(60); // Accumulated codes. unsigned int description = 0; // Store the encoding here. We cannot use a char *, as the // string may be reallocated and moved. int code_index = 0; // Make place for the first codes. compressed << '\0'; // Format string loop. while (*s) { int fchar = *s++; int n; if (isdigit(*s)) { char* t; n = strtol(s, &t, 10); s = t; } else n = 1; // Loop over N in e.g. "iN" (default 1). while (n--) { // Format character handling. switch (fchar) { case 'c': { // We compress an unsigned int with the most common // value 1 as this: // 00 - value is 1. // 01 - value fits in unsigned char - appended. // 10 - value fits in unsigned short - appended. // 11 - just plain unsigned int - appended (you lose). unsigned int value; // Initialize, but allow disalignment. memcpy(&value, data, sizeof value); data += sizeof(unsigned int); int mycode; if (value == 1) { mycode = 0; } else { unsigned char charvalue = (unsigned char) value; unsigned short shortvalue = (unsigned short) value; if (value == charvalue) { mycode = 1; compressed << charvalue; } else if (value == shortvalue) { mycode = 2; compressed.append((char *) &shortvalue, sizeof shortvalue); } else { mycode = 3; compressed.append((char *) &value, sizeof value); } } description |= mycode << (2*code_no++); } break; case 'i': { // We compress a (signed) int as follows: // 00 - value is 0. // 01 - value fits in char - appended. // 10 - value fits in short - appended. // 11 - just plain int - appended (you lose). int value; // Initialize, but allow disalignment. memcpy(&value, data, sizeof value); data += sizeof(int); int mycode; if (value == 0) { mycode = 0; } else { char charvalue = char(value); short shortvalue = short(value); if (value == charvalue) { mycode = 1; compressed << charvalue; } else if (value == shortvalue) { mycode = 2; compressed.append((char *) &shortvalue, sizeof shortvalue); } else { mycode = 3; compressed.append((char *) &value, sizeof value); } } description |= mycode << (2*code_no++); } break; case 'u': { // We compress an unsigned int like an int: // 00 - value is 0. // 01 - value fits in unsigned char - appended. // 10 - value fits in unsigned short - appended. // 11 - just plain unsigned int - appended (you lose). unsigned int value; // Initialize, but allow disalignment. memcpy(&value, data, sizeof value); data += sizeof(unsigned int); int mycode; if (value == 0) { mycode = 0; } else { unsigned char charvalue = (unsigned char) value; unsigned short shortvalue = (unsigned short) value; if (value == charvalue) { mycode = 1; compressed << charvalue; } else if (value == shortvalue) { mycode = 2; compressed.append((char *) &shortvalue, sizeof shortvalue); } else { mycode = 3; compressed.append((char *) &value, sizeof value); } } description |= mycode << (2*code_no++); } break; default: #ifndef NOSTREAM #ifdef DEBUG if (1) cerr << "Invalid char \'" << char(fchar) << "\' in pack format \"" << format << "\"" << endl; return ""; #endif #endif ; // Must always have a statement after a label. } // Assuming 8-bit chars here. Flush encodings after 4 (2 bits // each) or when the code-string is consumed. if (code_no == 4 || (n == 0 && *s == 0)) { char *codepos = compressed.get() + code_index; *codepos = description; description = 0; code_no = 0; if (n || *s) { // If more data to be encoded, then we need a new place to // store the encodings. code_index = compressed.length(); compressed << '\0'; } } } } return compressed; } // Reverse the effect of htPack. String htUnpack(const char format[], const char *data) { const char *s = format; // The description needs to be renewed immediately. unsigned int description = 1; // Make a wild guess about that we decompress to some ordinary // sized struct and assume the cost of allocation some extra // memory is much less than the cost of allocating more. // This guess only has speed effects. String decompressed(60); // Format string loop. while (*s) { int fchar = *s++; int n; if (isdigit(*s)) { char* t; n = strtol(s, &t, 10); s = t; } else n = 1; // Loop over N in e.g. "iN" (default 1). while (n--) { // Time to renew description? if (description == 1) description = 256 | *data++; // Format character handling. switch (fchar) { case 'c': { // An unsigned int with the most common value 1 is // compressed as follows: // 00 - value is 1. // 01 - value fits in unsigned char - appended. // 10 - value fits in unsigned short - appended. // 11 - just plain unsigned int - appended (you lose). unsigned int value; switch (description & 3) { case 0: value = 1; break; case 1: { unsigned char charvalue; memcpy(&charvalue, data, sizeof charvalue); value = charvalue; data++; } break; case 2: { unsigned short int shortvalue; memcpy(&shortvalue, data, sizeof shortvalue); value = shortvalue; data += sizeof shortvalue; } break; case 3: { memcpy(&value, data, sizeof value); data += sizeof value; } break; } decompressed.append((char *) &value, sizeof value); } break; case 'i': { // A (signed) int is compressed as follows: // 00 - value is 0. // 01 - value fits in char - appended. // 10 - value fits in short - appended. // 11 - just plain int - appended (you lose). int value; switch (description & 3) { case 0: value = 0; break; case 1: { char charvalue; memcpy(&charvalue, data, sizeof charvalue); value = charvalue; data++; } break; case 2: { short int shortvalue; memcpy(&shortvalue, data, sizeof shortvalue); value = shortvalue; data += sizeof shortvalue; } break; case 3: { memcpy(&value, data, sizeof value); data += sizeof value; } break; } decompressed.append((char *) &value, sizeof value); } break; case 'u': { // An unsigned int is compressed as follows: // 00 - value is 0. // 01 - value fits in unsigned char - appended. // 10 - value fits in unsigned short - appended. // 11 - just plain unsigned int - appended (you lose). unsigned int value; switch (description & 3) { case 0: value = 0; break; case 1: { unsigned char charvalue; memcpy(&charvalue, data, sizeof charvalue); value = charvalue; data++; } break; case 2: { unsigned short int shortvalue; memcpy(&shortvalue, data, sizeof shortvalue); value = shortvalue; data += sizeof shortvalue; } break; case 3: { memcpy(&value, data, sizeof value); data += sizeof value; } break; } decompressed.append((char *) &value, sizeof value); } break; default: #ifndef NOSTREAM #ifdef DEBUG if (1) cerr << "Invalid char \'" << char(fchar) << "\' in unpack format \"" << format << "\"" << endl; return ""; #endif #endif ; // Must always have a statement after a label. } description >>= 2; } } return decompressed; } // End of HtPack.cc htcheck-2.0.0~rc1.orig/htlib/Configuration.cc0000644000000000000000000002332211177570304016002 0ustar // // Configuration.cc // // Configuration: This class provides an object lookup table. Each object // in the Configuration is indexed with a string. The objects // can be returned by mentioning their string index. Values may // include files with `/path/to/file` or other configuration // variables with ${variable} // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Configuration.cc,v 1.3 2002-11-14 16:59:04 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include #include "Configuration.h" #include "htString.h" #include "ParsedString.h" #include #include #include //********************************************************************* // Configuration::Configuration() // Configuration::Configuration() : separators("=:"), allow_multiple(0) { } //********************************************************************* // void Configuration::NameValueSeparators(char *s) // void Configuration::NameValueSeparators(const String& s) { separators = s; } //********************************************************************* // Add an entry to the configuration table. // void Configuration::Add(const String& str_arg) { const char* str = str_arg; String name, value; while (str && *str) { while (isspace(*str)) str++; name = 0; if (!isalpha(*str)) break; // Some isalnum() implementations don't allow all the letters that // isalpha() does, e.g. accented ones. They're not POSIX.2 compliant // but we won't punish them with an infinite loop... if (!isalnum(*str)) break; while (isalnum(*str) || *str == '-' || *str == '_') name << *str++; name.lowercase(); // // We have the name. Let's see if we will get a value // while (isspace(*str)) str++; if (!*str) { // // End of string. We need to store the name as a boolean TRUE // Add(name, "true"); return; } if (!strchr((char*)separators, *str)) { // // We are now at a new name. The previous one needs to be set // to boolean TRUE // Add(name, "true"); continue; } // // We now need to deal with the value // str++; // Skip the separator while (isspace(*str)) str++; if (!*str) { // // End of string reached. The value must be blank // Add(name, ""); break; } value = 0; if (*str == '"') { // // Ah! A quoted value. This should be easy to deal with... // (Just kidding!) // str++; while (*str && *str != '"') { value << *str++; } Add(name, value); if (*str == '"') str++; continue; } else if (*str == '\'') { // A single quoted value. str++; while (*str && *str != '\'') { value << *str++; } Add(name, value); if (*str == '\'') str++; continue; } else { // // A non-quoted string. This string will terminate at the // next blank // while (*str && !isspace(*str)) { value << *str++; } Add(name, value); continue; } } } //********************************************************************* // Add an entry to the configuration table, without allowing variable // or file expansion of the value. // void Configuration::Add(const String& name, const String& value) { String escaped; const char *s = value.get(); while (*s) { if (strchr("$`\\", *s)) escaped << '\\'; escaped << *s++; } ParsedString *ps = new ParsedString(escaped); dcGlobalVars.Add(name, ps); } //********************************************************************* // Add an entry to the configuration table, allowing parsing for variable // or file expansion of the value. // void Configuration::AddParsed(const String& name, const String& value) { ParsedString *ps = new ParsedString(value); if (mystrcasecmp(name, "locale") == 0) { String str(setlocale(LC_ALL, ps->get(dcGlobalVars))); ps->set(str); // // Set time format to standard to avoid sending If-Modified-Since // http headers in native format which http servers can't // understand // setlocale(LC_TIME, "C"); } dcGlobalVars.Add(name, ps); } //********************************************************************* // Remove an entry from both the hash table and from the list of keys. // int Configuration::Remove(const String& name) { return dcGlobalVars.Remove(name); } //********************************************************************* // char *Configuration::Find(const char *name) const // Retrieve a variable from the configuration database. This variable // will be parsed and a new String object will be returned. // const String Configuration::Find(const String& name) const { ParsedString *ps = (ParsedString *) dcGlobalVars[name]; if (ps) { return ps->get(dcGlobalVars); } else { #ifdef DEBUG fprintf (stderr, "Could not find configuration option %s\n", (const char*)name); #endif return 0; } } //********************************************************************* Object *Configuration::Get_Object(char *name) { return dcGlobalVars[name]; } //********************************************************************* // int Configuration::Value(const String& name, int default_value) const { return Find(name).as_integer(default_value); } //********************************************************************* // double Configuration::Double(const String& name, double default_value) const { return Find(name).as_double(default_value); } //********************************************************************* // int Configuration::Boolean(char *name, int default_value) // int Configuration::Boolean(const String& name, int default_value) const { int value = default_value; const String s = Find(name); if (s[0]) { if (s.nocase_compare("true") == 0 || s.nocase_compare("yes") == 0 || s.nocase_compare("1") == 0) value = 1; else if (s.nocase_compare("false") == 0 || s.nocase_compare("no") == 0 || s.nocase_compare("0") == 0) value = 0; } return value; } //********************************************************************* // const String Configuration::operator[](const String& name) const { return Find(name); } //********************************************************************* // int Configuration::Read(const String& filename) { FILE* in = fopen((const char*)filename, "r"); if(!in) { fprintf(stderr, "Configuration::Read: cannot open %s for reading : ", (const char*)filename); perror(""); return NOTOK; } #define CONFIG_BUFFER_SIZE (50*1024) // // Make the line buffer large so that we can read long lists of start // URLs. // char buffer[CONFIG_BUFFER_SIZE + 1]; char *current; String line; String name; char *value; int len; while (fgets(buffer, CONFIG_BUFFER_SIZE, in)) { line << buffer; line.chop("\r\n"); if (line.last() == '\\') { line.chop(1); continue; // Append the next line to this one } current = line.get(); if (*current == '#' || *current == '\0') { line = 0; continue; // Comments and blank lines are skipped } name = strtok(current, ": =\t"); value = strtok(0, "\r\n"); if (!value) value = ""; // Blank value // // Skip any whitespace before the actual text // while (*value == ' ' || *value == '\t') value++; len = strlen(value) - 1; // // Skip any whitespace after the actual text // while (len >= 0 && (value[len] == ' ' || value[len] == '\t')) { value[len] = '\0'; len--; } if (mystrcasecmp((char*)name, "include") == 0) { ParsedString ps(value); String str(ps.get(dcGlobalVars)); if (str[0] != '/') // Given file name not fully qualified { str = filename; // so strip dir. name from current one len = str.lastIndexOf('/') + 1; if (len > 0) str.chop(str.length() - len); else str = ""; // No slash in current filename str << ps.get(dcGlobalVars); } Read(str); line = 0; continue; } AddParsed(name, value); line = 0; } fclose(in); return OK; } //********************************************************************* // void Configuration::Defaults(ConfigDefaults *array) // void Configuration::Defaults(const ConfigDefaults *array) { for (int i = 0; array[i].name; i++) { AddParsed(array[i].name, array[i].value); } } htcheck-2.0.0~rc1.orig/htlib/good_strtok.h0000644000000000000000000000131711177570304015373 0ustar // // good_strtok.h // // good_strtok: The good_strtok() function is very similar to the // standard strtok() library function, except that good_strtok() // will only skip over 1 separator if it finds one. This is // needed when parsing strings with empty fields. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: good_strtok.h,v 1.1.1.1 2000-05-08 11:16:18 angusgb Exp $ // #ifndef _good_strtok_h_ #define _good_strtok_h_ char *good_strtok(char *, char); #endif htcheck-2.0.0~rc1.orig/htlib/HtRegex.h0000644000000000000000000000321511177570304014402 0ustar // // HtRegex.h // // HtRegex: A simple C++ wrapper class for the system regex routines. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtRegex.h,v 1.3 2003-06-20 16:47:30 mnencia Exp $ // // #ifndef _HtRegex_h_ #define _HtRegex_h_ #include "Object.h" #include "StringList.h" // This is an attempt to get around compatibility problems // with the included regex #ifdef HAVE_BROKEN_REGEX #include #else #include "regex.h" #endif #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include class HtRegex : public Object { public: // // Construction/Destruction // HtRegex(); HtRegex(const char *str, int case_sensitive = 0); virtual ~HtRegex(); // // Methods for setting the pattern // int set(const String& str, int case_sensitive = 0) { return set(str.get(), case_sensitive); } int set(const char *str, int case_sensitive = 0); int setEscaped(StringList &list, int case_sensitive = 0); virtual const String &lastError(); // returns the last error message // // Methods for checking a match // int match(const String& str, int nullmatch, int nullstr) { return match(str.get(), nullmatch, nullstr); } int match(const char *str, int nullmatch, int nullstr); protected: int compiled; regex_t re; String lastErrorMessage; }; #endif htcheck-2.0.0~rc1.orig/htlib/good_strtok.cc0000644000000000000000000000205611177570304015532 0ustar // // good_strtok.cc // // good_strtok: The good_strtok() function is very similar to the // standard strtok() library function, except that good_strtok() // will only skip over 1 separator if it finds one. This is // needed when parsing strings with empty fields. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: good_strtok.cc,v 1.1.1.1 2000-05-08 11:16:18 angusgb Exp $ // #include "lib.h" // // Perform the same function as the standard strtok() function except that // multiple separators are NOT collapsed into one. // char *good_strtok(char *str, char term) { static char *string; if (str) { string = str; } if (string == NULL || *string == '\0') return NULL; char *p = string; while (*string && *string!=term) string++; if (*string) *string++ = '\0'; return p; } htcheck-2.0.0~rc1.orig/htlib/List.h0000644000000000000000000001207711177570304013755 0ustar // // List.h // // List: A List class which holds objects of type Object. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: List.h,v 1.2 2001-03-16 08:26:45 angusgb Exp $ // #ifndef _List_h_ #define _List_h_ #include "Object.h" // // Behaviour of the Remove method. See comment before method // declaration for more information. // #define LIST_REMOVE_DESTROY 1 #define LIST_REMOVE_RELEASE 2 class List; class listnode; class ListCursor { public: ListCursor() { current = 0; prev = 0; current_index = -1; } void Clear() { current = 0; prev = 0; current_index = -1; } // // Support for the Start_Get and Get_Next routines // listnode *current; listnode *prev; int current_index; }; class List : public Object { public: // // Constructor/Destructor // List(); virtual ~List(); // // Insert at beginning of list. // virtual void Unshift(Object *o) { Insert(o, 0); } // // Remove from the beginning of the list and return the // object. // virtual Object* Shift(int action = LIST_REMOVE_DESTROY) { Object* o = Nth(0); if(Remove(0, action) == NOTOK) return 0; return o; } // // Append an Object to the end of the list // virtual void Push(Object *o) { Add(o); } // // Remove the last object from the list and return it. // virtual Object *Pop(int action = LIST_REMOVE_DESTROY); // // Add() will append an Object to the end of the list // virtual void Add(Object *); // // Insert() will insert an object at the given position. If the // position is larger than the number of objects in the list, the // object is appended; no new objects are created between the end // of the list and the given position. // virtual void Insert(Object *, int position); // // Assign() will replace the object already at the given position // with the new object. If there is no object at the position,the // list is extended with nil objects until the position is reached // and then the given object is put there. (This really makes the // List analogous to a dynamic array...) // virtual void Assign(Object *, int position); // // Find the given object in the list and remove it from the list. // The object will NOT be deleted. If the object is not found, // NOTOK will be returned, else OK. // virtual int Remove(Object *); // // Remove object at position from the list. If action is // LIST_REMOVE_DESTROY delete the object stored at position. // If action is LIST_REMOVE_RELEASE the object is not deleted. // If the object is not found, // NOTOK will be returned, else OK. // virtual int Remove(int position, int action = LIST_REMOVE_DESTROY); // // Release() will set the list to empty. This call will NOT // delete objects that were in the list before this call. // virtual void Release(); // // Destroy() will delete all the objects in the list. This is // equivalent to calling the destructor // virtual void Destroy(); // // List traversel // void Start_Get() { Start_Get(cursor); } void Start_Get(ListCursor& cursor0) const { cursor0.current = head; cursor0.prev = 0; cursor0.current_index = -1;} Object *Get_Next() { return Get_Next(cursor); } Object *Get_Next(ListCursor& cursor) const; Object *Get_First(); Object *Next(Object *current); Object *Previous(Object *current); Object *Last(); // // Direct access to list items. This can only be used to retrieve // objects from the list. To assign new objects, use Insert(), // Add(), or Assign(). // Object *operator[] (int n) { return Nth(n); } const Object *operator[] (int n) const { return Nth(((List*)this)->cursor, n); } const Object *Nth(ListCursor& cursor, int n) const; const Object *Nth(int n) const { return Nth(((List*)this)->cursor, n); } Object *Nth(int n) { return (Object*)((List*)this)->Nth(((List*)this)->cursor, n); } // // Access to the number of elements // int Count() const { return number; } // // Get the index number of an object. If the object is not found, // returnes -1 // int Index(Object *); // // Deep copy member function // Object *Copy() const; // // Assignment // List &operator= (List *list) {return *this = *list;} List &operator= (List &list); // Move one list to the end of another, emptying the other list. void AppendList (List &list); protected: // // Pointers into the list // listnode *head; listnode *tail; // // For list traversal it is nice to know where we are... // ListCursor cursor; // // Its nice to keep track of how many things we contain... // int number; }; #endif htcheck-2.0.0~rc1.orig/htlib/StringList.cc0000644000000000000000000000702411177570304015276 0ustar // // StringList.cc // // StringList: Specialized List containing String objects. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: StringList.cc,v 1.2 2002-11-14 16:59:04 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "StringList.h" #include "htString.h" #include "List.h" #include //***************************************************************************** // StringList::StringList() // StringList::StringList() { } //***************************************************************************** // int StringList::Create(const char *str, char *sep) // int StringList::Create(const char *str, const char *sep) { String word; while (str && *str) { if (strchr(sep, *str)) { if (word.length()) { List::Add(new String(word)); word = 0; } } else word << *str; str++; } // // Add the last word to the list // if (word.length()) List::Add(new String(word)); return Count(); } //***************************************************************************** // int StringList::Create(const char *str, char sep) // int StringList::Create(const char *str, char sep) { String word; while (str && *str) { if (*str == sep) { if (word.length()) { List::Add(new String(word)); word = 0; } } else word << *str; str++; } // // Add the last word to the list // if (word.length()) List::Add(new String(word)); return Count(); } //***************************************************************************** // char *StringList::operator [] (int n) // char *StringList::operator [] (int n) { String *str = (String *) Nth(n); if (str) return str->get(); else return 0; } //***************************************************************************** // void StringList::Add(char *str) // void StringList::Add(char *str) { List::Add(new String(str)); } //***************************************************************************** // void StringList::Assign(char *str, int pos) // void StringList::Assign(char *str, int pos) { List::Assign(new String(str), pos); } //***************************************************************************** // void StringList::Insert(char *str, int pos) // void StringList::Insert(char *str, int pos) { List::Insert(new String(str), pos); } static int StringCompare(const void *a, const void *b) { String *sa, *sb; sa = *((String **) a); sb = *((String **) b); return strcmp(sa->get(), sb->get()); } //***************************************************************************** // void StringList::Sort(int direction) // void StringList::Sort(int) { String **array = new String*[Count()]; int i; int n = Count(); ListCursor cursor; Start_Get(cursor); Object *obj; for(i = 0; i < n && (obj = Get_Next(cursor)); i++) { array[i] = (String*)obj; } qsort((char *) array, (size_t) n, (size_t) sizeof(String *), StringCompare); Release(); for (i = 0; i < n; i++) { List::Add(array[i]); } delete array; } String StringList::Join(char sep) const { String str; int i; for (i=0; i < number; i++) { if (str.length()) str.append(sep); str.append(*((const String *) Nth(i))); } return str; } htcheck-2.0.0~rc1.orig/htlib/regex.h0000644000000000000000000005150611177570304014154 0ustar /* Definitions for data structures and routines for the regular expression library, version 0.12. Copyright (C) 1985,1989-1993,1995-1998, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _REGEX_H #define _REGEX_H 1 /* Allow the use in C++ code. */ #ifdef __cplusplus extern "C" { #endif /* POSIX says that must be included (by the caller) before . */ #if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS && defined HAVE_STDDEF_H /* VMS doesn't have `size_t' in , even though POSIX says it should be there. */ # include #endif /* The following two types have to be signed and unsigned integer type wide enough to hold a value of a pointer. For most ANSI compilers ptrdiff_t and size_t should be likely OK. Still size of these two types is 2 for Microsoft C. Ugh... */ typedef long int s_reg_t; typedef unsigned long int active_reg_t; /* The following bits are used to determine the regexp syntax we recognize. The set/not-set meanings are chosen so that Emacs syntax remains the value 0. The bits are given in alphabetical order, and the definitions shifted by one from the previous bit; thus, when we add or remove a bit, only one other definition need change. */ typedef unsigned long int reg_syntax_t; /* If this bit is not set, then \ inside a bracket expression is literal. If set, then such a \ quotes the following character. */ #define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1) /* If this bit is not set, then + and ? are operators, and \+ and \? are literals. If set, then \+ and \? are operators and + and ? are literals. */ #define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1) /* If this bit is set, then character classes are supported. They are: [:alpha:], [:upper:], [:lower:], [:digit:], [:alnum:], [:xdigit:], [:space:], [:print:], [:punct:], [:graph:], and [:cntrl:]. If not set, then character classes are not supported. */ #define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1) /* If this bit is set, then ^ and $ are always anchors (outside bracket expressions, of course). If this bit is not set, then it depends: ^ is an anchor if it is at the beginning of a regular expression or after an open-group or an alternation operator; $ is an anchor if it is at the end of a regular expression, or before a close-group or an alternation operator. This bit could be (re)combined with RE_CONTEXT_INDEP_OPS, because POSIX draft 11.2 says that * etc. in leading positions is undefined. We already implemented a previous draft which made those constructs invalid, though, so we haven't changed the code back. */ #define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1) /* If this bit is set, then special characters are always special regardless of where they are in the pattern. If this bit is not set, then special characters are special only in some contexts; otherwise they are ordinary. Specifically, * + ? and intervals are only special when not after the beginning, open-group, or alternation operator. */ #define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1) /* If this bit is set, then *, +, ?, and { cannot be first in an re or immediately after an alternation or begin-group operator. */ #define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1) /* If this bit is set, then . matches newline. If not set, then it doesn't. */ #define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1) /* If this bit is set, then . doesn't match NUL. If not set, then it does. */ #define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1) /* If this bit is set, nonmatching lists [^...] do not match newline. If not set, they do. */ #define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1) /* If this bit is set, either \{...\} or {...} defines an interval, depending on RE_NO_BK_BRACES. If not set, \{, \}, {, and } are literals. */ #define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1) /* If this bit is set, +, ? and | aren't recognized as operators. If not set, they are. */ #define RE_LIMITED_OPS (RE_INTERVALS << 1) /* If this bit is set, newline is an alternation operator. If not set, newline is literal. */ #define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1) /* If this bit is set, then `{...}' defines an interval, and \{ and \} are literals. If not set, then `\{...\}' defines an interval. */ #define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1) /* If this bit is set, (...) defines a group, and \( and \) are literals. If not set, \(...\) defines a group, and ( and ) are literals. */ #define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1) /* If this bit is set, then \ matches . If not set, then \ is a back-reference. */ #define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1) /* If this bit is set, then | is an alternation operator, and \| is literal. If not set, then \| is an alternation operator, and | is literal. */ #define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1) /* If this bit is set, then an ending range point collating higher than the starting range point, as in [z-a], is invalid. If not set, then when ending range point collates higher than the starting range point, the range is ignored. */ #define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1) /* If this bit is set, then an unmatched ) is ordinary. If not set, then an unmatched ) is invalid. */ #define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1) /* If this bit is set, succeed as soon as we match the whole pattern, without further backtracking. */ #define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1) /* If this bit is set, do not process the GNU regex operators. If not set, then the GNU regex operators are recognized. */ #define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) /* If this bit is set, turn on internal regex debugging. If not set, and debugging was on, turn it off. This only works if regex.c is compiled -DDEBUG. We define this bit always, so that all that's needed to turn on debugging is to recompile regex.c; the calling code can always have this bit set, and it won't affect anything in the normal case. */ #define RE_DEBUG (RE_NO_GNU_OPS << 1) /* This global variable defines the particular regexp syntax to use (for some interfaces). When a regexp is compiled, the syntax used is stored in the pattern buffer, so changing this does not affect already-compiled regexps. */ extern reg_syntax_t re_syntax_options; /* Define combinations of the above bits for the standard possibilities. (The [[[ comments delimit what gets put into the Texinfo file, so don't delete them!) */ /* [[[begin syntaxes]]] */ #define RE_SYNTAX_EMACS 0 #define RE_SYNTAX_AWK \ (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \ | RE_NO_BK_PARENS | RE_NO_BK_REFS \ | RE_NO_BK_VBAR | RE_NO_EMPTY_RANGES \ | RE_DOT_NEWLINE | RE_CONTEXT_INDEP_ANCHORS \ | RE_UNMATCHED_RIGHT_PAREN_ORD | RE_NO_GNU_OPS) #define RE_SYNTAX_GNU_AWK \ ((RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DEBUG) \ & ~(RE_DOT_NOT_NULL | RE_INTERVALS | RE_CONTEXT_INDEP_OPS)) #define RE_SYNTAX_POSIX_AWK \ (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS \ | RE_INTERVALS | RE_NO_GNU_OPS) #define RE_SYNTAX_GREP \ (RE_BK_PLUS_QM | RE_CHAR_CLASSES \ | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS \ | RE_NEWLINE_ALT) #define RE_SYNTAX_EGREP \ (RE_CHAR_CLASSES | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE \ | RE_NEWLINE_ALT | RE_NO_BK_PARENS \ | RE_NO_BK_VBAR) #define RE_SYNTAX_POSIX_EGREP \ (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES) /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff. */ #define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC #define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC /* Syntax bits common to both basic and extended POSIX regex syntax. */ #define _RE_SYNTAX_POSIX_COMMON \ (RE_CHAR_CLASSES | RE_DOT_NEWLINE | RE_DOT_NOT_NULL \ | RE_INTERVALS | RE_NO_EMPTY_RANGES) #define RE_SYNTAX_POSIX_BASIC \ (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM) /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes RE_LIMITED_OPS, i.e., \? \+ \| are not recognized. Actually, this isn't minimal, since other operators, such as \`, aren't disabled. */ #define RE_SYNTAX_POSIX_MINIMAL_BASIC \ (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS) #define RE_SYNTAX_POSIX_EXTENDED \ (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INDEP_OPS | RE_NO_BK_BRACES \ | RE_NO_BK_PARENS | RE_NO_BK_VBAR \ | RE_CONTEXT_INVALID_OPS | RE_UNMATCHED_RIGHT_PAREN_ORD) /* Differs from ..._POSIX_EXTENDED in that RE_CONTEXT_INDEP_OPS is removed and RE_NO_BK_REFS is added. */ #define RE_SYNTAX_POSIX_MINIMAL_EXTENDED \ (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES \ | RE_NO_BK_PARENS | RE_NO_BK_REFS \ | RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD) /* [[[end syntaxes]]] */ /* Maximum number of duplicates an interval can allow. Some systems (erroneously) define this in other header files, but we want our value, so remove any previous define. */ #ifdef RE_DUP_MAX # undef RE_DUP_MAX #endif /* If sizeof(int) == 2, then ((1 << 15) - 1) overflows. */ #define RE_DUP_MAX (0x7fff) /* POSIX `cflags' bits (i.e., information for `regcomp'). */ /* If this bit is set, then use extended regular expression syntax. If not set, then use basic regular expression syntax. */ #define REG_EXTENDED 1 /* If this bit is set, then ignore case when matching. If not set, then case is significant. */ #define REG_ICASE (REG_EXTENDED << 1) /* If this bit is set, then anchors do not match at newline characters in the string. If not set, then anchors do match at newlines. */ #define REG_NEWLINE (REG_ICASE << 1) /* If this bit is set, then report only success or fail in regexec. If not set, then returns differ between not matching and errors. */ #define REG_NOSUB (REG_NEWLINE << 1) /* POSIX `eflags' bits (i.e., information for regexec). */ /* If this bit is set, then the beginning-of-line operator doesn't match the beginning of the string (presumably because it's not the beginning of a line). If not set, then the beginning-of-line operator does match the beginning of the string. */ #define REG_NOTBOL 1 /* Like REG_NOTBOL, except for the end-of-line. */ #define REG_NOTEOL (1 << 1) /* If any error codes are removed, changed, or added, update the `re_error_msg' table in regex.c. */ typedef enum { #ifdef _XOPEN_SOURCE REG_ENOSYS = -1, /* This will never happen for this implementation. */ #endif REG_NOERROR = 0, /* Success. */ REG_NOMATCH, /* Didn't find a match (for regexec). */ /* POSIX regcomp return error codes. (In the order listed in the standard.) */ REG_BADPAT, /* Invalid pattern. */ REG_ECOLLATE, /* Not implemented. */ REG_ECTYPE, /* Invalid character class name. */ REG_EESCAPE, /* Trailing backslash. */ REG_ESUBREG, /* Invalid back reference. */ REG_EBRACK, /* Unmatched left bracket. */ REG_EPAREN, /* Parenthesis imbalance. */ REG_EBRACE, /* Unmatched \{. */ REG_BADBR, /* Invalid contents of \{\}. */ REG_ERANGE, /* Invalid range end. */ REG_ESPACE, /* Ran out of memory. */ REG_BADRPT, /* No preceding re for repetition op. */ /* Error codes we've added. */ REG_EEND, /* Premature end. */ REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */ REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */ } reg_errcode_t; /* This data structure represents a compiled pattern. Before calling the pattern compiler, the fields `buffer', `allocated', `fastmap', `translate', and `no_sub' can be set. After the pattern has been compiled, the `re_nsub' field is available. All other fields are private to the regex routines. */ #ifndef RE_TRANSLATE_TYPE # define RE_TRANSLATE_TYPE char * #endif struct re_pattern_buffer { /* [[[begin pattern_buffer]]] */ /* Space that holds the compiled pattern. It is declared as `unsigned char *' because its elements are sometimes used as array indexes. */ unsigned char *buffer; /* Number of bytes to which `buffer' points. */ unsigned long int allocated; /* Number of bytes actually used in `buffer'. */ unsigned long int used; /* Syntax setting with which the pattern was compiled. */ reg_syntax_t syntax; /* Pointer to a fastmap, if any, otherwise zero. re_search uses the fastmap, if there is one, to skip over impossible starting points for matches. */ char *fastmap; /* Either a translate table to apply to all characters before comparing them, or zero for no translation. The translation is applied to a pattern when it is compiled and to a string when it is matched. */ RE_TRANSLATE_TYPE translate; /* Number of subexpressions found by the compiler. */ size_t re_nsub; /* Zero if this pattern cannot match the empty string, one else. Well, in truth it's used only in `re_search_2', to see whether or not we should use the fastmap, so we don't set this absolutely perfectly; see `re_compile_fastmap' (the `duplicate' case). */ unsigned can_be_null : 1; /* If REGS_UNALLOCATED, allocate space in the `regs' structure for `max (RE_NREGS, re_nsub + 1)' groups. If REGS_REALLOCATE, reallocate space if necessary. If REGS_FIXED, use what's there. */ #define REGS_UNALLOCATED 0 #define REGS_REALLOCATE 1 #define REGS_FIXED 2 unsigned regs_allocated : 2; /* Set to zero when `regex_compile' compiles a pattern; set to one by `re_compile_fastmap' if it updates the fastmap. */ unsigned fastmap_accurate : 1; /* If set, `re_match_2' does not return information about subexpressions. */ unsigned no_sub : 1; /* If set, a beginning-of-line anchor doesn't match at the beginning of the string. */ unsigned not_bol : 1; /* Similarly for an end-of-line anchor. */ unsigned not_eol : 1; /* If true, an anchor at a newline matches. */ unsigned newline_anchor : 1; /* [[[end pattern_buffer]]] */ }; typedef struct re_pattern_buffer regex_t; /* Type for byte offsets within the string. POSIX mandates this. */ typedef int regoff_t; /* This is the structure we store register match data in. See regex.texinfo for a full description of what registers match. */ struct re_registers { unsigned num_regs; regoff_t *start; regoff_t *end; }; /* If `regs_allocated' is REGS_UNALLOCATED in the pattern buffer, `re_match_2' returns information about at least this many registers the first time a `regs' structure is passed. */ #ifndef RE_NREGS # define RE_NREGS 30 #endif /* POSIX specification for registers. Aside from the different names than `re_registers', POSIX uses an array of structures, instead of a structure of arrays. */ typedef struct { regoff_t rm_so; /* Byte offset from string's start to substring's start. */ regoff_t rm_eo; /* Byte offset from string's start to substring's end. */ } regmatch_t; /* Declarations for routines. */ /* To avoid duplicating every routine declaration -- once with a prototype (if we are ANSI), and once without (if we aren't) -- we use the following macro to declare argument types. This unfortunately clutters up the declarations a bit, but I think it's worth it. */ #if __STDC__ # define _RE_ARGS(args) args #else /* not __STDC__ */ # define _RE_ARGS(args) () #endif /* not __STDC__ */ /* Sets the current default syntax to SYNTAX, and return the old syntax. You can also simply assign to the `re_syntax_options' variable. */ extern reg_syntax_t re_set_syntax _RE_ARGS ((reg_syntax_t syntax)); /* Compile the regular expression PATTERN, with length LENGTH and syntax given by the global `re_syntax_options', into the buffer BUFFER. Return NULL if successful, and an error string if not. */ extern const char *re_compile_pattern _RE_ARGS ((const char *pattern, size_t length, struct re_pattern_buffer *buffer)); /* Compile a fastmap for the compiled pattern in BUFFER; used to accelerate searches. Return 0 if successful and -2 if was an internal error. */ extern int re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer)); /* Search in the string STRING (with length LENGTH) for the pattern compiled into BUFFER. Start searching at position START, for RANGE characters. Return the starting position of the match, -1 for no match, or -2 for an internal error. Also return register information in REGS (if REGS and BUFFER->no_sub are nonzero). */ extern int re_search _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, int range, struct re_registers *regs)); /* Like `re_search', but search in the concatenation of STRING1 and STRING2. Also, stop searching at index START + STOP. */ extern int re_search_2 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, int range, struct re_registers *regs, int stop)); /* Like `re_search', but return how many characters in STRING the regexp in BUFFER matched, starting at position START. */ extern int re_match _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, struct re_registers *regs)); /* Relates to `re_match' as `re_search_2' relates to `re_search'. */ extern int re_match_2 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, struct re_registers *regs, int stop)); /* Set REGS to hold NUM_REGS registers, storing them in STARTS and ENDS. Subsequent matches using BUFFER and REGS will use this memory for recording register information. STARTS and ENDS must be allocated with malloc, and must each be at least `NUM_REGS * sizeof (regoff_t)' bytes long. If NUM_REGS == 0, then subsequent matches should allocate their own register data. Unless this function is called, the first search or match using PATTERN_BUFFER will allocate its own register data, without freeing the old data. */ extern void re_set_registers _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs, unsigned num_regs, regoff_t *starts, regoff_t *ends)); #if defined _REGEX_RE_COMP || defined _LIBC # ifndef _CRAY /* 4.2 bsd compatibility. */ extern char *re_comp _RE_ARGS ((const char *)); extern int re_exec _RE_ARGS ((const char *)); # endif #endif /* GCC 2.95 and later have "__restrict"; C99 compilers have "restrict", and "configure" may have defined "restrict". */ #ifndef __restrict # if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__)) # if defined restrict || 199901L <= __STDC_VERSION__ # define __restrict restrict # else # define __restrict # endif # endif #endif /* For now unconditionally define __restrict_arr to expand to nothing. Ideally we would have a test for the compiler which allows defining it to restrict. */ #define __restrict_arr /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *__restrict __preg, const char *__restrict __pattern, int __cflags)); extern int regexec _RE_ARGS ((const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[__restrict_arr], int __eflags)); extern size_t regerror _RE_ARGS ((int __errcode, const regex_t *__preg, char *__errbuf, size_t __errbuf_size)); extern void regfree _RE_ARGS ((regex_t *__preg)); #ifdef __cplusplus } #endif /* C++ */ #endif /* regex.h */ /* Local variables: make-backup-files: t version-control: t trim-versions-without-asking: nil End: */ htcheck-2.0.0~rc1.orig/htlib/Dictionary.cc0000644000000000000000000002056511177570304015306 0ustar // // Dictionary.cc // // Dictionary: This class provides an object lookup table. // Each object in the dictionary is indexed with a string. // The objects can be returned by mentioning their // string index. // // Part of the ht://Dig package // Copyright (c) 1995-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Dictionary.cc,v 1.4 2003-01-27 13:10:54 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Dictionary.h" #include class DictionaryEntry { public: unsigned int hash; char *key; Object *value; DictionaryEntry *next; ~DictionaryEntry(); void release(); }; DictionaryEntry::~DictionaryEntry() { free(key); delete value; } void DictionaryEntry::release() { value = NULL; // Prevent the value from being deleted } //********************************************************************* // Dictionary::Dictionary() { init(101, 10.0f); } Dictionary::Dictionary(int initialCapacity, float loadFactor) { init(initialCapacity, loadFactor); } Dictionary::Dictionary(int initialCapacity) { init(initialCapacity, 0.75f); } Dictionary::Dictionary(const Dictionary& other) { init(other.initialCapacity, other.loadFactor); DictionaryCursor cursor; const char* key; for(other.Start_Get(cursor); (key = other.Get_Next(cursor));) { Add(key, other[key]); } } //********************************************************************* // Dictionary::~Dictionary() { Destroy(); delete [] table; } //********************************************************************* // void Dictionary::Destroy() { DictionaryEntry *t, *n; for (int i = 0; i < tableLength; i++) { if (table[i] != NULL) { t = table[i]; do { // clear out hash chain n = t->next; delete t; t = n; } while (n); table[i] = NULL; } } count = 0; } //********************************************************************* // void Dictionary::Release() { DictionaryEntry *t, *n; for (int i = 0; i < tableLength; i++) { if (table[i] != NULL) { t = table[i]; do { // clear out hash chain n = t->next; t->release(); delete t; t = n; } while (n); table[i] = NULL; } } count = 0; } //********************************************************************* // void Dictionary::init(int initialCapacity, float loadFactor) { if (initialCapacity <= 0) initialCapacity = 101; if (loadFactor <= 0.0) loadFactor = 0.75f; Dictionary::loadFactor = loadFactor; table = new DictionaryEntry*[initialCapacity]; for (int i = 0; i < initialCapacity; i++) { table[i] = NULL; } threshold = (int)(initialCapacity * loadFactor); tableLength = initialCapacity; count = 0; } //********************************************************************* // unsigned int Dictionary::hashCode(const char *key) const { char *test; long conv_key = strtol(key, &test, 10); if (key && *key && !*test) // Conversion succeeded return conv_key; char *base = (char*)malloc(strlen(key) + 2); char *tmp_key = base; strcpy(tmp_key, key); unsigned int h = 0; int length = strlen(tmp_key); if (length >= 16) { tmp_key += strlen(tmp_key) - 15; length = strlen(tmp_key); } for (int i = length; i > 0; i--) { h = (h*37) + *tmp_key++; } free(base); return h; } //********************************************************************* // Add an entry to the hash table. This will replace the // data associated with an already existing key. // void Dictionary::Add(const String& name, Object *obj) { unsigned int hash = hashCode(name); int index = hash % tableLength; DictionaryEntry *e; for (e = table[index]; e != NULL; e = e->next) { if (e->hash == hash && strcmp(e->key, name) == 0) { delete e->value; e->value = obj; return; } } if (count >= threshold) { rehash(); Add(name, obj); return; } e = new DictionaryEntry(); e->hash = hash; e->key = strdup(name); e->value = obj; e->next = table[index]; table[index] = e; count++; } //********************************************************************* // Remove an entry from the hash table. // int Dictionary::Remove(const String& name) { if (!count) return 0; unsigned int hash = hashCode(name); int index = hash % tableLength; DictionaryEntry *e, *prev; for (e = table[index], prev = NULL; e != NULL; prev = e, e = e->next) { if (hash == e->hash && strcmp(e->key, name) == 0) { if (prev != NULL) { prev->next = e->next; } else { table[index] = e->next; } count--; delete e; return 1; } } return 0; } //********************************************************************* // Object *Dictionary::Find(const String& name) const { if (!count) return NULL; unsigned int hash = hashCode(name); int index = hash % tableLength; DictionaryEntry *e; for (e = table[index]; e != NULL; e = e->next) { if (e->hash == hash && strcmp(e->key, name) == 0) { return e->value; } } return NULL; } //********************************************************************* // Object *Dictionary::operator[](const String& name) const { return Find(name); } //********************************************************************* // int Dictionary::Exists(const String& name) const { if (!count) return 0; unsigned int hash = hashCode(name); int index = hash % tableLength; DictionaryEntry *e; for (e = table[index]; e != NULL; e = e->next) { if (e->hash == hash && strcmp(e->key, name) == 0) { return 1; } } return 0; } //********************************************************************* // void Dictionary::rehash() { DictionaryEntry **oldTable = table; int oldCapacity = tableLength; int newCapacity; DictionaryEntry *e; int i, index; newCapacity = count > oldCapacity ? count * 2 + 1 : oldCapacity * 2 + 1; DictionaryEntry **newTable = new DictionaryEntry*[newCapacity]; for (i = 0; i < newCapacity; i++) { newTable[i] = NULL; } threshold = (int) (newCapacity * loadFactor); table = newTable; tableLength = newCapacity; for (i = oldCapacity; i-- > 0;) { for (DictionaryEntry *old = oldTable[i]; old != NULL;) { e = old; old = old->next; index = e->hash % newCapacity; e->next = newTable[index]; newTable[index] = e; } } delete [] oldTable; } //********************************************************************* // void Dictionary::Start_Get(DictionaryCursor& cursor) const { cursor.currentTableIndex = -1; cursor.currentDictionaryEntry = NULL; } //********************************************************************* // char * Dictionary::Get_Next(DictionaryCursor& cursor) const { while (cursor.currentDictionaryEntry == NULL || cursor.currentDictionaryEntry->next == NULL) { cursor.currentTableIndex++; if (cursor.currentTableIndex >= tableLength) { cursor.currentTableIndex--; return NULL; } cursor.currentDictionaryEntry = table[cursor.currentTableIndex]; if (cursor.currentDictionaryEntry != NULL) { return cursor.currentDictionaryEntry->key; } } cursor.currentDictionaryEntry = cursor.currentDictionaryEntry->next; return cursor.currentDictionaryEntry->key; } //********************************************************************* // Object * Dictionary::Get_NextElement(DictionaryCursor& cursor) const { while (cursor.currentDictionaryEntry == NULL || cursor.currentDictionaryEntry->next == NULL) { cursor.currentTableIndex++; if (cursor.currentTableIndex >= tableLength) { cursor.currentTableIndex--; return NULL; } cursor.currentDictionaryEntry = table[cursor.currentTableIndex]; if (cursor.currentDictionaryEntry != NULL) { return cursor.currentDictionaryEntry->value; } } cursor.currentDictionaryEntry = cursor.currentDictionaryEntry->next; return cursor.currentDictionaryEntry->value; } htcheck-2.0.0~rc1.orig/htlib/HtVector.cc0000644000000000000000000001623711177570304014740 0ustar // // HtVector.cc // // HtVector: A Vector class which holds objects of type Object. // (A vector is an array that can expand as necessary) // This class is very similar in interface to the List class // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtVector.cc,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtVector.h" //********************************************************************* // void HtVector::HtVector() // Default constructor // HtVector::HtVector() { data = new Object *[4]; // After all, why would anyone want an empty vector? element_count = 0; allocated = 4; current_index = -1; } //********************************************************************* // void HtVector::HtVector(int capacity) // Constructor with known capacity // (has the side effect of not allocating double memory) // HtVector::HtVector(int capacity) { data = new Object *[capacity]; element_count = 0; allocated = capacity; current_index = -1; } //********************************************************************* // void HtVector::~HtVector() // Destructor // HtVector::~HtVector() { Destroy(); } //********************************************************************* // void HtVector::Release() // Remove all objects from the vector, but do not delete them void HtVector::Release() { for (current_index = 0; current_index < element_count; current_index++) { data[current_index] = NULL; } if (data) delete [] data; data = NULL; allocated = 0; element_count = 0; current_index = -1; } //********************************************************************* // void HtVector::Destroy() // Deletes all objects from the vector // void HtVector::Destroy() { for (current_index = 0; current_index < element_count; current_index++) if (data[current_index]) { delete data[current_index]; data[current_index] = NULL; } if (data) delete [] data; data = NULL; allocated = 0; element_count = 0; current_index = -1; } //********************************************************************* // void HtVector::Add(Object *object) // Add an object to the list. // void HtVector::Add(Object *object) { Allocate(element_count+1); data[element_count] = object; element_count += 1; } //********************************************************************* // void HtVector::Insert(Object *object, int position) // Add an object into the list. // void HtVector::Insert(Object *object, int position) { if (position < 0) return; if (position >= element_count) { Add(object); return; } Allocate(element_count + 1); for (int i = element_count; i > position; i--) data[i] = data[i-1]; data[position] = object; element_count += 1; } //********************************************************************* // void HtVector::Assign(Object *object, int position) // Assign an object to the position // void HtVector:: Assign(Object *object, int position) { // Simply perform an insert, followed by a remove! Insert(object, position); RemoveFrom(position + 1); return; } //********************************************************************* // int HtVector::Remove(Object *object) // Remove an object from the list. // int HtVector::Remove(Object *object) { return RemoveFrom(Index(object)); } //********************************************************************* // int HtVector::RemoveFrom(int position) // Remove an object from the list. // int HtVector::RemoveFrom(int position) { if (position < 0 || position >= element_count) return NOTOK; for (int i = position; i < element_count - 1; i++) data[i] = data[i+1]; element_count -= 1; return OK; } //********************************************************************* // Object *HtVector::Get_Next() // Return the next object in the list. // Object *HtVector::Get_Next() { current_index++; if (current_index >= element_count) return 0; return data[current_index]; } //********************************************************************* // Object *HtVector::Get_First() // Return the first object in the list. // Object *HtVector::Get_First() { if (!IsEmpty()) { current_index = 0; return data[0]; } else return 0; } //********************************************************************* // int HtVector::Index(Object *obj) // Return the index of an object in the list. // int HtVector::Index(Object *obj) { int index = 0; while (index < element_count && data[index] != obj) { index++; } if (index >= element_count) return -1; else return index; } //********************************************************************* // Object *HtVector::Next(Object *prev) // Return the next object in the list. Using this, the list will // appear as a circular list. // Object *HtVector::Next(Object *prev) { current_index = Index(prev); if (current_index == -1) return 0; current_index++; // We should probably do this with remainders if (current_index >= element_count) current_index = 0; return data[current_index]; } //********************************************************************* // Object *HtVector::Previous(Object *next) // Return the previous object in the vector. Using this, the vector will // appear as a circular list. // Object *HtVector::Previous(Object *next) { current_index = Index(next); if (current_index == -1) return 0; current_index--; // We should probably do this with remainders if (current_index < 0) current_index = element_count - 1; return data[current_index]; } //********************************************************************* // Object *HtVector::Copy() const // Return a deep copy of the vector. // Object *HtVector::Copy() const { HtVector *vector = new HtVector(allocated); for(int i = 0; i < Count(); i++) vector->Add(data[i]->Copy()); return vector; } //********************************************************************* // HtVector &HtVector::operator=(HtVector &vector) // Return a deep copy of the list. // HtVector &HtVector::operator=(HtVector &vector) { Destroy(); for(int i = 0; i < vector.Count(); i++) Add(vector.data[i]->Copy()); return *this; } //********************************************************************* // int Allocate(int capacity) // Ensure there is at least capacity space in the vector // void HtVector::Allocate(int capacity) { if (capacity > allocated) // Darn, we actually have to do work :-) { Object **old_data = data; // Ensure we have more than the capacity and we aren't // always rebuilding the vector (which leads to quadratic behavior) while (allocated < capacity) allocated *= 2; data = new Object *[allocated]; for (int i = 0; i < element_count; i++) { data[i] = old_data[i]; old_data[i] = NULL; } if (old_data) delete [] old_data; } } htcheck-2.0.0~rc1.orig/htlib/raise.c0000644000000000000000000000102711177570304014131 0ustar /*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 1998, 1999 * Sleepycat Software. All rights reserved. */ #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifndef HAVE_RAISE #ifndef NO_SYSTEM_INCLUDES #include #include #endif /* * raise -- * Send a signal to the current process. * * PUBLIC: #ifndef HAVE_RAISE * PUBLIC: int raise __P((int)); * PUBLIC: #endif */ int raise(s) int s; { return (kill(getpid(), s)); } #endif /* HAVE_RAISE */ htcheck-2.0.0~rc1.orig/htlib/Stack.h0000644000000000000000000000157511177570304014110 0ustar // // Stack.h // // Stack: This class implements a linked list of objects. It itself is also an // object // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: Stack.h,v 1.1.1.1 2000-05-08 11:15:02 angusgb Exp $ // #ifndef _Stack_h_ #define _Stack_h_ #include "Object.h" class Stack : public Object { public: // // Constructors/Destructor // Stack(); ~Stack(); // // Stack access // void push(Object *obj); Object *peek(); Object *pop(); int Size() {return size;} // // Stack destruction // void destroy(); protected: // // These variables are to keep track of the linked list // void *sp; int size; }; #endif htcheck-2.0.0~rc1.orig/htlib/HtPack.h0000644000000000000000000000223411177570304014206 0ustar // // HtPack.h // // HtPack: Compress and uncompress data in e.g. simple structures. // The structure must have the layout defined in the ABI; // the layout the compiler generates. // // Much like the pack()/unpack() function pair in perl, but // compressing, not "packing into a binary structure". // // Note that the contents of the returned "String" is not // necessarily aligned to allow using it as a struct. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: HtPack.h,v 1.1.1.1 2000-05-08 11:13:43 angusgb Exp $ // #ifndef __HtPack_h #define __HtPack_h #include "htString.h" // Pack. // The parameter "format" is not const but should normally be. extern String htPack(const char format[], const char *theStruct); // Unpack. // The parameter "theString" will be updated to point after the // processed amount of data. extern String htUnpack(const char format[], const char *thePackedData); #endif // __HtPack_h htcheck-2.0.0~rc1.orig/htlib/HtRegex.cc0000644000000000000000000000444011177570304014541 0ustar // // HtRegex.cc // // HtRegex: A simple C++ wrapper class for the system regex routines. // // Part of the ht://Dig package // Copyright (c) 1999-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtRegex.cc,v 1.3 2003-01-27 13:10:54 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtRegex.h" #include HtRegex::HtRegex() : compiled(0) { } HtRegex::HtRegex(const char *str, int case_sensitive) : compiled(0) { set(str, case_sensitive); } HtRegex::~HtRegex() { if (compiled != 0) regfree(&re); compiled = 0; } const String &HtRegex::lastError() { return lastErrorMessage; } int HtRegex::set(const char * str, int case_sensitive) { if (compiled != 0) regfree(&re); int err; compiled = 0; if (str == NULL) return 0; if (strlen(str) <= 0) return 0; if (err = regcomp(&re, str, case_sensitive ? REG_EXTENDED : (REG_EXTENDED|REG_ICASE)), err == 0) { compiled = 1; } else { size_t len = regerror(err, &re, 0, 0); char *buf = new char[len]; regerror(err, &re, buf, len); lastErrorMessage = buf; delete buf; } return compiled; } int HtRegex::setEscaped(StringList &list, int case_sensitive) { String *str; String transformedLimits; list.Start_Get(); while ((str = (String *) list.Get_Next())) { if (str->indexOf('[') == 0 && str->lastIndexOf(']') == str->length()-1) { transformedLimits << str->sub(1,str->length()-2).get(); } else // Backquote any regex special characters { for (int pos = 0; pos < str->length(); pos++) { if (strchr("^.[$()|*+?{\\", str->Nth(pos))) transformedLimits << '\\'; transformedLimits << str->Nth(pos); } } transformedLimits << "|"; } transformedLimits.chop(1); return set(transformedLimits, case_sensitive); } int HtRegex::match(const char * str, int nullpattern, int nullstr) { int rval; if (compiled == 0) return(nullpattern); if (str == NULL) return(nullstr); if (strlen(str) <= 0) return(nullstr); rval = regexec(&re, str, (size_t) 0, NULL, 0); if (rval == 0) return(1); else return(0); } htcheck-2.0.0~rc1.orig/htlib/HtHeap.h0000644000000000000000000000472611177570304014215 0ustar // // HtHeap.h // // HtHeap: A Heap class which holds objects of type Object. // (A heap is a semi-ordered tree-like structure. // it ensures that the first item is *always* the largest. // NOTE: To use a heap, you must implement the Compare() function for // your Object classes. The assumption used here is -1 means // less-than, 0 means equal, and +1 means greater-than. Thus // this is a "min heap" for that definition.) // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtHeap.h,v 1.2 2002-11-14 17:09:01 angusgb Exp $ // // #ifndef _HtHeap_h_ #define _HtHeap_h_ #include "Object.h" #include "HtVector.h" class HtHeap : public Object { public: // // Constructor/Destructor // HtHeap(); HtHeap(HtVector vector); ~HtHeap(); // // Add() will add an Object to the heap in the appropriate location // void Add(Object *); // // Destroy() will delete all the objects in the heap. This is // equivalent to calling the destructor // void Destroy(); // // Peek() will return a reference to the top object in the heap. // Object *Peek() {return data->Nth(0);} // // Remove() will return a reference as Peek() but will also // remove the reference from the heap and re-heapify // Object *Remove(); // // Access to the number of elements // int Count() {return data->Count();} int IsEmpty() {return data->IsEmpty();} // // Deep copy member function // Object *Copy() const; // // Assignment // HtHeap &operator= (HtHeap *heap) {return *this = *heap;} HtHeap &operator= (HtHeap &heap); protected: // The vector class should keep track of everything for us HtVector *data; // Functions for establishing the relations between elements int parentOf (int i) { return (i - 1)/2; } int leftChildOf (int i) { return 2*i + 1; } int rightChildOf (int i) { return 2* (i+1); } // Protected procedures for performing heap-making operations void percolateUp (int leaf); // pushes the node up as far as possible void pushDownRoot (int root); // pushes the node down as necessary }; #endif htcheck-2.0.0~rc1.orig/htlib/Object.cc0000644000000000000000000000275211177570304014405 0ustar // // Object.cc // // Object: This baseclass defines how an object should behave. // This includes the ability to be put into a list // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Object.cc,v 1.3 2002-11-14 17:09:01 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Object.h" #include //*************************************************************************** // Object::Object() // #ifdef NOINLINE Object::Object() { } //*************************************************************************** // Object::~Object() // Object::~Object() { } //*************************************************************************** // int Object::compare(Object *) // int Object::compare(Object *) { return 0; } //*************************************************************************** // Object *Object::Copy() // Object *Object::Copy() { return new Object; } //*************************************************************************** // void Object::Serialize(String &) // void Object::Serialize(String &) { } //*************************************************************************** // void Object::Deserialize(String &, int &) // void Object::Deserialize(String &, int &) { } #endif htcheck-2.0.0~rc1.orig/htlib/timegm.c0000755000000000000000000000727711177570304014330 0ustar /* timegm.cc timegm: Portable version of timegm (mytimegm) for ht://Dig Based on a version from the GNU C Library and a previous implementation for ht://Dig Part of the ht://Dig package Copyright (c) 1999 The ht://Dig Group For copyright details, see the file COPYING in your distribution or the GNU Public License version 2 or later $Id: timegm.c,v 1.2 2002-11-14 16:59:04 angusgb Exp $ */ /* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert (eggert@twinsun.com). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* #define TEST_TIMEGM */ #include #ifdef TEST_TIMEGM #include #include #endif static struct tm *my_mktime_gmtime_r (const time_t *t, struct tm *tp); static struct tm *my_mktime_gmtime_r (const time_t *t, struct tm *tp) { struct tm *l = gmtime (t); if (! l) return 0; *tp = *l; return tp; } time_t __mktime_internal(struct tm *, struct tm *(*) (const time_t *, struct tm *), time_t *); time_t Httimegm(tmp) struct tm *tmp; { static time_t gmtime_offset; tmp->tm_isdst = 0; return __mktime_internal (tmp, my_mktime_gmtime_r, &gmtime_offset); } #ifdef TEST_TIMEGM void parse_time(char *s, struct tm *tm) { sscanf(s, "%d.%d.%d %d:%d:%d", &tm->tm_year, &tm->tm_mon, &tm->tm_mday, &tm->tm_hour, &tm->tm_min, &tm->tm_sec); tm->tm_year -= 1900; tm->tm_mon--; } void print_time(struct tm *tm) { fprintf(stderr, "%04d.%02d.%02d %02d:%02d:%02d", tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); } int time_equal(struct tm *tm1, struct tm *tm2) { return ((tm1->tm_year == tm2->tm_year) && (tm1->tm_mon == tm2->tm_mon) && (tm1->tm_mday == tm2->tm_mday) && (tm1->tm_hour == tm2->tm_hour) && (tm1->tm_min == tm2->tm_min) && (tm1->tm_sec == tm2->tm_sec)); } int main(void) { char *test_dates[] = { "1970.01.01 00:00:00", "1970.01.01 00:00:01", "1972.02.05 23:59:59", "1972.02.28 00:59:59", "1972.02.28 23:59:59", "1972.02.29 00:00:00", "1972.03.01 13:00:04", "1973.03.01 12:00:00", "1980.01.01 00:00:05", "1984.12.31 23:00:00", "1997.06.05 17:55:35", "1999.12.31 23:00:00", "2000.01.01 00:00:05", "2000.02.28 23:00:05", "2000.02.29 23:00:05", "2000.03.01 00:00:05", "2007.06.05 17:55:35", "2038.01.19 03:14:07", 0 }; int i, ok = 1; struct tm orig, *conv; time_t t; for (i = 0; (test_dates[i]); i++) { parse_time(test_dates[i], &orig); t = Httimegm(&orig); conv = gmtime(&t); if (!time_equal(&orig, conv)) { fprintf(stderr, "timegm() test failed!\n Original: "); print_time(&orig); fprintf(stderr, "\n Converted: "); print_time(conv); fprintf(stderr, "\n time_t: %ld\n", (long) t); ok = 0; } } exit(ok ? 0 : 1); } #endif htcheck-2.0.0~rc1.orig/htlib/StringMatch.cc0000644000000000000000000003232011177570304015414 0ustar // // StringMatch.cc // // StringMatch: This class provides an interface to a fairly specialized string // lookup facility. It is intended to be used as a replace for any // regualr expression matching when the pattern string is in the form: // // |||... // // Just like regular expression routines, the pattern needs to be // compiled before it can be used. This is done using the Pattern() // member function. Once the pattern has been compiled, the member // function Find() can be used to search for the pattern in a string. // If a string has been found, the "which" and "length" parameters // will be set to the string index and string length respectively. // (The string index is counted starting from 0) The return value of // Find() is the position at which the string was found or -1 if no // strings could be found. If a case insensitive match needs to be // performed, call the IgnoreCase() member function before calling // Pattern(). This function will setup a character translation table // which will convert all uppercase characters to lowercase. If some // other translation is required, the TranslationTable() member // function can be called to provide a custom table. This table needs // to be 256 characters. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: StringMatch.cc,v 1.3 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "StringMatch.h" #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include #include // // Entries in the state table can either be normal or final. // Final states have an match index encoded in them. This number // is shifted left by INDEX_SHIFT bits. // #define MATCH_INDEX_MASK 0xffff0000 #define STATE_MASK 0x0000ffff #define INDEX_SHIFT 16 //***************************************************************************** // StringMatch::StringMatch() // StringMatch::StringMatch() { // // Clear out the state table pointers // for (int i = 0; i < 256; i++) table[i] = 0; local_alloc = 0; trans = 0; } //***************************************************************************** // StringMatch::~StringMatch() // StringMatch::~StringMatch() { for (int i = 0; i < 256; i++) delete [] table[i]; if (local_alloc) delete [] trans; } //***************************************************************************** // void StringMatch::Pattern(char *pattern) // Compile the given pattern into a state transition table // void StringMatch::Pattern(char *pattern, char sep) { if (!pattern || !*pattern) { // // No pattern to compile... // return; } // // Allocate enough space in the state table to hold the worst case // patterns... // int n = strlen(pattern); // ...but since the state table does not need an extra state // for each string in the pattern, we can subtract the number // of separators. Wins for small but numerous strings in // the pattern. char *tmpstr; for (tmpstr = pattern; (tmpstr = strchr(tmpstr, sep)) != NULL; tmpstr++) // Pass the separator. n--; int i; for (i = 0; i < 256; i++) { table[i] = new int[n]; memset((unsigned char *) table[i], 0, n * sizeof(int)); } for (i = 0; i < n; i++) table[0][i] = i; // "no-op" states for null char, to be ignored // // Set up a standard case translation table if needed. // if (!trans) { trans = new unsigned char[256]; for (i = 0; i < 256; i++) { trans[i] = (unsigned char)i; } local_alloc = 1; } // // Go though each of the patterns and build entries in the table. // int state = 0; int totalStates = 0; unsigned char previous = 0; int previousState = 0; int previousValue = 0; int index = 1; unsigned char chr; while ((unsigned char)*pattern) { #if 0 if (totalStates > n) { cerr << "Fatal! Miscalculation of number of states" << endl; exit (2); } #endif chr = trans[(unsigned char)*pattern]; if (chr == 0) { pattern++; continue; } if (chr == sep) { // // Next pattern // table[previous][previousState] = previousValue | (index << INDEX_SHIFT); index++; state = 0; // totalStates--; } else { previousValue = table[chr][state]; previousState = state; if (previousValue) { if (previousValue & MATCH_INDEX_MASK) { if (previousValue & STATE_MASK) { state = previousValue & STATE_MASK; } else { table[chr][state] |= ++totalStates; state = totalStates; } } else { state = previousValue & STATE_MASK; } } else { table[chr][state] = ++totalStates; state = totalStates; } } previous = chr; pattern++; } table[previous][previousState] = previousValue | (index << INDEX_SHIFT); } //***************************************************************************** // int StringMatch::FindFirst(const char *string, int &which, int &length) // Attempt to find the first occurance of the previous compiled patterns. // int StringMatch::FindFirst(const char *string, int &which, int &length) { which = -1; length = -1; if (!table[0]) return 0; int state = 0, new_state = 0; int pos = 0; int start_pos = 0; while ((unsigned char)string[pos]) { new_state = table[trans[(unsigned char)string[pos] & 0xff]][state]; if (new_state) { if (state == 0) { // // Keep track of where we started comparing so that we can // come back to this point later if we didn't match anything // start_pos = pos; } } else { // // We came back to 0 state. This means we didn't match anything. // if (state) { // But we may already have a match, and are just being greedy. if (which != -1) return start_pos; pos = start_pos + 1; } else pos++; state = 0; continue; } state = new_state; if (state & MATCH_INDEX_MASK) { // // Matched one of the patterns. // Determine which and return. // which = ((unsigned int) (state & MATCH_INDEX_MASK) >> INDEX_SHIFT) - 1; length = pos - start_pos + 1; state &= STATE_MASK; // Continue to find the longest, if there is one. if (state == 0) return start_pos; } pos++; } // Maybe we were too greedy. if (which != -1) return start_pos; return -1; } //***************************************************************************** // int StringMatch::Compare(const char *string, int &which, int &length) // int StringMatch::Compare(const char *string, int &which, int &length) { which = -1; length = -1; if (!table[0]) return 0; int state = 0, new_state = 0; int pos = 0; int start_pos = 0; // // Skip to at least the start of a word. // while ((unsigned char)string[pos]) { new_state = table[trans[string[pos]]][state]; if (new_state) { if (state == 0) { start_pos = pos; } } else { // We may already have a match, and are just being greedy. if (which != -1) return 1; return 0; } state = new_state; if (state & MATCH_INDEX_MASK) { // // Matched one of the patterns. // which = ((unsigned int) (state & MATCH_INDEX_MASK) >> INDEX_SHIFT) - 1; length = pos - start_pos + 1; // Continue to find the longest, if there is one. state &= STATE_MASK; if (state == 0) return 1; } pos++; } // Maybe we were too greedy. if (which != -1) return 1; return 0; } //***************************************************************************** // int StringMatch::FindFirstWord(char *string) // int StringMatch::FindFirstWord(const char *string) { int dummy; return FindFirstWord(string, dummy, dummy); } //***************************************************************************** // int StringMatch::CompareWord(const char *string) // int StringMatch::CompareWord(const char *string) { int dummy; return CompareWord(string, dummy, dummy); } //***************************************************************************** // int StringMatch::FindFirstWord(char *string, int &which, int &length) // Attempt to find the first occurance of the previous compiled patterns. // int StringMatch::FindFirstWord(const char *string, int &which, int &length) { which = -1; length = -1; int state = 0, new_state = 0; int pos = 0; int start_pos = 0; int is_word = 1; // // Skip to at least the start of a word. // while ((unsigned char)string[pos]) { new_state = table[trans[(unsigned char)string[pos]]][state]; if (new_state) { if (state == 0) { start_pos = pos; } } else { // // We came back to 0 state. This means we didn't match anything. // if (state) { pos = start_pos + 1; } else pos++; state = 0; continue; } state = new_state; if (state & MATCH_INDEX_MASK) { // // Matched one of the patterns. // is_word = 1; if (start_pos != 0) { if (HtIsStrictWordChar((unsigned char)string[start_pos - 1])) is_word = 0; } if (HtIsStrictWordChar((unsigned char)string[pos + 1])) is_word = 0; if (is_word) { // // Determine which and return. // which = ((unsigned int) (state & MATCH_INDEX_MASK) >> INDEX_SHIFT) - 1; length = pos - start_pos + 1; return start_pos; } else { // // Not at the end of word. Continue searching. // if (state & STATE_MASK) { state &= STATE_MASK; } else { pos = start_pos + 1; state = 0; } } } pos++; } return -1; } //***************************************************************************** // int StringMatch::CompareWord(const char *string, int &which, int &length) // int StringMatch::CompareWord(const char *string, int &which, int &length) { which = -1; length = -1; if (!table[0]) return 0; int state = 0; int position = 0; // // Skip to at least the start of a word. // while ((unsigned char)string[position]) { state = table[trans[(unsigned char)string[position]]][state]; if (state == 0) { return 0; } if (state & MATCH_INDEX_MASK) { // // Matched one of the patterns. See if it is a word. // int isWord = 1; if ((unsigned char)string[position + 1]) { if (HtIsStrictWordChar((unsigned char)string[position + 1])) isWord = 0; } if (isWord) { which = ((unsigned int) (state & MATCH_INDEX_MASK) >> INDEX_SHIFT) - 1; length = position + 1; return 1; } else { // // Not at the end of a word. Continue searching. // if ((state & STATE_MASK) != 0) { state &= STATE_MASK; } else { return 0; } } } position++; } return 0; } //***************************************************************************** // void StringMatch::TranslationTable(char *table) // void StringMatch::TranslationTable(char *table) { if (local_alloc) delete [] trans; trans = (unsigned char *) table; local_alloc = 0; } //***************************************************************************** // void StringMatch::IgnoreCase() // Set up the case translation table to convert uppercase to lowercase // void StringMatch::IgnoreCase() { if (!local_alloc || !trans) { trans = new unsigned char[256]; for (int i = 0; i < 256; i++) trans[i] = (unsigned char)i; local_alloc = 1; } for (int i = 0; i < 256; i++) if (isupper((unsigned char)i)) trans[i] = tolower((unsigned char)i); } //***************************************************************************** // void StringMatch::IgnorePunct(char *punct) // Set up the character translation table to ignore punctuation // void StringMatch::IgnorePunct(char *punct) { if (!local_alloc || !trans) { trans = new unsigned char[256]; for (int i = 0; i < 256; i++) trans[i] = (unsigned char)i; local_alloc = 1; } if (punct) for (int i = 0; punct[i]; i++) trans[(unsigned char)punct[i]] = 0; else for (int i = 0; i < 256; i++) if (HtIsWordChar(i) && !HtIsStrictWordChar(i)) trans[i] = 0; } //***************************************************************************** // int StringMatch::FindFirst(const char *source) // int StringMatch::FindFirst(const char *source) { int dummy; return FindFirst(source, dummy, dummy); } //***************************************************************************** // int StringMatch::Compare(const char *source) // int StringMatch::Compare(const char *source) { int dummy; return Compare(source, dummy, dummy); } htcheck-2.0.0~rc1.orig/htlib/ParsedString.cc0000644000000000000000000001010311177570304015571 0ustar // // ParsedString.cc // // ParsedString: Contains a string. The string my contain $var, ${var}, $(var) // `filename`. The get method will expand those using the // dictionary given in argument. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: ParsedString.cc,v 1.2 2001-04-26 19:55:02 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "ParsedString.h" #include #include //***************************************************************************** // ParsedString::ParsedString() // ParsedString::ParsedString() { } //***************************************************************************** // ParsedString::ParsedString(const String& s) { value = s; } //***************************************************************************** // ParsedString::~ParsedString() // ParsedString::~ParsedString() { } //***************************************************************************** // void ParsedString::set(const String& str) { value = str; } //***************************************************************************** // Return a fully parsed string. // // Allowed syntax: // $var // ${var} // $(var) // `filename` // // The filename can also contain variables // const String ParsedString::get(const Dictionary &dict) const { String variable; String parsed; ParsedString *temp; const char *str = value.get(); char delim = ' '; int need_delim = 0; while (*str) { if (*str == '$') { // // A dollar sign starts a variable. // str++; need_delim = 1; if (*str == '{') delim = '}'; else if (*str == '(') delim = ')'; else need_delim = 0; if (need_delim) str++; variable.trunc(); while (isalpha(*str) || *str == '_' || *str == '-') { variable << *str++; } if (*str) { if (need_delim && *str == delim) { // // Found end of variable // temp = (ParsedString *) dict[variable]; if (temp) parsed << temp->get(dict); str++; } else if (need_delim) { // // Error. Probably an illegal value in the name We'll // assume the variable ended here. // temp = (ParsedString *) dict[variable]; if (temp) parsed << temp->get(dict); } else { // // This variable didn't have a delimiter. // temp = (ParsedString *) dict[variable]; if (temp) parsed << temp->get(dict); } } else { // // End of string reached. We'll assume that this is also // the end of the variable // temp = (ParsedString *) dict[variable]; if (temp) parsed << temp->get(dict); } } else if (*str == '`') { // // Back-quote delimits a filename which we need to insert // str++; variable.trunc(); while (*str && *str != '`') { variable << *str++; } if (*str == '`') str++; ParsedString filename(variable); variable.trunc(); getFileContents(variable, filename.get(dict)); parsed << variable; } else if (*str == '\\') { // // Backslash escapes the next character // str++; if (*str) parsed << *str++; } else { // // Normal character // parsed << *str++; } } return parsed; } void ParsedString::getFileContents(String &str, const String& filename) const { FILE *fl = fopen(filename, "r"); char buffer[1000]; if (!fl) return; while (fgets(buffer, sizeof(buffer), fl)) { String s(buffer); s.chop("\r\n\t "); str << s << ' '; } str.chop(1); fclose(fl); } htcheck-2.0.0~rc1.orig/Makefile.am0000644000000000000000000000243111177571374013624 0ustar # Main Makefile for ht://Check # # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy # $Id: Makefile.am,v 1.11 2008-11-16 18:28:51 angusgb Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. include $(top_srcdir)/Makefile.config SUBDIRS= doc htlib htcommon htmysql \ htparsing htnet \ include htcheck installdirs EXTRA_DIST = .version Makefile.config SQL ChangeLog.old dist-hook: find $(distdir) -depth -name CVS -print | xargs rm -fr install-data-hook: @echo "" @echo "Installation done." @echo "" htcheck-2.0.0~rc1.orig/missing0000755000000000000000000002557711245527334013200 0ustar #! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." 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 # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case $1 in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $1 in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: htcheck-2.0.0~rc1.orig/COPYING0000644000000000000000000004311011177570304012612 0ustar GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. htcheck-2.0.0~rc1.orig/htparsing/0000755000000000000000000000000011245531570013555 5ustar htcheck-2.0.0~rc1.orig/htparsing/HtWordType.cc0000644000000000000000000000256411177570271016151 0ustar // // HtWordType.h // // functions for determining valid words/characters // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtWordType.cc,v 1.1 2001-03-22 12:42:35 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtWordType.h" #include "WordType.h" int HtIsWordChar(char c) { return WordType::Instance()->IsChar(c); } int HtIsStrictWordChar(char c) { return WordType::Instance()->IsStrictChar(c); } int HtWordNormalize(String &w) { return WordType::Instance()->Normalize(w); } int HtStripPunctuation(String &w) { return WordType::Instance()->StripPunctuation(w); } // much like strtok(), and destructive of the source string like strtok(), // but does word separation by our rules. char * HtWordToken(char *str) { unsigned char *text = (unsigned char *)str; char *ret = 0; static unsigned char *prev = 0; if (!text) text = prev; while (text && *text && !HtIsStrictWordChar(*text)) text++; if (text && *text) { ret = (char *)text; while (*text && HtIsWordChar(*text)) text++; if (*text) *text++ = '\0'; } prev = text; return ret; } htcheck-2.0.0~rc1.orig/htparsing/HtWordCodec.h0000644000000000000000000000504411177570271016103 0ustar // // HtWordCodec.h // // HtWordCodec: Given two lists of pair of "words" 'from' and 'to'; // simple one-to-one translations, use those lists to translate. // Only restriction are that no null (0) characters must be // used in "words", and that there is a character "joiner" that // does not appear in any word. One-to-one consistency may be // checked at construction. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtWordCodec.h,v 1.2 2002-06-11 15:48:19 angusgb Exp $ // #ifndef __HtWordCodec_h #define __HtWordCodec_h #include "HtCodec.h" #include "StringList.h" #include "StringMatch.h" class HtWordCodec : public HtCodec { public: HtWordCodec(); virtual ~HtWordCodec(); // Set the lists of asymmetric pairs of "words" in "from" and // "to", using: // * one list of requested encodings with two consecutive // items "to" and "from" per translation // * one list of just words which HtWordCodec will generate // space-saving encodings for. // Either may be empty. // Items in frequent_substrings will be silently ignored if // they collide with anything in requested_encoding_pairs. // CodingError is empty on success, or has a failure message. HtWordCodec(StringList &requested_encodings, StringList &frequest_substrings, String &errmsg); // *Or*, set the lists directly, without checking coding // consistency. HtWordCodec will delete these lists when // destroyed. Not really recommended, but this class would be // incomplete without it. HtWordCodec (StringList *from, StringList *to, char joiner = char(1)); // Same as those in the parent class. Each string to // encode/decode may contain zero or more of words from the // lists. Those words will be replaced. virtual String encode(const String &uncoded) const; virtual String decode(const String &coded) const; private: HtWordCodec(const HtWordCodec &); // Not supposed to be implemented. void operator= (const HtWordCodec &); // Not supposed to be implemented. StringList *myFrom; StringList *myTo; StringMatch *myFromMatch; StringMatch *myToMatch; // Do coding/decoding symmetrically using the provided lookup and lists. String code(const String &, StringMatch& match, StringList& replacements) const; }; #endif /* __HtWordCodec_h */ htcheck-2.0.0~rc1.orig/htparsing/Makefile.am0000644000000000000000000000106011177570271015613 0ustar # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy include $(top_srcdir)/Makefile.config pkglib_LTLIBRARIES = libhtparsing.la libhtparsing_la_SOURCES = \ HtmlParser.cc \ HtCodec.cc \ HtSGMLCodec.cc \ HtWordCodec.cc \ HtWordType.cc \ WordType.cc libhtparsing_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ HtmlParser.h \ HtCodec.h \ HtSGMLCodec.h \ HtWordCodec.h \ HtWordType.h \ WordType.h htcheck-2.0.0~rc1.orig/htparsing/HtWordType.h0000644000000000000000000000137211177570271016007 0ustar // // HtWordType.h // // functions for determining valid words/characters // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtWordType.h,v 1.1 2001-03-22 12:42:35 angusgb Exp $ // #ifndef _HtWordType_h #define _HtWordType_h #include "htString.h" extern int HtIsWordChar(char c); extern int HtIsStrictWordChar(char c); extern int HtWordNormalize(String &w); extern int HtStripPunctuation(String &w); // Like strtok(), but using our rules for word separation. extern char *HtWordToken(char *s); #endif /* _HtWordType_h */ htcheck-2.0.0~rc1.orig/htparsing/HtSGMLCodec.h0000644000000000000000000000433311177570271015732 0ustar // // HtSGMLCodec.h // // HtSGMLCodec: A Specialized HtWordCodec class to convert between SGML // ISO 8859-1 entities and high-bit characters. // // Part of the ht://Dig package // Copyright (c) 1995-2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: HtSGMLCodec.h,v 1.3 2008-11-16 18:28:52 angusgb Exp $ // #ifndef __HtSGMLCodec_h #define __HtSGMLCodec_h #include "HtWordCodec.h" #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ // Container for a HtWordCodec (not subclassed from it due to // portability-problems using initializers). // Not for subclassing. class HtSGMLCodec { public: static HtSGMLCodec *instance(); virtual ~HtSGMLCodec(); // Similar to the HtWordCodec class. Each string may contain // zero or more of words from the lists. Here we need to run // it through two codecs because we might have two different forms inline std::string encode(const std::string& uncoded) const { String u(uncoded.c_str()); std::string e(myTextWordCodec->encode(myNumWordCodec->encode(u)).get()); return e; } // If an error was discovered during the parsing of // entities, this returns an error message String& ErrMsg(); // egcs-1.1 (and some earlier versions) always erroneously // warns (even without warning flags) about classic singleton // constructs ("only defines private constructors and has no // friends"). Rather than adding autoconf tests to shut these // versions up with -Wno-ctor-dtor-privacy, we fake normal // conformism for it here (the minimal effort). friend void my_friend_Harvey__a_faked_friend_function(); private: // Hide default-constructor, copy-constructor and assignment // operator, making this a singleton. HtSGMLCodec(); HtSGMLCodec(const HtSGMLCodec &); void operator= (const HtSGMLCodec &); HtWordCodec *myTextWordCodec; // For &foo; HtWordCodec *myNumWordCodec; // For &#foo; String myErrMsg; }; #endif /* __HtSGMLCodec_h */ htcheck-2.0.0~rc1.orig/htparsing/HtmlParser.h0000644000000000000000000001420611177570271016017 0ustar /////// // HtmlParser.h // HtmlParser Class declaration // // Class for parsing of a HTML Document and for storing // info into the DB. // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlParser.h,v 1.30 2008-12-23 09:52:11 angusgb Exp $ // // G.Bartolini // started: 30.01.2000 /////// #ifndef _HTMLPARSER_H #define _HTMLPARSER_H #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ #include "Scheduler.h" #include "HtmlStatement.h" #include "HtmlAttribute.h" #include "Link.h" #include "_Url.h" #include "AccessibilityCheck.h" #define HTCHECK_CHAR char class HtmlParser { public: HtmlParser(); ~HtmlParser(); // Enumeration of the parser codes returned by functions enum HtmlParser_Codes { HtmlParser_NullTag, HtmlParser_TagNotStored, HtmlParser_MalformedTag, HtmlParser_StatementFailed, HtmlParser_AttributeFailed, HtmlParser_AccessibilityCheckFailed, HtmlParser_NoLink, HtmlParser_NormalLink, HtmlParser_DirectLink, HtmlParser_Anchor, HtmlParser_LinkFailed, HtmlParser_OK, }; HtmlParser_Codes operator() ( Scheduler &scheduler ); // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} protected: /////// // Protected Functions /////// HtmlParser_Codes ParseTag(); // Parse a HTML statement int CheckTag(const HtmlStatement& tag); // Check if a tag has to be stored HtmlParser_Codes FindLink(); // Find a link /* const std::string encodeSGML(const std::string &str); const std::string decodeSGML(const std::string &str); */ /////// // Protected Attributes /////// // Scheduler Object for getting/putting info from/into // memory and DB Scheduler *CurrentScheduler; // Base Url used for resolving relative paths _Url *BaseUrl; // Temporary buffer for tags storage HTCHECK_CHAR text[8192]; // position is set to the beginning of the retrieved document contents HTCHECK_CHAR *position; // position is set to the beginning of the line HTCHECK_CHAR *linebeginning; // Temporary cursor for source string (contents) HTCHECK_CHAR *ppos; // Temporary cursor for destination string (text -> tags) HTCHECK_CHAR *ptext; // Counter of document tags unsigned int TagPosition; // Row number unsigned int row; // Col number unsigned int col; // Last tag with a link unsigned int LastLinkTagPosition; // Temporary Object for HtmlStatement storing HtmlStatement htmlstatement; // Temporary Object for HtmlAttribute storing HtmlAttribute htmlattribute; // Temporary Object for Link storing Link link; // Temporary std::string for Charset specification std::string Charset; // Temporary std::string for DocType specification std::string DocType; // HTML Description of a link (description) std::string LinkDescription; // Temporary std::string for Description std::string Description; // Temporary std::string for Keywords std::string Keywords; // HTML document language (HTML lang="xx(x)" according to ISO 639) std::string DocLanguage; #ifdef HTDIG_NOTIFICATION // Temporary std::string for htdig-email directive std::string HtDigEmail; // Temporary std::string for htdig-email-subject directive std::string HtDigEmailSubject; // Temporary std::string for htdig-notification-date directive std::string HtDigNotificationDate; #endif // Current header level int CurrentHx; // Previous header level int PreviousHx; // Current header level step int HxStep; // Current alternative text std::string CurrentAltText; // Current resource reference std::string CurrentResourceRef; // Previous ALT attribute position unsigned int AltAttrPosition; /////// // Internal flags /////// bool ignore; // if true we ignore the tags bool memo; // Has the tag to be stored? true=yes int location; // location in the document (script, title, link, etc.) int doc_acheck; // accessibility check info (document level) bool store_statement; // should we store the statement? HtmlStatement::ElementLabel CurrentTag; // current tag /////// // Static attributes /////// static int debug; // Run-time debugging level // Encode an URL static void encodeURL(std::string &str, const std::string& reserved_chars); // Insert an accessibility check record into the database bool InsertAccessibilityCheck(unsigned int idurl, unsigned int tagposition, unsigned int attrposition, unsigned int code); // Returns the length of a string (skipping consecutive spaces) unsigned CountSGMLStringLength(const char* str); // Returns an integer with results of a check regarding an ALT text unsigned CheckAlt(); #ifdef HTDIG_NOTIFICATION // Properly set the htDig notification date bool parseDate(const std::string& date); // Test whether a date is correct bool testDate(const int dd, const int mm, const int yy) const; // Set the ht://Dig notification date void setHtDigNotificationDate(const int dd, const int mm, const int yy); #endif inline void newRow(); }; void HtmlParser::newRow() { linebeginning = position; ++row; } #endif htcheck-2.0.0~rc1.orig/htparsing/HtSGMLCodec.cc0000644000000000000000000000643611177570271016076 0ustar // // HtSGMLCodec.cc // // HtSGMLCodec: A Specialized HtWordCodec class to convert between SGML // ISO 8859-1 entities and high-bit characters. // // Part of the ht://Dig package // Copyright (c) 1995-2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: HtSGMLCodec.cc,v 1.2 2002-06-11 15:48:19 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtSGMLCodec.h" // Constructor: parses the appropriate parameters using the // encapsulated HtWordCodec class. // Only used in privacy. HtSGMLCodec::HtSGMLCodec() { StringList *myTextFromList = new StringList(); // For &foo; StringList *myNumFromList = new StringList(); // For &#nnn; StringList *myToList = new StringList(); String myTextFromString(770); // Full text list // Is this really the best way to do this? myTextFromString = " |¡|¢|£|¤|¥|¦|§|"; myTextFromString << "¨|©|ª|«|¬|­|®|¯|°|"; myTextFromString << "±|²|³|´|µ|¶|·|¸|"; myTextFromString << "¹|º|»|¼|½|¾|¿|À|"; myTextFromString << "Á|Â|Ã|Ä|Å|Æ|Ç|È|"; myTextFromString << "É|Ê|Ë|Ì|Í|Î|Ï|Ð|"; myTextFromString << "Ñ|Ò|Ó|Ô|Õ|Ö|×|Ø|"; myTextFromString << "Ù|Ú|Û|Ü|Ý|Þ|ß|à|"; myTextFromString << "á|â|ã|ä|å|æ|ç|è|"; myTextFromString << "é|ê|ë|ì|í|î|ï|ð|"; myTextFromString << "ñ|ò|ó|ô|õ|ö|÷|ø|"; myTextFromString << "ù|ú|û|ü|ý|þ|ÿ"; myTextFromList->Create(myTextFromString, '|'); for (int i = 160; i <= 255; i++) { String temp = 0; temp << (char) i; myToList->Add(temp); temp = 0; temp << "&#" << i << ";"; myNumFromList->Add(temp); } // Now let's take care of the low-bit characters with encodings. myTextFromList->Add("""); myToList->Add("\""); myNumFromList->Add("""); myTextFromList->Add("&"); myToList->Add("&"); myNumFromList->Add("&"); myTextFromList->Add("<"); myToList->Add("<"); myNumFromList->Add("<"); myTextFromList->Add(">"); myToList->Add(">"); myNumFromList->Add(">"); myTextWordCodec = new HtWordCodec(myTextFromList, myToList, '|'); myNumWordCodec = new HtWordCodec(myNumFromList, myToList, '|'); } HtSGMLCodec::~HtSGMLCodec() { delete myTextWordCodec; delete myNumWordCodec; } // Supposedly used as HtSGMLCodec::instance()->ErrMsg() // to check if HtWordCodec liked what was fed. String& HtSGMLCodec::ErrMsg() { return myErrMsg; } // Canonical singleton interface. HtSGMLCodec * HtSGMLCodec::instance() { static HtSGMLCodec *_instance = 0; if (_instance == 0) { _instance = new HtSGMLCodec(); } return _instance; } // End of HtSGMLCodec.cc htcheck-2.0.0~rc1.orig/htparsing/Makefile.in0000644000000000000000000003677511245527335015650 0ustar # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config subdir = htparsing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkglibdir)" pkglibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(pkglib_LTLIBRARIES) libhtparsing_la_LIBADD = am_libhtparsing_la_OBJECTS = HtmlParser.lo HtCodec.lo HtSGMLCodec.lo \ HtWordCodec.lo HtWordType.lo WordType.lo libhtparsing_la_OBJECTS = $(am_libhtparsing_la_OBJECTS) libhtparsing_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libhtparsing_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libhtparsing_la_SOURCES) DIST_SOURCES = $(libhtparsing_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline pkglib_LTLIBRARIES = libhtparsing.la libhtparsing_la_SOURCES = \ HtmlParser.cc \ HtCodec.cc \ HtSGMLCodec.cc \ HtWordCodec.cc \ HtWordType.cc \ WordType.cc libhtparsing_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ HtmlParser.h \ HtCodec.h \ HtSGMLCodec.h \ HtWordCodec.h \ HtWordType.h \ WordType.h all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htparsing/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htparsing/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ else :; fi; \ done uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libhtparsing.la: $(libhtparsing_la_OBJECTS) $(libhtparsing_la_DEPENDENCIES) $(libhtparsing_la_LINK) -rpath $(pkglibdir) $(libhtparsing_la_OBJECTS) $(libhtparsing_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags 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-pkglibLTLIBRARIES \ 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 uninstall uninstall-am uninstall-pkglibLTLIBRARIES # 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: htcheck-2.0.0~rc1.orig/htparsing/WordType.cc0000755000000000000000000001270411177570271015655 0ustar // // WordType.cc // // WordType: Wrap some attributes to make is...() type // functions and other common functions without having to manage // the attributes or the exact attribute combination semantics. // Configuration parameter used: // valid_punctuation,extra_word_characters,minimum_word_length, // maximum_word_length,allow_numbers,bad_word_list // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: WordType.cc,v 1.1 2001-03-22 12:42:35 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include #include #include "WordType.h" WordType* WordType::instance = 0; void WordType::Initialize(const Configuration &config_arg) { if(instance != 0) delete instance; instance = new WordType(config_arg); } WordType::WordType(const Configuration &config) { const String valid_punct = config["valid_punctuation"]; const String extra_word_chars = config["extra_word_characters"]; minimum_length = config.Value("minimum_word_length", 3); maximum_length = config.Value("maximum_word_length", 12); allow_numbers = config.Value("allow_numbers", 0); extra_word_characters = extra_word_chars; valid_punctuation = valid_punct; other_chars_in_word = extra_word_chars; other_chars_in_word.append(valid_punct); chrtypes[0] = 0; for (int i = 1; i < 256; i++) { chrtypes[i] = 0; if (isalpha(i)) chrtypes[i] |= WORD_TYPE_ALPHA; if (isdigit(i)) chrtypes[i] |= WORD_TYPE_DIGIT; if (iscntrl(i)) chrtypes[i] |= WORD_TYPE_CONTROL; if (strchr(extra_word_chars, i)) chrtypes[i] |= WORD_TYPE_EXTRA; if (strchr(valid_punct, i)) chrtypes[i] |= WORD_TYPE_VALIDPUNCT; } { const String filename = config["bad_word_list"]; FILE *fl = fopen(filename, "r"); char buffer[1000]; char *word; String new_word; // Read in the badwords file (it's just a text file) while (fl && fgets(buffer, sizeof(buffer), fl)) { word = strtok(buffer, "\r\n \t"); if (word && *word) { int flags; new_word = word; if((flags = Normalize(new_word)) & WORD_NORMALIZE_NOTOK) { fprintf(stderr, "WordType::WordType: reading bad words from %s found %s, ignored because %s\n", (const char*)filename, word, (char*)NormalizeStatus(flags & WORD_NORMALIZE_NOTOK)); } else { badwords.Add(new_word, 0); } } } if (fl) fclose(fl); } } WordType::~WordType() { } // // Normalize a word according to configuration specifications and // builting transformations. // *EVERY* word inserted in the inverted index goes thru this. If // a word is rejected by Normalize there is 0% chance to find it // in the word database. // int WordType::Normalize(String& word) const { int status = WORD_NORMALIZE_GOOD; // // Reject empty strings, always // if(word.empty()) return status | WORD_NORMALIZE_NULL; // // Always convert to lowercase // if(word.lowercase()) status |= WORD_NORMALIZE_CAPITAL; // // Remove punctuation characters according to configuration // if(StripPunctuation(word)) status |= WORD_NORMALIZE_PUNCTUATION; // // Truncate words too long according to configuration // if(word.length() > maximum_length) { word.chop(word.length() - maximum_length); status |= WORD_NORMALIZE_TOOLONG; } // // Reject words too short according to configuration // if(word.length() < minimum_length) return status | WORD_NORMALIZE_TOOSHORT; // // Reject if contains control characters // int alpha = 0; for(const unsigned char *p = (const unsigned char*)(const char*)(char *)word; *p; p++) { if(IsStrictChar(*p) || (allow_numbers && IsDigit(*p))) { alpha = 1; } else if(IsControl(*p)) { return status | WORD_NORMALIZE_CONTROL; } } // // Reject if contains no alpha characters (according to configuration) // if(!alpha) return status | WORD_NORMALIZE_NOALPHA; // // Reject if listed in config[bad_word_list] // if(badwords.Exists(word)) return status | WORD_NORMALIZE_BAD; // // Accept and report the transformations that occured // return status; } // // Convert the integer status into a readable string // String WordType::NormalizeStatus(int flags) { String tmp; if(flags & WORD_NORMALIZE_TOOLONG) tmp << "TOOLONG "; if(flags & WORD_NORMALIZE_TOOSHORT) tmp << "TOOSHORT "; if(flags & WORD_NORMALIZE_CAPITAL) tmp << "CAPITAL "; if(flags & WORD_NORMALIZE_NUMBER) tmp << "NUMBER "; if(flags & WORD_NORMALIZE_CONTROL) tmp << "CONTROL "; if(flags & WORD_NORMALIZE_BAD) tmp << "BAD "; if(flags & WORD_NORMALIZE_NULL) tmp << "NULL "; if(flags & WORD_NORMALIZE_PUNCTUATION) tmp << "PUNCTUATION "; if(flags & WORD_NORMALIZE_NOALPHA) tmp << "NOALPHA "; if(tmp.empty()) tmp << "GOOD"; return tmp; } // // Non-destructive tokenizer using external int as pointer into String // does word separation by our rules (so it can be subclassed too) // String WordType::WordToken(const String tokens, int ¤t) const { unsigned char text = tokens[current]; String ret; while (text && !IsStrictChar(text)) text = tokens[++current]; if (text) { while (text && IsChar(text)) { ret << text; text = tokens[++current]; } } return ret; } htcheck-2.0.0~rc1.orig/htparsing/HtCodec.cc0000644000000000000000000000127011177570271015402 0ustar // // HtCodec.cc // // HtCodec: Provide a generic means to take a String, code // it, and return the encoded string. And vice versa. // // Keep constructor and destructor in a file of its own. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: HtCodec.cc,v 1.2 2002-11-14 16:59:05 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtCodec.h" HtCodec::HtCodec() { } HtCodec::~HtCodec() { } // End of HtCodec.cc htcheck-2.0.0~rc1.orig/htparsing/HtCodec.h0000644000000000000000000000167511177570271015255 0ustar // // HtCodec.h // // HtCodec: Provide a generic means to take a String, code // it, and return the encoded string. And vice versa. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: HtCodec.h,v 1.1 2001-03-22 12:42:35 angusgb Exp $ // #ifndef __HtCodec_h #define __HtCodec_h #include "htString.h" class HtCodec : public Object { public: HtCodec(); virtual ~HtCodec(); // Code what's in this string. virtual String encode(const String &) const = 0; // Decode what's in this string. virtual String decode(const String &) const = 0; private: HtCodec(const HtCodec &); // Not supposed to be implemented. void operator= (const HtCodec &); // Not supposed to be implemented. }; #endif /* __HtCodec_h */ htcheck-2.0.0~rc1.orig/htparsing/WordType.h0000755000000000000000000000774211177570271015525 0ustar // // WordType.h // // WordType: Wrap some attributes to make is...() type // functions and other common functions without having to manage // the attributes or the exact attribute combination semantics. // // Part of the ht://Dig package // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: WordType.h,v 1.1 2001-03-22 12:42:35 angusgb Exp $ // #ifndef _WordType_h #define _WordType_h #include "htString.h" #include "Configuration.h" // // Return values of Normalize, to get them in string form use NormalizeStatus // #define WORD_NORMALIZE_GOOD 0x0000 #define WORD_NORMALIZE_TOOLONG 0x0001 #define WORD_NORMALIZE_TOOSHORT 0x0002 #define WORD_NORMALIZE_CAPITAL 0x0004 #define WORD_NORMALIZE_NUMBER 0x0008 #define WORD_NORMALIZE_CONTROL 0x0010 #define WORD_NORMALIZE_BAD 0x0020 #define WORD_NORMALIZE_NULL 0x0040 #define WORD_NORMALIZE_PUNCTUATION 0x0080 #define WORD_NORMALIZE_NOALPHA 0x0100 // // Under these conditions the word is said to be invalid. // Some conditions (NUMBER,TOOSHORT and BAD) depends on the configuration // parameters. // #define WORD_NORMALIZE_NOTOK (WORD_NORMALIZE_TOOSHORT| \ WORD_NORMALIZE_NUMBER| \ WORD_NORMALIZE_CONTROL| \ WORD_NORMALIZE_BAD| \ WORD_NORMALIZE_NULL| \ WORD_NORMALIZE_NOALPHA) class WordType { public: // // Constructors // WordType(const Configuration& config); // // Destructor // virtual ~WordType(); // // Unique instance handlers // static void Initialize(const Configuration& config); static WordType* Instance() { if(instance) return instance; fprintf(stderr, "WordType::Instance: no instance\n"); return 0; } // // Predicates // virtual int IsChar(int c) const; virtual int IsStrictChar(int c) const; virtual int IsDigit(int c) const; virtual int IsControl(int c) const; // // Transformations // virtual int StripPunctuation(String &s) const; virtual int Normalize(String &s) const; // // Splitting // virtual String WordToken(const String s, int &pointer) const; // // Error handling // static String NormalizeStatus(int flags); private: String valid_punctuation; // The same as the attribute. String extra_word_characters; // Likewise. String other_chars_in_word; // Attribute "valid_punctuation" plus // "extra_word_characters". char chrtypes[256]; // quick lookup table for types int minimum_length; // Minimum word length int maximum_length; // Maximum word length int allow_numbers; // True if a word may contain numbers Dictionary badwords; // List of excluded words // // Unique instance pointer // static WordType* instance; }; // Bits to set in chrtypes[]: #define WORD_TYPE_ALPHA 0x01 #define WORD_TYPE_DIGIT 0x02 #define WORD_TYPE_EXTRA 0x04 #define WORD_TYPE_VALIDPUNCT 0x08 #define WORD_TYPE_CONTROL 0x10 // One for characters that when put together are a word // (including punctuation). inline int WordType::IsChar(int c) const { return (chrtypes[(unsigned char)c] & (WORD_TYPE_ALPHA|WORD_TYPE_DIGIT|WORD_TYPE_EXTRA|WORD_TYPE_VALIDPUNCT)) != 0; } // Similar, but no punctuation characters. inline int WordType::IsStrictChar(int c) const { return (chrtypes[(unsigned char)c] & (WORD_TYPE_ALPHA|WORD_TYPE_DIGIT|WORD_TYPE_EXTRA)) != 0; } // Reimplementation of isdigit() using the lookup table chrtypes[] inline int WordType::IsDigit(int c) const { return (chrtypes[(unsigned char)c] & WORD_TYPE_DIGIT) != 0; } // Similar to IsDigit, but for iscntrl() inline int WordType::IsControl(int c) const { return (chrtypes[(unsigned char)c] & WORD_TYPE_CONTROL) != 0; } // Let caller get rid of getting and holding a configuration parameter. inline int WordType::StripPunctuation(String &s) const { return s.remove(valid_punctuation); } #endif /* __WordType_h */ htcheck-2.0.0~rc1.orig/htparsing/HtmlParser.cc0000644000000000000000000015665511177570271016174 0ustar /////// // HtmlParser.cc // HtmlParser Class definitions // // Class for parsing HTML documents // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlParser.cc,v 1.87 2008-12-23 09:52:11 angusgb Exp $ // // G.Bartolini // started: 30.03.2000 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include // for isspace() #include "Scheduler.h" #include "HtmlParser.h" #include "HtSGMLCodec.h" #include "Configuration.h" // for META attributes parsing // Static variables initialization int HtmlParser::debug = 0; // This define the maximum number of characters present in an HTML tag // between the starting '<' and the closing '>'. #define MAX_TAG_SIZE 4096 // Location in the document #define TAGhead 0x0001 // The tag is open #define TAGtitle 0x0002 // The tag is open #define TAGlink 0x0004 // The <A> tag is open #define TAGscript 0x0008 // if a <SCRIPT> tag is open, it's true #define TAGhx 0x0020 // Current Tag: <Hx> #define TAGrefresh 0x0800 // Current Tag: <meta> with refresh // Accessibility info (ACHECK - accessibility check) for documents #define ACHECKDOCtitle 0x0001 // The document title is present // Accessibility info (ACHECK - accessibility check) for tags #define ACHECKTAGalt 0x0001 // The ALTernative has been specified #define ACHECKTAGinputimg 0x0002 // The INPUT is an image // ALT text checks #define ALTempty 0x0001 // Empty ALT #define ALTsameasfile 0x0002 // Same name as file #define ALTlong 0x0004 // ALT too long // Pre-processor alias #define encodeSGML(x) (HtSGMLCodec::instance()->encode(x)) //***************************************************************************** // void HtmlParser::encodeURL(std::string &str, char *valid) // Convert a normal string to a URL 'safe' string. This means that // all characters not explicitly mentioned in the URL BNF will be // escaped. The escape character is '%' and is followed by 2 hex // digits representing the octet. // void HtmlParser::encodeURL(std::string &str, const std::string& reserved_chars) { std::string temp; static const char *digits = "0123456789ABCDEF"; const char* valid (reserved_chars.c_str()); #ifdef HTCHECK_DEBUG std::cout << "Decoding URL: " << str << " - using : " << reserved_chars << std::endl; #endif for (std::string::const_iterator p(str.begin()); p != str.end() ; ++p) { if (isascii(*p) && (isdigit(*p) || isalpha(*p) || strchr(valid, *p))) temp.push_back(*p); else { temp.push_back('%'); temp.push_back(digits[(*p >> 4) & 0x0f]); temp.push_back(digits[*p & 0x0f]); } } str = temp; } // Default constructor HtmlParser::HtmlParser() : CurrentScheduler(0), BaseUrl(0), Charset(), DocType(), LinkDescription(), Description(), Keywords(), DocLanguage(), #ifdef HTDIG_NOTIFICATION HtDigEmail(), HtDigEmailSubject(), HtDigNotificationDate(), #endif CurrentHx(0), PreviousHx(0), HxStep(0), CurrentAltText(), CurrentResourceRef(), AltAttrPosition(0), ignore(false), memo(true), location(0), doc_acheck(0), store_statement(true), CurrentTag(HtmlStatement::Tag_Unknown) { HtmlStatement::initElementsMap(); HtmlAttribute::initAttributesMap(); } // Destructor HtmlParser::~HtmlParser() { if (BaseUrl && BaseUrl != CurrentScheduler->CurrentUrl) delete BaseUrl; // Base Url different from CurrentUrl. So delete it. } // Operator overloading () -> makes this function a function object. // This is used by the Scheduler object in order to parse a // document (previously retrieved) HtmlParser::HtmlParser_Codes HtmlParser::operator() (Scheduler &scheduler) { // Initialization CurrentScheduler = &scheduler; location = 0; ignore = false; memo = true; doc_acheck = 0; // HTML Title of the document std::string Title; std::string decodedTitle; // Set debug Level SetDebugLevel(CurrentScheduler->GetDebugLevel()); // Contents of the document - Copy std::string Contents(CurrentScheduler->CurrentResponse->GetContents().get()); // position is set to the beginning of the retrieved document contents position = const_cast <HTCHECK_CHAR*> (Contents.c_str()); // Initialize the tag position index TagPosition = 0; LastLinkTagPosition = 0; // Initialize the row number row = 1; // Initialize the pointer to the beginning of the line linebeginning = position; // Initialize the charset string Charset.clear(); // Initialize the doctype string DocType.clear(); // Initialize the description string Description.clear(); // Initialize the keywords string Keywords.clear(); // Initialize the document language string DocLanguage.clear(); #ifdef HTDIG_NOTIFICATION // Initialise ht://Dig notification variables HtDigEmail.clear(); HtDigEmailSubject.clear(); HtDigNotificationDate.clear(); #endif // Initialise the current and previous header information PreviousHx = 0; CurrentHx = 0; HxStep = 0; // Initialize the current ALT text CurrentAltText.clear(); // Initialize the resource reference CurrentResourceRef.clear(); // Attribute position for ALT (inside the tag) AltAttrPosition = 0; // Assign the base URL used for resolving relative paths BaseUrl = CurrentScheduler->CurrentUrl; // Let's start parsing the HTML document, from the beginning while (*position) { // Let's check for a comment or a possible DTD declaration if (strncmp((char *)position, "<!", 2) == 0) { position +=2; if (strncmp((char *)position, "--", 2) == 0) { position += 2; // Yes ... it is a comment - Go to its end do // Loop until we find a '>' preceded by 2 '-' at least { int cons_dashes = 0; // Counter for consecutive dashes for (ppos = position; *ppos && (cons_dashes < 2); ++ppos) { if (*ppos == '-') ++cons_dashes; else { cons_dashes = 0; if (*ppos == (HTCHECK_CHAR) 10) newRow(); } } if (cons_dashes < 2) { *position ='\0'; break; } else { // Here we are after a a '--' position = ppos; // Skip extra dashes after a badly formed comment while (*position == '-') ++position; // Skip whitespace while (isspace(*position)) { if (*position == (HTCHECK_CHAR) 10) newRow(); ++position; } } } while (*position && *position != '>'); if (*position == '>') ++position; // End of comment } else if (strncmp((char *)position, "[CDATA[", 7) == 0) { position += 7; // Yes ... it is a CDATA block - Go to its end do // Loop until we find a '>' preceded by 2 ']]' at least { int cons_dashes = 0; // Counter for consecutive square close brackets for (ppos = position; *ppos && (cons_dashes < 2); ++ppos) { if (*ppos == ']') ++cons_dashes; else { cons_dashes = 0; if (*ppos == (HTCHECK_CHAR) 10) newRow(); } } if (cons_dashes < 2) { *position ='\0'; break; } else { // Here we are after a a ']]' position = ppos; // Skip extra dashes after a badly formed comment while (*position == ']') ++position; // Skip whitespace while (isspace(*position)) { if (*position == (HTCHECK_CHAR) 10) newRow(); ++position; } } } while (*position && *position != '>'); if (*position == '>') ++position; // End of CDATA block } else { // It's not a comment declaration but could be a DTD declaration for (ptext = text; *position && *position != '>'; ++position) { if (*position == (HTCHECK_CHAR) 10) newRow(); else *ptext++ = *position; } *ptext = '\0'; if (!mystrncasecmp((const char *)text, "doctype", 7)) { for (ptext = text + 7; *ptext && isspace(*ptext); ++ptext); // Skip any whitespace DocType = (const char *) ptext; // Assign the DocType to the parser variable } if (position && *position) ++position; // Found the end. Let's skip the char } continue; } if (*position =='<') { ++position; // skip the initial '<' // Now ... something strange may appear. Let's think of // a malformed HTML document, in which the writer puts // a '<' symbol instead of a '<' sgml entity. // Let's try to catch it, even if it is very difficult; // Do we have a valid character after the '<'? while (isspace(*position)) { if (*position == (HTCHECK_CHAR) 10) newRow(); ++position; } // Maybe it wasn't a valid tag // If we are here we may assume we have a valid character, // after '<', so an alpha char, or a '/' for closing tags. // But we can also have something like: // <B.%2 -- Don't ask me why, but somebody got it!!! // Another check to perform is if we find a not alphabetic // character before a space or a closing tag. bool not_good = false; for (ppos = position; !not_good && *ppos && !isspace(*ppos) && *ppos != '>'; ++ppos) { // cout << *ppos << endl; if (!isalnum(*ppos) && *ppos!='/') not_good = true; } // We found a not valid characther before a space! Skip this tag. if (not_good) continue; // Start of a tag. Let's search for the closing '>' // But we can also have it after the previous loop if (*ppos && *ppos != '>') ppos = (HTCHECK_CHAR *) strchr((char *)position, '>'); if (ppos) { // Another trick to catch a malformed tag declaration // that is to say a missing '<', let's check if // the tag size is bigger than a fixed size (MAX_TAG_SIZE) if ((int) (ppos - position) > MAX_TAG_SIZE) continue; // Set the column of the statement col = position - linebeginning; // Temporary bookmark for the end of the tag HTCHECK_CHAR* pend = ppos; // Skip any white space at the end for (--ppos; *ppos && isspace(*ppos); --ppos); // Found. Let's copy it, by skipping '<' and '>' ptext=text; // copy the characters from the source to the destination while (position <= ppos) { // cout << (int) (ppos - position) << " _ " << (int) position // << " _ " << (int) ppos << ": " << *position << endl; *ptext++ = *position++; } *ptext='\0'; // close the string position = pend + 1; // Skip the closing '>' ++TagPosition; // Let's parse the tag by using the member attribute 'text' // and then Status of the parser switch(ParseTag()) { case HtmlParser_NullTag: if (debug > 1) cout << "Warning! Empty (NULL) tag: " << htmlstatement << " - " << text << endl; break; case HtmlParser_TagNotStored: if (debug > 3) cout << "Tag not stored: " << htmlstatement << " - " << text << endl; break; case HtmlParser_MalformedTag: if (debug > 0) cout << "Warning! Malformed tag: " << htmlstatement << " - " << text << endl; break; case HtmlParser_StatementFailed: if (debug > 0) cout << "Error! Insert of HTML statement failed: " << htmlstatement << " - " << text << endl; return HtmlParser_StatementFailed; break; case HtmlParser_AttributeFailed: if (debug > 0) cout << "Error! Insert of HTML attribute failed: " << htmlattribute << " - " << text << endl; return HtmlParser_AttributeFailed; break; case HtmlParser_LinkFailed: if (debug > 0) cout << "Error! Insert of this link failed: " << link << " - " << text << endl; return HtmlParser_AttributeFailed; break; case HtmlParser_OK: // Do nothing default: // Do nothing break; } } else { while (*position) ++position; // reach the end (no more tags) } } else { // We are in the title. Let's store it if (location & TAGtitle) Title.push_back(*position); else if (location & TAGlink) { if (isspace(*position)) { if (LinkDescription.length() > 0 && !isspace(LinkDescription[LinkDescription.length() -1])) LinkDescription.push_back(' '); } else LinkDescription.push_back(*position); } // If it is a newline we increment the row number if (*position == (HTCHECK_CHAR) 10) newRow(); ++position; } } CurrentScheduler->CurrentUrl->SetTitle(encodeSGML(Title)); CurrentScheduler->CurrentUrl->SetCharset(Charset); CurrentScheduler->CurrentUrl->SetDocType(DocType); CurrentScheduler->CurrentUrl->SetDescription(Description); CurrentScheduler->CurrentUrl->SetKeywords(Keywords); #ifdef HTDIG_NOTIFICATION CurrentScheduler->CurrentUrl->SetHtDigEmail(HtDigEmail); CurrentScheduler->CurrentUrl->SetHtDigEmailSubject(HtDigEmailSubject); if (HtDigNotificationDate.length() && parseDate(HtDigNotificationDate)) CurrentScheduler->CurrentUrl->SetHtDigNotificationDate(HtDigNotificationDate); #endif // If Accessibility Checks are not enabled we exit if (!CurrentScheduler->Config->Boolean("accessibility_checks")) return HtmlParser_OK; // ////////////////////////////////////////////////////// // Begin of accessibility checks (document level) // ////////////////////////////////////////////////////// // Missing TITLE (Open Accessibility Check: Code 50) if (!(doc_acheck & ACHECKDOCtitle)) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck(CurrentScheduler->CurrentUrl->GetID(), 0, 0, 50)) return HtmlParser_AccessibilityCheckFailed; // Failed } else { // We have a title unsigned counter = CountSGMLStringLength ( CurrentScheduler->CurrentUrl->GetTitle().c_str() ); if (!counter) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck(CurrentScheduler->CurrentUrl->GetID(), 0, 0, 51)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (counter >= 150) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck(CurrentScheduler->CurrentUrl->GetID(), 0, 0, 52)) return HtmlParser_AccessibilityCheckFailed; // Failed } } // Document language if (DocLanguage.length()) { // Check for a valid value } else { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck(CurrentScheduler->CurrentUrl->GetID(), 0, 0, 48)) return HtmlParser_AccessibilityCheckFailed; // Failed } // ////////////////////////////////////////////////////// // End of accessibility checks (document level) // ////////////////////////////////////////////////////// return HtmlParser_OK; } HtmlParser::HtmlParser_Codes HtmlParser::ParseTag () { bool has_attributes = false; bool tag_stored = false; bool malformed_tag = false; int tag_acheck(0); CurrentHx = 0; // Reset all the not important tag info from the location location &= ~(TAGhx | TAGrefresh); CurrentTag = HtmlStatement::Tag_Unknown; // Initialize alternative text and resource reference strings CurrentAltText.clear(); CurrentResourceRef.clear(); AltAttrPosition = 0; // Temporary pointer register HTCHECK_CHAR *ptmp; // Statement register HTCHECK_CHAR *Statement = text; // Skip initial spaces while (*Statement && isspace(*Statement)) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); ++Statement; } if (!*Statement) return HtmlParser_NullTag; // Empty // Reset htmlstatement variable htmlstatement.Reset(); // Set the IDUrl for the HtmlStatement object htmlstatement.SetIDUrl(CurrentScheduler->CurrentSchedule.GetIDSchedule()); // Set the whole statement htmlstatement.SetStatement(Statement); // Set the tag position htmlstatement.SetTagPosition(TagPosition); // Set the row number htmlstatement.SetRow(row); // Set the col number htmlstatement.SetCol(col); // Set the tag position of the last link (open link - 'A' element) htmlstatement.SetLinkTagPosition(LastLinkTagPosition); // Check if we have an empty tag if (Statement[strlen(Statement) - 1] == '/') htmlstatement.empty(); ptmp=Statement; // Stores the beginning of the tag while (*Statement && !isspace(*Statement)) ++Statement; if (ptmp==Statement) // No tag !!! return HtmlParser_NullTag; if (*Statement) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); // Check for a tag with attributes *Statement='\0'; if (debug>5) cout << "Tag found: " << ptmp << endl; // go on ++Statement; // Skip everything but alphanum chars after the tag while (*Statement && !isalpha(*Statement)) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); ++Statement; } if (*Statement) has_attributes = true; // The current tag has attributes } htmlstatement.SetTag(ptmp); // Determine the type of the tag (end, start) if (*ptmp == '/') { ++ptmp; // skip the slash } // We got the TAG info we need int old_location = location; if (! CheckTag(htmlstatement)) memo=false; // Not store it else memo=true; // Should we insert a link description for the previos 'A' element? if (CurrentScheduler->Config->Boolean("store_link_info") && !(location & TAGlink) && (old_location & TAGlink) && LinkDescription.length() > 0) { if (LinkDescription.length() > 0 && !CurrentScheduler->GetDB()->InsertHtmlStatementLinkDescription(htmlstatement.GetIDUrl(), LastLinkTagPosition, encodeSGML(LinkDescription))) return HtmlParser_StatementFailed; // Failed LastLinkTagPosition = 0; // erase the position of the last tag with a link } if (ignore) { if (! (location & TAGscript)) { // We just found a closing </SCRIPT> tag ignore = false; memo = true; } else memo = false; } else { if (location & TAGscript) // We found a <SCRIPT> tag. We ignore the following tags ignore = true; } // We don't have to store it if (!memo) return HtmlParser_TagNotStored; if (has_attributes) { // Let's look for attributes // Starting point: Statement now points to the first attribute unsigned int AttrPosition = 0; while (*Statement) // Until we reach the end look for attributes { ptmp = Statement; // Look for an attribute definition // Goes on until we reach: // 1) the end or until a whitespace not follwed by '=' (empty attribute) // 2) a '=': the attribute has a content which may contain SGML entities too while (*Statement && !isspace(*Statement) && *Statement!='=') ++Statement; while (*Statement && isspace(*Statement)) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); *Statement++='\0'; // Close the attribute string } if (ptmp == Statement) // No attribute !!! { // Hey guys, if statement is not empty, this may // represent a malformed tag. Let's show it! if (*Statement) malformed_tag = true; *Statement='\0'; continue; } // Reset htmlattribute variable htmlattribute.Reset(); // Set the IDUrl for the HtmlAttribute object htmlattribute.SetIDUrl(htmlstatement.GetIDUrl()); // Set the tag position htmlattribute.SetTagPosition(TagPosition); // Set the attribute position htmlattribute.SetAttrPosition(++AttrPosition); bool has_content = false; // Store attribute is set according to the 'store_only_links' value store_statement = !CurrentScheduler->Config->Boolean("store_only_links"); if (*Statement && *Statement == '=') { has_content = true; // Attribute has a content *Statement++='\0'; } htmlattribute.SetAttribute((char *)ptmp); if (has_content) { // The content can be written inside '"' or not. // If yes we search for next '"', else for the first space. while(*Statement && (isspace(*Statement) || *Statement=='=')) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); ++Statement; // Skip spaces after '=' or multiple '=' } if (*Statement) { // Not empty content if (*Statement == '"' || *Statement == '\'') { char qm=*Statement; // Store the quotation mark ++Statement; // Skip quotation mark (' or ") ptmp=Statement; // Look for a closing quotation mark Statement = (HTCHECK_CHAR *) strchr ((char *)ptmp, qm); if (Statement) { // Found. *Statement = '\0'; ++Statement; } else { // Not found the closing quotation mark // Everything is content Statement=ptmp; while (*Statement) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); ++Statement; // reach the end } } // Set content htmlattribute.SetContent((char *)ptmp); } else { // Content outside a quotation mark ptmp=Statement; // Content is considered until a whitespace or the end // is reached. while (*Statement && !isspace(*Statement)) ++Statement; if (*Statement) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); *Statement='\0'; ++Statement; } htmlattribute.SetContent((char *)ptmp); } } // We got a HTML attribute with a content. // Let's find a Link switch(FindLink()) { case HtmlParser_LinkFailed: // insert of the link failed return HtmlParser_LinkFailed; break; case HtmlParser_NormalLink: // it has a link case HtmlParser_DirectLink: // ditto case HtmlParser_Anchor: // we must store it store_statement = true; // the attribute contains a link break; case HtmlParser_NoLink: // No Link. Do nothing default: break; } // Accessibility checks if (CurrentScheduler->Config->Boolean("accessibility_checks")) { if (CurrentTag == HtmlStatement::Tag_IMG || CurrentTag == HtmlStatement::Tag_INPUT) { store_statement = true; // We are inside an IMG tag if (htmlattribute.GetAttributeLabel() == HtmlAttribute::Attr_ALT) { // ALT specified tag_acheck |= ACHECKTAGalt; CurrentAltText = htmlattribute.GetContent(); AltAttrPosition = htmlattribute.GetAttrPosition(); } if (CurrentTag == HtmlStatement::Tag_INPUT && htmlattribute.GetAttributeLabel() == HtmlAttribute::Attr_TYPE && !mystrncasecmp(htmlattribute.GetContent().c_str(), "image", 5) ) { // INPUT image specified tag_acheck |= ACHECKTAGinputimg; } } } } // The attribute is stored if store attribute is set to true if (store_statement) { // The tag also has to be inserted if (!tag_stored) { // Database Insertion of the HtmlStatement object // Check if it fails if (!CurrentScheduler->GetDB()->Insert(htmlstatement)) return HtmlParser_StatementFailed; // Failed tag_stored = true; } // Database Insertion of the HtmlAttribute object if (!CurrentScheduler->GetDB()->Insert(htmlattribute)) return HtmlParser_AttributeFailed; // Failed } while (*Statement && isspace(*Statement)) { if (*Statement == (HTCHECK_CHAR) 10) newRow(); ++Statement; // goes on ... } } } else { // Tag with No attributes if (store_statement) { // The tag also has to be inserted if (!CurrentScheduler->GetDB()->Insert(htmlstatement)) return HtmlParser_StatementFailed; // Failed } } if (malformed_tag) return HtmlParser_MalformedTag; else if (store_statement && // Accessibility checks CurrentScheduler->Config->Boolean("accessibility_checks")) { // Accessibility checks if (CurrentTag == HtmlStatement::Tag_IMG) { // Missing ALT (Open Accessibility Check: Code 1) if (!(tag_acheck & ACHECKTAGalt)) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 1)) return HtmlParser_AccessibilityCheckFailed; // Failed } else { unsigned altcheck = CheckAlt(); // OAC #2 if (altcheck & ALTsameasfile) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 2)) // Failed return HtmlParser_AccessibilityCheckFailed; } if (altcheck & ALTlong) // OAC #3 { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 3)) return HtmlParser_AccessibilityCheckFailed; // Failed } // Empty ALT if image is used as an anchor - OAC #7 if (altcheck & ALTempty && location & TAGlink) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 7)) return HtmlParser_AccessibilityCheckFailed; // Failed } } } else if (location & TAGhx) { if (HxStep > 1) { // Wrong header nesting (h2 after h1, h3 after h2, etc.) // OAC #37, 38, 39, 40, 41 if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, (35+CurrentHx))) return HtmlParser_AccessibilityCheckFailed; // Failed } } else if (CurrentTag == HtmlStatement::Tag_B) { // B element should not be used (OAC #116) if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 116)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (CurrentTag == HtmlStatement::Tag_I) { // I element should not be used (OAC #117) if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 117)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (CurrentTag == HtmlStatement::Tag_BLINK) { // BLINK element should not be used (OAC #27) if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 27)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (CurrentTag == HtmlStatement::Tag_MARQUEE) { // MARQUEE element should not be used (OAC #69) if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 69)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (location & TAGrefresh) { unsigned acheckcode(72); // default -- refresh // Different destination URL ... it is a redirect if (link.GetIDUrlSrc() != link.GetIDUrlDest()) acheckcode = 71; // Auto-redirect should not be used (OAC #72) if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, acheckcode)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (CurrentTag == HtmlStatement::Tag_INPUT) { // Missing ALT for input images (OAC #58) if (tag_acheck & ACHECKTAGinputimg) { if (!(tag_acheck & ACHECKTAGalt)) { if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, 0, 58)) return HtmlParser_AccessibilityCheckFailed; // Failed } else { unsigned altcheck = CheckAlt(); // OAC #61 if (altcheck & ALTsameasfile) { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 61)) // Failed return HtmlParser_AccessibilityCheckFailed; } if (altcheck & ALTlong) // OAC #60 { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 60)) return HtmlParser_AccessibilityCheckFailed; // Failed } else if (altcheck & ALTlong) // OAC #59 { // The accessibility check needs to be inserted if (!InsertAccessibilityCheck( CurrentScheduler->CurrentUrl->GetID(), TagPosition, AltAttrPosition, 59)) return HtmlParser_AccessibilityCheckFailed; // Failed } } } } } return HtmlParser_OK; } // This method realize if a tag needs to be stored and if it contains // a link inside. If yes it provides its storing. // A value is returned, giving the calling function the idea // of what happened inside. HtmlParser::HtmlParser_Codes HtmlParser::FindLink () { const HtmlStatement::ElementLabel Tag (htmlstatement.GetElementLabel()); const HtmlAttribute::AttributeLabel Attribute (htmlattribute.GetAttributeLabel()); int is_a_link(0); // Values: 0 - No Link ; 1 - Normal Link ; 2 - Direct Link // -1 : Anchor (no link) //std::cout << "TAG name: " << htmlstatement.GetTag() << " - label: " << Tag //<< " / Attribute name: " << htmlattribute.GetAttribute() << " - label: " << Attribute << std::endl; std::string Content(htmlattribute.GetContent()); /////// // 'A href' /////// if (Tag == HtmlStatement::Tag_A && Attribute == HtmlAttribute::Attr_HREF) // A href { is_a_link = 1; location |= TAGlink; LastLinkTagPosition = TagPosition; // set the tag position with the last link LinkDescription.clear(); // first erase the description } /////// // Any 'id' attribute or "A name" could be suitable for anchors settings /////// else if (Attribute == HtmlAttribute::Attr_ID || // Any id attribute (Tag == HtmlStatement::Tag_A && Attribute == HtmlAttribute::Attr_NAME)) // A name { // It's a anchor. Let's decode it's SGML entities htmlattribute.SetContent(encodeSGML(htmlattribute.GetContent())); // And let's store it always ... even if it's not a link is_a_link = -1; // Special case - not to be stored in the link table } /////// // 'META' tag /////// else if (Tag == HtmlStatement::Tag_META) { if (Attribute == HtmlAttribute::Attr_CONTENT) // Here it's the info { Configuration attrs; attrs.NameValueSeparators("="); attrs.Add(htmlstatement.GetStatement().c_str()); if (!attrs["http-equiv"].empty()) { if (! mystrcasecmp(attrs["http-equiv"], "refresh")) { location |= TAGrefresh; std::string tmp (htmlattribute.GetContent()); const HTCHECK_CHAR* q = mystrcasestr(tmp.c_str(), "url="); if (q) { // Found a Meta 'refresh' directive if (debug > 4) cout << " META refresh found. " << endl; q+=3; // skipping "URL" // And any junk space between 'URL' and '=' and after while (*q && ((*q == '=') || isspace(*q))) { if (*q == (HTCHECK_CHAR) 10) newRow(); ++q; } HTCHECK_CHAR* qq(const_cast<HTCHECK_CHAR*>(q)); while (*qq && (*qq != ';') && (*qq != '"') && !isspace(*qq)) ++qq; *qq = 0; is_a_link = 1; Content = q; } } else if (! mystrcasecmp(attrs["http-equiv"], "content-type")) { std::string tmp (htmlattribute.GetContent()); const HTCHECK_CHAR* q = mystrcasestr(tmp.c_str(), "charset="); if (q) { // Found a Meta 'content-type' directive if (debug > 4) cout << " META content-type found. " << endl; q+=7; // skipping "charset" // And any junk space between 'charset' and '=' and after while (*q && ((*q == '=') || isspace(*q))) { if (*q == (HTCHECK_CHAR) 10) newRow(); ++q; } HTCHECK_CHAR* qq(const_cast<HTCHECK_CHAR*>(q)); while (*qq && !isspace(*qq)) ++qq; *qq = 0; Charset = q; // Set the Charset } } else if (! mystrcasecmp(attrs["http-equiv"], "content-language")) { CurrentScheduler->CurrentUrl->SetContentLanguage( htmlattribute.GetContent() ); } } else if (! mystrcasecmp(attrs["name"], "description")) Description = htmlattribute.GetContent(); // Set the description else if (! mystrcasecmp(attrs["name"], "keywords")) Keywords = htmlattribute.GetContent(); // Set the keywords #ifdef HTDIG_NOTIFICATION else if (! mystrcasecmp(attrs["name"], "htdig-email")) HtDigEmail = htmlattribute.GetContent(); // Set the email else if (! mystrcasecmp(attrs["name"], "htdig-email-subject")) HtDigEmailSubject = htmlattribute.GetContent(); // Set the subject else if (! mystrcasecmp(attrs["name"], "htdig-notification-date")) HtDigNotificationDate = htmlattribute.GetContent(); // Set the date of notification #endif } } /////// // 'HTML' tag /////// else if (Tag == HtmlStatement::Tag_HTML) { // Set the document language if (Attribute == HtmlAttribute::Attr_LANG // lang || Attribute == HtmlAttribute::Attr_XML_LANG) // xml:lang DocLanguage = htmlattribute.GetContent(); } /////// // 'FRAME' tag /////// else if (Tag == HtmlStatement::Tag_FRAME) { if (Attribute == HtmlAttribute::Attr_SRC) // FRAME src is_a_link = 1; } /////// // 'EMBED' tag /////// else if (Tag == HtmlStatement::Tag_EMBED) { if (Attribute == HtmlAttribute::Attr_SRC) // EMBED src is_a_link = 2; // Direct Link } /////// // 'OBJECT' tag /////// else if (Tag == HtmlStatement::Tag_OBJECT) { if (Attribute == HtmlAttribute::Attr_SRC) // OBJECT src is_a_link = 2; // Direct Link else if (Attribute == HtmlAttribute::Attr_DATA) // OBJECT data is_a_link = 2; // Direct Link } /////// // 'IMG' tag /////// else if (Tag == HtmlStatement::Tag_IMG) { CurrentTag = Tag; // within an image if (Attribute == HtmlAttribute::Attr_SRC) // IMG src { CurrentResourceRef = Content; is_a_link = 2; // Direct Link } else if (Attribute == HtmlAttribute::Attr_LOWSRC) // IMG lowsrc is_a_link = 2; // Direct Link } /////// // 'AREA' tag /////// else if (Tag == HtmlStatement::Tag_AREA) { if (Attribute == HtmlAttribute::Attr_HREF) // AREA href is_a_link = 1; } /////// // 'LINK' tag /////// else if (Tag == HtmlStatement::Tag_LINK) { if (Attribute == HtmlAttribute::Attr_HREF) // LINK href is_a_link = 1; } /////// // 'INPUT' tag /////// else if (Tag == HtmlStatement::Tag_INPUT) { if (! htmlstatement.isClosingTag()) { CurrentTag = Tag; if (Attribute == HtmlAttribute::Attr_SRC) // IMG src { CurrentResourceRef = Content; is_a_link = 2; // Direct Link } } } /////// // 'BASE' tag (Ugly command!) ;-) /////// else if (Tag == HtmlStatement::Tag_BASE) { if (Attribute == HtmlAttribute::Attr_HREF) // BASE href { // Let's define a new BASE Url, used for resolving // relative URIs. I don't know who can use this, but HTML 4.0 // enables it. if (BaseUrl != CurrentScheduler->CurrentUrl) delete BaseUrl; // Base Url different from CurrentUrl. So delete it. BaseUrl = new _Url (encodeSGML(Content), *(CurrentScheduler->CurrentUrl)); if (BaseUrl) { if (debug > 0) cout << " New Base Url for relative URIs: " << BaseUrl->get() << endl; } else BaseUrl = CurrentScheduler->CurrentUrl; } } /////// // Let's store any other 'href' attribute /////// else if (Attribute == HtmlAttribute::Attr_HREF) is_a_link = 1; /////// // Let's store any other 'src' attribute /////// else if (Attribute == HtmlAttribute::Attr_SRC) is_a_link = 1; /////// // Let's store any 'background' attribute (BODY, TABLE, etc ...) /////// else if (Attribute == HtmlAttribute::Attr_BACKGROUND) is_a_link = 2; // Direct Link // Let's store the links if (is_a_link > 0) { std::string DecodedContent(encodeSGML(Content)); bool bad_encoded = false; if (mystrncasecmp("javascript:", DecodedContent.c_str(), 11)) { #ifdef HTCHECK_DEBUG std::cout << "SGML decoding: " << DecodedContent << std::endl; #endif std::string UrlDecodedContent(DecodedContent); #ifdef HTCHECK_DEBUG std::cout << "SGML decoded: " << UrlDecodedContent << std::endl; #endif static const std::string reserved_chars(((*CurrentScheduler->Config)["url_reserved_chars"]).get()); encodeURL(UrlDecodedContent, reserved_chars); // Encoded URL (URL) // Let's check whether the URL is not well encoded if (DecodedContent.compare(UrlDecodedContent)) { if (debug > 0) { cout << " ! URL not perfectly encoded: " << Content << " rather than " << UrlDecodedContent << endl; } bad_encoded = true; // Bad encoding of the URL } } _Url *DestUrl = new _Url (DecodedContent, *BaseUrl); if (DestUrl) { unsigned int IDUrlDest; // Valid referenced Url CurrentScheduler->AddUrl(DestUrl->get().get(), IDUrlDest); if (debug > 3) cout << htmlattribute.GetContent() << " -> " << DestUrl->get() << endl; link.Reset(); // reset the previous link object // Set the source Url ID link.SetIDUrlSrc(CurrentScheduler->CurrentUrl->GetID()); // Set the dest Url ID link.SetIDUrlDest(IDUrlDest); // Set the tag position link.SetTagPosition(htmlstatement.GetTagPosition()); // Set the attribute position link.SetAttrPosition(htmlattribute.GetAttrPosition()); if (bad_encoded) link.SetLinkResult("BadEncoded"); // Set the anchor field, if a '#' is present in the // HTML attribute's content const std::string::size_type position(htmlattribute.GetContent().rfind('#')); if (position != std::string::npos) { // Decode the content std::string decoded; const std::string from (htmlattribute.GetContent().c_str() + (position + 1)); // There's an anchor link.SetAnchor(encodeSGML(from)); } // Set the Link Type switch(is_a_link) { case 1: link.SetLinkType("Normal"); break; case 2: link.SetLinkType("Direct"); break; } // Let's check whether it regards a 'file://' call // which is certainly broken, or an e-mail address if (CurrentScheduler->CurrentLinkSchedule.GetStatus() == SchedulerEntry::Url_FileProtocol) { // Hey, there's a 'file://' call, it's an error! link.SetLinkResult("Broken"); if (debug > 2) cout << " 'file:/' link, error!" << endl; } else if (CurrentScheduler->CurrentLinkSchedule.GetStatus() == SchedulerEntry::Url_Malformed) { // Hey, there's a malformed URL, it's an error! link.SetLinkResult("Broken"); if (debug > 2) cout << " link to a malformed URL, error!" << endl; } else if (CurrentScheduler->CurrentLinkSchedule.GetStatus() == SchedulerEntry::Url_EMail) { // There's an e-mail address! link.SetLinkResult("EMail"); if (debug > 2) cout << " e-mail address!" << endl; } else if (CurrentScheduler->CurrentLinkSchedule.GetStatus() == SchedulerEntry::Url_Javascript) { // There's a Javascript inserted through the pseudo-protocol // that is to say 'javascript:' link.SetLinkResult("Javascript"); if (debug > 2) cout << " link to Javascript URL " << "(through the 'javascript:' pseudo-protocol)!" << endl; } // Update the Domain information for the link switch(CurrentScheduler->CurrentLinkSchedule.GetDomain()) { case SchedulerEntry::Url_External: link.SetLinkDomain(Link::Link_External); break; case SchedulerEntry::Url_Internal: if (CurrentScheduler->CurrentLinkSchedule.GetIDServer() == CurrentScheduler->CurrentUrl->GetIDServer()) link.SetLinkDomain(Link::Link_SameServer); else link.SetLinkDomain(Link::Link_Internal); break; case SchedulerEntry::Url_Unknown: link.SetLinkDomain(Link::Link_Unknown); } // Write the link object if (!CurrentScheduler->GetDB()->Insert(link)) return HtmlParser_LinkFailed; } delete DestUrl; } //cout << "TAG: " << Tag << " - LOCATION POST: " << location << endl; switch (is_a_link) { case 0: return HtmlParser_NoLink; break; case 1: return HtmlParser_NormalLink; break; case 2: return HtmlParser_DirectLink; break; case -1: return HtmlParser_Anchor; break; } // We should not get up to here, anyway this avoid warning messages return HtmlParser_NoLink; } int HtmlParser::CheckTag(const HtmlStatement& tag) { // More controls in order to decide which tags to store if (debug > 5) cout << "Checking tag: " << tag.GetTag() << endl; const HtmlStatement::ElementLabel label(tag.GetElementLabel()); /////// // 'HEAD' tag /////// if (label == HtmlStatement::Tag_HEAD) { if (! tag.isClosingTag()) { location |= TAGhead; CurrentTag = label; } else { location &= ~TAGhead; } } /////// // 'SCRIPT' tag /////// else if (label == HtmlStatement::Tag_SCRIPT) { if (! tag.isClosingTag()) { location |= TAGscript; } else { location &= ~TAGscript; } } /////// // 'TITLE' tag /////// else if (label == HtmlStatement::Tag_TITLE) { if (location & TAGhead) { if (! tag.isClosingTag()) { location |= TAGtitle; doc_acheck |= ACHECKDOCtitle; } else { location &= ~TAGtitle; } } } /////// // 'A' tag /////// else if (label == HtmlStatement::Tag_A) { if (! tag.isClosingTag()) { location &= ~TAGlink; } } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// // Accessibility Checks //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// if (!CurrentScheduler->Config->Boolean("accessibility_checks")) return 1; /////// // 'Hx' tag /////// if (label >= HtmlStatement::Tag_H1 && label <= HtmlStatement::Tag_H6) { if (! tag.isClosingTag()) { location |= TAGhx; CurrentHx = (label - HtmlStatement::Tag_H1 + 1); if ((HxStep = (CurrentHx - PreviousHx)) > 1) store_statement = true; PreviousHx = CurrentHx; } else { location &= ~TAGhx; } } /////// // 'B' tag /////// else if (label == HtmlStatement::Tag_B) { if (! tag.isClosingTag()) { CurrentTag = label; } } /////// // 'I' tag /////// else if (label == HtmlStatement::Tag_I) { if (! tag.isClosingTag()) { CurrentTag = label; } } /////// // 'BLINK' tag /////// else if (label == HtmlStatement::Tag_BLINK) { if (! tag.isClosingTag()) { CurrentTag = label; } } /////// // 'MARQUEE' tag /////// else if (label == HtmlStatement::Tag_MARQUEE) { if (! tag.isClosingTag()) { CurrentTag = label; } } return 1; } // Insert an accessibility check record into the database bool HtmlParser::InsertAccessibilityCheck(unsigned int idurl, unsigned int tagposition, unsigned int attrposition, unsigned int code) { // Accessibility Check object AccessibilityCheck accessibilitycheck; // Set the parameters accessibilitycheck.SetIDCheck(AccessibilityCheck::GetLastID() +1); accessibilitycheck.SetIDUrl(idurl); accessibilitycheck.SetTagPosition(tagposition); accessibilitycheck.SetAttrPosition(attrposition); accessibilitycheck.SetCode(code); // Updates the check ID (counter) AccessibilityCheck::SetLastID(accessibilitycheck.GetIDCheck()); // The accessibility check needs to be inserted return CurrentScheduler->GetDB()->Insert(accessibilitycheck); } // Returns the length of an SGML string stripping consecutive spaces unsigned HtmlParser::CountSGMLStringLength(const char* str) { unsigned counter(0); for (const char* p = str; p && *p; ++p) { // Ignore consecutive and initial spaces if (isspace(*p)) { if (!counter || isspace(* (p-1))) continue; } ++counter; } return counter; } // Returns an integer with results of a check regarding an ALT text unsigned HtmlParser::CheckAlt() { unsigned rv(0); //////////////////////////////////// // ALT Text //////////////////////////////////// // Remove trailing and ending spaces const std::string::size_type alt_last_valid(CurrentAltText.find_last_not_of("\n \r\t")); const std::string::size_type alt_first_valid(CurrentAltText.find_first_not_of("\n \r\t")); if (alt_last_valid != std::string::npos && alt_first_valid != std::string::npos) { std::string clean_alt(CurrentAltText.substr(alt_first_valid, alt_last_valid - alt_first_valid + 1)); //////////////////////////////////// // Link //////////////////////////////////// // Remove trailing and ending spaces const std::string::size_type last_valid(CurrentResourceRef.find_last_not_of("\n \r\t")); const std::string::size_type first_valid(CurrentResourceRef.find_first_not_of("\n \r\t")); if (last_valid != std::string::npos && first_valid != std::string::npos) { std::string clean_resource_ref(CurrentResourceRef.substr(first_valid, last_valid - first_valid + 1)); const std::string::size_type last_slash(clean_resource_ref.find_last_of('/')); // Get the file name if (last_slash != std::string::npos) { const std::string file_name(clean_resource_ref.substr(last_slash+1)); // Compares the file name and the alt text if (file_name.length() == clean_alt.length()) { const std::string::size_type l( clean_alt.length() ); bool identical(true); // Lowercase comparison of the file name and the ALT text for (std::string::size_type j(0); identical && j < l; ++j) { if (tolower(file_name[j]) != tolower(clean_alt[j])) { identical = false; } } if (identical) { rv |= ALTsameasfile; } } } } // Controls the length of the text // Encode the ALT and count its length unsigned counter = CountSGMLStringLength(encodeSGML(clean_alt).c_str()); // ALT longer than 150 characters if (counter >= 150) rv |= ALTlong; } else { rv |= ALTempty; } return rv; } #ifdef HTDIG_NOTIFICATION // Properly set the htDig notification date // Disclaimer: the logic behind this function has been taken from // the ht://Dig code. The actual code has been slightly modified. // However, without their work it would have taken much more // time to develop it. Thanks guys. :) bool HtmlParser::parseDate(const std::string& date) { std::string scandate (date); int dd(-1), mm(-1), yy(-1), t(0); // Convert punctuation into spaces for sscanf for (std::string::iterator s(scandate.begin()); s != scandate.begin(); ++s) { if (ispunct(*s)) *s = ' '; } ////////////////////////////////////// // Try with the ISO 8601 standard ////////////////////////////////////// sscanf(scandate.c_str(), "%d%d%d", &yy, &mm, &dd); // Test the date if (testDate(dd, mm, yy)) { setHtDigNotificationDate(dd, mm, yy); return true; } ////////////////////////////////////// // Try with the American format ////////////////////////////////////// sscanf(scandate.c_str(), "%d%d%d", &mm, &dd, &yy); if (mm > 31 && dd <= 12 && yy <= 31) { // probably got yyyy-mm-dd instead of mm/dd/yy t = mm; mm = dd; dd = yy; yy = t; } // Test the date if (testDate(dd, mm, yy)) { setHtDigNotificationDate(dd, mm, yy); return true; } ////////////////////////////////////// // No luck - let's try and guess it ////////////////////////////////////// // OK, we took our best guess at the order the y, m & d should be. // Now let's see if we guessed wrong, and fix it. This won't work // for ambiguous dates (e.g. 01/02/03), which must be given in the // expected format. // Code from ht://Dig 3.1 if (dd > 31 && yy <= 31) { t = yy; yy = dd; dd = t; } if (mm > 31 && yy <= 31) { t = yy; yy = mm; mm = t; } if (mm > 12 && dd <= 12) { t = dd; dd = mm; mm = t; } // Test the date if (testDate(dd, mm, yy)) { setHtDigNotificationDate(dd, mm, yy); return true; } return false; } // Test whether a date is correct bool HtmlParser::testDate(const int dd, const int mm, const int yy) const { if (yy < 0 || mm < 1 || mm > 12 || dd < 1 || dd > 31) return false; return true; } // Test whether a date is correct void HtmlParser::setHtDigNotificationDate(const int dd, const int mm, const int yy) { std::ostringstream s; s << yy << '-' << mm << '-' << dd; HtDigNotificationDate = s.str(); } #endif �����������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htparsing/HtWordCodec.cc�����������������������������������������������������0000644�0000000�0000000�00000027464�11177570271�016253� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtWordCodec.cc // // HtWordCodec: Given two lists of pair of "words" 'from' and 'to'; // simple one-to-one translations, use those lists to translate. // Only restriction are that no null (0) characters must be // used in "words", and that there is a character "joiner" that // does not appear in any word. One-to-one consistency may be // checked at construction. // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1999, 2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtWordCodec.cc,v 1.2 2002-06-11 15:48:19 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtWordCodec.h" // Do not use 0, so we can use "normal" string routines. // Values 1..4 are used to describe how many bytes are used to // keep the number. Do not use other than control-characters, // as the first character for internal encodings, so the user // can use "international" characters (128 .. 255) for cute // encodings to use across different configuration files and // databases. #define JOIN_CHAR 5 #define QUOTE_CHAR 6 #define FIRST_INTERNAL_SINGLECHAR 7 #define LAST_INTERNAL_SINGLECHAR 31 HtWordCodec::HtWordCodec() { myFrom = 0; myTo = 0; myFromMatch = 0; myToMatch = 0; } HtWordCodec::~HtWordCodec() { if (myFrom) delete myFrom; if (myTo) delete myTo; if (myFromMatch) delete myFromMatch; if (myToMatch) delete myToMatch; } // Straightforward filling of the encoding-lists. HtWordCodec::HtWordCodec(StringList *from, StringList *to, char joiner) { myFromMatch = new StringMatch; myToMatch = new StringMatch; myTo = to; myFrom = from; String to_pattern(myTo->Join(joiner)); // After being initialized with Join, the strings are not // null-terminated, but that is done through "operator char*". myToMatch->Pattern(to_pattern, joiner); String from_pattern(myFrom->Join(joiner)); myFromMatch->Pattern(from_pattern, joiner); } // This constructor is the most complicated function in this class. // It handles consistency checking for the supplied code-lists. // Cleanups for anything except myTo, myFrom, myToMatch is // necessary. The member myFromMatch is used as a sanity check // for member functions to see that the constructor was // successful in case the programmer forgets to check errmsg. HtWordCodec::HtWordCodec(StringList &requested_encodings, StringList &frequent_substrings, String &errmsg) { if ((requested_encodings.Count() % 2) != 0) { errmsg = "Expected pairs, got odd number of strings"; return; } myFrom = new StringList; myTo = new StringList; // Go through requested_encodings and fill myTo and myFrom. // Check that the "to" strings look remotely sane regarding // reserved characters. // Iteration temporaries. String *from; String *to; int n_of_pairs = requested_encodings.Count() / 2; requested_encodings.Start_Get(); while ((from = (String *) requested_encodings.Get_Next()) != NULL) { // Sanity check: Reserve empty strings as we cannot do // anything sane with them. int templen = from->length(); if (templen == 0) { errmsg = "Empty strings are not allowed"; return; } myFrom->Add(new String(*from)); // This must be non-null since we checked "oddness" above. to = (String *) requested_encodings.Get_Next(); templen = to->length(); if (templen == 0) { errmsg = "Empty strings are not allowed"; return; } // We just have to check that there's no JOIN_CHAR in the // string. Since no "to" is allowed to be part of any other // "to", there will be no ambiguity, even if one would // contain a QUOTE_CHAR (which is documented as invalid anyway). if (strchr(from->get(), JOIN_CHAR) != NULL) { errmsg = form("(\"%s\" =>) \"%s\" contains a reserved character (number %d)", from->get(), to->get(), int(JOIN_CHAR)); return; } // Loop over the other "to"-strings and check that this // string is not a substring of any other "to", or vice versa. // Return in error if it is so. int i; int count = myTo->Count(); for (i = 0; i < count; i++) { String *ith = (String *) myTo->Nth(i); // Just check if the shorter string is part of the // longer string. if (to->length() < ith->length() ? ith->indexOf(to->get()) != -1 : to->indexOf(ith->get()) != -1) { errmsg = form("\"%s\" => \"%s\" collides with (\"%s\" => \"%s\")", from, to, (*myFrom)[i], ith->get()); return; } } // All ok, just add this one. myTo->Add(new String(*to)); } // Check that none of the "to"-strings is a substring of any // of the "from" strings, since that's hard to support and // most probably is a user mistake anyway. StringMatch req_tos; String req_to_pattern(myTo->Join(JOIN_CHAR)); int which, length; // The StringMatch functions want the strings // zero-terminated, which is done through "operator char*". req_tos.Pattern(req_to_pattern, JOIN_CHAR); // Check the requested encodings. if (n_of_pairs != 0) { int i; for (i = 0; i < n_of_pairs; i++) { from = (String *) myFrom->Nth(i); if (req_tos.FindFirst(from->get(), which, length) != -1) { if (i != which) { errmsg = form("(\"%s\" => \"%s\") overlaps (\"%s\" => \"%s\")", (*myFrom)[which], (*myTo)[which], from->get(), (*myTo)[i]); } else { errmsg = form("Overlap in (\"%s\" => \"%s\")", from->get(), (*myTo)[i]); } return; } } } if (frequent_substrings.Count() != 0) { // Make a temporary search-pattern of the requested // from-strings. StringMatch req_froms; String req_from_pattern(myFrom->Join(JOIN_CHAR)); req_froms.Pattern(req_from_pattern, JOIN_CHAR); // Continue filling "to" and "from" from frequent_substrings and // internal encodings. If a frequent_substring is found in the // requested from-strings, it is ignored, but the internal // encoding is still ticked up, so that changes in // requested_encodings (e.g. url_part_aliases) do not change // an existing database (e.g. containing common_url_parts). int internal_encoding_no = 0; String *common_part; frequent_substrings.Start_Get(); String to; for (; (common_part = (String *) frequent_substrings.Get_Next()) != NULL; internal_encoding_no++) { int templen = common_part->length(); if (templen == 0) { errmsg = "Empty strings are not allowed"; return; } // Is a "From" string in it, or is a "To" string in it? // Note that checking if there are *any* requested // encodings (n_of_pairs) is not just an "optimization"; // it is necessary since StringMatch will return 0 (not // -1) if the pattern is empty (FIXME: changing that // breaks something else in another part of ht://Dig). if (n_of_pairs && (req_froms.FindFirst(common_part->get()) != -1 || req_tos.FindFirst(common_part->get()) != -1)) continue; to = 0; // Clear previous run. // Dream up an encoding without zeroes. // Use FIRST_INTERNAL_SINGLECHAR .. LAST_INTERNAL_SINGLECHAR // for the first encodings, as much as possible. long int number_to_store = internal_encoding_no + FIRST_INTERNAL_SINGLECHAR; if (number_to_store <= LAST_INTERNAL_SINGLECHAR) { to << char(number_to_store); } else { // Use <number-of-bytes-in-length> // <number-as-nonzero-bytes> to code the rest. // Note that we assume eight-bit chars here, which // should be ok for all systems you run htdig on. // At least it helps clarity here. number_to_store -= LAST_INTERNAL_SINGLECHAR; // Make sure highest bit in every byte is "1" by // inserting one there. char to_store[sizeof(number_to_store)+1]; int j = 1; while (number_to_store > 0x7f) { number_to_store = ((number_to_store & ~0x7f) << 1) | 0x80 | (number_to_store & 0x7f); to_store[j++] = char(number_to_store); number_to_store >>= 8; } // Finally, store the highest byte. It too shall have // the highest bit set. This is the easiest way to // adjust it not to be QUOTE_CHAR. to_store[0] = j; to_store[j] = char(number_to_store | 0x80); to.append(to_store, j+1); } // Add to replacement pairs. myFrom->Add(new String(*common_part)); myTo->Add(new String(to)); } } // Now, add the quoted "to":s to the "to"-list, with the unquoted // "to":s to the "from"-list. This way we do not have to // check for quoting separately. Like this: // From To // foo : ! // bar : > // baz : $ // ! : \! // > : \> // $ : \$ // // Since we checked that none of the "To":s are in a "From" we // can do this. myTo->Start_Get(); int to_count = myTo->Count(); String *current; String temp; int i; for (i = 0; i < to_count; i++) { // It works to append *and* iterate through a // StringList, despite not having an iterator class. current = (String *) myTo->Nth(i); myFrom->Add(new String(*current)); temp = 0; // Reset any previous round. temp.append(char(QUOTE_CHAR)); temp.append(*current); myTo->Add(new String(temp)); } myFromMatch = new StringMatch; myToMatch = new StringMatch; String to_pattern(myTo->Join(JOIN_CHAR)); String from_pattern(myFrom->Join(JOIN_CHAR)); // StringMatch class has unchecked limits, better check them. // The length of each string in the pattern an the upper limit // of the needs. if (to_pattern.length() - (myTo->Count() - 1) > 0xffff || from_pattern.length() - (myFrom->Count() - 1) > 0xffff) { errmsg = "Limit reached; use fewer encodings"; return; } myToMatch->Pattern(to_pattern, JOIN_CHAR); myFromMatch->Pattern(from_pattern, JOIN_CHAR); errmsg = 0; } // We only need one "coding" function, since quoting and unquoting is // handled through the to- and from-lists. String HtWordCodec::code(const String &orig_string, StringMatch &match, StringList &replacements) const { String retval; String tempinput; int offset, which, length; const char *orig; // Get a null-terminated string, usable for FindFirst to look at. orig = orig_string.get(); // Sanity check. If bad use, just return empty strings. if (myFromMatch == NULL) { return retval; } // Need to check if "replacements" is empty; that is, if no // transformations should be done. FindFirst() does not return // -1 in this case, it returns 0. if (replacements.Count() == 0) return orig_string; // Find the encodings and replace them. while ((offset = match.FindFirst(orig, which, length)) != -1) { // Append the previous part that was not part of a code. retval.append(orig, offset); // Replace with the original string. retval.append(replacements[which]); orig += offset + length; } // Add the final non-matched part. retval.append(orig); return retval; } // The assymetry is caused by swapping both the matching and // replacement lists. String HtWordCodec::decode(const String &orig) const { return code(orig, *myToMatch, *myFrom); } String HtWordCodec::encode(const String &orig) const { return code(orig, *myFromMatch, *myTo); } // End of HtWordCodec.cc ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/SQL��������������������������������������������������������������������������0000644�0000000�0000000�00000012120�11177570304�012136� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Common SQL statements for ht://Check ------------------------------------ Copyright (c) 1999-2004 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> $Id: SQL,v 1.11 2003-12-30 09:38:29 angusgb Exp $ ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. ht://Check is a world-wide-web utility for an intranet or small internet. ------------------------------------------------------------------- Retrieve all the anchors (A name="anchorname"): SELECT HtmlAttribute.IDUrl, HtmlAttribute.Content FROM HtmlAttribute, HtmlStatement WHERE HtmlStatement.IDUrl=HtmlAttribute.IDUrl AND HtmlAttribute.TagPosition=HtmlStatement.TagPosition AND HtmlAttribute.Attribute='name' AND HtmlStatement.Tag='a'; Retrieve all the anchor found and not after LinkResult has been set by the program with the Scheduler::SetLinkResults() method: SELECT DISTINCT Link.IDUrlSrc, Link.IDUrlDest, Link.TagPosition, Link.AttrPosition, Link.Anchor, TmpAnchors.IDUrl FROM Link LEFT JOIN TmpAnchors ON Link.IDUrlDest=TmpAnchors.IDUrl AND TmpAnchors.Anchor=Link.Anchor WHERE Link.Anchor != '' AND Link.LinkResult='OK' Retrieve all the linked URL: SELECT Link.*, Url.StatusCode FROM Link LEFT JOIN Url on Link.IDUrlDest=Url.IDUrl WHERE Link.LinkResult='NotChecked' Retrieve all of the groups of LinkResult with the retrieval Status: SELECT Link.LinkResult, Schedule.Status, COUNT(*) FROM Link, Schedule WHERE Link.IDUrlDest=Schedule.IDUrl GROUP BY Link.LinkResult, Schedule.Status Retrieve all of the groups of LinkResult: SELECT Link.LinkResult, COUNT(*) FROM Link GROUP BY Link.LinkResult Retrieve all the broken links (1st version - Without redirected URLs, but with HtmlAttribute too): SELECT UrlSrc.IDUrl as IDUrlSrc, UrlDest.IDUrl as IDUrlDest, UrlSrc.Url as UrlSrc, UrlDest.Url as UrlDest, UrlDest.StatusCode, UrlDest.ReasonPhrase, UrlDest.ConnStatus, Link.LinkType, HtmlStatement.Statement, HtmlAttribute.Attribute, HtmlAttribute.Content FROM Url UrlDest, Url UrlSrc, Link, HtmlStatement, HtmlAttribute WHERE Link.LinkResult = 'Broken' AND HtmlStatement.IDUrl = Link.IDUrlSrc AND HtmlStatement.TagPosition = Link.TagPosition AND HtmlAttribute.IDUrl = Link.IDUrlSrc AND HtmlAttribute.TagPosition = Link.TagPosition AND HtmlAttribute.AttrPosition = Link.AttrPosition AND UrlSrc.IDUrl = Link.IDUrlSrc AND UrlDest.IDUrl = Link.IDUrlDest ORDER BY UrlSrc, UrlDest, Link.TagPosition, Link.AttrPosition Retrieve all the broken links (2nd version with redirected Urls but withou HtmlAttribute table): SELECT UrlSrc.IDUrl as IDUrlSrc, UrlDest.IDUrl as IDUrlDest, UrlSrc.Url as UrlSrc, UrlDest.Url as UrlDest, UrlDest.StatusCode, UrlDest.ReasonPhrase, UrlDest.ConnStatus, Link.LinkType, HtmlStatement.Statement FROM Url UrlDest, Url UrlSrc, Link LEFT JOIN HtmlStatement ON HtmlStatement.IDUrl = Link.IDUrlSrc AND HtmlStatement.TagPosition = Link.TagPosition WHERE Link.LinkResult = 'Broken' AND UrlSrc.IDUrl = Link.IDUrlSrc AND UrlDest.IDUrl = Link.IDUrlDest ORDER BY UrlSrc, UrlDest, Link.TagPosition, Link.AttrPosition Retrieve all the anchors not found: SELECT UrlSrc.IDUrl as IDUrlSrc, UrlDest.IDUrl as IDUrlDest, UrlSrc.Url as UrlSrc, UrlDest.Url as UrlDest, Link.LinkType, Link.Anchor, HtmlStatement.Statement FROM Url UrlDest, Url UrlSrc, Link LEFT JOIN HtmlStatement ON HtmlStatement.IDUrl = Link.IDUrlSrc AND HtmlStatement.TagPosition = Link.TagPosition WHERE Link.LinkResult = 'AnchorNotFound' AND UrlSrc.IDUrl = Link.IDUrlSrc AND UrlDest.IDUrl = Link.IDUrlDest ORDER BY UrlSrc, UrlDest, Link.TagPosition, Link.AttrPosition Retrieve all the Urls linked to from inside a URL pattern outside SELECT Source.Url, Dest.Url, Statement FROM Url Source, Schedule Dest, Link LEFT JOIN HtmlStatement ON HtmlStatement.IDUrl = Link.IDUrlSrc AND HtmlStatement.TagPosition = Link.TagPosition WHERE Dest.IDUrl = Link.IDUrlDest AND Source.IDUrl = Link.IDUrlSrc AND Source.Url like 'pattern%' AND Dest.Url not like 'pattern%' Retrieve filenames lengths SELECT Url, instr(reverse(Url),'/') -1 as FileLength, instr(reverse(Url),'.') -1 as ExtensionLength, instr(reverse(Url),'/') - instr(reverse(Url),'.') as NameLength FROM Url Retrieve all the documents that don't respect a filename lenght of 8 chars and an extension bigger than 3 chars (not query string): SELECT Url FROM Url WHERE Url NOT REGEXP '^.*/(([A-Za-z0-9_-]{1,8}\.[A-Za-z]{1,3})?|.*\\?.+)$' Retrieve all the image reference tags which both found and not found image alternative files. SELECT Url.Url, HtmlStatement.Statement, HtmlAttribute.Attribute FROM HtmlStatement, Url LEFT JOIN HtmlAttribute ON HtmlStatement.IDUrl = HtmlAttribute.IDUrl AND HtmlStatement.TagPosition = HtmlAttribute.TagPosition AND HtmlAttribute.Attribute = 'ALT' WHERE Tag='IMG' AND Url.IDUrl = HtmlStatement.IDUrl ORDER BY Attribute, Url, HtmlStatement.TagPosition ------------------------------------------------------------------- ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/���������������������������������������������������������������������0000755�0000000�0000000�00000000000�11245531570�013257� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/Makefile.am����������������������������������������������������������0000644�0000000�0000000�00000001031�11245242267�015310� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> include $(top_srcdir)/Makefile.config pkglib_LTLIBRARIES = libhtmysql.la libhtmysql_la_SOURCES = Htmysql.cc HtmysqlDB.cc libhtmysql_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) libhtmysql_la_CFLAGS =$(MYSQL_CFLAGS) libhtmysql_la_CPPFLAGS =-DDEFAULT_DB_CHARSET=\"$(DEFAULT_DB_CHARSET)\" $(MYSQL_CFLAGS) noinst_HEADERS = Htmysql.h \ HtmysqlDB.h �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/HtmysqlDB.cc���������������������������������������������������������0000644�0000000�0000000�00000220707�11245527263�015451� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////// // MySQL Database class for ht://Check // File: HtmysqlDB.cc // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> // Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtmysqlDB.cc,v 1.91 2009/08/26 12:25:57 angusgb Exp $ // // Started: 28.06.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include <iostream> #include <sstream> #include <iomanip> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <stdlib.h> #include <ctype.h> #include <iostream.h> #include <iomanip.h> #include <sstream.h> #endif /* HAVE_STD */ #include "HtmysqlDB.h" #include "StringList.h" #include "_Url.h" #ifdef HAVE_LOAD_DEFAULTS // Local function (declared as static) static bool getmysqlconfvalue(const char *source, const char *pattern, std::string &destination); #endif #define URL_INDEX_LENGTH 64 #define ESCAPE_STRING(mysql, start, length) \ char* to = new char[length*2+1]; \ mysql_real_escape_string(&mysql, to, start, length); \ Dest += '\'' + to + '\''; \ if (to) { \ delete[] to; \ } #define ESCAPE_OSTRING(mysql, start, length) \ char* to = new char[length*2+1]; \ mysql_real_escape_string(&mysql, to, start, length); \ Dest << '\'' << to << "'"; \ if (to) { \ delete[] to; \ } /////// // Construction /////// #if 0 HtmysqlDB::HtmysqlDB (const std::string &host, const std::string &db, const std::string &user, const std::string &passwd) { MySQLHost = host; MySQLDB = db; MySQLUser = user; MySQLPasswd = passwd; // Set the default length for the Index regarding // the Url field in the Schedule and Url tables URL_Index_Length = URL_INDEX_LENGTH; } #endif HtmysqlDB::HtmysqlDB(const std::string &db, #ifdef HAVE_LOAD_DEFAULTS const std::string &File, #endif const std::string& Group, const std::string &_ClientCharset, const std::string& _DBCharset, int *argc, char ***argv) : MySQLDB(db), #ifdef HAVE_LOAD_DEFAULTS MySQLHost(), MySQLUser(), MySQLPasswd(), MySQLPort(), MySQLSocket(), #endif URL_Index_Length(URL_INDEX_LENGTH), DBSignature(db), ClientCharset(), DBCharset(DEFAULT_DB_CHARSET), AvailableCharsets() { // Set the default length for the Index regarding // the Url field in the Schedule and Url tables #ifdef HAVE_LOAD_DEFAULTS LoadDefaults(File, Group.c_str(), argc, argv); if (MySQLHost.length()) DBSignature += "@" + MySQLHost; if (MySQLPort) DBSignature += ":" + MySQLPort; #else if (debug > 0) cout << " Reading MySQL options for group '" << Group << "'" << endl; ReadDefaultGroup(Group); #endif if (_DBCharset.size() && _DBCharset != "default") { DBCharset = _DBCharset; } if (_ClientCharset.size() && _ClientCharset != "default") { ClientCharset = _ClientCharset; } } /////// // Destruction /////// HtmysqlDB::~HtmysqlDB () { } #ifdef HAVE_LOAD_DEFAULTS void HtmysqlDB::LoadDefaults(const std::string &File, MYSQL_LOAD_DEFAULTS_ARGTWO Group, int *argc, char ***argv) { MYSQL_LOAD_DEFAULTS_ARGTWO group[] = {0, 0}; std::string strPort; group[0] = Group; // Use the MySQL function for getting the default settings // for the connection if (debug >0) cout << " Reading default MySQL option file: " << File << " [" << Group << "]" << endl; load_defaults(File.c_str(), group, argc, argv); for (int i=0; i < *argc; i++) { if (getmysqlconfvalue((*argv)[i], "user", MySQLUser)) { if (debug > 0) cout << " Found MySQL User: " << MySQLUser << endl; } else if (getmysqlconfvalue((*argv)[i], "host", MySQLHost)) { if (debug > 0) cout << " Found MySQL Host: " << MySQLHost << endl; } else if (getmysqlconfvalue((*argv)[i], "password", MySQLPasswd)) { if (debug > 0) cout << " Found MySQL Password: <shhh>" << endl; } else if (getmysqlconfvalue((*argv)[i], "port", strPort)) { MySQLPort = atoi(strPort.c_str()); if (debug > 0) cout << " Found MySQL Port Number: " << MySQLPort << endl; } else if (getmysqlconfvalue((*argv)[i], "socket", MySQLSocket)) { if (debug > 0) cout << " Found MySQL Socket: " << MySQLSocket << endl; } } } #endif #ifdef HAVE_LOAD_DEFAULTS bool getmysqlconfvalue(const char * source, const char *pattern, std::string &destination) { const char *p=source; for (; *p && *p=='-'; p++); // Skip the trailing '-' if (!mystrncasecmp(pattern, p, strlen(pattern))) { destination.clear(); p+=strlen(pattern)+1; // Go over the '=' for (; *p && isspace(*p); p++); destination = p; return true; } return false; } #endif /////// // Connection to the host specified with user and password. // Here we don't connect to a precise database ... We will do it // later using SelectDB method. /////// int HtmysqlDB::Connect () { #ifdef HAVE_LOAD_DEFAULTS const char *host; const char *user; const char *passwd; const char *socket; /////// // Converting empty strings into NULL pointer // This allows MySQL server to act as default /////// if (! MySQLHost.length()) host=NULL; else host = MySQLHost.c_str(); if (! MySQLUser.length()) user=0; else user = MySQLUser.c_str(); if (! MySQLPasswd.length()) passwd=0; else passwd = MySQLPasswd.c_str(); if (! MySQLSocket.length()) socket=0; else socket = MySQLSocket.c_str(); if (debug > 0) cout << "Connecting to MySQL server on " << (host?host:"localhost") << " as " << (user?user:"session") << " user" << endl; /////// // Connecting using Htmysql::Connect Interface method /////// if (! Htmysql::Connect (host, user, passwd, 0, MySQLPort, socket)) return 0; // Something has gone wrong ... Let's check it outside here #else /////// // Connecting using Htmysql::Connect Interface method (using default attributes) /////// if (! Htmysql::Connect()) return 0; // Something has gone wrong ... Let's check it outside here #endif // Set the client encoding if (ClientCharset.length() > 0) { std::string SQLStatement = "SET NAMES " + ClientCharset; if (Query (SQLStatement) == -1) { cout << "Check the value of the 'mysql_client_charset' configuration option: " << ClientCharset << endl; return 0; // An error occured } } return 1; } /////// // Creating a new database for ht://Check // Return 0 if an error occured, 1 OK /////// int HtmysqlDB::CreateDatabase() { std::ostringstream SQLStatement; int result; // This variable holds the length of the URL Index // in the URL and Schedule tables std::ostringstream SQL_Url_Index; SQL_Url_Index << "INDEX Idx_Url (Url"; if (URL_Index_Length > 0) { // Let's set the length SQL_Url_Index << '(' << URL_Index_Length << ')'; } SQL_Url_Index << ')'; /////// // Check if the db already exists /////// result = Exists (MySQLDB); if (result == -1) return 0; // An error occured // Database already exists // Let's drop it before creating a new one with the same name if (result > 0) { if (drop_database) DropDatabase(); // Drop the database else { // Keep the existant database, but drop the tables DropTables(); if (debug >0) cout << "Keep alive previous ht://Check database '" << MySQLDB << "'" << endl; } } else drop_database = true; // Database has been virtually 'dropped' (did not exist) // If a database was not found or it has already dropped, we have to create it if (drop_database) { /////// // Database creation /////// if (debug >0) cout << "Creating ht://Check database '" << MySQLDB << "'" << endl; SQLStatement << "CREATE DATABASE " << MySQLDB; if (DBCharset.length() > 0) SQLStatement << " CHARACTER SET " << DBCharset; // Executing Database creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured } // Select the database SelectDB (MySQLDB); if (debug >0) cout << "Database '" << MySQLDB << "' now selected" << endl; /////// // Creation of the 'Schedule' table /////// if (debug >1) cout << " |- Creating 'htCheck' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".htCheck (" << "\n" << " Version VARCHAR(32) DEFAULT '" << VERSION << "' NOT NULL, " << "\n" << " StartTime DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL, " << "\n" << " EndTime DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL, " << "\n" << " ScheduledUrls MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " TotUrls MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " RetrievedUrls MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " TCPConnections MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " ServerChanges MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " HTTPRequests MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " HTTPSeconds MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " HTTPBytes BIGINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " AccessibilityChecks TINYINT UNSIGNED DEFAULT '1' NOT NULL, " << "\n" << " HtDigNotification TINYINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " User VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " PRIMARY KEY (StartTime, EndTime)" << "\n" << ")" << "\n"; // Executing Table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Schedule' table /////// if (debug >1) cout << " |- Creating 'Schedule' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Schedule (" << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " IDServer SMALLINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " Url VARCHAR(" << URL_DB_SIZE << ") BINARY DEFAULT '' NOT NULL, " << "\n" << " Status ENUM('ToBeRetrieved', 'Retrieved', 'CheckIfExists'," << " 'Checked', 'BadQuerystd::string', 'BadExtension', 'MaxHopCount'," << " 'FileProtocol', 'EMail', 'Javascript', 'NotValidService'," << " 'Malformed', 'MaxUrlsCount') " << "DEFAULT 'ToBeRetrieved' NOT NULL, " << "\n" << " Domain ENUM('Internal', 'External') DEFAULT NULL," << "\n" << " CreationTime DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL, " << "\n" << " IDReferer MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " HopCount TINYINT UNSIGNED DEFAULT '0' NOT NULL, " << "\n" << " PRIMARY KEY (IDUrl), " << "\n" << " INDEX Idx_IDServer (IDServer), " << "\n" << " " << SQL_Url_Index.str() << ", " << "\n" << " INDEX Idx_Status (Status) " << "\n" << ")" << "\n"; // Executing Table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Server' table /////// if (debug >1) cout << " |- Creating 'Server' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Server (" << "\n" << " IDServer SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Server VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " IPAddress VARCHAR(15)," << "\n" << " Port SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " HttpServer VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " HttpVersion VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " PersistentConnection TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Requests SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " PRIMARY KEY (IDServer), " << "\n" << " INDEX Idx_Server (Server(24)), " << "\n" << " INDEX Idx_Requests (Requests) " << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Url' table /////// if (debug >1) cout << " |- Creating 'Url' table" << endl; // Write the SQL statement // First builds the Charset field as an enumeration of possible values std::string tmpcharsets; for (CharsetsMap::const_iterator cs(AvailableCharsets.begin()); cs != AvailableCharsets.end(); ++cs) { tmpcharsets += '\'' + (*cs) + '\'' + ','; } SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Url (" << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " IDServer SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Url VARCHAR(" << URL_DB_SIZE << ") BINARY DEFAULT '' NOT NULL," << "\n" << " HTTPContentType VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " ContentType VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " ConnStatus ENUM('OK', 'NoHeader', 'NoHost', 'NoPort', " << "'NoConnection', 'ConnectionDown', 'ServiceNotValid', " << "'OtherError', 'ServerError') " << "DEFAULT 'OK' NOT NULL, " << "\n" << " ContentLanguage VARCHAR(16) DEFAULT '' NOT NULL," << "\n" << " TransferEncoding VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " LastModified DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL," << "\n" << " LastAccess DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL," << "\n" << " Size INT DEFAULT '0' NOT NULL," << "\n" << " StatusCode SMALLINT DEFAULT '0' NOT NULL," << "\n" << " ReasonPhrase VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " Location VARCHAR(" << URL_DB_SIZE << ") BINARY DEFAULT '' NOT NULL," << "\n" << " Title VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " Contents MEDIUMTEXT DEFAULT NULL," << "\n" << " DocType ENUM('not-public', 'not-html', " << "\n" << " 'xhtml-11', 'xhtml-10', 'xhtml-10-transitional', 'xhtml-10-frameset'," << "\n" << " 'html-401', 'html-401-transitional', 'html-401-frameset'," << "\n" << " 'html-40', 'html-40-transitional', 'html-40-frameset'," << "\n" << " 'html-32', 'html-20', 'html-20-level2', 'html-20-level1'," << "\n" << " 'html-20-strict', 'html-20-strict-level1', 'html-iso-iec-15445-2000'," << "\n" << " 'unknown') DEFAULT NULL," << "\n" << " HTTPCharset ENUM(" << tmpcharsets << "'unknown') DEFAULT NULL," << "\n" << " Charset ENUM(" << tmpcharsets << "'unknown') DEFAULT NULL," << "\n" << " Description VARCHAR(255) DEFAULT NULL," << "\n" << " Keywords VARCHAR(255) DEFAULT NULL," << "\n" << " HtDigEmail VARCHAR(255) DEFAULT NULL," << "\n" << " HtDigEmailSubject VARCHAR(255) DEFAULT NULL," << "\n" << " HtDigNotificationDate DATE DEFAULT NULL," << "\n" << " SizeAdd INT DEFAULT '0' NOT NULL," << "\n" // << " OutgoingLinks SMALLINT DEFAULT '0' NOT NULL," << "\n" // << " IncomingLinks SMALLINT DEFAULT '0' NOT NULL," << "\n" // << " IncomingUrls SMALLINT DEFAULT '0' NOT NULL," << "\n" // << " OutgoingDocuments SMALLINT DEFAULT '0' NOT NULL," << "\n" << " PRIMARY KEY (IDUrl), " << "\n" << " INDEX Idx_IDServer (IDServer), " << "\n" << " " << SQL_Url_Index.str() << ", " << "\n" << " INDEX Idx_ContentType (ContentType(16)), " << "\n" << " INDEX Idx_StatusCode (StatusCode), " << "\n" << " INDEX Idx_HTTPCharset (HTTPCharset)," << "\n" << " INDEX Idx_Charset (Charset)," << "\n" << " INDEX Idx_HtDigNotificationDate (HtDigNotificationDate)" << "\n" << ")" ; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'HtmlStatement' table /////// if (debug >1) cout << " |- Creating 'HtmlStatement' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".HtmlStatement (" << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " TagPosition SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Row MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Col MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Tag VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " Statement VARCHAR(255)," << "\n" << " LinkTagPosition SMALLINT UNSIGNED," << "\n" << " LinkDescription VARCHAR(255)," << "\n" << " PRIMARY KEY (IDUrl, TagPosition)," << "\n" << " INDEX Idx_Tag (Tag(4))," << "\n" << " INDEX Idx_Statement (Tag(8))" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'HtmlAttribute' table /////// if (debug >1) cout << " |- Creating 'HtmlAttribute' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".HtmlAttribute (" << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " TagPosition SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " AttrPosition TINYINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Attribute VARCHAR(32) DEFAULT '' NOT NULL," << "\n" << " Content VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " PRIMARY KEY (IDUrl, TagPosition, AttrPosition)," << "\n" << " INDEX Idx_Attribute (Attribute(8))," << "\n" << " INDEX Idx_Content (Content(8))" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Link' table /////// if (debug >1) cout << " |- Creating 'Link' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Link (" << "\n" << " IDUrlSrc MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " IDUrlDest MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " TagPosition SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " AttrPosition TINYINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Anchor VARCHAR(255) BINARY DEFAULT '' NOT NULL," << "\n" << " LinkType ENUM('Normal', 'Direct', 'Redirection') " << "DEFAULT 'Normal' NOT NULL, " << "\n" << " LinkResult " << "ENUM('NotChecked', 'NotRetrieved', 'OK', 'Broken', " << "'AnchorNotFound', 'Redirected', 'NotAuthorized', " << "'EMail', 'Javascript', 'BadEncoded') " << "DEFAULT 'NotChecked' NOT NULL, " << "\n" << " LinkDomain " << "ENUM('SameServer', 'Internal', 'External') " << "DEFAULT NULL, " << "\n" << " PRIMARY KEY (IDUrlSrc, IDUrlDest, TagPosition, AttrPosition)" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Cookies' table /////// if (debug >1) cout << " |- Creating 'Cookies' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Cookies (" << "\n" << " IDCookie MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Name VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " Value TEXT DEFAULT '' NOT NULL," << "\n" << " Path VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " Domain VARCHAR(255) DEFAULT '' NOT NULL," << "\n" << " MaxAge MEDIUMINT DEFAULT '-1' NOT NULL," << "\n" << " Version TINYINT DEFAULT '0' NOT NULL," << "\n" << " SrcUrl VARCHAR(" << URL_DB_SIZE << ") DEFAULT '' NOT NULL," << "\n" << " Expires DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL, " << "\n" << " Secure TINYINT DEFAULT '0' NOT NULL, " << "\n" << " DomainValid TINYINT DEFAULT '0' NOT NULL, " << "\n" << " PRIMARY KEY (IDCookie)" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'Accessibility' table /////// if (debug >1) cout << " |- Creating 'Accessibility' table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".Accessibility (" << "\n" << " IDCheck MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " TagPosition SMALLINT UNSIGNED DEFAULT '0' NULL," << "\n" << " AttrPosition TINYINT UNSIGNED DEFAULT '0' NULL," << "\n" << " Code SMALLINT UNSIGNED DEFAULT '0' NULL," << "\n" << " PRIMARY KEY (IDCheck)," << "\n" << " INDEX (IDUrl, TagPosition, AttrPosition)," << "\n" << " INDEX (Code, IDUrl, TagPosition)" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured /////// // Creation of the 'TmpAnchors' temporary table /////// if (debug >1) cout << " |- Creating 'TmpAnchors' temporary table" << endl; // Write the SQL statement SQLStatement.str(""); // Initialize it again. SQLStatement << "CREATE TABLE " << MySQLDB << ".TmpAnchors (" << "\n" << " IDUrl MEDIUMINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " TagPosition SMALLINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " AttrPosition TINYINT UNSIGNED DEFAULT '0' NOT NULL," << "\n" << " Anchor VARCHAR(255) BINARY DEFAULT '' NOT NULL," << "\n" << " PRIMARY KEY (IDUrl, TagPosition, AttrPosition), " << "\n" << " INDEX Idx_Anchor (Anchor(16))" << "\n" << ")" << "\n"; // Executing table creation if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Dropping a database for ht://Check // Return 0 if an error occured, 1 OK /////// int HtmysqlDB::DropDatabase() { std::ostringstream SQLStatement; if (debug >0) cout << "Dropping a previous ht://Check database called '" << MySQLDB << "'" << endl; SQLStatement << "DROP DATABASE " << MySQLDB; // Executing Database dropping if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Keep the database for ht://Check, but recreate the tables // Return 0 if an error occured, 1 OK /////// int HtmysqlDB::DropTables() { std::ostringstream SQLStatement; if (debug >0) cout << "Dropping the tables of a previous ht://Check database called '" << MySQLDB << "'" << endl; SQLStatement << "DROP TABLE IF EXISTS " << MySQLDB << ".HtmlAttribute, " << MySQLDB << ".HtmlStatement, " << MySQLDB << ".Link, " << MySQLDB << ".Schedule, " << MySQLDB << ".Server, " << MySQLDB << ".Url, " << MySQLDB << ".htCheck, " << MySQLDB << ".TmpAnchors, " << MySQLDB << ".Cookies, " << MySQLDB << ".Accessibility "; // Executing Database dropping if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Set the SQL BIG TABLES option (for huge queries) /////// int HtmysqlDB::SetSQLBigTableOption () { if (debug >0) cout << "Setting option for big tables" << endl; if (Query ("SET OPTION SQL_BIG_TABLES = 1") == -1) return 0; return 1; } /////// // Optimize all the tables of the Database /////// int HtmysqlDB::Optimize() { std::ostringstream SQLStatement; HtDateTime OptimizeTime; if (debug >0) cout << "Optimizing Database '" << MySQLDB << "'" << " - " << OptimizeTime.GetAscTime()<< endl; /////// // Optimization of the 'Schedule' table /////// if (debug >1) cout << " |- 'Schedule' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ( "OPTIMIZE TABLE Schedule" ) == -1) return 0; /////// // Optimization of the 'Url' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'Url' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ( "OPTIMIZE TABLE Url" ) == -1) return 0; /////// // Optimization of the 'HtmlStatement' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'HtmlStatement' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ( "OPTIMIZE TABLE HtmlStatement" ) == -1) return 0; /////// // Optimization of the 'HtmlAttribute' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'HtmlAttribute' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ("OPTIMIZE TABLE HtmlAttribute") == -1) return 0; /////// // Optimization of the 'Link' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'Link' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ( "OPTIMIZE TABLE Link" ) == -1) return 0; /////// // Optimization of the 'Server' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'Server' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ( "OPTIMIZE TABLE Server" ) == -1) return 0; /////// // Optimization of the 'Cookies' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'Cookies' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ("OPTIMIZE TABLE Cookies") == -1) return 0; /////// // Optimization of the 'htCheck' table /////// OptimizeTime.SettoNow(); if (debug >1) cout << " |- 'htCheck' table optimization" << " - " << OptimizeTime.GetAscTime()<< endl; if (Query ("OPTIMIZE TABLE htCheck") == -1) return 0; return 1; } /////// // Insert a Server into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const _Server &server) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting a new server into '" << MySQLDB << "': " << server.host() << ":" << server.port() << endl; SQLStatement << "Insert into " << MySQLDB << ".Server ( " << "IDServer, Server, IPAddress, Port, HttpServer, " << "HttpVersion, PersistentConnection, Requests" << " ) values ( " << server.GetID() << ", "; // Escape safe host name AppendSQLTextField(SQLStatement, server.host().get()); SQLStatement << ", " << "'" << server.GetIPAddress() << "'" << ", " << server.port() << ", "; // Escape safe host HTTP server AppendSQLTextField(SQLStatement, server.GetHttpServer()); SQLStatement << ", "; // Escape safe host HTTP version AppendSQLTextField(SQLStatement, server.GetHttpVersion()); SQLStatement << ", " << server.IsPersistentConnectionAllowed() << ", " << server.GetRequests() << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert an Url into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const _Url &url) { std::ostringstream SQLStatement; std::string Status=""; std::string DocType=""; // Retrieve the std::string value of the Status url.RetrieveConnStatus(Status); // Retrieve the string value for the doctype url.RetrieveDocType(DocType); if (debug >4) cout << "Inserting a new url into '" << MySQLDB << "': " << url.get() << endl; SQLStatement << "Insert into " << MySQLDB << ".Url ( " << "IDUrl, IDServer, Url, HTTPContentType, ContentType, ConnStatus, TransferEncoding, " << "LastModified, LastAccess, Size, StatusCode, " << "ReasonPhrase, Location, Title, ContentLanguage, " << "Contents, HTTPCharset, Charset, DocType, " << "Description, Keywords" #ifdef HTDIG_NOTIFICATION << ", HtDigEmail, HtDigEmailSubject, HtDigNotificationDate" #endif << " ) values ( " << url.GetID() << ", " << url.GetIDServer() << ", "; // Escape safe URL AppendSQLTextField(SQLStatement, url.get()); SQLStatement << ", "; // Escape safe URL content-type (HTTP) AppendSQLTextField(SQLStatement, url.GetHTTPContentType()); SQLStatement << ", "; // Escape safe URL content-type AppendSQLTextField(SQLStatement, url.GetContentType()); SQLStatement << ", " << "'" << Status << "'" << ", "; // TransferEncoding AppendSQLTextField(SQLStatement, url.GetTransferEncoding()); SQLStatement << ", " << "'" << (url.GetLastModified()?(url.GetLastModified())->GetTimeStamp():"") << "'" << ", " << "'" << (url.GetLastAccess()?(url.GetLastAccess())->GetTimeStamp():"") << "'" << ", " << url.GetSize() << ", " << url.GetStatusCode() << ", "; // Reason Phrase AppendSQLTextField(SQLStatement, url.GetReasonPhrase()); SQLStatement << ", "; // Url redirection AppendSQLTextField(SQLStatement, url.GetLocation()); SQLStatement << ", "; // Url Title AppendSQLTextField(SQLStatement, url.GetTitle()); SQLStatement << ", "; // ContentLanguage AppendSQLTextField(SQLStatement, url.GetContentLanguage()); SQLStatement << ", "; // Contents const std::string* doc(url.GetContents()); if (doc) { AppendSQLTextField(SQLStatement, doc->c_str()); } else SQLStatement << "NULL"; SQLStatement << ", "; // HTTPCharset if (url.GetHTTPCharset().length()) { std::string cs; for (std::string::const_iterator c(cs.begin()); c != cs.end(); ++c) { cs.push_back (tolower(*c)); } if (AvailableCharsets.find(cs) == AvailableCharsets.end()) cs = "unknown"; AppendSQLTextField(SQLStatement, cs); } else SQLStatement << "NULL"; SQLStatement << ", "; // Charset if (url.GetCharset().length()) { std::string cs; for (std::string::const_iterator c(cs.begin()); c != cs.end(); ++c) { cs.push_back (tolower(*c)); } if (AvailableCharsets.find(cs) == AvailableCharsets.end()) cs = "unknown"; AppendSQLTextField(SQLStatement, cs); } else SQLStatement << "NULL"; SQLStatement << ", "; // DocType if (DocType.length()) AppendSQLTextField(SQLStatement, DocType); else SQLStatement << "NULL"; SQLStatement << ", "; // Description if (url.GetDescription().length()) AppendSQLTextField(SQLStatement, url.GetDescription()); else SQLStatement << "NULL"; SQLStatement << ", "; // Keywords if (url.GetKeywords().length()) AppendSQLTextField(SQLStatement, url.GetKeywords()); else SQLStatement << "NULL"; #ifdef HTDIG_NOTIFICATION SQLStatement << ", "; // HtDig email if (url.GetHtDigEmail().length()) AppendSQLTextField(SQLStatement, url.GetHtDigEmail()); else SQLStatement << "NULL"; SQLStatement << ", "; // HtDig email subject if (url.GetHtDigEmailSubject().length()) AppendSQLTextField(SQLStatement, url.GetHtDigEmailSubject()); else SQLStatement << "NULL"; SQLStatement << ", "; // HtDig email subject if (url.GetHtDigHtDigNotificationDate().length()) AppendSQLTextField(SQLStatement, url.GetHtDigHtDigNotificationDate()); else SQLStatement << "NULL"; #endif SQLStatement << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a Schedule into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(SchedulerEntry &s) { std::ostringstream SQLStatement; std::string Status=""; std::string Domain=""; // Retrieve the std::string value of the Status and the domain s.RetrieveStatus(Status); s.RetrieveDomain(Domain); if (debug >4) cout << "Inserting a new scheduler entry into '" << MySQLDB << "': " << s << endl; SQLStatement << "Insert into " << MySQLDB << ".Schedule ( " << "IDUrl, IDServer, Url, CreationTime, Status, IDReferer, HopCount, Domain" << " ) values ( " << s.GetIDSchedule() << ", " << s.GetIDServer() << ", "; AppendSQLTextField(SQLStatement, s.GetScheduleUrl()); SQLStatement << ", " << "NOW(), " << "'" << Status << "', " << s.GetIDReferer() << ", " << s.GetHopCount() << ", "; if (Domain.length()) SQLStatement << "'" << Domain << "')"; else SQLStatement << "NULL" << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert the info into the htCheck table /////// int HtmysqlDB::Insert(const RunInfo &runinfo) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting the retrieval info into '" << MySQLDB << "'" << endl; SQLStatement << "Insert into " << MySQLDB << ".htCheck ( " << "StartTime, EndTime, ScheduledUrls, TotUrls, " << "RetrievedUrls, TCPConnections, ServerChanges, " << "HTTPRequests, HTTPSeconds, HTTPBytes, AccessibilityChecks, " << "HtDigNotification, User" << " ) values ( " << "'" << runinfo.StartTime.GetTimeStamp() << "', "; SQLStatement << "'" << runinfo.FinishTime.GetTimeStamp() << "', " << runinfo.ScheduledUrls << ", " << runinfo.TotUrls << ", " << runinfo.RetrievedUrls << ", " << runinfo.TCPConnections << ", " << runinfo.ServerChanges << ", " << runinfo.HTTPRequests << ", " << runinfo.HTTPSeconds << ", " << runinfo.HTTPBytes << ", " << runinfo.AccessibilityChecks << ", " << runinfo.HtDigNotification << ", " << "USER()" << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a Cookie into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const HtCookie &cookie) { static unsigned id_cookie = 0; std::ostringstream SQLStatement; ++id_cookie; // Increment the index if (debug >4) cout << "Inserting a new cookie into '" << MySQLDB << "': " << cookie.GetName() << endl; SQLStatement << "Insert into " << MySQLDB << ".Cookies ( " << "IDCookie, Name, Value, Path, Domain, MaxAge, Version, SrcUrl, Secure, DomainValid"; if (cookie.GetExpires()) SQLStatement << ", Expires"; SQLStatement << ") values ( " << id_cookie << ", "; // Escape safe cookie name AppendSQLTextField(SQLStatement, cookie.GetName()); SQLStatement << ", "; // Escape safe cookie value AppendSQLTextField(SQLStatement, cookie.GetValue()); SQLStatement << ", "; // Escape safe cookie path AppendSQLTextField(SQLStatement, cookie.GetPath()); SQLStatement << ", "; // Escape safe cookie domain AppendSQLTextField(SQLStatement, cookie.GetDomain()); // Insert the max-age attribute SQLStatement << ", " << cookie.GetMaxAge(); // Insert the max-age attribute SQLStatement << ", " << cookie.GetVersion(); SQLStatement << ", "; // Escape safe cookie source URL AppendSQLTextField(SQLStatement, cookie.GetSrcURL()); SQLStatement << ", " << (cookie.getIsSecure()?1:0); SQLStatement << ", " << (cookie.getIsDomainValid()?1:0); if (cookie.GetExpires()) SQLStatement << ", '" << cookie.GetExpires()->GetTimeStamp() << "'"; SQLStatement << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Look for a schedule entries, given a filter and a // HtmysqlQuery Result object. Returns -1 if an error occurs // else returns the number of records found. /////// int HtmysqlDB::Search(SchedulerEntry &filter, HtmysqlQueryResult &result) { std::ostringstream SQLStatement; // SQL statement construction SQLStatement << "Select " << "IDUrl" << ", " // Url identifier << "IDServer" << ", " // Server identifier << "Url" << ", " // Url << "Status" << ", " // Schedule Status << "IDReferer" << ", " // ID of the referring Url << "HopCount" << " " // Hop Count << " from Schedule "; // Create the SQL 'Where' statement given a filter CreateFilter(SQLStatement, filter); // Execute and store the Query return Query(SQLStatement.str(), &result); } /////// // Get next Element from the query result // Returns 0 if the end has been reached. /////// int HtmysqlDB::GetNextElement (SchedulerEntry &dest, HtmysqlQueryResult &result) { MYSQL_ROW Rows; if ((Rows = result.GetNextRecord()) == 0) // end of query reached return 0; // Reset the destination dest.Reset(); // Set the ID dest.SetIDSchedule(atoi(Rows[0])); // Set the ID of the server dest.SetIDServer(atoi(Rows[1])); // Set the Url dest.SetScheduleUrl((char *)Rows[2]); // Set the Status dest.SetStatus((char *)Rows[3]); // Set the ID of the Referring URL dest.SetIDReferer(atoi(Rows[4])); // Set the hop count number dest.SetHopCount(atoi(Rows[5])); return 1; } /////// // Create a SQL filter string on a Scheduler Entry /////// void HtmysqlDB::CreateFilter(std::ostringstream &SQLStatement, SchedulerEntry &filter) { // Search for any filter to be applied to the query int flag = 0; // Applying Url Identifier if (filter.GetIDSchedule() != 0) // specified an ID Url { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "IDUrl = " << filter.GetIDSchedule() << " "; } // Applying Server if (filter.GetIDServer() != 0) // specified a server { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "IDServer = " << filter.GetIDServer() << " "; } // Applying Url if (filter.GetScheduleUrl().length()) // specified an Url { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "Url = "; AppendSQLTextField(SQLStatement, filter.GetScheduleUrl()); } // Applying Status if (filter.GetStatus() != SchedulerEntry::Url_Empty) { // A Status has been specified // Retrieve the std::string value of the Status std::string Status=""; filter.RetrieveStatus(Status); if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "Status = '" << Status << "' "; } // Applying Referring Url ID if (filter.GetIDReferer() != 0) // specified an ID Referer Url { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "IDReferer = " << filter.GetIDReferer() << " "; } } /////// // Execute a generic query and stores the results // Returns -1 if an error occured // Else the number of rows retrieved if we want to store a result // or 0 if not. /////// int HtmysqlDB::Query(const std::string &SQLStatement, HtmysqlQueryResult *result, Query_Type qt) { if (debug >5) cout << "SQL Statement: " << SQLStatement << endl; // Executing Select query if ( ExecQuery ( SQLStatement)) return -1; // An error occured // Stores the result of the query if (result) { switch(qt) { case Htmysql_Stored: // stored query - slower if (debug>5) cout << "Stored query" << endl; if (! StoreResult(*result)) return -1; else return result->GetRows(); break; case Htmysql_Temporary: // faster if (debug>5) cout << "Direct query" << endl; if (! UseResult(*result)) return -1; else return 0; break; } } return 0; } /////// // Insert a HtmlStatement into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const HtmlStatement& htmlstatement) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting a new HtmlStatement into '" << MySQLDB << "': " << htmlstatement << endl; SQLStatement << "Insert into " << MySQLDB << ".HtmlStatement ( " << "IDUrl, Row, Col, TagPosition, Tag, Statement, LinkTagPosition" << " ) values ( " << htmlstatement.GetIDUrl() << ", " << htmlstatement.GetRow() << ", " << htmlstatement.GetCol() << ", " << htmlstatement.GetTagPosition() << ", "; AppendSQLTextField(SQLStatement, htmlstatement.GetTag()); SQLStatement << ", "; AppendSQLTextField(SQLStatement, htmlstatement.GetStatement()); SQLStatement << ", "; if (htmlstatement.GetTagPosition() != htmlstatement.GetLinkTagPosition() && htmlstatement.GetLinkTagPosition() > 0) SQLStatement << htmlstatement.GetLinkTagPosition(); else SQLStatement << "NULL"; SQLStatement << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a Link description into the HtmlStatement table // Returns 0 if an error occured /////// int HtmysqlDB::InsertHtmlStatementLinkDescription(const unsigned int IDUrl, const unsigned int TagPosition, const std::string& LinkDescription) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting a new Link description into '" << MySQLDB << "': tag " << TagPosition << endl; SQLStatement << "Update " << MySQLDB << ".HtmlStatement " << " SET LinkDescription="; AppendSQLTextField(SQLStatement, LinkDescription); SQLStatement << " WHERE IDUrl=" << IDUrl << " AND TagPosition=" << TagPosition; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a HtmlAttribute into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const HtmlAttribute& htmlattribute) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting a new HtmlAttribute into '" << MySQLDB << "': " << htmlattribute << endl; SQLStatement << "Insert into " << MySQLDB << ".HtmlAttribute ( " << "IDUrl, TagPosition, AttrPosition, Attribute, Content" << " ) values ( " << htmlattribute.GetIDUrl() << ", " << htmlattribute.GetTagPosition() << ", " << htmlattribute.GetAttrPosition() << ", "; AppendSQLTextField(SQLStatement, htmlattribute.GetAttribute()); SQLStatement << ", "; AppendSQLTextField(SQLStatement, htmlattribute.GetContent()); SQLStatement << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a AccessibilityCheck into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const AccessibilityCheck& accessibilitycheck) { std::ostringstream SQLStatement; if (debug >4) cout << "Inserting a new Accessibility into '" << MySQLDB << "': " << accessibilitycheck << endl; SQLStatement << "Insert into " << MySQLDB << ".Accessibility ( " << "IDCheck, IDUrl, TagPosition, AttrPosition, Code" << " ) values ( " << accessibilitycheck.GetIDCheck() << ", " << accessibilitycheck.GetIDUrl() << ", "; if (accessibilitycheck.GetTagPosition() == 0) SQLStatement << "NULL"; else SQLStatement << accessibilitycheck.GetTagPosition(); SQLStatement << ", "; if (accessibilitycheck.GetAttrPosition() == 0) SQLStatement << "NULL"; else SQLStatement << accessibilitycheck.GetAttrPosition(); SQLStatement << ", " << accessibilitycheck.GetCode() << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } /////// // Insert a Link into the relative table // Returns 0 if an error occured /////// int HtmysqlDB::Insert(const Link& link) { std::ostringstream SQLStatement; std::string LinkType=""; std::string LinkResult=""; std::string LinkDomain=""; // Retrieve the std::string value of the type link.RetrieveLinkType(LinkType); // Retrieve the std::string value of the result link.RetrieveLinkResult(LinkResult); // Retrieve the std::string value of the domain link.RetrieveLinkDomain(LinkDomain); if (debug >4) cout << "Inserting a new Link into '" << MySQLDB << "': " << link << endl; SQLStatement << "Insert into " << MySQLDB << ".Link ( " << "IDUrlSrc, IDUrlDest, TagPosition, AttrPosition, " << "Anchor, LinkType, LinkResult, LinkDomain" << " ) values ( " << link.GetIDUrlSrc() << ", " << link.GetIDUrlDest() << ", " << link.GetTagPosition() << ", " << link.GetAttrPosition() << ", "; AppendSQLTextField(SQLStatement, link.GetAnchor()); SQLStatement << ", " << "'" << LinkType << "', " << "'" << LinkResult << "', "; if (LinkDomain.length()) SQLStatement << "'" << LinkDomain << "')"; else SQLStatement << "NULL" << ")"; // Executing Insert query if (Query (SQLStatement.str()) == -1) return 0; // An error occured return 1; } // This method just make a string to be escape safe, which means // that it makes it get ready to be put into the database through // an INSERT SQL statement. The string character used is ' (single // quote). //void HtmysqlDB::AppendSQLTextField(std::string &Dest, const char *source) void HtmysqlDB::AppendSQLTextField(std::string &Dest, const char* source) { const char* start (source); const long length( strlen(source) ); ESCAPE_STRING(mysql, start, length); } void HtmysqlDB::AppendSQLTextField(std::string &Dest, const std::string source) { const char* start (source.c_str()); const long length( source.length() ); ESCAPE_STRING(mysql, start, length); } void HtmysqlDB::AppendSQLTextField(std::ostringstream &Dest, const std::string source) { const char* start (source.c_str()); const long length( source.length() ); ESCAPE_OSTRING(mysql, start, length); } void HtmysqlDB::AppendSQLTextField(std::ostringstream &Dest, const char* source) { const char* start (source); const long length( strlen(source) ); ESCAPE_OSTRING(mysql, start, length); } // Alter the Link table, by creating the Indexes - not used // before now (this could save a lot of time when adding new // link entries while crawling int HtmysqlDB::CreateLinkTableIndexes() { int result = 0; std::ostringstream SQLStatement; if (debug>0) cout << "Create indexes for the Link table" << endl; // IDUrlDest index SQLStatement << "CREATE INDEX Idx_IDUrlDest ON " << MySQLDB << ".Link " << "(IDUrlDest)" << "\n"; if (debug>1) cout << " > Idx_IDUrlDest on IDUrlDest" << endl; if ((result=Query (SQLStatement.str())) == -1) return result; // Anchor index SQLStatement.str(""); SQLStatement << "CREATE INDEX Idx_Anchor ON " << MySQLDB << ".Link " << "(Anchor(8))" << "\n"; if (debug>1) cout << " > Idx_Anchor on Anchor" << endl; if ((result=Query (SQLStatement.str())) == -1) return result; // LinkType index SQLStatement.str(""); SQLStatement << "CREATE INDEX Idx_LinkType ON " << MySQLDB << ".Link " << "(LinkType)" << "\n"; if (debug>1) cout << " > LinkType on LinkType" << endl; if ((result=Query (SQLStatement.str())) == -1) return result; // LinkResult index SQLStatement.str(""); SQLStatement << "CREATE INDEX Idx_LinkResult ON " << "\n" << " " << MySQLDB << ".Link " << "\n" << " (LinkResult)" << "\n"; if (debug>1) cout << " > LinkResult on LinkResult" << endl; if ((result=Query (SQLStatement.str())) == -1) return result; // Exec the query return result; } // Create the temporary table for anchors int HtmysqlDB::CreateAnchorsTable() { // Create the table with all the anchors; std::ostringstream SQLFillTemporaryTable; SQLFillTemporaryTable << "INSERT INTO TmpAnchors " << "SELECT HtmlAttribute.IDUrl, HtmlAttribute.TagPosition, " << "HtmlAttribute.AttrPosition, HtmlAttribute.Content FROM HtmlAttribute, " << "HtmlStatement WHERE HtmlStatement.IDUrl=HtmlAttribute.IDUrl AND " << "HtmlAttribute.TagPosition=HtmlStatement.TagPosition AND " << "((HtmlAttribute.Attribute='name' AND HtmlStatement.Tag='a') " << "OR HtmlAttribute.Attribute='id')"; if (debug>2) cout << "Filling temporary table TmpAnchors" << endl; // Exec the query return Query(SQLFillTemporaryTable.str()); } // Create and fill the temporary table for managing anchors int HtmysqlDB::AnchorsTable(ostream& output) { std::ostringstream SQLStatement; Link LinkTmp; // Temporary link object // Create the temporary table CreateAnchorsTable(); // Now the temporary table is filled with all the anchors found SQLStatement << "SELECT DISTINCT Link.IDUrlSrc, Link.IDUrlDest, " << "Link.TagPosition, Link.AttrPosition, Link.Anchor, TmpAnchors.Anchor " << "FROM Schedule, Link LEFT JOIN TmpAnchors ON " << "(TmpAnchors.IDUrl=Link.IDUrlDest " << "AND TmpAnchors.Anchor=Link.Anchor) " << "WHERE Link.Anchor != '' AND LCASE(Link.Anchor) != 'top' " << "AND Link.LinkResult='OK' " << "AND Link.IDUrlDest=Schedule.IDUrl AND Schedule.Status='Retrieved'"; HtmysqlQueryResult ResultTmp; int NumAnchors = 0; int NumAnchorsNotFound = 0; if (Query (SQLStatement.str(), &ResultTmp) == -1) return -1; MYSQL_ROW LinkRow; while ((LinkRow = (ResultTmp.GetNextRecord()))) { ++NumAnchors; if (! LinkRow[5]) { // Anchor Not found ++NumAnchorsNotFound; LinkTmp.Reset(); LinkTmp.SetIDUrlSrc((unsigned int) atoi(LinkRow[0])); LinkTmp.SetIDUrlDest((unsigned int) atoi(LinkRow[1])); LinkTmp.SetTagPosition((unsigned int) atoi(LinkRow[2])); LinkTmp.SetAttrPosition((unsigned int) atoi(LinkRow[3])); LinkTmp.SetAnchor(LinkRow[4]); LinkTmp.SetLinkResult(Link::Link_AnchorNotFound); if (debug>2) output << "Anchor not found: " << LinkTmp << "#" << LinkTmp.GetAnchor() << endl; // Update the link table - setting the results if(SetAnchorsResults(LinkTmp) == -1) // A database error occured return -1; } } ResultTmp.Free(); if (debug>0) output << "Anchors checked: " << NumAnchors << " - Not found: " << NumAnchorsNotFound << endl; /////// // Drop the 'TmpAnchors' temporary table /////// if (debug >1) output << " |- Dropping 'TmpAnchors' temporary table" << endl; // Write the SQL statement SQLStatement.str(""); SQLStatement << "DROP TABLE " << MySQLDB << ".TmpAnchors"; // Executing table dropping return Query (SQLStatement.str()); } int HtmysqlDB::AnchorsNotFound(ostream& output) { // Show broken anchors std::ostringstream SQLStatement; SQLStatement << "SELECT UrlSrc.IDUrl as IDUrlSrc, UrlDest.IDUrl as IDUrlDest," << "UrlSrc.Url as UrlSrc, UrlDest.Url as UrlDest, " << "Link.LinkType, Link.Anchor, HtmlStatement.Statement " << "FROM Url UrlDest, Url UrlSrc, Link " << "LEFT JOIN HtmlStatement " << "ON (HtmlStatement.IDUrl = Link.IDUrlSrc " << "AND HtmlStatement.TagPosition = Link.TagPosition) " << "WHERE Link.LinkResult = 'AnchorNotFound' " << "AND UrlSrc.IDUrl = Link.IDUrlSrc " << "AND UrlDest.IDUrl = Link.IDUrlDest " << "ORDER BY UrlSrc, UrlDest, Link.TagPosition, " << "Link.AttrPosition"; HtmysqlQueryResult ResultTmp; int NumUrlsNotFound = 0; int NumAnchorsNotFound = 0; int OldIDSrc=0; int OldIDDest=0; std::string OldAnchor; output << endl << "Checking anchors not found" << endl << "==========================" << endl; if (Query (SQLStatement.str(), &ResultTmp) == -1) return -1; MYSQL_ROW AnchorsNotFound; while ((AnchorsNotFound = (ResultTmp.GetNextRecord()))) { ++NumAnchorsNotFound; if (OldIDDest != atoi(AnchorsNotFound[1]) || mystrcasecmp(OldAnchor.c_str(), (const char *) AnchorsNotFound[5])) { // New URL not found ++NumUrlsNotFound; output << endl; output << "Anchor not found: " << (char *) AnchorsNotFound[3] << "#" << (char *) AnchorsNotFound[5] << endl; OldIDDest = atoi(AnchorsNotFound[1]); // New assignment OldAnchor = (char *) AnchorsNotFound[5]; // New assignment OldIDSrc = 0; } if (OldIDSrc != atoi(AnchorsNotFound[0])) { output << "|- Referenced by: " << (char *) AnchorsNotFound[2] << endl; OldIDSrc = atoi(AnchorsNotFound[0]); // New assignment } if (! (char *) AnchorsNotFound[8]) { // No Statement. It's an HTTP redirection output << "| |- " << (char *) AnchorsNotFound[4] << endl; } else { output << "| |- Tag : <" << (char *) AnchorsNotFound[6] << ">" << endl; } } ResultTmp.Free(); if (NumUrlsNotFound) output << endl; output << "Anchor not Found: " << NumUrlsNotFound << endl; output << "Broken Links : " << NumAnchorsNotFound << endl; return 0; } // Set the result type for anchors int HtmysqlDB::SetAnchorsResults(Link &LinkTmp) { std::string strResult; LinkTmp.RetrieveLinkResult(strResult); std::ostringstream SQLUpdateStatement; SQLUpdateStatement << "Update Link SET LinkResult = '" << strResult << "'" << " WHERE IDUrlSrc = " << LinkTmp.GetIDUrlSrc() << " AND IDUrlDest = " << LinkTmp.GetIDUrlDest() << " AND Anchor = "; AppendSQLTextField(SQLUpdateStatement, LinkTmp.GetAnchor()); return Query(SQLUpdateStatement.str()); } /////// // Set the results for the links. It is called by the Scheduler at the end // of the crawl. // Look for all the links that have 'NotChecked' flag in the LinkResult // field. For each of them, it checks all of the links, and see if // they are eithrt found or not retrieved or broken or redirected. // Then it updates the Link table with the right flag. // Now the BadEncoded case is treated as well. /////// int HtmysqlDB::SetLinkResults(ostream& output) { // Set the link results std::ostringstream SQLStatement; Link LinkTmp; // Temporary link object SQLStatement << "SELECT distinct IDUrlSrc, IDUrlDest, " << "Url.StatusCode, Link.LinkResult " << "FROM Link LEFT JOIN Url ON (Link.IDUrlDest=Url.IDUrl) " << "WHERE Link.LinkResult='NotChecked' or Link.LinkResult='BadEncoded'"; HtmysqlQueryResult ResultTmp; int NumLinks = 0; if (debug>0) output << endl << "Setting link results" << endl; if (Query (SQLStatement.str(), &ResultTmp) == -1) return -1; std::string strResult; MYSQL_ROW LinkRow; while ((LinkRow = (ResultTmp.GetNextRecord()))) { unsigned int StatusCode; ++NumLinks; LinkTmp.Reset(); LinkTmp.SetIDUrlSrc((unsigned int) atoi(LinkRow[0])); LinkTmp.SetIDUrlDest((unsigned int) atoi(LinkRow[1])); LinkTmp.SetLinkResult(LinkRow[3]); if (LinkRow[2]) { StatusCode=(unsigned int) atoi(LinkRow[2]); if (StatusCode == 200) { // Found - Let's check whether we had yet labeled it as 'BadEncoded' or not if (LinkTmp.GetLinkResult() != Link::Link_BadEncoded) LinkTmp.SetLinkResult(Link::Link_OK); // No if (debug>2) output << "Link found: " << LinkTmp << endl; } else if (StatusCode >= 300 && StatusCode < 400) { // Redirected if (LinkTmp.GetLinkResult() != Link::Link_BadEncoded) LinkTmp.SetLinkResult(Link::Link_Redirected); if (debug>2) output << "Link redirected: " << LinkTmp << endl; } else if (StatusCode == 401) { // Not autorized if (LinkTmp.GetLinkResult() != Link::Link_BadEncoded) LinkTmp.SetLinkResult(Link::Link_NotAuthorized); if (debug>2) output << "Link not authorized: " << LinkTmp << endl; } else { // Broken LinkTmp.SetLinkResult(Link::Link_Broken); if (debug>2) output << "Link broken: " << LinkTmp << endl; } } else { if (LinkTmp.GetLinkResult() != Link::Link_BadEncoded) LinkTmp.SetLinkResult(Link::Link_NotRetrieved); // Not Retrieved } LinkTmp.RetrieveLinkResult(strResult); std::ostringstream SQLUpdateStatement; SQLUpdateStatement << "Update Link SET LinkResult = '" << strResult << "'" << " WHERE IDUrlSrc = " << LinkTmp.GetIDUrlSrc() << " AND IDUrlDest = " << LinkTmp.GetIDUrlDest() << " AND LinkResult = '" << LinkRow[3] << "'"; if(Query(SQLUpdateStatement.str()) == -1) // A database error occured return -1; } ResultTmp.Free(); if (debug>0) output << "Links checked: " << NumLinks << endl; return 0; } /////// // Show the broken links summary /////// int HtmysqlDB::ShowBrokenLinks(ostream& output) { // Show broken links std::ostringstream SQLStatement; SQLStatement << "SELECT " << "Link.IDUrlSrc as IDUrlSrc, " << "Link.IDUrlDest as IDUrlDest, " << "Url.Url as UrlSrc, " << "Schedule.Url as UrlDest, " << "HtmlStatement.Statement, " << "Link.LinkResult as LinkResult " << "FROM Url, Schedule, Link " << "LEFT JOIN HtmlStatement " << "ON HtmlStatement.IDUrl = Link.IDUrlSrc " << "AND HtmlStatement.TagPosition = Link.TagPosition " << "WHERE (Link.LinkResult = 'Broken' OR Link.LinkResult = 'BadEncoded')" << "AND Schedule.IDUrl = Link.IDUrlDest " << "AND Url.IDUrl = Link.IDUrlSrc " << "ORDER BY UrlSrc, UrlDest, Link.TagPosition, " << "Link.AttrPosition"; HtmysqlQueryResult ResultTmp; int NumUrlsNotFound = 0; int NumBrokenLinks = 0; int OldIDSrc=0; int OldIDDest=0; output << endl << "Checking links" << endl << "==============" << endl; if (Query (SQLStatement.str(), &ResultTmp) == -1) return -1; MYSQL_ROW BrokenLinks; while ((BrokenLinks = (ResultTmp.GetNextRecord()))) { ++NumBrokenLinks; if (OldIDDest != atoi(BrokenLinks[1])) { // New URL not found ++NumUrlsNotFound; output << endl; if (!strncmp("BadEncoded", BrokenLinks[5], 10)) output << "Bad encoded link: "; else output << "URL Not found: "; output << (char *) BrokenLinks[3] << endl; OldIDDest = atoi(BrokenLinks[1]); // New assignment OldIDSrc = 0; } if (OldIDSrc != atoi(BrokenLinks[0])) { output << "|- Referenced by: " << (char *) BrokenLinks[2] << endl; OldIDSrc = atoi(BrokenLinks[0]); // New assignment } if ((char *) BrokenLinks[4]) { output << "| |- Tag : <" << (char *) BrokenLinks[4] << ">" << endl; } } ResultTmp.Free(); if (NumUrlsNotFound) output << endl; output << "Urls not Found: " << NumUrlsNotFound << endl; output << "Broken Links : " << NumBrokenLinks << endl; return 0; } /////// // Show the status codes retrieved /////// int HtmysqlDB::ShowStatusCode(ostream &output) { // Show the status codes retrieved std::string SQLStatement="SELECT StatusCode, ReasonPhrase, count(*), ConnStatus FROM Url GROUP by StatusCode, ReasonPhrase, ConnStatus ORDER BY StatusCode, ReasonPhrase, ConnStatus"; HtmysqlQueryResult ResultTmp; int NumStatus = 0; int StatusTmp; bool warning = false; output << endl << "Checking Status Codes returned" << endl << "==============================" << endl; if (Query (SQLStatement, &ResultTmp) == -1) return -1; MYSQL_ROW StatusCodes; while ((StatusCodes = (ResultTmp.GetNextRecord()))) { StatusTmp = atoi(StatusCodes[0]); if (!StatusTmp) { // Abnormal status code warning = true; // StatusCode = 0. No Header output << "Connection result: " << StatusCodes[3] << " Occurrences: " << setw(6) << atoi(StatusCodes[2]); output << " <Warning>"; output << endl; } else { ++NumStatus; // Not abnomarl status code output << "Status Code: " << setw(3) << StatusTmp << " Occurrences: " << setw(6) << atoi(StatusCodes[2]); if (strlen((char *) StatusCodes[1])) output << " (" << (char *) StatusCodes[1] << ")"; output << endl; } } ResultTmp.Free(); if (warning) { output << "Warning!!! Some connection didn't go pretty good." << endl; } output << "Status codes encountered: " << NumStatus << endl; return 0; } int HtmysqlDB::ShowContentTypesPerServer(ostream &output) { std::string SQLStatement="SELECT Server, Port, ContentType, count(*) from Url, Server WHERE Url.StatusCode = 200 AND Url.IDServer = Server.IDServer GROUP BY Server, Port, ContentType ORDER BY Server, Port"; HtmysqlQueryResult ResultTmp; int NumServer = 0; int TotNumTot = 0; int TotNumImg = 0; int TotNumHTML = 0; int NumTot = 0; int NumImg = 0; int NumHTML = 0; std::string OldServer; std::string NewServer; int OldPort = 0; int NewPort = 0; output << endl << "Checking Content-Types successfully returned" << endl << "============================================" << endl; if (Query (SQLStatement, &ResultTmp) == -1) return -1; MYSQL_ROW StatusCodes; while ((StatusCodes = (ResultTmp.GetNextRecord()))) { NewServer = (char *)StatusCodes[0]; NewPort = atoi (StatusCodes[1]); if (OldServer != NewServer || OldPort != NewPort) { // Change of Server if (NumServer) { // Close a previous server output << " Total Urls successfully seen: " << NumTot << " (HTML: " << NumHTML << " - images: " << NumImg << " - other: " << NumTot-NumImg-NumHTML << ")" << endl; // Updates the total values TotNumTot += NumTot; TotNumImg += NumImg; TotNumHTML += NumHTML; } ++NumServer; output << endl << setw(4) << NumServer << ". " << NewServer << ":" << NewPort << endl; NumTot = 0; NumImg = 0; NumHTML = 0; OldServer = NewServer; OldPort = NewPort; } output << " " << setw(32) << setiosflags( ios::left ) << (char *)StatusCodes[2] << ":" << setw(6) << resetiosflags( ios::left ) << atoi(StatusCodes[3]) << endl; NumTot += atoi(StatusCodes[3]); if (!strncmp("image/", (char *)StatusCodes[2], 6)) NumImg += atoi(StatusCodes[3]); if (!strncmp("text/html", (char *)StatusCodes[2], 9)) NumHTML += atoi(StatusCodes[3]); } ResultTmp.Free(); // Free the query results if (NumServer) { // Close a previous server output << " Total Urls successfully seen: " << NumTot << " (HTML: " << NumHTML << " - images: " << NumImg << " - other: " << NumTot-NumImg-NumHTML << ")" << endl; // Updates the total values TotNumTot += NumTot; TotNumImg += NumImg; TotNumHTML += NumHTML; } // Flush an empty line ans display the number of servers that have been // crawled by htcheck and info regarding the types globally output << endl << " Total Urls successfully seen: " << TotNumTot << " (HTML: " << TotNumHTML << " - images: " << TotNumImg << " - other: " << TotNumTot-TotNumImg-TotNumHTML << ")" << endl; output << " Servers seen: " << NumServer << endl << endl; return 0; } /////// // Calculate the size to be added to URLs (links of the 'Direct' type) // After executing a query, it updates SizeAdd field of the URL table // A value of bytes to be added to a URL (an HTML document for now) // depends on the attributes used to link to another URL. For example: // images are called usually with <IMG src="URL A">. This is considered // as a direct link and the size of URL A is being added to the SizeAdd // field of the URL calling it. But this is added only once, even if // inside the document it's called twice, 3 times, a hundred times. // Indeed we suppose the user has a cache system on his computer. // By adding a URL size with the SizeAdd field, we obtain an approximate // URL weight. /////// int HtmysqlDB::CalculateUrlSizeAdd(ostream &output) { // Show the status codes retrieved std::string SQLStatement="SELECT distinct Link.IDUrlSrc, Link.IDUrlDest, Url.Size FROM Link, Url WHERE Link.LinkType='Direct' AND Link.IDUrlDest=Url.IDUrl AND Url.Size > 0 ORDER BY Link.IDUrlSrc"; HtmysqlQueryResult ResultTmp; int NumUrls = 0; int NumDirectLinks = 0; int IDUrlSrc = 0; // Current source IDUrl int IDPrev = 0; // Previous IDUrl int SizeAdd = 0; // Total size to be added to the source URL int CurrentSize = 0; // Size of the Destination URL if (debug>0) output << endl << "Calculating added size of URL" << " (elements directly loaded with a URL)" << endl; if (Query (SQLStatement, &ResultTmp) == -1) return -1; MYSQL_ROW RecordTmp; while ((RecordTmp = (ResultTmp.GetNextRecord()))) { ++NumDirectLinks; IDUrlSrc = atoi(RecordTmp[0]); if (IDUrlSrc != IDPrev && IDPrev != 0) { /////// // Break /////// ++NumUrls; // Update if (debug>2) output << "Updating Url.SizeAdd - " << IDPrev << " - " << SizeAdd << " (" << NumUrls << ")" << endl; // Query execution for update (Url Table) std::ostringstream SQLStatementUpdate; SQLStatementUpdate << "Update Url Set SizeAdd = " << SizeAdd << " Where IDUrl = " << IDPrev; if(Query(SQLStatementUpdate.str()) == -1) // A database error occured return -1; SizeAdd = 0; } CurrentSize = atoi(RecordTmp[2]); SizeAdd += CurrentSize; IDPrev = IDUrlSrc; // Storing Previous Url ID } if (IDPrev != 0) { // Break // Update if (debug>2) output << "Updating Url.SizeAdd - " << IDPrev << " - " << SizeAdd << " (" << NumUrls << ")" << endl; // Query execution for update (Url Table) std::ostringstream SQLStatementUpdate; SQLStatementUpdate << "Update Url Set SizeAdd = " << SizeAdd << " Where IDUrl = " << IDPrev; if(Query(SQLStatementUpdate.str()) == -1) // A database error occured return -1; SizeAdd = 0; } ResultTmp.Free(); if (debug>0) { output << "Direct Links found: " << NumDirectLinks << endl; output << "Urls updated: " << NumUrls << endl; } return 0; } /////// // Updates a scheduler entry's status /////// int HtmysqlDB::UpdateStatus(const SchedulerEntry& entry) { std::string status; std::ostringstream SQLStatement; entry.RetrieveStatus(status); SQLStatement << "Update Schedule Set Status = '" << status << "' " << "Where IDUrl = " << entry.GetIDSchedule(); if(Query (SQLStatement.str()) == -1) // A database error occured return -1; return 0; } /////// // Set the list of available charsets /////// void HtmysqlDB::LoadAvailableCharsets(const std::string& c) { if (debug>0) cout << "Loading available charsets: "; StringList charsets(c.c_str(), " \t"); for (int i = 0; i < charsets.Count(); i++) { if (debug>0) cout << charsets[i] << " "; AvailableCharsets.insert(charsets[i]); } if (debug>0) cout << endl; } #if 0 /////// // Look for a schedule entries, given a filter and a // HtmysqlQuery Result object. Returns -1 if an error occurs // else returns the number of records found. /////// int HtmysqlDB::Search(_Server &filter, HtmysqlQueryResult &result) { std::ostringstream SQLStatement; // SQL statement construction SQLStatement << "Select " << "IDServer" << ", " // Server identifier << "IPAddress" << ", " // IP Address << "Port" << ", " << "HttpServer" << ", " << "HttpVersion" << ", " << "PersistentConnection" << ", " << "Requests" // Number of requests << " from Server "; // Create the SQL 'Where' statement given a filter CreateFilter(SQLStatement, filter); // Execute and store the Query return Query(SQLStatement, &result); } /////// // Create a SQL filter string on a _Server Entry // Incomplete ... /////// void HtmysqlDB::CreateFilter(std::string &SQLStatement, _Server &filter) { // Search for any filter to be applied to the query int flag = 0; // Applying Server Identifier if (filter.GetID() != 0) // specified an ID { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "IDServer = " << filter.GetID() << " "; } // Applying Server name (host) if (filter.host() != 0) { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "Server = " << filter.host() << " "; } // Applying Server port (not done) // Applying Server Info if (filter.GetHttpServer() != 0) { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "HttpServer = " << filter.GetHttpServer() << " "; } // Applying Server Version if (filter.GetHttpVersion() != 0) { if (flag) // already specified a filter SQLStatement << "And "; else { SQLStatement << "Where "; flag ++; // Add an occurrence to flag } // Write the sentence SQLStatement << "HttpVersion = " << filter.GetHttpVersion() << " "; } } #endif ���������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/HtmysqlDB.h����������������������������������������������������������0000644�0000000�0000000�00000022553�11245225071�015302� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////// // MySQL Database class for ht://Check // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group <www.htdig.org> // Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> // Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtmysqlDB.h,v 1.30 2009/08/26 12:25:58 angusgb Exp $ // // Started: 28.06.1999 /////// #ifndef _HTMYSQLDB_H #define _HTMYSQLDB_H #ifdef HAVE_STD #include <iostream> #include <string> #include <set> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #include <string.h> #include <set.h> #endif /* HAVE_STD */ #include "Htmysql.h" #include "_Server.h" #include "_Url.h" #include "HtCookie.h" #include "SchedulerEntry.h" #include "HtmlStatement.h" #include "HtmlAttribute.h" #include "Link.h" #include "RunInfo.h" #include "Dictionary.h" #include "AccessibilityCheck.h" class HtmysqlDB : public Htmysql { /////// // Public Interface /////// public: // HtmysqlDB(const std::string &host, const std::string &db, // const std::string &user, const std::string &passwd); /////// // /////// HtmysqlDB(const std::string &db, #ifdef HAVE_LOAD_DEFAULTS const std::string &File, #endif const std::string& Group, const std::string &_ClientCharset, const std::string& _DBCharset, int *argc, char ***argv); virtual ~HtmysqlDB(); /////// // Set methods for protected attributes /////// // Set the length for the Index regarding // the Url field in the Schedule and Url tables // This method is publicly accessible void SetURL_Index_Length(const int &i) { URL_Index_Length = i; } /////// // Access methods to protected attributes /////// const std::string &GetDB() {return MySQLDB;} #ifdef HAVE_LOAD_DEFAULTS const std::string &GetHost() {return MySQLHost;} const std::string &GetUser() {return MySQLUser;} #endif const std::string &GetDBSignature() {return DBSignature;} const int GetURL_Index_Length() {return URL_Index_Length;} /////// // Connection to the MySQL database server /////// virtual int Connect(); // Let's connect with it /////// // ht://Check Database creation -- with a MySQL query script /////// virtual int CreateDatabase(); /////// // ht://Check Database drop -- with a MySQL query script /////// virtual int DropDatabase(); virtual int DropTables(); // Keep the database, but recreate ht://Check tables only /////// // Function to insert an object of various type /////// int Insert (SchedulerEntry&); // Insert a scheduler entry // into Schedule table and // updates its ID int Insert (const _Server&); // Insert a record into Server table int Insert (const _Url&); // Insert a record into Url table int Insert (const HtmlStatement&); // Insert a record into // HtmlStatement table int Insert (const HtmlAttribute&); // Insert a record into // HtmlAttribute table int Insert (const Link&); // Insert a record into Link table int Insert (const RunInfo&); // Insert general info into the db int Insert (const HtCookie&); // Insert a record into Cookie table int Insert (const AccessibilityCheck&); // Insert a record into // AccessibilityCheck table // Insert a link description into the HtmlStatement int InsertHtmlStatementLinkDescription(const unsigned int IDUrl, const unsigned int TagPosition, const std::string& LinkDescription); /////// // Search functions, given a filter and a HtmysqlQueryResult /////// // Look for a scheduler entry int Search (SchedulerEntry &filter, HtmysqlQueryResult &result); // int Search (_Server &filter, HtmysqlQueryResult &result); /////// // Query execution and storing method // If an error occurs, -1 is returned // If result is specified, we store the result of the query and // the function returns the number of rows found, else 0. /////// int Query(const std::string &SQLStatement, HtmysqlQueryResult *result = 0, Query_Type qt = Htmysql_Stored); /////// // Create a SQL string for a filter (Where clause) /////// void CreateFilter(std::ostringstream &SQLStatement, SchedulerEntry &filter); // void CreateFilter(std::string &SQLStatement, _Server &filter); /////// // Get next element from a result of a query, given a HtmysqlQueryResult // and a storing object (for example, a SchedulerEntry, a _Url, ...) // Returns 0 if the end of the query has been reached. /////// int GetNextElement (SchedulerEntry &dest, HtmysqlQueryResult &result); // int GetNextElement (_Server &dest, HtmysqlQueryResult &result); /////// // Manage the table with anchors and the link table /////// int AnchorsTable(ostream& output = std::cout); int AnchorsNotFound(ostream& output = std::cout); int CreateAnchorsTable(); int SetAnchorsResults(Link &LinkTmp); /////// // Create the indexes for the link table only at the end // because they are not useful before. This can save a lot // of time due to continous updates of indexes when a new // entry for the link table is added. /////// int CreateLinkTableIndexes(); /////// // Set the Link results (at the end of the crawl) // Look for all the links that have 'NotChecked' flag in the LinkResult // field. For each of them, it checks all of the links, and see if // they are eithrt found or not retrieved or broken or redirected. // Then it updates the Link table with the right flag. // Now the BadEncoded case is treated as well. /////// int SetLinkResults(ostream& output = std::cout); /////// // Show the broken links /////// int ShowBrokenLinks(ostream& output = std::cout); /////// // Show the status codes retrieved /////// int ShowStatusCode(ostream &output = std::cout); /////// // Show the content types per server /////// int ShowContentTypesPerServer(ostream &output = std::cout); /////// // Calculate the size to be added to URLs (links of the 'Direct' type) // After executing a query, it updates SizeAdd field of the URL table // A value of bytes to be added to a URL (an HTML document for now) // depends on the attributes used to link to another URL. For example: // images are called usually with <IMG src="URL A">. This is considered // as a direct link and the size of URL A is being added to the SizeAdd // field of the URL calling it. But this is added only once, even if // inside the document it's called twice, 3 times, a hundred times. // Indeed we suppose the user has a cache system on his computer. // By adding a URL size with the SizeAdd field, we obtain an approximate // URL weight. /////// int CalculateUrlSizeAdd(ostream &output = std::cout); /////// // Updates a scheduler entry's status /////// int UpdateStatus(const SchedulerEntry& entry); /////// // Set the SQL BIG TABLES option // Return 0 if fails /////// virtual int SetSQLBigTableOption(); /////// // Optimizie the database /////// virtual int Optimize(); /////// // Set the list of available charsets /////// void LoadAvailableCharsets(const std::string& c); /////// // Public Attributes /////// protected: std::string MySQLDB; // Database to be connected with #ifdef HAVE_LOAD_DEFAULTS std::string MySQLHost; // Host running a MySQL daemon std::string MySQLUser; // Authentication information - User std::string MySQLPasswd; // and password int MySQLPort; // Port number std::string MySQLSocket; // Socket name #endif // This variable holds the length of the URL Index // in the URL and Schedule tables int URL_Index_Length; std::string DBSignature; // Signature of the DB (db@host); std::string ClientCharset; // Database client charset (default none); std::string DBCharset; // Database charset (default none); typedef std::set<std::string> CharsetsMap; CharsetsMap AvailableCharsets; // list of available charsets #ifdef HAVE_LOAD_DEFAULTS void LoadDefaults(const std::string &File, MYSQL_LOAD_DEFAULTS_ARGTWO Group, int *argc, char ***argv); #endif //void AppendSQLTextField(std::string &Dest, const char *source); void AppendSQLTextField(std::string &Dest, const char* source); void AppendSQLTextField(std::string &Dest, const std::string source); void AppendSQLTextField(std::ostringstream &Dest, const std::string source); void AppendSQLTextField(std::ostringstream &Dest, const char* source); }; #endif �����������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/._Htmysql.h����������������������������������������������������������0000644�0000000�0000000�00000000315�11245224725�015306� 0����������������������������������������������������������������������������������������������������ustar ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Mac OS X ���� ���2���›������Í��������������������������������������ATTR�TÙó���Í���˜���5������������������˜���5��com.apple.quarantine�q/0000;4a95411b;Thunderbird;|org.mozilla.thunderbird��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/._Htmysql.cc���������������������������������������������������������0000644�0000000�0000000�00000000315�11245224725�015444� 0����������������������������������������������������������������������������������������������������ustar ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Mac OS X ���� ���2���›������Í��������������������������������������ATTR�TÙ÷���Í���˜���5������������������˜���5��com.apple.quarantine�q/0000;4a95411b;Thunderbird;|org.mozilla.thunderbird��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/Makefile.in����������������������������������������������������������0000644�0000000�0000000�00000040027�11245527335�015333� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config subdir = htmysql ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkglibdir)" pkglibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(pkglib_LTLIBRARIES) libhtmysql_la_LIBADD = am_libhtmysql_la_OBJECTS = libhtmysql_la-Htmysql.lo \ libhtmysql_la-HtmysqlDB.lo libhtmysql_la_OBJECTS = $(am_libhtmysql_la_OBJECTS) libhtmysql_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libhtmysql_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libhtmysql_la_SOURCES) DIST_SOURCES = $(libhtmysql_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline pkglib_LTLIBRARIES = libhtmysql.la libhtmysql_la_SOURCES = Htmysql.cc HtmysqlDB.cc libhtmysql_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) libhtmysql_la_CFLAGS = $(MYSQL_CFLAGS) libhtmysql_la_CPPFLAGS = -DDEFAULT_DB_CHARSET=\"$(DEFAULT_DB_CHARSET)\" $(MYSQL_CFLAGS) noinst_HEADERS = Htmysql.h \ HtmysqlDB.h all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htmysql/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htmysql/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ else :; fi; \ done uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libhtmysql.la: $(libhtmysql_la_OBJECTS) $(libhtmysql_la_DEPENDENCIES) $(libhtmysql_la_LINK) -rpath $(pkglibdir) $(libhtmysql_la_OBJECTS) $(libhtmysql_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< libhtmysql_la-Htmysql.lo: Htmysql.cc $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhtmysql_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libhtmysql_la-Htmysql.lo `test -f 'Htmysql.cc' || echo '$(srcdir)/'`Htmysql.cc libhtmysql_la-HtmysqlDB.lo: HtmysqlDB.cc $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhtmysql_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libhtmysql_la-HtmysqlDB.lo `test -f 'HtmysqlDB.cc' || echo '$(srcdir)/'`HtmysqlDB.cc mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags 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-pkglibLTLIBRARIES \ 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 uninstall uninstall-am uninstall-pkglibLTLIBRARIES # 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/Htmysql.h������������������������������������������������������������0000644�0000000�0000000�00000010245�11245224725�015074� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////// // Interface class for a MySQL Database client application // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> // Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: Htmysql.h,v 1.13 2009/08/26 12:25:57 angusgb Exp $ // // G.Bartolini // started: 02.07.1999 // /////// #ifndef _HTMYSQL_H #define _HTMYSQL_H #include "mysql.h" #include "mysqld_error.h" #ifdef HAVE_STD #include <iostream> #include <string> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #include <string.h> #endif /* HAVE_STD */ class HtmysqlQueryResult; class Htmysql { public: Htmysql(); virtual ~Htmysql() = 0; // Initializes the Database int Init(); // Connects with a MySQL database virtual int Connect( const char *host=NULL, const char *user=NULL, const char *passwd=NULL, const char *db=NULL, uint port=0, const char *unix_socket=NULL, uint client_flag=0); // Close the connection void Close(); // Ping: checks whether or not the connection to the server is working // Reconnect if necessary // Returns zero if alive, non-zero if an error occured int Ping(); // Select the current database int SelectDB(const std::string db); // Execute a query int ExecQuery (const std::string query); enum Query_Type { Htmysql_Stored, Htmysql_Temporary }; // Store the result of a query HtmysqlQueryResult *StoreResult(HtmysqlQueryResult &); HtmysqlQueryResult *StoreResult(); // Get next record directly from the connection HtmysqlQueryResult *UseResult(HtmysqlQueryResult &); HtmysqlQueryResult *UseResult(); // Retrieve the database list with an optional pattern HtmysqlQueryResult *ListDBs (const char *wild = NULL); // Returns the ID that was most recently generated for AUTO_INCREMENT field int GetLastID(); // Check if a database exists (with wilcards -- foo%) // Returns -1 if an error occurs, else the number of times // the database has been found (0, 1, >1 in a wildcard case) int Exists (const std::string &dbname); // Gets the error number int GetError(); // Displays an error message int DisplayError (ostream & _stream = cout); // Set SQL big tables option (for MySQL) virtual int SetSQLBigTableOption() = 0; // Optimize a database virtual int Optimize() = 0 ; // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} // Set/Get the flag for dropping or not the database void SetDropDatabase(const bool f) { drop_database = f; } const bool GetDropDatabase() const { return drop_database; } protected: MYSQL mysql; bool drop_database; // Should we drop the database static int debug; // Run-time debugging level void ReadDefaultGroup(const std::string& group); }; /////// // Class containing query results /////// class HtmysqlQueryResult { friend class Htmysql; // declaring friendship public: HtmysqlQueryResult(); ~HtmysqlQueryResult(); bool Empty() const { return !result;} Htmysql::Query_Type Type() const { return _query_type; } unsigned int GetRows() const {return rows;} unsigned int GetFields() const {return fields;} void Free(); MYSQL_ROW GetNextRecord(); // View the whole database void View (ostream & _stream = cout); protected: void Set(MYSQL_RES *); void Refresh(); MYSQL_RES *result; MYSQL_ROW _record; unsigned int rows; unsigned int fields; Htmysql::Query_Type _query_type; }; #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/._HtmysqlDB.h��������������������������������������������������������0000644�0000000�0000000�00000000315�11245225071�015507� 0����������������������������������������������������������������������������������������������������ustar ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Mac OS X ���� ���2���›������Í��������������������������������������ATTR�TÙô���Í���˜���5������������������˜���5��com.apple.quarantine�q/0000;4a95411b;Thunderbird;|org.mozilla.thunderbird��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htmysql/Htmysql.cc�����������������������������������������������������������0000644�0000000�0000000�00000013163�11245224725�015234� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////// // Simple Interface class for a MySQL client application // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> // Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // G. Bartolini - started: June 1999 // // $Id: Htmysql.cc,v 1.14 2009/08/26 12:25:57 angusgb Exp $ // /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ #include "Htmysql.h" // Static variables initialization int Htmysql::debug = 0; // Constructor Htmysql::Htmysql() : drop_database(true) { Init(); // Initialization } // Destructor Htmysql::~Htmysql() { Close(); // Close the connection } // Initialize the space for managing the mysql Database instance int Htmysql::Init () { if (! ::mysql_init (&mysql)) return 0; // memory allocation failed else return 1; } // Returns the last generated ID int Htmysql::GetLastID () { return mysql_insert_id (&mysql); } // Connect to a mysql server int Htmysql::Connect (const char *host, const char *user, const char *passwd, const char *db, uint port, const char *unix_socket, uint client_flag) { MYSQL* rv (::mysql_real_connect ( &mysql, (host?host:"localhost"), user, passwd, db, port, unix_socket, client_flag)); if (rv == &mysql) return 1; return 0; } // Close the connection void Htmysql::Close () { return ::mysql_close(&mysql); } void Htmysql::ReadDefaultGroup(const std::string& group) { ::mysql_options(&mysql, MYSQL_READ_DEFAULT_GROUP, group.c_str()); } // Ping and checks for the connection int Htmysql::Ping () { return ::mysql_ping (&mysql); } // Retrieve the error number int Htmysql::GetError() { return mysql_errno (&mysql); } // Display an error message, depending on mysql_errno value int Htmysql::DisplayError(ostream & _stream) { _stream << "Error (" << GetError() << "): " << mysql_error(&mysql) << endl; return mysql_errno (&mysql); } // Execute a query int Htmysql::SelectDB(const std::string db) { return ::mysql_select_db (&mysql, db.c_str()); } // Execute a query int Htmysql::ExecQuery(const std::string query) { return ::mysql_query (&mysql, query.c_str()); } // Stores the results of the last query executed HtmysqlQueryResult *Htmysql::StoreResult() { HtmysqlQueryResult * Result = new HtmysqlQueryResult; if (Result) Result = StoreResult (* Result); return Result; } // Stores the results of the last query executed, given a QueryResult HtmysqlQueryResult *Htmysql::StoreResult(HtmysqlQueryResult &Result) { Result.Set(::mysql_store_result (&mysql)); Result._query_type = Htmysql_Stored; return &Result; } // Get the next element from the connection (directly) without storing // it in a temporary table. HtmysqlQueryResult *Htmysql::UseResult(HtmysqlQueryResult &Result) { Result.Set(::mysql_use_result (&mysql)); Result._query_type = Htmysql_Temporary; return &Result; } HtmysqlQueryResult *Htmysql::UseResult() { HtmysqlQueryResult * Result = new HtmysqlQueryResult; if (Result) Result = UseResult (* Result); return Result; } // Retrieve the list of database, by specifying a pattern HtmysqlQueryResult *Htmysql::ListDBs(const char *wild) { MYSQL_RES *tmp; if (! (tmp = mysql_list_dbs (&mysql, wild))) return NULL; // Failed to obtain the list HtmysqlQueryResult *Result = new HtmysqlQueryResult; if (Result) Result->Set(tmp); // Set the result of the database listing return Result; } // Does a db exist? int Htmysql::Exists(const std::string &dbname) { int returnvalue; HtmysqlQueryResult *tmp; if ( ! (tmp = ListDBs (dbname.c_str()) )) returnvalue = -1; else returnvalue = tmp->rows; delete (tmp); return returnvalue; } /////// // HtmysqlQueryResult class definition /////// // Constructor HtmysqlQueryResult::HtmysqlQueryResult() { result=0; rows=0; fields=0; _query_type=Htmysql::Htmysql_Stored; // Default query type } // Destructor HtmysqlQueryResult::~HtmysqlQueryResult() { if (result) Free(); } // Set the query result member void HtmysqlQueryResult::Set(MYSQL_RES *res) { // Discard and free any previous result if (result) Free(); result=res; Refresh(); } // Free the memory void HtmysqlQueryResult::Free() { ::mysql_free_result(result); result = 0; } // Refresh the number of fields and rows void HtmysqlQueryResult::Refresh() { if (result) { if (_query_type == Htmysql::Htmysql_Stored) rows = mysql_num_rows (result); else rows = 1; fields = mysql_num_fields (result); } else { rows = 0; fields = 0; } } MYSQL_ROW HtmysqlQueryResult::GetNextRecord() { if (! result) return NULL; _record = mysql_fetch_row (result); return _record; } // View the whole database (fields and rows) void HtmysqlQueryResult::View (ostream & _stream) { register unsigned int i; while (GetNextRecord()) { for (i=0; i < fields; i++) { _stream << "[" << (_record[i] ? _record[i]: "NULL") << "] "; } _stream << endl; } } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/AUTHORS����������������������������������������������������������������������0000644�0000000�0000000�00000000577�11177570304�012641� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ht://Check - more than a link checker version: 1.2.x Copyright (c) 1999-2004 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> $Id: AUTHORS,v 1.9 2008-11-16 18:28:51 angusgb Exp $ ���������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/ChangeLog��������������������������������������������������������������������0000644�0000000�0000000�00000111444�11245527263�013341� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Thu Aug 27 17:54:17 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> * prepared for release 2.0.0-rc1 Thu Aug 27 17:32:54 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> - htmysql/HtmysqlDB.cc * conditionally exclude getmysqlconfvalue() - configure.in: * fixed conditional compilation of load_defaults() Thu Aug 27 13:47:19 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> - doc/htcheck.txt: - doc/css: - doc/css/xhtml11-quirks.css: - doc/css/xhtml-deprecated.css: - doc/css/xhtml11.css: - doc/css/xhtml-deprecated-manpage.css: - doc/css/xhtml11-manpage.css: - doc/css/docbook-xsl.css: - doc/Makefile.am: - doc/htcheck.text: - doc/htcheck.html: - doc/htcheck.pdf: - doc/create_doc.sh: * changed documentation system: now uses asciidoc - doc/html: - doc/html/htcheck-6.html: - doc/html/htcheck-7.html: - doc/html/htcheck-8.html: - doc/html/htcheck-9.html: - doc/html/htcheck-1.html: - doc/html/htcheck-10.html: - doc/html/htcheck-11.html: - doc/html/htcheck-2.html: - doc/html/htcheck-3.html: - doc/html/htcheck.html: - doc/html/htcheck-4.html: - doc/html/htcheck-5.html: - doc/htcheck_it.sgml: - doc/htcheck.ps: - doc/htcheck.sgml: * removed old SGML tools generated files Wed Aug 26 16:58:57 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> - acinclude.m4: - aclocal.m4: - htmysql/Makefile.am: - htcheck/Makefile.am: * removed previous MySQL library check autoconf macro * now uses AX_LIB_MYSQL from autoconf archive, which sets MYSQL_CFLAGS and MYSQL_LDFLAGS variables and uses mysql_config to determine MySQL configuration - configure.in: * detect the presence of the load_defaults() function - which has been removed from MySQL 5.1 on - doc/htcheck.sgml: * updated documentation source - configure: * regenerated with 'autoreconf -if' Wed Aug 26 16:11:46 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> - doc/htcheck.sgml: - htcheck/Scheduler.cc: - htmysql/Htmysql.cc: - htmysql/Htmysql.h: - htmysql/HtmysqlDB.cc: - htmysql/HtmysqlDB.h: - installdirs/htcheck.conf: * removed load_defaults() support - which has been abandoned by MySQL in favour of a more abstract mysql_options() usage. Older MySQL client libraries should continue using load_defaults() facilities as in ht://Check 1.2.3 * mysql_conf_file_prefix option is ignored when load_defaults() is not used, which typically happens for MySQL 5.1 and above * added conditional compilations for maintaining compatibility with older versions * needs autotools magic support to be added Mon May 4 15:56:31 CEST 2009 Gabriele Bartolini <gabriele.bartolini@devise.it> - php: * removed PHP directory Tue Dec 23 17:39:37 CET 2008 Gabriele Bartolini <me@gabrielebartolini.it> - acinclude.m4: * improved automatic checks for MySQL 5 installation on Mac OS X with macports - Makefile.in: - aclocal.m4: - config.guess: - config.sub: - configure: - ltmain.sh: - doc/Makefile.in: - htcheck/Makefile.in: - htcommon/Makefile.in: - htlib/Makefile.in: - htmysql/Makefile.in: - htnet/Makefile.in: - htparsing/Makefile.in: - include/Makefile.in: - include/config.h.in: - installdirs/Makefile.in: - php/Makefile.in: - php/css/Makefile.in: - php/img/Makefile.in: - php/include/Makefile.in: * regenerated with autoreconf -if Tue Dec 23 10:51:35 CET 2008 Gabriele Bartolini <g.bartolini@comune.prato.it> - htparsing/HtmlParser.(cc|h): * fixed wrong URL encoding mechanism * fixed wrong SGML encoding mechanism Tue Nov 18 12:49:19 CET 2008 Gabriele Bartolini <g.bartolini@comune.prato.it> - htparsing/HtmlParser.cc: * fixed compilation errors for htdig notification Mon Nov 17 08:52:04 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - Makefile.config: - configure.in: * added --enable-debug option Sun Nov 16 19:12:37 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - .version: * updated to version 2.0.0a - htcommon/Link.(cc|h): - htcommon/SchedulerEntry.(cc|h): - htcommon/URLRef.h: - htcommon/_Url.(cc|h): - htcommon/_Server.(cc|h): - htcommon/AccessibilityCheck.h - htcheck/htcheck.cc * removed any htdig's String class reference * added the C++ standard string support (std::string) * changed string append operation with ostringstream (where applicable) - htcheck/Scheduler.(cc|h): * removed usage of htdig's Dictionary * now uses std::set and std::map for servers and extensions dictionaries * added the management of the client and database charsets * removed any htdig's String class reference * added the C++ standard string support (std::string) * changed string append operation with ostringstream (where applicable) - htmysql/Htmysql.(cc|h): * fixed the Connect function return value * removed any htdig's String class reference * added the C++ standard string support (std::string) * changed string append operation with ostringstream (where applicable) - htmysql/HtmysqlDB.(cc|h): * added the management of the client and database charsets * removed Dictionary for the AvailableCharsets variable. Now using the standard 'set' container * removed any htdig's String class reference * added the C++ standard string support (std::string) * changed string append operation with ostringstream (where applicable) - htcommon/HtmlStatement.(cc|h): * added management of the closing tag information (e.g. </html>) * added management of the empty tag information (e.g. <img ... />) * added caching of unknown tags * added mapping of the following tags: HEAD, SCRIPT, TITLE, H1, ..., H6, B, I, BLINK and MARQUEE * removed any htdig's String class reference * added the C++ standard string support (std::string) * added the enumeration ElementLabel for faster detection of the tag's label This improves speed by reducing the number of string comparisons in the parser. Mapping is performed using a standard map object (std::map) * added lowercase version of the element's name (IMG -> img) for flexible parsing - htcommon/HtmlAttribute.(cc|h): * added caching of unknown attributes * added the ALT and TYPE attributes * removed any htdig's String class reference * added the C++ standard string support (std::string) * added the enumeration AttributeLabel for faster detection of the attribute's label This improves speed by reducing the number of string comparisons in the parser. Mapping is performed using a standard map object (std::map) * added lowercase version of the attribute's name (SRC -> src) for flexible parsing - htparsing/HtmlParser.(cc|h): * removed the tag_type information and the tag start, end and empty information (they are directly handled by the HtmlStatement class * removed all the string comparison detection mechanisms for tags and attributes * fixed a few bugs with the new labeling system * removed any htdig's String class reference * added the C++ standard string support (std::string) * added the HTCHECK_CHAR define (abstraction of the character type - default char) * removed the HtmlParser_Tag enumeration (substituted by the following item) * added the management of the element and attribute labels introduced in the HtmlStatement and HtmlAttribute classes * completely redesigned the Check_Alt function - due to the standard string usage - htcommon/HtDefaults.cc: - installdirs/htcheck.conf: * added 'mysql_db_charset' configuration option * added 'mysql_client_charset' configuration option - htnet/HtHTTP.h: * added void SetRefererURL (const char* u) * fixed a bug with the GetAcceptLanguage() function - htcommon/URL.(cc|h): * changed URL(const String &url) to URL(const char* url) * changed parse(const String &url) to parse(const char* url) - configure.in: - configure: - include/config.h.in * added control for the sys/utsname header * regenerated configure with autoconf 2.61 Mon Nov 10 12:14:26 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - doc/htcheck.sgml - htcommon/HtDefaults.cc - installdirs/htcheck.conf * added 'max_urls_count' configuration option - htcommon/SchedulerEntry.(cc|h): - htmysql/HtmysqlDB.cc: * added MaxUrlsCount enum - htcheck/Scheduler.(cc|h): * added management of the maximum number of URLs to be parsed, through the 'max_urls_count' configuration option Sat Apr 19 00:02:08 CEST 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - configure.in: - htmysql/HtmysqlDB.cc: * specify the database charset - regenerated with 'autoreconf -if' Fri Apr 18 23:34:30 CEST 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - configure.in: * accept the size for a URL field - htmysql/HtmysqlDB.cc: * added the URL_DB_SIZE constant for URL fields size - regenerated with 'autoreconf -if' Fri Apr 11 13:07:42 CEST 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - htmysql/HtmysqlDB.cc: * fixed bug regarding wrong storage of the end time of a crawl Wed Feb 13 21:42:18 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - htparsing/HtmlParser.(cc|h): * simplified management of simple tags (removed bitmasks) * added the CurrentTag attribute Wed Feb 13 17:35:30 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - htcommon/_Url.(cc|h): * added control over doctype version: strict, transitional, frameset * added doctype obsolete property and method Wed Feb 6 14:30:40 CET 2008 Gabriele Bartolini <gabriele.bartolini@devise.it> - htcommon/HtmlStatement.(cc|h): * added column information - htmysql/HtmysqlDB.cc: * added HTML statement column information - htparsing/HtmlParser.(cc|h): * added HTML statement column management Fri Sep 14 14:55:00 CEST 2007 Gabriele Bartolini <g.bartolini@comune.prato.it> - htcheck/Scheduler.cc: - htmysql/HtmysqlDB.(cc|h): * removed database instructions from the Scheduler class: UpdateStatus Fri Sep 14 09:33:22 CEST 2007 Gabriele Bartolini <g.bartolini@comune.prato.it> - htcheck/Scheduler.(cc|h): - htmysql/HtmysqlDB.(cc|h): * removed SQL instructions from the sceduler class, regarding the ShowBrokenLinks, ShowStatusCode, ShowContentTypesPerServer and CalculateUrlSizeAdd methods Fri Jun 1 10:13:12 CEST 2007 Gabriele Bartolini <g.bartolini@comune.prato.it> - htparsing/HtmlParser.cc: * Applied patch by Neil Schelly <neil.schelly@oasis-open.org> regarding proper handling of CDATA sections Tue Aug 29 16:31:55 CEST 2006 Gabriele Bartolini <g.bartolini@comune.prato.it> - run autoreconf -if - installdirs/Makefile.am: * applied patch by volker.duschek@lfuka.lfu.bwl.de (bug #1323916) "Target install-data-local in installdirs/Makefile.am misses the prefix DESTDIR in one line, so building a rpm with BuildRoot set fails" Fri Aug 25 12:14:26 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> - htcommon/RunInfo.(cc|h): * store whether ht://Dig notification info is stored - htmysql/HtmysqlDB.cc: * added info about the version and the htdig notification support in the crawl - .version: * updated to 1.2.5 Thu Aug 24 14:52:23 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> - htmysql/HtmysqlDB.cc: * fixed bug - php/qryurls.php: - php/showurl.php: - php/include/de.inc.php: - php/include/en.inc.php: - php/include/it.inc.php: - php/include/registerglobals.inc.php: * Added ht://Dig notification date search and display Thu Aug 24 10:17:03 CEST 2006 Gabriele Bartolini <g.bartolini@comune.prato.it> - run autoreconf -if Thu Aug 24 10:09:43 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> - Makefile.config: - configure.in: * Added conditional configuration of ht://Dig notification system - htcommon/_Url.cc: - htcommon/_Url.h: * added ht://Dig notification's email, subject and date - htmysql/HtmysqlDB.cc: * ditto (Url table) - htparsing/HtmlParser.cc: - htparsing/HtmlParser.h: * added variables and functions for handling notification dates Tue Jul 4 14:45:18 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> * documentation: updated for release Tue Jul 4 14:07:19 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> * README,NEWS: prepared for 1.2.4 release * doc/htcheck.1: ditto * doc/htcheck.sgml: ditto Mon Jul 3 15:54:59 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> - rebuilt configure scripts with autoreconf Mon Jul 3 15:42:55 CEST 2006 Gabriele Bartolini <angusgb@users.sourceforge.net> - src/htcheck/Scheduler.cc: - src/htmysql/HtmysqlDB.(h|cc): * Fixed query errors for MySQL 5 * Moved anchors code from Scheduler to HtmysqlDB - src/htlib/HtDateTime.h: * removed unuseful virtual Thu Feb 10 13:08:54 CET 2005 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.(h|cc): added HxStep object attribute for holding the difference between the current Hx value (H1, H2, etc.) and the previous one. If the difference is greater than 1 there could be an accessibility barrier. Code in HtmlParser.cc has been therefore adapted to this change, and the wrong detection of accessibility barriers for Hx nesting have been removed. Fri Sep 10 08:25:38 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed bug experienced by Greg Rundlett <greg@buzgate.org> regarding a null pointer's segmentation fault Fri Jul 2 13:54:56 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #71 and 72, regarding the use of meta refresh and redirect (refresh with a different URL) Fri Jul 2 13:06:10 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #69 about the MARQUEE element Tue Jun 29 13:55:16 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added 'xml:lang' to the list of possible specifications of the document language Tue Jun 29 12:02:20 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.2.4's development has now started * php/css/print.css: added by Valentina for media print * php/include/(functions|header).inc.php: improved paging and list printing * php/listlinks.php: ditto Fri Jun 11 13:25:26 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryachecks.php: show HTML statement in the list of accessibility checks (thanks to Valentina) Tue Jun 1 15:35:55 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.2.3 released Tue Jun 1 14:34:31 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * documentation: updated for release Tue Jun 1 14:17:41 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * general: rerun autoreconf Tue Jun 1 13:02:17 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * README,NEWS,.version: prepared for 1.2.3 release * doc/htcheck.1: ditto * doc/htcheck.sgml: ditto Tue Jun 1 10:53:19 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/listlinks.php: added form labels * php/qryachecks.php: added form labels * php/include/[en,it,de].inc.php: added 'full list' entry * php/include/functions.inc.php: added full list management Wed May 26 12:06:48 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryachecks.php: perform a summary of accessibility checks that have been found; this allows the form to be filled with only the accessibility checks that are in the database Wed May 26 11:32:16 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * imported PHP interface for accessibility checks written by Valentina Del Sapio from the Comune di Prato <wwwvalentina@supereva.it>, in particular the following changes: * qryachecks.php: added form with filter and result table with URLs containing the accessibility checks * showacheck.php: page with information regarding the single accessibility check as discovered by htcheck * listurls.php: URLs ordered by their name * listlinks.php: URLs ordered by referencing URL * include/[it,en,de].inc.php: added accessibility checks strings and array containing information regarding specific accessibility checks as of OAC (the german translation has yet to be done) * include/registerglobals.inc.php: included GET variables used in the accessibility checks section Wed May 26 10:33:14 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * _Url.[h,cc]: added support for XHTML 1.1 recognition * htparsing/HtmlParser.cc: ditto Tue May 4 16:05:14 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #7, ALT text can't be empty if images is used as an anchor Fri Apr 30 09:31:24 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryachecks.php: Added an empty PHP script for querying accessibility checks * php/showacheck.php: Added an empty PHP script for showing an accessibility check detail * entire package: updated to GNU autotools Tue Apr 27 09:14:21 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #59 empty ALT text for input of image type Tue Apr 27 08:59:15 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed bug with INPUT type=image checks Mon Apr 26 15:58:03 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.[h,cc]: added CheckAlt() method for checking generic ALT texts, not only the IMG one. Added OAC #58, 60 and 61 Fri Apr 23 08:56:59 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: fixed bug of dropping AccessibilityChecks table Thu Apr 15 16:24:34 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #27 regarding use of BLINK element Thu Apr 15 16:17:22 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added storing of attribute position for OAC #2 and #3 regarding ALT attribute Wed Apr 14 09:00:31 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #2 and #3 regarding the content of the ALT text (different from the file name and shorter than 150 chars) * htparsing/HtmlParser.[h,cc]: added the CountSGMLStringLength private method for counting SGML encoded strings length (ignoring consecutive whitespaces) for accessibility purposes. Tue Apr 6 10:32:48 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: improved the statistics of content-types for every server and for the whole crawl Tue Apr 6 10:21:39 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser: added OAC #116 and #117 regarding the misuse of the B and I elements Tue Apr 6 10:11:32 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: improved accessibility checking stability and correctness by issuing 3 object variables: CurrentHx, PreviousHx and store_statement (checking whether a document, according to the 'store_only_links' and 'accessibility_checks' option values Mon Apr 5 18:45:44 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #37-41 (hx nesting) Mon Apr 5 15:43:13 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #48 (Document language must be identified) Mon Apr 5 14:49:11 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/RunInfo.[h,cc]: added information about the configuration attribute regarding accessibility checks * htmysql/HtmysqlDB.cc: added the AccessibilityChecks field in the htCheck table (runtime information) * htcheck/Scheduler.cc: added the management of the above field * htparsing/HtmlParser.cc: added the management of the configuration attribute regarding accessibility checks ("accessibility_checks") Mon Apr 5 13:01:35 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: added the 'accessibility_checks' configuration attribute for enabling/disabling accessibility checks in the crawl * installdirs/htcheck.conf: added the attribute in the configuration file distributed with ht://Check * doc/htcheck.sgml: added explanation of the attribute in the documentation Thu Apr 1 12:43:14 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.[h,cc]: removed AccessibilityCheck object in the HtmlParser class, and created the protected method InsertAccessibilityCheck in the HtmlParser class for speeding the code writing Thu Apr 1 11:35:45 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * hparsing/HtmlParser.cc: fixed TAGimg hex definition Wed Mar 31 14:09:11 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: added OAC #51 and #52, regarding title length: at least 1 character and less than 150 Wed Mar 31 13:48:41 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser[h,cc]: renamed 'acheck' in a more proper 'doc_check', as there are now 2 possible checks: tag checks and document checks * added OAC #50: document must contain a title element Tue Mar 30 13:26:35 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * new feature: accessibility checks according to the 'Open Accessibility Checks' project (http://oac.atrc.utoronto.ca/). Currently only the missing ALT for images (code 1) is performed * htcommon/Makefile.[am,in]: added AccessibilityCheck files to the project * rerun autoreconf Tue Mar 30 13:25:41 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url.[h,cc], htcheck/Scheduler.cc: added management of the server error Tue Mar 30 13:20:56 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.[h,cc]: added simple management of the AccessibilityCheck class, in particular the check for the images without an ALT attribute (check code 1) Tue Mar 30 13:19:16 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,c]: added 'Accessibility' table creation and insert of records Tue Mar 30 13:18:14 CEST 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/AccessibilityCheck.[h,cc]: added class for accessibility checks Mon Jan 12 11:20:12 CET 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.2.2 released Mon Jan 12 10:02:39 CET 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * general: preparing documents for the new release Mon Jan 12 09:54:08 CET 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryurls.php: Added description and keywords filters * php/showurl.php: Added description and keywords labels * php/include/(it|en|de).inc.php: Added description and keywords words * php/include/register_globals.inc.php: Added description and keywords variables Sun Jan 4 19:34:28 CET 2004 Gabriele Bartolini <angusgb@users.sourceforge.net> * NEWS: begun to prepare release information Tue Dec 30 10:37:46 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * general: updated copyright info up to 2004 Tue Dec 30 10:25:47 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url.cc: fixed a bug in setting the charset from the content type recognition. Mon Dec 29 18:28:22 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url.cc: more flexible recognition of doctype, which ignores whitespaces in the declaration Wed Dec 24 12:15:26 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url.[h,cc]: improved recognition of the content type returned by the Web server when a charset is specified too. For instance: in the case of "text/html; iso-8859-1", the ContentType is set to "text/html" and the charset to "iso-8859-1" (unless overridden by the HTML source). Sun Dec 21 09:32:04 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: added an empty Accept-Encoding directive for better dealing with content encoding communication Wed Dec 10 09:36:23 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: added automatic mechanism of recovery when a HEAD call fails (issue a GET call) * htcheck/Scheduler.cc: ditto Mon Nov 10 13:46:39 EST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: removed the 'in_xxx' boolean variables storing information about the location in crucial parts of the documents; now, the same operation is performed through an integer value with logical bitwise expressions. Also the management of XHTML empty tag is performed, ensuring correct management of <scrip /> tags. Mon Sep 8 17:02:05 EST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added the Description and Keywords fields for the Url table * htparsing/Htmlparser.[h,cc]: added the handling functions for the above fields * htcommon/_Url.[h,cc]: added the descripton and keywords properties Thu Jul 24 10:41:48 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryurls.php: fixed a bug when requesting a charset or a doctype different from a specific one (it should include the NULL values as well) Tue Jun 24 08:54:46 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.sgml: fixed typos in documentation as suggested by bug #735478 Fri Jun 20 10:51:45 CEST 2003 Marco Nenciarini <mnencia@debian.org> * updated to GNU automake-1.7.5 * configure: added support for detection of standard C++ library * all sources using <iostream.h> <fstream.h> <iomanip.h>: modified to use standard ISO C++ library, if present * removed acconfig.h (now is deprecared by autoconf) * cleaned some unused check in configure.in Tue May 27 10:53:30 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url.[h,cc]: HTML 3.2 DocType detection is now more flexible Tue May 27 10:35:40 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/Htmlparser.cc: fixed a bug regarding the correct initialization of the DocType's string Tue May 27 09:58:35 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added other values for the enumeration field holding the doctype declaration (DTD); * htparsing/HtmlParser.cc: more efficient DOCTYPE detection * htcommon/_Url.[h,cc]: improved DOCTYPE detection, with more available public identifiers values (XHTML, HTML 4.01, HTML 4.0, HTML 3.2, HTML 2.0, ISO-IEC-15445-2000) * php/qryurls.php: added the field for querying the DTD * php/showurl.php: added the DOCTYPE information for the URL * global/[en,it,de].inc.php: added the DocType strings * global/registerglobals.inc.php: added the DocType variables Mon May 26 19:44:30 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.2.2's development has now started * added a very first version of DOCTYPE dection and storing Tue Apr 29 17:42:14 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: fixed a problem regarding how the added size of a resource is calculated Fri Apr 25 20:01:51 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/*: renewed the layout and removed most of the HTML deprecated tags and attributes such as b, menu, border, cellpadding, etc. Fri Apr 25 19:59:59 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/function.inc.php fixed an error with paging (first page was not working) Fri Apr 25 19:58:06 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/registerglobals.inc.php: script for making the interface usable even without register_globals * php/include/global.inc.php: included the previous file Fri Apr 25 16:12:10 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/Makefile.am: fixed some automake problems with 'htlib's headers * Makefiles Fri Apr 25 12:25:16 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.2.1' ready to be released. Fri Apr 25 12:21:51 CEST 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.pdf: added the PDF documentation * doc/html/*: updated the HTML documentation * doc/htcheck.ps: updated the PostScript documentation * doc/htcheck.1: updated the man page * doc/htcheck.sgml: updated the SGML documentation (source) Wed Feb 26 22:18:22 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: fixed a small bug in HTTP header parsing; as the standard says, the colon ':' is the separator between the field name and its value Sat Feb 22 12:36:10 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.h: fixed a bug for setting the cookie jar * htcheck/Scheduler.cc: improved cookie jar setting when importing cookies file Sat Feb 1 13:59:22 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.[h,cc]: allowed printDebug to be passed an ostream object * htnet/HtCookieMemJar.cc: removed a debug call Thu Jan 30 19:17:11 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/Makefile.am: fixed a bug which occurred in a FreeBSD environment * doc/Makefile.in: regenerated by automake for changes above Tue Jan 28 18:44:09 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: in FindLink() fixed a bug regarding the omittance of the 'Unknown' case for a Link Tue Jan 28 18:28:07 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/(URL|_Url|HtmlAttribute|Link).h: removed improper inline functions Tue Jan 28 18:10:15 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * entire package: updated to GNU autotools: autoconf-2.57 automake-1.6.3 libtool-1.4.3 Tue Jan 28 14:43:43 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.sgml: added FAQ about compilation Tue Jan 28 14:32:03 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/Configuration.h: removed unuseful info from the ConfigDefaults structure * htcommon/HtDefaults.cc: ditto Tue Jan 28 11:56:06 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.cc: if an expiration value of '0' is set through the cookies input file, the cookie is managed as a session cookie. * installdirs/cookies.txt: info as above Tue Jan 28 11:45:46 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * updated documentation and NEWS file Tue Jan 28 10:50:51 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * installdirs/cookies.txt: added an example of cookies input file, with complete explanations and information on how to use it. * installdirs/Makefile[am,in]: modified in order to manage this new file Mon Jan 27 21:12:55 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * */Makefile.[am,in]: updated with new copyright info; also HtCookieInFileJar.[h,cc] files have been added to the 'htnet' one Mon Jan 27 21:09:37 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: importing of cookies is now possible through the use of the 'cookies_input_file' directive. Mon Jan 27 21:03:27 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: added the 'cookies_input_file' configuration attribute, that allows users to specify an input file for pre-loading cookies, according to Netscape's format Mon Jan 27 20:53:41 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookieMemJar.[h,cc]: performed deep copy of the jar in the copy constructor Mon Jan 27 20:31:05 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.[h,cc]: added the constructor of a cookie object from a line of a cookie input file (as Netscape's way); improved copy constructor, solving a bug related to the expires field Mon Jan 27 20:28:39 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/HtDateTime.h: added the constructor HtDateTime(const int) Mon Jan 27 20:23:04 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookieInFileJar.[h,cc]: class for importing cookies from a text file Mon Jan 27 13:58:37 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * everywhere: updated copyright info (year 2003) Thu Jan 23 19:14:41 CET 2003 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtmlStatement.h: removed inline specifier to Reset method Thu Nov 14 16:55:12 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * global changes due to code synchronisation with ht://Dig Thu Nov 14 13:52:09 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/strptime.cc: substituted strptime.c and updated configuration stuff again Thu Nov 14 13:46:52 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/String.cc: changed stream.h to iostream.h Thu Nov 14 13:37:46 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * configure stuff: changed configure.in, acinclude.m4 and some Makefiles, trying to make it more similar to ht://Dig configuration process Wed Nov 13 13:38:06 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: added the 'store_link_info' attribute, which allows to control the storing of the link descriptions and linked tags. * htparsing/HtmlParser.cc: ditto Wed Nov 13 08:55:31 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed a bug when inserting the LinkDescription (it was never entered after the last changes). Tue Nov 12 09:57:28 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,cc]: LinkTagPosition field has been added; when set, it points to the tag which opened a link (useful for getting to know which tags are within a <A> and </A> markup). * htparsing/HtmlParser.[h,cc]: ditto Mon Nov 11 18:03:50 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,cc]: inserted the link description in the HtmlStatement, storing the text contained between a start and end tag of an 'A' element. * htparsing/HtmlParser.[h,cc]: ditto Wed Nov 6 11:17:04 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: fixed bug in HtmlAttribute table creation, because the Content field wasn't specified to be 'NOT NULL', as Valdo <fdmjne001@sneakemail.com> pointed out Thu Oct 24 10:29:17 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/qryurls.php: added the filter for the charset * php/showurl.php: fixed some bugs in the display of the charset * php/include/[it,en,de].inc.php: translations Thu Oct 24 09:57:24 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: display of the charset * php/include/[it,en,de].inc.php: translations for charset Wed Oct 23 10:29:50 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.sgml: added the 'available_charsets' info Wed Oct 23 09:47:28 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: added the 'available_charsets' attribute for setting the list of the charsets that ht://Check recognises and stores into the DB. * htcommon/_Url.[h,cc]: added the Charset attribute and access methods * htmysql/HtmysqlDB.[h,cc]: available charsets management * htcheck/Scheduler.cc: ditto * htcheck/HtmlParser.[h,cc]: ditto Fri Oct 18 18:02:43 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * everywhere: updated the source code to new versions of autotools (autoconf-2.54, automake-1.6.3); Wed Oct 16 17:28:08 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * removed URLTrans.cc from htcommon, because it prevented htcheck to be statically linked Fri Sep 20 19:11:10 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * patch level 1 released Fri Sep 20 17:50:30 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Scheduler.cc: when selecting the Schedule fields, a const string is used for the common part in all the uses. Fri Sep 20 13:10:49 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Scheduler.cc: fixed a bug regarding Schedule selections due to changes occurred on the Schedule table (fields order inSELECT * didn't match any more the initial situation) Fri Sep 20 11:08:11 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.2.1's development has now started * htmysql/HtmysqlDB.cc: added two indexes for the HtmlAttribute and statement tables ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/configure.in�����������������������������������������������������������������0000644�0000000�0000000�00000021434�11245527263�014077� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Configuration for ht://Check 1.x # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Some Portions Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # AC_PREREQ(2.61) AC_INIT VERSION=`cat ${srcdir}/.version` AM_INIT_AUTOMAKE(htcheck, $VERSION) AC_SUBST(VERSION) HTCHECK_MAJOR_VERSION=[`expr $VERSION : '\([0-9][0-9]*\)'`] AC_SUBST(HTCHECK_MAJOR_VERSION) HTCHECK_MINOR_VERSION=[`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`] AC_SUBST(HTCHECK_MINOR_VERSION) HTCHECK_MICRO_VERSION=[`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`] AC_SUBST(HTCHECK_MICRO_VERSION) AM_CONFIG_HEADER(include/config.h) AC_PREFIX_DEFAULT(/opt/htcheck) # Initialize maintainer mode AM_MAINTAINER_MODE # Get any --with or --disable flags now # This looks a little messy, but it's word-wrapping problems :-( AC_ARG_WITH(config-dir, [ --with-config-dir=DIR where your config directory is [default=$ac_default_prefix/conf]], CONFIG_DIR="$withval", CONFIG_DIR='${prefix}/conf') AC_SUBST(CONFIG_DIR) AC_ARG_WITH(default-config-file, [ --with-default-config-file=FILE Where ht://Check will look for a configuration file [default=$ac_default_prefix/conf/htcheck.conf]], DEFAULT_CONFIG_FILE="$withval", DEFAULT_CONFIG_FILE='${CONFIG_DIR}/htcheck.conf') AC_SUBST(DEFAULT_CONFIG_FILE) AC_ARG_WITH(db-name, [ --with-db-name=NAME database name [default=htcheck]], DB_NAME="$withval", DB_NAME="htcheck") AC_SUBST(DB_NAME) AC_ARG_WITH(db-url-max-size, [ --with-db-url-max-size=NUMBER length of the database fields for URLs [default=255]], URL_DB_SIZE=$withval, URL_DB_SIZE=255) AC_SUBST(URL_DB_SIZE) AC_ARG_WITH(db-charset, [ --with-db-charset=CHARSET database character set [default=utf8]], DEFAULT_DB_CHARSET="$withval", DEFAULT_DB_CHARSET="utf8") AC_SUBST(DEFAULT_DB_CHARSET) AC_ARG_ENABLE(htnotify, [ --enable-htnotify Turn on htdig notification storage], [case "${enableval}" in yes) htnotify=true ;; no) htnotify=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-htnotify) ;; esac],[htnotify=false]) AM_CONDITIONAL(HTNOTIFY, test x$htnotify = xtrue) AC_ARG_WITH(db-name-prepend, [ --with-db-name-prepend=NAME database name string to be prepended [default=[empty]]], DB_NAME_PREPEND="$withval", DB_NAME_PREPEND="") AC_SUBST(DB_NAME_PREPEND) AC_ARG_WITH(doc-dir, [ --with-doc-dir=DIR where you want to install the documentation files [default=$ac_default_prefix/doc]], DOC_DIR="$withval", DOC_DIR='${prefix}/doc') AC_SUBST(DOC_DIR) AC_ARG_WITH(html-dir, [ --with-html-dir=DIR where you want to install the html documentation files [default=$ac_default_prefix/doc/html]], HTML_DIR="$withval", HTML_DIR='${DOC_DIR}/html') AC_SUBST(HTML_DIR) AC_ARG_ENABLE(debug, [ --enable-debug Turn on debugging], [case "${enableval}" in yes) debug="true" ;; no) debug="false" ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; esac],[debug="false"]) AM_CONDITIONAL(DEBUG, test "$debug" = "true") echo configuring ht://Check version $VERSION dnl Checks for programs. AC_AIX AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL AC_COMPILE_WARNINGS NO_RTTI #NO_EXCEPTIONS AC_PATH_PROG(AR, ar, ar) AC_PATH_PROG(SHELL, sh, /bin/sh) AC_PATH_PROG(SED, sed, /bin/sed) AX_LIB_MYSQL # Checks for libraries. AC_SUBST(EXTRA_LIBS) # Checks for header files. AC_HEADER_STDC AC_HEADER_TIME AC_HEADER_DIRENT # More header checks--here use C++ AC_LANG([C++]) AC_CXX_HAVE_STD AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h sys/utsname.h]) AC_CHECK_HEADER(fstream,nofstream=0,nofstream=1) if test "x$nofstream" = "x1" ; then AC_CHECK_HEADER(fstream.h,nofstream=0,nofstream=1) if test "x$nofstream" = "x1" ; then AC_MSG_ERROR([To compile ht://Check, you will need a C++ library. Try installing libstdc++.]) fi fi # Checks for typedefs, structures, and compiler characteristics. AC_LANG([C]) AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_STRUCT_TM # Checks for library functions. AC_FUNC_CLOSEDIR_VOID AC_FUNC_ERROR_AT_LINE AC_FUNC_LSTAT AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_FUNC_MEMCMP AC_FUNC_MKTIME AC_FUNC_STAT AC_FUNC_STRFTIME AC_FUNC_STRPTIME AC_FUNC_VPRINTF AC_REPLACE_FUNCS(snprintf vsnprintf) AC_CHECK_FUNCS([getcwd memmove memset re_comp regcomp strchr strerror strrchr strstr strtol uname strdup memcmp memcpy raise mkstemp localtime_r timegm]) dnl These tests need to be run through the c++ compiler AC_LANG([C++]) AC_MSG_CHECKING(whether we need gethostname() prototype?) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/uio.h> #include <sys/file.h> #include <fcntl.h> #include <netdb.h> #include <stdlib.h> extern "C" int gethostname(char *, int); ]],[[ gethostname("sdsu.edu", (int) 8); ]])],[AC_MSG_RESULT(yes);AC_DEFINE([NEED_PROTO_GETHOSTNAME],,[Define if you need a prototype for gethostname()])],[AC_MSG_RESULT(no)]) dnl We're still using the C++ compiler for this test AC_MSG_CHECKING(how to call getpeername?) for sock_t in 'struct sockaddr' 'void'; do for getpeername_length_t in 'size_t' 'int' 'unsigned int' 'long unsigned int' 'socklen_t' do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> #include <sys/socket.h> extern "C" int getpeername(int, $sock_t *, $getpeername_length_t *); $sock_t s; $getpeername_length_t l; ]], [[ getpeername(0, &s, &l); ]])],[ac_found=yes ; break 2],[ac_found=no]) done done if test "$ac_found" = no then AC_MSG_WARN([can't determine, using size_t]) getpeername_length_t="size_t" else AC_MSG_RESULT($getpeername_length_t) fi AC_DEFINE_UNQUOTED([GETPEERNAME_LENGTH_T],[$getpeername_length_t],[Define this to the type of the third argument of getpeername()]) AC_MSG_CHECKING(how to call select?) for fd_set_t in 'fd_set' 'int' do for timeval_t in 'struct timeval' 'const struct timeval' do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h> #include <sys/types.h> #include <unistd.h> extern "C" int select(int, $fd_set_t *, $fd_set_t *, $fd_set_t *, $timeval_t *); $fd_set_t fd; ]], [[ select(0, &fd, 0, 0, 0); ]])],[ac_found=yes ; break 2],[ac_found=no]) done done if test "$ac_found" = no then AC_MSG_WARN([can't determine argument type using int]) fd_set_t="int" else AC_MSG_RESULT($fd_set_t) fi AC_DEFINE_UNQUOTED([FD_SET_T],[$fd_set_t],[Define this to the type of the second argument of select()]) #old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS" LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" AC_CHECK_HEADERS(mysql.h mysqld_error.h) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include "mysql.h" ]], [[ load_defaults(0, 0, 0, 0); ]])],[ac_found=yes],[ac_found=no]) if test "$ac_found" = no then AC_MSG_WARN([can't find load_defaults()]) else AC_DEFINE_UNQUOTED([HAVE_LOAD_DEFAULTS],1,[Determine whether load_defaults() is still defined in the API]) dnl Check for the mysql load_defaults function AC_MSG_CHECKING(how to call mysql load_defaults function?) for returnvalue in 'void' 'int' do for argtwo in 'char *' 'const char *' do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h" #include "mysqld_error.h" extern "C" $returnvalue load_defaults(const char *conf_file, $argtwo *groups, int *argc, char ***argv); ]], [[ load_defaults(0, 0, 0, 0); ]])],[ac_found=yes ; break 2],[ac_found=no]) done done if test "$ac_found" = no then AC_MSG_WARN([can't determine argument type using const char **]) argtwo="const char *" else AC_MSG_RESULT($argtwo) fi AC_DEFINE_UNQUOTED([MYSQL_LOAD_DEFAULTS_ARGTWO],[$argtwo],[Define how to call the second argument of mysql's load_defaults()]) fi #CPPFLAGS="$old_CPPFLAGS" AC_CONFIG_FILES([Makefile htcheck/Makefile htcommon/Makefile htlib/Makefile htmysql/Makefile htnet/Makefile htparsing/Makefile include/Makefile installdirs/Makefile doc/Makefile]) AC_OUTPUT echo "" echo "" echo "ht://Check configured ..." echo "Now you must run 'make' followed by 'make install'" echo "" ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/ltmain.sh��������������������������������������������������������������������0000644�0000000�0000000�00000606031�11123012024�013363� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.26 TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)" # Be Bourne compatible (taken from Autoconf:_AS_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 # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<EOF $* EOF exit $EXIT_SUCCESS fi default_mode= help="Try \`$progname --help' for more information." magic="%%%MAGIC variable%%%" mkdir="mkdir" mv="mv -f" rm="rm -f" # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr SP2NL='tr \040 \012' NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system SP2NL='tr \100 \n' NL2SP='tr \r\n \100\100' ;; esac # NLS nuisances. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). # We save the old values to restore during execute mode. lt_env= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var lt_env=\"$lt_var=\$$lt_var \$lt_env\" $lt_var=C export $lt_var fi" done if test -n "$lt_env"; then lt_env="env $lt_env" fi # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then $echo "$modename: not configured to build any kind of library" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; *.sx) xform=sx ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T <<EOF # $libobj - a libtool object file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # Name of the PIC object. EOF # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi if test ! -d "${xdir}$objdir"; then $show "$mkdir ${xdir}$objdir" $run $mkdir ${xdir}$objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then exit $exit_status fi fi if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi $run $rm "$lobj" "$output_obj" $show "$command" if $run eval $lt_env "$command"; then : else test -n "$output_obj" && $run $rm $removelist exit $EXIT_FAILURE fi if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <<EOF pic_object='$objdir/$objname' EOF # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi else # No PIC object so indicate it doesn't exist in the libtool # object file. test -z "$run" && cat >> ${libobj}T <<EOF pic_object=none EOF fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" $run $rm "$obj" "$output_obj" $show "$command" if $run eval $lt_env "$command"; then : else $run $rm $removelist exit $EXIT_FAILURE fi if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <<EOF # Name of the non-PIC object. non_pic_object='$objname' EOF else # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <<EOF # Name of the non-PIC object. non_pic_object=none EOF fi $run $mv "${libobj}T" "${libobj}" # Unlock the critical section if it was locked if test "$need_locks" != no; then $run $rm "$lockfile" fi exit $EXIT_SUCCESS ;; # libtool link mode link | relink) modename="$modename: link" case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args="$nonopt" base_compile="$nonopt $@" compile_command="$nonopt" finalize_command="$nonopt" compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= notinst_path= # paths that contain not-installed libtool libraries precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$deplibdir/$depdepl" ; then depdepl="$deplibdir/$depdepl" elif test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" else # Can't find it, oh well... depdepl= fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) case " $deplibs" in *\ -l* | *\ -L*) $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;; esac if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then major=`expr $current - $age` else major=`expr $current - $age + 1` fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c <<EOF int main() { return 0; } EOF $rm conftest if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then ldd_output=`ldd conftest` for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches deplib_match=$2 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $echo $echo "*** Warning: dynamic linker does not accept needed library $i." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which I believe you do not have" $echo "*** because a test_compile did reveal that the linker did not use it for" $echo "*** its dynamic dependency list that programs get resolved with at runtime." fi fi else newdeplibs="$newdeplibs $i" fi done else # Error occurred in the first compile. Let's try to salvage # the situation: Compile a separate program for each library. for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then $rm conftest if $LTCC $LTCFLAGS -o conftest conftest.c $i; then ldd_output=`ldd conftest` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches deplib_match=$2 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $echo $echo "*** Warning: dynamic linker does not accept needed library $i." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because a test_compile did reveal that the linker did not use this one" $echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi fi else droppeddeps=yes $echo $echo "*** Warning! Library $i is needed by this library but I was not able to" $echo "*** make it link in! You will probably need to install it or some" $echo "*** library that it depends on before this library will be fully" $echo "*** functional. Installing it before continuing would be even better." fi else newdeplibs="$newdeplibs $i" fi done fi ;; file_magic*) set dummy $deplibs_check_method file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) case " $deplibs" in *\ -l* | *\ -L*) $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;; esac if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 </dev/null >/dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <<EOF /* $cwrappersource - temporary wrapper executable for $objdir/$outputname Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP The $output program cannot be directly executed until all the libtool libraries that it depends on are installed. This wrapper executable should never be moved out of the build directory. If it is, it will not operate correctly. Currently, it simply execs the wrapper *script* "/bin/sh $output", but could eventually absorb all of the scripts functionality and exec $objdir/$outputname directly. */ EOF cat >> $cwrappersource<<"EOF" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <malloc.h> #include <stdarg.h> #include <assert.h> #include <string.h> #include <ctype.h> #include <sys/stat.h> #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <<EOF newargz[0] = (char *) xstrdup("$SHELL"); EOF cat >> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i<argc+1; i++) { DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]); ; } EOF case $host_os in mingw*) cat >> $cwrappersource <<EOF execv("$SHELL",(char const **)newargz); EOF ;; *) cat >> $cwrappersource <<EOF execv("$SHELL",newargz); EOF ;; esac cat >> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to <bug-libtool@gnu.org>." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/Makefile.in������������������������������������������������������������������0000644�0000000�0000000�00000053240�11245527335�013633� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ # Main Makefile for ht://Check # # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> # $Id: Makefile.am,v 1.11 2008-11-16 18:28:51 angusgb Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ TODO config.guess config.sub depcomp install-sh ltmain.sh \ missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline SUBDIRS = doc htlib htcommon htmysql \ htparsing htnet \ include htcheck installdirs EXTRA_DIST = .version Makefile.config SQL ChangeLog.old all: all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-data-am install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-zip \ distcheck distclean distclean-generic distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-hook install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am dist-hook: find $(distdir) -depth -name CVS -print | xargs rm -fr install-data-hook: @echo "" @echo "Installation done." @echo "" # 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: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/TODO�������������������������������������������������������������������������0000644�0000000�0000000�00000005764�11177570304�012264� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������TODO List for ht://Check ------------------------ Copyright (c) 1999-2004 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> $Id: TODO,v 1.27 2003-12-30 09:38:29 angusgb Exp $ ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. ht://Check is a world-wide-web utility for an intranet or small internet. Note that you already must have installed MySQL on your system. For info about MySQL and its license, go to <www.mysql.com>. ------------------------------------------------------------------- To do: 1 - Clean source tree from unused files. 2 - Improve Configuration classes (Server and URLs blocks as ht://Dig) 3 - Make ht://Check compatible with ht://Dig. 7 - Utilize a previous database and not always drop it if present. 9 - Grant on tables and database 16 - Write number of connections needed for every URL 19 - robots.txt standard (do we really need it?) 21 - PHP interface: tag and attribute search inside the link search 22 - PHP interface: tag and attribute search form 27 - Abstract class for database management and consequent rewrite of the code, in order to allow porting to different DBMS like PostgreSQL. 28 - Internationalization of 'htcheck' 30 - IP address use for persistent connections 31 - Storage of every META information (independently by store_only_links) 32 - HTTPS support 33 - Permanent cookies storage 35 - Internationalization of the spider 36 - Use of the md5() function for better and faster URL retrieval 38 - Use of multithreading ------------------------------------------------------------------- In progress: 4 - Create a query interface for getting info stored in a database. A standalone program or/and the end of htcheck. (partially done) 6 - Build a set of PHP pages for querying the database via web. 8 - Documentation !!! 37 - server aliasing and IP address storing ------------------------------------------------------------------- Already done: 5 - Configure connection and authentication to the mysql database. (Done) 10 - Bug in the HEAD method. When a server gives the body too. (Done) 11 - The referer management is not right (done) 12 - Total weight calculation for a URL (in bytes) (Done) 13 - Anchors management (done) 14 - Hop Count management (done) 15 - Check for the anchors in the link table (match <A name> with with the anchors in the link table). (Done) 18 - MySQL Authentication. (Done) 20 - HTTP Basic authentication. (Done) 24 - Cookie support (partially, without subdomains) 25 - Managing of e-mail links 26 - Managing of 'file:' calls that lead to errors! 17 - PHP report of broken links and anchors not found 29 - Javascript interpreter interception 23 - Improve controls when a db error occurs (i.e. no space left for queries). (done) 34 - Setting of cookies through the configuration or a permanent file 26 - Better URL class management (for mailto, file, etc.) ������������htcheck-2.0.0~rc1.orig/htnet/�����������������������������������������������������������������������0000755�0000000�0000000�00000000000�11245531570�012700� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/Connection.cc����������������������������������������������������������0000644�0000000�0000000�00000043027�11177570271�015321� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // Connection.cc // // Connection: This class forms a easy to use interface to the berkeley // tcp socket library. All the calls are basically the same, // but the parameters do not have any stray _addr or _in // mixed in... // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1999-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: Connection.cc,v 1.11 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Connection.h" #include "Object.h" #include "List.h" #include <errno.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> // For inet_ntoa #endif /* HAVE_ARPA_INET_H */ #include <netinet/in.h> #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif /* HAVE_SYS_IOCTL_H */ #include <sys/uio.h> #ifdef HAVE_SYS_FILE_H #include <sys/file.h> #endif /* HAVE_SYS_FILE_H */ #include <signal.h> #include <unistd.h> #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif /* HAVE_ARPA_INET_H */ #include <netdb.h> #include <stdlib.h> #if TIME_WITH_SYS_TIME # include <sys/time.h> # include <time.h> #else # if HAVE_SYS_TIME_H # include <sys/time.h> # else # include <time.h> # endif #endif #include <unistd.h> #ifdef HAVE_STRINGS_H #include <strings.h> #endif /* HAVE_STRINGS_H */ #ifdef HAVE_SYS_SELECT_H #include <sys/select.h> #endif /* HAVE_SYS_SELECT_H */ typedef void (*SIGNAL_HANDLER) (...); #include "htconfig.h" extern "C" { int rresvport(int *); } #undef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) List all_connections; //************************************************************************* // Connection::Connection(int socket) // - Default constructor // PURPOSE: // Create a connection from just a socket. // PARAMETERS: // int socket: obvious!!!! // //************************************************************************* Connection::Connection(int socket) : pos(0), pos_max(0), sock(socket), connected(0), peer(""), server_name(""), server_ip_address(""), need_io_stop(0), timeout_value(0), retry_value(1), wait_time(5) // wait 5 seconds after a failed connection attempt { if (socket > 0) { GETPEERNAME_LENGTH_T length = sizeof(server); if (getpeername(socket, (struct sockaddr *)&server, &length) < 0) perror("getpeername"); } all_connections.Add(this); } // Copy constructor Connection::Connection(const Connection& rhs) : pos(rhs.pos), pos_max(rhs.pos_max), sock(rhs.sock), connected(rhs.connected), peer(rhs.peer), server_name(rhs.server_name), server_ip_address(rhs.server_ip_address), need_io_stop(rhs.need_io_stop), timeout_value(rhs.timeout_value), retry_value(rhs.retry_value), wait_time(rhs.wait_time) // wait 5 seconds after a failed connection attempt { all_connections.Add(this); } //***************************************************************************** // Connection::~Connection() // Connection::~Connection() { all_connections.Remove(this); this->Close(); } //***************************************************************************** // int Connection::Open(int priv) // int Connection::Open(int priv) { if (priv) { int aport = IPPORT_RESERVED - 1; sock = rresvport(&aport); } else sock = socket(AF_INET, SOCK_STREAM, 0); if (sock == NOTOK) return NOTOK; int on = 1; setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *) &on, sizeof(on)); server.sin_family = AF_INET; return OK; } //***************************************************************************** // int Connection::Ndelay() // int Connection::Ndelay() { return fcntl(sock, F_SETFL, FNDELAY); } //***************************************************************************** // int Connection::Nondelay() // int Connection::Nondelay() { return fcntl(sock, F_SETFL, 0); } //***************************************************************************** // int Connection::Timeout(int value) // int Connection::Timeout(int value) { int oval = timeout_value; timeout_value = value; return oval; } //***************************************************************************** // int Connection::retries(int value) // int Connection::Retries(int value) { int oval = retry_value; retry_value = value; return oval; } //***************************************************************************** // int Connection::Close() // int Connection::Close() { connected = 0; if (sock >= 0) { int ret = close(sock); sock = -1; return ret; } return NOTOK; } //***************************************************************************** // int Connection::Assign_Port(int port) // int Connection::Assign_Port(int port) { server.sin_port = htons(port); return OK; } //***************************************************************************** // int Connection::Assign_Port(char *service) // int Connection::Assign_Port(const String &service) { struct servent *sp; sp = getservbyname(service, "tcp"); if (sp == 0) { return NOTOK; } server.sin_port = sp->s_port; return OK; } //***************************************************************************** // int Connection::Assign_Server(unsigned int addr) // int Connection::Assign_Server(unsigned int addr) { server.sin_addr.s_addr = addr; return OK; } //***************************************************************************** // int Connection::Assign_Server(const String& name) { struct hostent *hp; char **alias_list; unsigned int addr; // // inet_addr arg IS const char even though prototype says otherwise // addr = inet_addr((char*)name.get()); if (addr == (unsigned int)~0) { // Gets the host given a string hp = gethostbyname(name); if (hp == 0) return NOTOK; alias_list = hp->h_aliases; memcpy((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length); } else { memcpy((char *)&server.sin_addr, (char *)&addr, sizeof(addr)); } server_name = name.get(); server_ip_address = inet_ntoa(server.sin_addr); return OK; } // // Do nothing, we are only interested in the EINTR return of the // running system call. // static void handler_timeout(int) { } //***************************************************************************** // int Connection::Connect() // int Connection::Connect() { int status; int retries = retry_value; while (retries--) { // // Set an alarm to make sure the connect() call times out // appropriately This ensures the call won't hang on a // dead server or bad DNS call. // Save the previous alarm signal handling policy, if any. // struct sigaction action; struct sigaction old_action; memset((char*)&action, '\0', sizeof(struct sigaction)); memset((char*)&old_action, '\0', sizeof(struct sigaction)); action.sa_handler = handler_timeout; sigaction(SIGALRM, &action, &old_action); alarm(timeout_value); status = connect(sock, (struct sockaddr *)&server, sizeof(server)); // // Disable alarm and restore previous policy if any // alarm(0); sigaction(SIGALRM, &old_action, 0); if (status == 0 || errno == EALREADY || errno == EISCONN) { connected = 1; return OK; } // // Only loop if timed out. Other errors are fatal. // if (status < 0 && errno != EINTR) break; // cout << " <" << ::strerror(errno) << "> "; close(sock); Open(); sleep(wait_time); } #if 0 if (status == ECONNREFUSED) { // // For the case where the connection attempt is refused, we need // to close the socket and create a new one in order to do any // more with it. // Close(sock); Open(); } #else close(sock); Open(0); #endif connected = 0; return NOTOK; } //***************************************************************************** // int Connection::Bind() // int Connection::Bind() { if (bind(sock, (struct sockaddr *)&server, sizeof(server)) == NOTOK) { return NOTOK; } return OK; } //***************************************************************************** // int Connection::Get_Port() // int Connection::Get_Port() { GETPEERNAME_LENGTH_T length = sizeof(server); if (getsockname(sock, (struct sockaddr *)&server, &length) == NOTOK) { return NOTOK; } return ntohs(server.sin_port); } //***************************************************************************** // int Connection::Listen(int n) // int Connection::Listen(int n) { return listen(sock, n); } //***************************************************************************** // Connection *Connection::Accept(int priv) // Connection *Connection::Accept(int priv) { int newsock; while (1) { newsock = accept(sock, (struct sockaddr *)0, (GETPEERNAME_LENGTH_T *)0); if (newsock == NOTOK && errno == EINTR) continue; break; } if (newsock == NOTOK) return (Connection *)0; Connection *newconnect = new Connection; newconnect->sock = newsock; GETPEERNAME_LENGTH_T length = sizeof(newconnect->server); getpeername(newsock, (struct sockaddr *)&newconnect->server, &length); if (priv && newconnect->server.sin_port >= IPPORT_RESERVED) { delete newconnect; return (Connection *)0; } return newconnect; } //************************************************************************* // Connection *Connection::Accept_Privileged() // PURPOSE: // Accept in incoming connection but only if it is from a // privileged port // Connection * Connection::Accept_Privileged() { return Accept(1); } //***************************************************************************** // int Connection::read_char() // int Connection::Read_Char() { if (pos >= pos_max) { pos_max = Read_Partial(buffer, sizeof(buffer)); pos = 0; if (pos_max <= 0) { return -1; } } return buffer[pos++] & 0xff; } //***************************************************************************** // String *Connection::Read_Line(String &s, char *terminator) // String *Connection::Read_Line(String &s, char *terminator) { int termseq = 0; s = 0; for (;;) { int ch = Read_Char(); if (ch < 0) { // // End of file reached. If we still have stuff in the input buffer // we need to return it first. When we get called again we will // return 0 to let the caller know about the EOF condition. // if (s.length()) break; else return (String *) 0; } else if (terminator[termseq] && ch == terminator[termseq]) { // // Got one of the terminator characters. We will not put // it in the string but keep track of the fact that we // have seen it. // termseq++; if (!terminator[termseq]) break; } else { s << (char) ch; } } return &s; } //***************************************************************************** // String *Connection::read_line(char *terminator) // String *Connection::Read_Line(char *terminator) { String *s; s = new String; return Read_Line(*s, terminator); } //***************************************************************************** // char *Connection::read_line(char *buffer, int maxlength, char *terminator) // char *Connection::Read_Line(char *buffer, int maxlength, char *terminator) { char *start = buffer; int termseq = 0; while (maxlength > 0) { int ch = Read_Char(); if (ch < 0) { // // End of file reached. If we still have stuff in the input buffer // we need to return it first. When we get called again, we will // return 0 to let the caller know about the EOF condition. // if (buffer > start) break; else return (char *) 0; } else if (terminator[termseq] && ch == terminator[termseq]) { // // Got one of the terminator characters. We will not put // it in the string but keep track of the fact that we // have seen it. // termseq++; if (!terminator[termseq]) break; } else { *buffer++ = ch; maxlength--; } } *buffer = '\0'; return start; } //***************************************************************************** // int Connection::write_line(char *str, char *eol) // int Connection::Write_Line(char *str, char *eol) { int n, nn; if ((n = Write(str)) < 0) return -1; if ((nn = Write(eol)) < 0) return -1; return n + nn; } //***************************************************************************** // int Connection::Write(char *buffer, int length) // int Connection::Write(char *buffer, int length) { int nleft, nwritten; if (length == -1) length = strlen(buffer); nleft = length; while (nleft > 0) { nwritten = Write_Partial(buffer, nleft); if (nwritten < 0 && errno == EINTR) continue; if (nwritten <= 0) return nwritten; nleft -= nwritten; buffer += nwritten; } return length - nleft; } //***************************************************************************** // int Connection::Read(char *buffer, int length) // int Connection::Read(char *buffer, int length) { int nleft, nread; nleft = length; // // If there is data in our internal input buffer, use that first. // if (pos < pos_max) { int n = MIN(length, pos_max - pos); memcpy(buffer, &this->buffer[pos], n); pos += n; buffer += n; nleft -= n; } while (nleft > 0) { nread = Read_Partial(buffer, nleft); if (nread < 0 && errno == EINTR) continue; if (nread < 0) return -1; else if (nread == 0) break; nleft -= nread; buffer += nread; } return length - nleft; } void Connection::Flush() { pos = pos_max = 0; } //************************************************************************* // int Connection::Read_Partial(char *buffer, int maxlength) // PURPOSE: // Read at most <maxlength> from the current TCP connection. // This is equivalent to the workings of the standard read() // system call // PARAMETERS: // char *buffer: Buffer to read the data into // int maxlength: Maximum number of bytes to read into the buffer // RETURN VALUE: // The actual number of bytes read in. // ASSUMPTIONS: // The connection has been previously established. // FUNCTIONS USED: // read() // int Connection::Read_Partial(char *buffer, int maxlength) { int count; need_io_stop = 0; do { errno = 0; if (timeout_value > 0) { FD_SET_T fds; FD_ZERO(&fds); FD_SET(sock, &fds); timeval tv; tv.tv_sec = timeout_value; tv.tv_usec = 0; int selected = select(sock+1, &fds, 0, 0, &tv); if (selected <= 0) need_io_stop++; } if (!need_io_stop) count = read(sock, buffer, maxlength); else count = -1; // Input timed out } while (count <= 0 && errno == EINTR && !need_io_stop); need_io_stop = 0; return count; } //************************************************************************* // int Connection::Write_Partial(char *buffer, int maxlength) // int Connection::Write_Partial(char *buffer, int maxlength) { int count; do { count = write(sock, buffer, maxlength); } while (count < 0 && errno == EINTR && !need_io_stop); need_io_stop = 0; return count; } //************************************************************************* // char * Connection::Socket_as_String() // PURPOSE: // Return the numeric ASCII equivalent of the socket number. // This is needed to pass the socket to another program // char * Connection::Socket_as_String() { char *buffer = new char[20]; sprintf(buffer, "%d", sock); return buffer; } extern "C" char *inet_ntoa(struct in_addr); //************************************************************************* // char *Connection::Get_Peername() // const char* Connection::Get_Peername() { if (peer.empty()) { struct sockaddr_in p; GETPEERNAME_LENGTH_T length = sizeof(p); struct hostent *hp; if (getpeername(sock, (struct sockaddr *) &p, &length) < 0) { return 0; } length = sizeof(p.sin_addr); hp = gethostbyaddr((const char *) &p.sin_addr, length, AF_INET); if (hp) peer = (char *) hp->h_name; else peer = (char *) inet_ntoa(p.sin_addr); } return (const char*) peer.get(); } //************************************************************************* // char *Connection::Get_PeerIP() // const char* Connection::Get_PeerIP() const { struct sockaddr_in p; GETPEERNAME_LENGTH_T length = sizeof(p); if (getpeername(sock, (struct sockaddr *) &p, &length) < 0) { return 0; } return (const char*) inet_ntoa(p.sin_addr); } #ifdef NEED_PROTO_GETHOSTNAME extern "C" int gethostname(char *name, int namelen); #endif //************************************************************************* // unsigned int GetHostIP(char *ip, int length) // unsigned int GetHostIP(char *ip, int length) { char hostname[100]; if (gethostname(hostname, sizeof(hostname)) == NOTOK) return 0; struct hostent *ent = gethostbyname(hostname); if (!ent) return 0; struct in_addr addr; memcpy((char *) &addr.s_addr, ent->h_addr, sizeof(addr)); if (ip) strncpy(ip, inet_ntoa(addr), length); return addr.s_addr; } //************************************************************************* // int Connection::WaitTime(unsigned int _wt) // int Connection::WaitTime(unsigned int _wt) { wait_time = _wt; return OK; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtHTTP.cc��������������������������������������������������������������0000644�0000000�0000000�00000066701�11177570271�014301� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtHTTP.cc // // HtHTTP: Interface classes for HTTP messaging // // Including: // - Generic class // - Response message class // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtHTTP.cc,v 1.31 2008-11-16 18:28:52 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "lib.h" #include "Transport.h" #include "HtHTTP.h" #include <signal.h> #include <sys/types.h> #include <ctype.h> #include <stdio.h> // for sscanf // for setw() #ifdef HAVE_STD #include <iomanip> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iomanip.h> #endif /* HAVE_STD */ #if 1 typedef void (*SIGNAL_HANDLER) (...); #else typedef SIG_PF SIGNAL_HANDLER; #endif // User Agent String HtHTTP::_user_agent = 0; // Stats information int HtHTTP::_tot_seconds = 0; int HtHTTP::_tot_requests = 0; int HtHTTP::_tot_bytes = 0; // flag that manage the option of 'HEAD' before 'GET' bool HtHTTP::_head_before_get = true; // Handler of the CanParse function int (* HtHTTP::CanBeParsed) (char *) = 0; // Cookies jar HtCookieJar *HtHTTP::_cookie_jar = 0; // Set to 0 by default /////// // HtHTTP_Response class // // Response message sent by the remote HTTP server /////// // Construction HtHTTP_Response::HtHTTP_Response() : _version(0), _transfer_encoding(0), _server(0), _hdrconnection(0), _content_language(0) { } // Destruction HtHTTP_Response::~HtHTTP_Response() { } void HtHTTP_Response::Reset() { // Call the base class method in order to reset // the base class attributes Transport_Response::Reset(); // Initialize the version, transfer-encoding, location and server strings _version.trunc(); _transfer_encoding.trunc(); _hdrconnection.trunc(); _server.trunc(); _content_language.trunc(); } /////// // HtHTTP generic class // // /////// // Construction HtHTTP::HtHTTP(Connection& connection) : Transport(&connection), _Method(Method_GET), // Default Method Request _bytes_read(0), _accept_language(0), _persistent_connection_allowed(true), _persistent_connection_possible(false), _send_cookies(true) { } // Destruction HtHTTP::~HtHTTP() { } /////// // Manages the requesting process /////// Transport::DocStatus HtHTTP::Request() { DocStatus result = Document_ok; /////// // We make a double request (HEAD and, maybe, GET) // Depending on the /////// if (HeadBeforeGet() && // Option value to true isPersistentConnectionAllowed() && // Persistent Connections allowed _Method == Method_GET) // Initial request method is GET { if (debug>3) cout << " Making a HEAD call before the GET" << endl; _Method = Method_HEAD; result = HTTPRequest(); _Method = Method_GET; } if (result == Document_ok) result = HTTPRequest(); if(result == Document_no_header && isPersistentConnectionAllowed()) { // Sometimes, the parsing phase of the header of the response // that the server gives us back, fails and a <no header> // error is raised. This happens with HTTP/1.1 persistent // connections, usually because the previous response stream // has not yet been flushed, so the buffer still contains // data regarding the last document retrieved. That sucks alot! // The only thing to do is to lose persistent connections benefits // for this document, so close the connection and 'GET' it again. CloseConnection(); // Close a previous connection if (debug>0) { cout << " # -> connection closed (try again)" << endl; if (debug>1) cout << "! Impossible to get the HTTP header line." << endl; } result = HTTPRequest(); // Get the document again } else if(result == Document_server_error && _Method == Method_HEAD) { // In some cases, when performing a HEAD request some server // may respond with an internal server error; the library will // automatically recover, issuing a GET request if (debug>0) cout << " # -> HEAD request failed (try with GET)" << endl; _Method = Method_GET; result = HTTPRequest(); } return result; } /////// // Sends an HTTP 1/1 request /////// Transport::DocStatus HtHTTP::HTTPRequest() { static Transport::DocStatus DocumentStatus; bool ShouldTheBodyBeRead = true; SetBodyReadingController(&HtHTTP::ReadBody); // Reset the response _response.Reset(); // Flush the connection FlushConnection(); _bytes_read=0; if( debug > 4) cout << "Try to get through to host " << _url.host() << " (port " << _url.port() << ")" << endl; ConnectionStatus result; // Assign the timeout AssignConnectionTimeOut(); // Assign number of retries AssignConnectionRetries(); // Assign connection wait time AssignConnectionWaitTime(); // Start the timer _start_time.SettoNow(); result = EstablishConnection(); if(result != Connection_ok && result != Connection_already_up) { switch (result) { // Open failed case Connection_open_failed: if (debug>1) cout << "Unable to open the connection with host: " << _url.host() << " (port " << _url.port() << ")" << endl; CloseConnection(); return FinishRequest(Document_no_connection); break; // Server not reached case Connection_no_server: if (debug>1) cout << "Unable to find the host: " << _url.host() << " (port " << _url.port() << ")" << endl; CloseConnection(); return FinishRequest(Document_no_host); break; // Port not reached case Connection_no_port: if (debug>1) cout << "Unable to connect with the port " << _url.port() << " of the host: " << _url.host() << endl; CloseConnection(); return FinishRequest(Document_no_port); break; // Connection failed case Connection_failed: if (debug>1) cout << "Unable to establish the connection with host: " << _url.host() << " (port " << _url.port() << ")" << endl; CloseConnection(); return FinishRequest(Document_no_connection); break; // Other reason default: if (debug>1) cout << "connection failed with unexpected result: result = " << (int)result << ", " << _url.host() << " (port " << _url.port() << ")" << endl; CloseConnection(); return FinishRequest(Document_other_error); break; } return FinishRequest(Document_other_error); } // Visual comments about the result of the connection if (debug > 5) switch(result) { case Connection_already_up: cout << "Taking advantage of persistent connections" << endl; break; case Connection_ok: cout << "New connection open successfully" << endl; break; default: cout << "Unexptected value: " << (int)result << endl; break; } String command; switch(_Method) { case Method_GET: command = "GET "; break; case Method_HEAD: command = "HEAD "; ShouldTheBodyBeRead = false; break; } // Set the request command SetRequestCommand(command); if (debug > 6) cout << "Request\n" << command; // Writes the command ConnectionWrite(command); // Parse the header if (ParseHeader() == -1) // Connection down { // The connection probably fell down !?! if ( debug > 4 ) cout << setw(5) << Transport::GetTotOpen() << " - " << "Connection fell down ... let's close it" << endl; CloseConnection(); // Let's close the connection which is down now // Return that the connection has fallen down during the request return FinishRequest(Document_connection_down); } if (_response._status_code == -1) { // Unable to retrieve the status line if ( debug > 4 ) cout << "Unable to retrieve or parse the status line" << endl; return FinishRequest(Document_no_header); } if (debug > 3) { cout << "Retrieving document " << _url.path() << " on host: " << _url.host() << ":" << _url.port() << endl; cout << "Http version : " << _response._version << endl; cout << "Server : " << _response._version << endl; cout << "Status Code : " << _response._status_code << endl; cout << "Reason : " << _response._reason_phrase << endl; if (_response.GetAccessTime()) cout << "Access Time : " << _response.GetAccessTime()->GetRFC1123() << endl; if (_response.GetModificationTime()) cout << "Modification Time : " << _response.GetModificationTime()->GetRFC1123() << endl; cout << "Content-type : " << _response.GetContentType() << endl; if (_response._transfer_encoding.length()) cout << "Transfer-encoding : " << _response._transfer_encoding << endl; if (_response._content_language.length()) cout << "Content-Language : " << _response._content_language << endl; if (_response._hdrconnection.length()) cout << "Connection : " << _response._hdrconnection << endl; } // Check if persistent connection are possible CheckPersistentConnection(_response); if (debug > 4) cout << "Persistent connection: " << (_persistent_connection_possible ? "would be accepted" : "not accepted") << endl; DocumentStatus = GetDocumentStatus(_response); // We read the body only if the document has been found if (DocumentStatus != Document_ok) { ShouldTheBodyBeRead=false; } // For now a chunked response MUST BE retrieved if (mystrncasecmp ((char*)_response._transfer_encoding, "chunked", 7) == 0) { // Change the controller of the body reading SetBodyReadingController(&HtHTTP::ReadChunkedBody); } // If "ShouldTheBodyBeRead" is set to true and // If the document is parsable, we can read the body // otherwise it is not worthwhile if (ShouldTheBodyBeRead) { if ( debug > 4 ) cout << "Reading the body of the response" << endl; // We use a int (HtHTTP::*)() function pointer if ( (this->*_readbody)() == -1 ) { // The connection probably fell down !?! if ( debug > 4 ) cout << setw(5) << Transport::GetTotOpen() << " - " << "Connection fell down ... let's close it" << endl; CloseConnection(); // Let's close the connection which is down now // Return that the connection has fallen down during the request return FinishRequest(Document_connection_down); } if ( debug > 6 ) cout << "Contents:" << endl << _response.GetContents(); // Check if the stream returned by the server has not been completely read if (_response._document_length != _response._content_length && _response._document_length == _max_document_size) { // Max document size reached if (debug > 4) cout << "Max document size (" << GetRequestMaxDocumentSize() << ") reached "; if (isPersistentConnectionUp()) { // Only have to close persistent connection when we didn't read // all the input. For now, we always read all chunked input... if (mystrncasecmp ((char*)_response._transfer_encoding, "chunked", 7) != 0) { if (debug > 4) cout << "- connection closed. "; CloseConnection(); } } if (debug > 4) cout << endl; } // Make sure our content-length makes sense, if none given... if (_response._content_length < _response._document_length) _response._content_length = _response._document_length; } else if ( debug > 4 ) cout << "Body not retrieved" << endl; // Close the connection (if there's no persistent connection) if( ! isPersistentConnectionUp() ) { if ( debug > 4 ) cout << setw(5) << Transport::GetTotOpen() << " - " << "Connection closed (No persistent connection)" << endl; CloseConnection(); } else { // Persistent connection is active // If the document is not parsable and we asked for it with a 'GET' // method, the stream's not been completely read. if (DocumentStatus == Document_not_parsable && _Method == Method_GET) { // We have to close the connection. if ( debug > 4 ) cout << "Connection must be closed (stream not completely read)" << endl; CloseConnection(); } else if ( debug > 4 ) cout << "Connection stays up ... (Persistent connection)" << endl; } // Check the doc_status and return a value return FinishRequest(DocumentStatus); } HtHTTP::ConnectionStatus HtHTTP::EstablishConnection() { int result; // Open the connection result=OpenConnection(); if (!result) return Connection_open_failed; // Connection failed else if(debug > 4) { cout << setw(5) << Transport::GetTotOpen() << " - "; if (result == -1) cout << "Connection already open. No need to re-open." << endl; else cout << "Open of the connection ok" << endl; } if(result==1) // New connection open { // Assign the remote host to the connection if ( !AssignConnectionServer() ) return Connection_no_server; else if (debug > 4) cout << "\tAssigned the remote host " << _url.host() << endl; // Assign the port of the remote host if ( !AssignConnectionPort() ) return Connection_no_port; else if (debug > 4) cout << "\tAssigned the port " << _url.port() << endl; } // Connect if (! (result = Connect())) return Connection_failed; else if (result == -1) return Connection_already_up; // Persistent else return Connection_ok; // New connection } // Set the string of the HTTP message request void HtHTTP::SetRequestCommand(String &cmd) { // Initialize it if (_useproxy) { cmd << _url.get() << " HTTP/1.1\r\n"; } else cmd << _url.path() << " HTTP/1.1\r\n"; // Insert the "virtual" host to which ask the document cmd << "Host: " << _url.host(); if (_url.port() != 0 && _url.port() != _url.DefaultPort()) cmd << ":" << _url.port(); cmd << "\r\n"; // Insert the User Agent if (_user_agent.length()) cmd << "User-Agent: " << _user_agent << "\r\n"; // Referer if (_referer.get().length()) cmd << "Referer: " << _referer.get() << "\r\n"; // Accept-Language if (_accept_language.length()) cmd << "Accept-language: " << _accept_language << "\r\n"; // Authentication if (_credentials.length()) cmd << "Authorization: Basic " << _credentials << "\r\n"; // Proxy Authentication if (_useproxy && _proxy_credentials.length()) cmd << "Proxy-Authorization: Basic " << _proxy_credentials << "\r\n"; // Accept Charset cmd << "Accept-Charset: *\r\n"; // Accept-Encoding: waiting to handle the gzip and compress formats, we // just send an empty header which, according to the HTTP 1/1 standard, // should let the server know that we only accept the 'identity' case // (no encoding of the document) cmd << "Accept-Encoding: \r\n"; // A date has been passed to check if the server one is newer than // the one we already own. if(_modification_time && *_modification_time > 0) { _modification_time->ToGMTime(); cmd << "If-Modified-Since: " << _modification_time->GetRFC1123() << "\r\n"; } /////// // Cookies! Let's go eat them! ;-) /////// // The method returns all the valid cookies and writes them // directly into the request string, as a list of headers if (_send_cookies && _cookie_jar) _cookie_jar->SetHTTPRequest_CookiesString(_url, cmd); // Let's close the command cmd << "\r\n"; } //***************************************************************************** // int HtHTTP::ParseHeader() // Parse the header of the document // int HtHTTP::ParseHeader() { String line = 0; int inHeader = 1; if (_response._modification_time) { delete _response._modification_time; _response._modification_time=0; } while (inHeader) { line.trunc(); if(! _connection->Read_Line(line, "\n")) return -1; // Connection down _bytes_read+=line.length(); line.chop('\r'); if (line.length() == 0) inHeader = 0; else { // Found a not-empty line if (debug > 2) cout << "Header line: " << line << endl; // Status - Line check char *token = line.get(); while (*token && !isspace(*token) && *token != ':') ++token; while (*token && (isspace(*token) || *token == ':')) ++token; if(!strncmp((char*)line, "HTTP/", 5)) { // Here is the status-line // store the HTTP version returned by the server _response._version = strtok(line, " "); // Store the status code _response._status_code = atoi(strtok(0, " ")); // Store the reason phrase _response._reason_phrase = strtok(0, "\n"); } else if( ! mystrncasecmp((char*)line, "server:", 7)) { // Server info // Set the server info token = strtok(token, "\n\t"); if (token && *token) _response._server = token; } else if( ! mystrncasecmp((char*)line, "last-modified:", 14)) { // Modification date sent by the server // Set the response modification time token = strtok(token, "\n\t"); if (token && *token) _response._modification_time = NewDate(token); } else if( ! mystrncasecmp((char*)line, "date:", 5)) { // Access date time sent by the server // Set the response access time token = strtok(token, "\n\t"); if (token && *token) _response._access_time = NewDate(token); } else if( ! mystrncasecmp((char*)line, "content-type:", 13)) { // Content - type token = strtok(token, "\n\t"); if (token && *token) _response._content_type = token; } else if( ! mystrncasecmp((char*)line, "content-length:", 15)) { // Content - length token = strtok(token, "\n\t"); if (token && *token) _response._content_length = atoi(token); } else if( ! mystrncasecmp((char*)line, "transfer-encoding:", 18)) { // Transfer-encoding token = strtok(token, "\n\t"); if (token && *token) _response._transfer_encoding = token; } else if( ! mystrncasecmp((char*)line, "location:", 9)) { // Found a location directive - redirect in act token = strtok(token, "\n\t"); if (token && *token) _response._location = token; } else if( ! mystrncasecmp((char*)line, "connection:", 11)) { // Ooops ... found a Connection clause token = strtok(token, "\n\t"); if (token && *token) _response._hdrconnection = token; } else if( ! mystrncasecmp((char*)line, "content-language:", 17)) { // Found a content-language directive token = strtok(token, "\n\t"); if (token && *token) _response._content_language = token; } else if( ! mystrncasecmp((char*)line, "set-cookie:", 11)) { // Found a cookie // Are cookies enabled? if (_send_cookies && _cookie_jar) { token = strtok(token, "\n\t"); if (token && *token) { // Insert the cookie into the jar _cookie_jar->AddCookie(token, _url); } } } else { // Discarded if (debug > 3) cout << "Discarded header line: " << line << endl; } } } if (_response._modification_time == 0) { if (debug > 3) cout << "No modification time returned: assuming now" << endl; //Set the modification time _response._modification_time = new HtDateTime; _response._modification_time->ToGMTime(); // Set to GM time } return 1; } // Check for a document to be parsable // It all depends on the content-type directive returned by the server bool HtHTTP::isParsable(const char *content_type) { // Here I can decide what kind of document I can parse // depending on the value of Transport:_default_parser_content_type // and the rest are determined by the external_parser settings if( ! mystrncasecmp (_default_parser_content_type.get(), content_type, _default_parser_content_type.length()) ) return true; // External function that checks if a document is parsable or not. // CanBeParsed should point to a function that returns an int value, // given a char * containing the content-type. if (CanBeParsed && (*CanBeParsed)( (char *) content_type) ) return true; return false; } // Check for a possibile persistent connection // on the return message's HTTP version basis void HtHTTP::CheckPersistentConnection(HtHTTP_Response &response) { const char *version = response.GetVersion(); if( ! mystrncasecmp ("HTTP/1.1", version, 8)) { const char *connection = response.GetConnectionInfo(); if( ! mystrncasecmp ("close", connection, 5)) _persistent_connection_possible=false; // Server wants to close else _persistent_connection_possible=true; } else _persistent_connection_possible=false; } HtHTTP::DocStatus HtHTTP::FinishRequest (HtHTTP::DocStatus ds) { int seconds; // Set the finish time _end_time.SettoNow(); // Let's add the number of seconds needed by the request seconds=HtDateTime::GetDiff(_end_time, _start_time); _tot_seconds += seconds; _tot_requests ++; _tot_bytes += _bytes_read; if (debug > 2) cout << "Request time: " << seconds << " secs" << endl; return ds; } HtHTTP::DocStatus HtHTTP::GetDocumentStatus(HtHTTP_Response &r) { // Let's give a look at the return status code HtHTTP::DocStatus returnStatus=Document_not_found; int statuscode; statuscode=r.GetStatusCode(); if(statuscode==200) { returnStatus = Document_ok; // OK // Is it parsable? if (! isParsable ((const char*)r.GetContentType()) ) returnStatus=Document_not_parsable; } else if(statuscode > 200 && statuscode < 300) returnStatus = Document_ok; // Successful 2xx else if(statuscode==304) returnStatus = Document_not_changed; // Not modified else if(statuscode > 300 && statuscode < 400) returnStatus = Document_redirect; // Redirection 3xx else if(statuscode==401) returnStatus = Document_not_authorized; // Unauthorized else if(statuscode >= 500 && statuscode < 600) returnStatus = Document_server_error; // Internal server error 5xx // Exit the function return returnStatus; } void HtHTTP::SetCredentials (const String& s) { Transport::SetHTTPBasicAccessAuthorizationString(_credentials, s); } void HtHTTP::SetProxyCredentials (const String& s) { Transport::SetHTTPBasicAccessAuthorizationString(_proxy_credentials, s); } int HtHTTP::ReadBody() { _response._contents = 0; // Initialize the string char docBuffer[8192]; int bytesRead = 0; int bytesToGo = _response._content_length; if (bytesToGo < 0 || bytesToGo > _max_document_size) bytesToGo = _max_document_size; while (bytesToGo > 0) { int len = bytesToGo< (int)sizeof(docBuffer) ? bytesToGo : (int)sizeof(docBuffer); bytesRead = _connection->Read(docBuffer, len); if (bytesRead <= 0) break; _response._contents.append(docBuffer, bytesRead); bytesToGo -= bytesRead; _bytes_read+=bytesRead; } // Set document length _response._document_length = _response._contents.length(); return bytesRead; } int HtHTTP::ReadChunkedBody() { // Chunked Transfer decoding // as shown in the RFC2616 (HTTP/1.1) - 19.4.6 #define BSIZE 8192 int length = 0; // initialize the length unsigned int chunk_size; String ChunkHeader = 0; char buffer[BSIZE+1]; int chunk, rsize; _response._contents.trunc(); // Initialize the string // Read chunk-size and CRLF if (!_connection->Read_Line(ChunkHeader, "\r\n")) return -1; sscanf ((char *)ChunkHeader, "%x", &chunk_size); if (debug>4) cout << "Initial chunk-size: " << chunk_size << endl; while (chunk_size > 0) { chunk = chunk_size; do { if (chunk > BSIZE) { rsize = BSIZE; if (debug>4) cout << "Read chunk partial: left=" << chunk << endl; } else { rsize = chunk; } chunk -= rsize; // Read Chunk data if (_connection->Read(buffer, rsize) == -1) return -1; length+=rsize; // Append the chunk-data to the contents of the response // ... but not more than _max_document_size... if (rsize > _max_document_size-_response._contents.length()) rsize = _max_document_size-_response._contents.length(); buffer[rsize] = 0; _response._contents.append(buffer, rsize); } while (chunk); // if (_connection->Read(buffer, chunk_size) == -1) // return -1; // Read CRLF - to be ignored if (!_connection->Read_Line(ChunkHeader, "\r\n")) return -1; // Read chunk-size and CRLF if (!_connection->Read_Line(ChunkHeader, "\r\n")) return -1; sscanf ((char *)ChunkHeader, "%x", &chunk_size); if (debug>4) cout << "Chunk-size: " << chunk_size << endl; } ChunkHeader = 0; // Ignoring next part of the body - the TRAILER // (it contains further headers - not implemented) // Set content length _response._content_length = length; // Set document length _response._document_length = _response._contents.length(); return length; } /////// // Show the statistics /////// ostream &HtHTTP::ShowStatistics (ostream &out) { Transport::ShowStatistics(out); // call the base class method out << " HTTP Requests : " << GetTotRequests() << endl; out << " HTTP KBytes requested : " << (double)GetTotBytes()/1024 << endl; out << " HTTP Average request time : " << GetAverageRequestTime() << " secs" << endl; out << " HTTP Average speed : " << GetAverageSpeed()/1024 << " KBytes/secs" << endl; return out; } ���������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/Makefile.am������������������������������������������������������������0000644�0000000�0000000�00000001261�11177570271�014741� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> include $(top_srcdir)/Makefile.config pkglib_LTLIBRARIES = libhtnet.la libhtnet_la_SOURCES = Connection.cc Transport.cc HtHTTP.cc HtCookie.cc \ HtCookieJar.cc HtCookieMemJar.cc HtHTTPBasic.cc HtCookieInFileJar.cc libhtnet_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ Connection.h \ Transport.h \ HtHTTP.h \ HtHTTPBasic.h \ HtCookie.h \ HtCookieJar.h \ HtCookieMemJar.h \ HtCookieInFileJar.h �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/Connection.h�����������������������������������������������������������0000644�0000000�0000000�00000010147�11177570271�015160� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // Connection.h // // Connection: This class forms a easy to use interface to the berkeley // tcp socket library. All the calls are basically the same, // but the parameters do not have any stray _addr or _in // mixed in... // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: Connection.h,v 1.6 2003-06-20 16:47:30 mnencia Exp $ // #ifndef _Connection_h_ #define _Connection_h_ #include "Object.h" #include "htString.h" #include <stdlib.h> #include <sys/types.h> #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif /* HAVE_SYS_SOCKET_H */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif /* HAVE_NETINET_IN_H */ #ifdef HAVE_NETDB_H #include <netdb.h> #endif /* HAVE_NETDB_H */ class Connection : public Object { public: // Constructors & Destructors Connection(int socket = -1); // Default constructor Connection(const Connection& rhs); // Copy constructor ~Connection(); // (De)initialization int Open(int priv = 0); virtual int Close(); int Ndelay(); int Nondelay(); int Timeout(int value); int Retries(int value); int WaitTime(unsigned int _wt); // Port stuff int Assign_Port(int port = 0); int Assign_Port(const String& service); int Get_Port(); inline int Is_Privileged(); // Host stuff int Assign_Server(const String& name); int Assign_Server(unsigned int addr = INADDR_ANY); const String &Get_Server() const { return server_name; } const String &Get_Server_IPAddress() const { return server_ip_address; } // Connection establishment virtual int Connect(); Connection *Accept(int priv = 0); Connection *Accept_Privileged(); // Registration things int Bind(); int Listen(int n = 5); // IO String* Read_Line(String &, char *terminator = "\n"); char* Read_Line(char *buffer, int maxlength, char *terminator = "\n"); String* Read_Line(char *terminator = "\n"); virtual int Read_Char(); int Write_Line(char *buffer, char *eol = "\n"); int Write(char *buffer, int maxlength = -1); int Read(char *buffer, int maxlength); virtual int Read_Partial(char *buffer, int maxlength); virtual int Write_Partial(char *buffer, int maxlength); void Stop_IO() {need_io_stop = 1;} // Access to socket number char *Socket_as_String(); int Get_Socket() { return sock; } int IsOpen() { return sock >= 0; } int IsConnected() { return connected; } // Access to info about remote socket const char* Get_PeerIP() const; const char* Get_Peername(); // A method to re-initialize the buffer virtual void Flush(); private: // // For buffered IO we will need a buffer // enum {BUFFER_SIZE = 8192}; char buffer[BUFFER_SIZE]; int pos, pos_max; // Assignment operator declared private for preventing any use Connection& operator+ (const Connection& rhs) { return *this; } protected: int sock; struct sockaddr_in server; int connected; String peer; String server_name; String server_ip_address; int need_io_stop; int timeout_value; int retry_value; unsigned int wait_time; // time to wait after an // unsuccessful connection }; //************************************************************************* // inline int Connection::Is_Privileged() // PURPOSE: // Return whether the port is priveleged or not. // inline int Connection::Is_Privileged() { return server.sin_port < 1023; } // // Get arround the lack of gethostip() library call... There is a gethostname() // call but we want the IP address, not the name! // The call will put the ASCII string representing the IP address in the supplied // buffer and it will also return the 4 byte unsigned long equivalent of it. // The ip buffer can be null... // unsigned int gethostip(char *ip = 0, int length = 0); #endif �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtHTTPBasic.cc���������������������������������������������������������0000644�0000000�0000000�00000001565�11177570271�015240� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtHTTPBasic.cc // // HtHTTPBasic: Class for HTTP messaging (derived from Transport) // Does not handle HTTPS connections -- use HtHTTPSecure // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtHTTPBasic.cc,v 1.3 2003-06-20 16:47:30 mnencia Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ #include "HtHTTPBasic.h" // HtHTTPBasic constructor // HtHTTPBasic::HtHTTPBasic() : HtHTTP(*(new Connection())) { } // HtHTTPBasic destructor // HtHTTPBasic::~HtHTTPBasic() { } �������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieMemJar.h�������������������������������������������������������0000644�0000000�0000000�00000005574�11177570271�015672� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtCookieMemJar.h // // HtCookieMemJar: Class for storing/retrieving cookies // // by Robert La Ferla. Started 12/9/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // //////////////////////////////////////////////////////////// // // The HtCookieMemJar class stores/retrieves cookies // directly into memory. // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookieMemJar.h,v 1.8 2003-06-20 16:47:30 mnencia Exp $ // #ifndef _HTCOOKIE_MEM_JAR_H #define _HTCOOKIE_MEM_JAR_H #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif #include "Object.h" #include "htString.h" #include "Dictionary.h" #include "List.h" #include "HtCookieJar.h" // for ShowSummary() #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ class HtCookieMemJar : public HtCookieJar { public: /////// // Construction/Destruction /////// HtCookieMemJar(); HtCookieMemJar(const HtCookieMemJar& rhs); virtual ~HtCookieMemJar(); /////// // Interface methods /////// // Set the request string to be sent to an HTTP server // for cookies. It manages all the process regarding // domains and subdomains. virtual int SetHTTPRequest_CookiesString(const URL &_url, String &RequestString); virtual int AddCookie(const String &CookieString, const URL &url); // Get the next cookie virtual const HtCookie* NextCookie(); // Reset the iterator virtual void ResetIterator(); // Show stats virtual ostream &ShowSummary (ostream &out = std::cout); void printDebug(); protected: /////// // Protected methods /////// // Passed a domain, this method writes all the cookies // directly in the request string for HTTP. int WriteDomainCookiesString(const URL &_url, const String &Domain, String &RequestString); // Get a list of the cookies for a domain List *cookiesForDomain(const String &DomainName); // Add a cookie in memory int AddCookieForHost(HtCookie *cookie, String HostName); /////// // Protected attributes /////// /////// // Internal dictionary of cookies /////// Dictionary * cookieDict; char* _key; // For iteration purposes List* _list; // ditto int _idx; // ditto }; #endif ������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtHTTPBasic.h����������������������������������������������������������0000644�0000000�0000000�00000001403�11177570271�015071� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtHTTPBasic.h // // HtHTTPBasic: Class for HTTP messaging (derived from Transport) // Does not handle HTTPS connections -- use HtHTTPSecure // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2003 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtHTTPBasic.h,v 1.2 2003-01-27 13:10:55 angusgb Exp $ // #ifndef _HTHTTPBASIC_H #define _HTHTTPBASIC_H #include "HtHTTP.h" // We inherrit from this #include "Transport.h" #include "Connection.h" #include "URL.h" #include "htString.h" class HtHTTPBasic : public HtHTTP { public: HtHTTPBasic(); ~HtHTTPBasic(); }; #endif �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtHTTP.h���������������������������������������������������������������0000644�0000000�0000000�00000024460�11177570271�014137� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtHTTP.h // // HtHTTP: Class for HTTP messaging (derived from Transport) // // Gabriele Bartolini - Prato - Italia // started: 03.05.1999 // // //////////////////////////////////////////////////////////// // // The HtHTTP class should provide (as I hope) an interface for // retrieving document on the Web. It derives from Transport class. // // It should be HTTP/1.1 compatible. // // It also let us take advantage of persitent connections use, // and optimize request times (specially if directed to the same // server). // // HtHTTP use another class to store the response returned by the // remote server. // // Now cookies management is enabled. // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2003 The ht://Dig Group // Copyright (c) 2008 Devise.IT srl <http://www.devise.it/> // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtHTTP.h,v 1.17 2008-11-16 18:28:52 angusgb Exp $ // #ifndef _HTHTTP_H #define _HTHTTP_H #include "Transport.h" // Cookie support #include "HtCookie.h" #include "HtCookieJar.h" #include "URL.h" #include "htString.h" // for HtHTTP::ShowStatistics #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ // In advance declarations class HtHTTP; class HtHTTP_Response : public Transport_Response { friend class HtHTTP; // declaring friendship public: /////// // Construction / Destruction /////// HtHTTP_Response(); ~HtHTTP_Response(); /////// // Interface /////// // Reset void Reset(); // Get the HTTP version const String &GetVersion() const { return _version; } // Get the Transfer-encoding const String &GetTransferEncoding() const { return _transfer_encoding; } // Get server info const String &GetServer() const { return _server; } // Get Connection info const String &GetConnectionInfo() const { return _hdrconnection; } // Get Content language const String &GetContentLanguage() const { return _content_language; } protected: // Status line information String _version; // HTTP Version // Other header information String _transfer_encoding; // Transfer-encoding String _server; // Server string returned String _hdrconnection; // Connection header String _content_language; // Content-language }; class HtHTTP : public Transport { private: HtHTTP() {} // Declared private - avoids default constructor to be created // in some cases by the compiler. public: /////// // Construction/Destruction /////// HtHTTP(Connection&); virtual ~HtHTTP() = 0; // Information about the method to be used in the request enum Request_Method { Method_GET, Method_HEAD }; /////// // Sends an HTTP request message /////// // manages a Transport request (method inherited from Transport class) virtual DocStatus Request (); // Sends a request message for HTTP virtual DocStatus HTTPRequest (); /////// // Control of member the variables /////// /////// // Set the Request Method /////// void SetRequestMethod (Request_Method rm) { _Method = rm; } Request_Method GetRequestMethod() { return _Method; } /////// // Interface for resource retrieving /////// // Set and get the document to be retrieved void SetRequestURL(const URL &u) { _url = u;} URL GetRequestURL () { return _url;} // Set and get the referring URL void SetRefererURL (const char* u) { _referer = u;} void SetRefererURL (const URL& u) { _referer = u;} URL GetRefererURL () { return _referer;} // Set and get the accept-language string void SetAcceptLanguage (const String& al) { _accept_language = al; } String GetAcceptLanguage () { return _accept_language; } // Info for multiple requests (static) // Get the User agent string static void SetRequestUserAgent (const String &s) { _user_agent=s; } static const String &GetRequestUserAgent() { return _user_agent; } // Set (Basic) Authentication Credentials virtual void SetCredentials (const String& s); // Set (Basic) Authentication Credentials for the HTTP Proxy virtual void SetProxyCredentials (const String& s); /////// // Interface for the HTTP Response /////// // We have a valid response only if the status code is not equal to // initialization value Transport_Response *GetResponse() { if (_response._status_code != -1) return &_response; else return 0;} // Get the document status virtual DocStatus GetDocumentStatus() { return GetDocumentStatus (_response); } // It's a static method static DocStatus GetDocumentStatus(HtHTTP_Response &); /////// // Persistent connection choices interface /////// // Is allowed bool isPersistentConnectionAllowed() {return _persistent_connection_allowed;} // Is possible bool isPersistentConnectionPossible() {return _persistent_connection_possible;} // Check if a persistent connection is possible depending on the HTTP response void CheckPersistentConnection(HtHTTP_Response &); // Is Up (is both allowed and permitted by the server too) bool isPersistentConnectionUp() { return isConnected() && isPersistentConnectionAllowed() && isPersistentConnectionPossible(); } // Allow Persistent Connection void AllowPersistentConnection() { _persistent_connection_allowed=true; } // Disable Persistent Connection void DisablePersistentConnection() { _persistent_connection_allowed=false; } // Allow Cookies void AllowCookies() { _send_cookies=true; } // Disable Persistent Connection void DisableCookies() { _send_cookies=false; } /////// // Set the cookie manager class (that is to say the class) /////// // It's set only if not done before static void SetCookieJar(HtCookieJar *cj) { _cookie_jar = cj; } /////// // Manage statistics /////// static int GetTotSeconds () { return _tot_seconds; } static int GetTotRequests () { return _tot_requests; } static int GetTotBytes () { return _tot_bytes; } static double GetAverageRequestTime () { return _tot_seconds?( ((double) _tot_seconds) / _tot_requests) : 0; } static float GetAverageSpeed () { return _tot_bytes?( ((double) _tot_bytes) / _tot_seconds) : 0; } static void ResetStatistics () { _tot_seconds=0; _tot_requests=0; _tot_bytes=0;} // Show stats static ostream &ShowStatistics (ostream &out); /////// // Set the _head_before_get option // make a request to be made up of a HEAD call and then, // if necessary, a GET call /////// static void EnableHeadBeforeGet() { _head_before_get = true; } static void DisableHeadBeforeGet() { _head_before_get = false; } static bool HeadBeforeGet() { return _head_before_get; } /////// // Set the controller for the parsing check. That is to say // that External function that checks if a document is parsable or not. // CanBeParsed static attribute should point to a function // that returns an int value, given a char * containing the content-type. /////// static void SetParsingController (int (*f)(char*)) { CanBeParsed = f; } protected: /////// // Member attributes /////// Request_Method _Method; /////// // Http single Request information (Member attributes) /////// int _bytes_read; // Bytes read URL _url; // URL to retrieve URL _referer; // Referring URL String _accept_language; // accept-language directive /////// // Http multiple Request information /////// static String _user_agent; // User agent /////// // Http Response information /////// HtHTTP_Response _response; // Object where response // information will be stored into /////// // Allow or not a persistent connection (user choice) /////// bool _persistent_connection_allowed; /////// // Is a persistent connection possible (with this http server)? /////// bool _persistent_connection_possible; /////// // Are cookies enabled? /////// bool _send_cookies; /////// // Option that, if set to true, make a request to be made up // of a HEAD call and then, if necessary, a GET call /////// static bool _head_before_get; /////// // Manager of the body reading /////// int (HtHTTP::*_readbody) (); /////// // Enum /////// // Information about the status of a connection enum ConnectionStatus { Connection_ok, Connection_already_up, Connection_open_failed, Connection_no_server, Connection_no_port, Connection_failed }; /////// // Protected Services or method (Hidden by outside) /////// /////// // Establish the connection /////// ConnectionStatus EstablishConnection (); /////// // Set the string of the command containing the request /////// void SetRequestCommand(String &); /////// // Parse the header returned by the server /////// int ParseHeader(); /////// // Check if a document is parsable looking the content-type info /////// static bool isParsable(const char *); /////// // Read the body returned by the server /////// void SetBodyReadingController (int (HtHTTP::*f)()) { _readbody = f; } int ReadBody(); int ReadChunkedBody(); // Read the body of a chunked encoded-response // Finish the request and return a DocStatus value; DocStatus FinishRequest (DocStatus); /////// // Static attributes and methods /////// // Unique cookie Jar static HtCookieJar *_cookie_jar; // Jar containing all of the cookies static int _tot_seconds; // Requests last (in seconds) static int _tot_requests; // Number of requests static int _tot_bytes; // Number of bytes read // This is a pointer to function that check if a ContentType // is parsable or less. static int (*CanBeParsed) (char *); }; #endif ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookie.h�������������������������������������������������������������0000644�0000000�0000000�00000010173�11177570271�014565� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtCookie.h // // HtCookie: Class for cookies // // by Robert La Ferla. Started 12/5/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // Cookies input file by G.Bartolini - since 27 Jan 2003 // //////////////////////////////////////////////////////////// // // The HtCookie class represents a single HTTP cookie. // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // // This class also manages the creation of a cookie from a line // of a cookie file format, which is a text file as proposed by Netscape; // each line contains a name-value pair for a cookie. // Fields within a single line are separated by the 'tab' character; // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookie.h,v 1.9 2003-02-01 13:00:34 angusgb Exp $ // #ifndef _HTCOOKIE_H #define _HTCOOKIE_H #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif #include "Object.h" #include "htString.h" #include "HtDateTime.h" class HtCookie : public Object { public: /////// // Construction/Destruction /////// HtCookie(); // default constructor HtCookie(const String &setCookieLine, const String& aURL); HtCookie(const String &aName, const String &aValue, const String& aURL); HtCookie(const String &line); // From a line of cookie file HtCookie(const HtCookie& rhs); // default constructor ~HtCookie(); // Destructor /////// // Public Interface /////// void SetName(const String &aName) { name = aName; } void SetValue(const String &aValue) { value = aValue; } void SetPath(const String &aPath) { path = aPath; } void SetDomain(const String &aDomain) { domain = aDomain; } void SetExpires(const HtDateTime *aDateTime); void SetIsSecure(const bool flag) { isSecure = flag; } void SetIsDomainValid(const bool flag) { isDomainValid = flag; } void SetSrcURL(const String &aURL) { srcURL = aURL; } void SetMaxAge(const int ma) { max_age = ma; } void SetVersion(const int vs) { rfc_version = vs; } const String &GetName() const { return name; } const String &GetValue()const { return value; } const String &GetPath()const { return path; } const String &GetDomain()const { return domain; } const HtDateTime *GetExpires() const { return expires; } const bool getIsSecure() const { return isSecure; } const bool getIsDomainValid() const { return isDomainValid; } const String &GetSrcURL()const { return srcURL; } const int GetMaxAge()const { return max_age; } const HtDateTime &GetIssueTime() const { return issue_time; } const int GetVersion() const { return rfc_version; } // Print debug info virtual ostream &printDebug(ostream &out = std::cout); // Set the debug level static void SetDebugLevel (int d) { debug=d;} // Copy operator overload const HtCookie &operator = (const HtCookie &rhs); protected: /////// // Date formats enumeration /////// enum DateFormat { DateFormat_RFC1123, DateFormat_RFC850, DateFormat_AscTime, DateFormat_NotRecognized }; /////// // Protected methods /////// char * stripAllWhitespace(const char * str); int SetDate(const char * datestring, HtDateTime &dt); DateFormat RecognizeDateFormat(const char * datestring); String name; String value; String path; String domain; HtDateTime * expires; bool isSecure; bool isDomainValid; String srcURL; HtDateTime issue_time; // When the cookie has been created int max_age; // rfc2109: lifetime of the cookie, in seconds int rfc_version; /////// // Debug level /////// static int debug; }; #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieJar.h����������������������������������������������������������0000644�0000000�0000000�00000006241�11177570271�015223� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtCookieJar.h // // HtCookieJar: Abstract Class for storing/retrieving cookies // // by Robert La Ferla. Started 12/9/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // //////////////////////////////////////////////////////////// // // The HtCookieJar class stores/retrieves cookies. // It's an abstract class though, which has to be the interface // for HtHTTP class. // // The class has only 2 access point from the outside: // - a method for cookies insertion (AddCookie()); // - a method for getting the HTTP request for cookies // (SetHTTPRequest_CookiesString). // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookieJar.h,v 1.9 2003-06-20 16:47:30 mnencia Exp $ // #ifndef _HTCOOKIE_JAR_H #define _HTCOOKIE_JAR_H #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif #include "Object.h" #include "htString.h" #include "HtCookie.h" #include "URL.h" // for ShowSummary() #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ class HtCookieJar : public Object { public: /////// // Construction/Destruction /////// HtCookieJar() {}; // empty virtual ~HtCookieJar() {}; // empty /////// // Interface methods /////// // This method allow the insertion of a cookie // into the jar. virtual int AddCookie(const String &CookieString, const URL &url) = 0; // Set the request string to be sent to an HTTP server // for cookies. It manages all the process regarding // domains and subdomains. virtual int SetHTTPRequest_CookiesString(const URL &_url, String &RequestString) = 0; // Get the next cookie virtual const HtCookie* NextCookie() = 0; // Reset the iterator virtual void ResetIterator() = 0; // Get the minimum number of periods from a specified domain // returns 0 if not valid virtual int GetDomainMinNumberOfPeriods(const String& domain) const; // Set its debug level and HtCookie class' static void SetDebugLevel (int d) { debug=d; // internal one HtCookie::SetDebugLevel(d); // HtCookie's debug level } // Show summary (abstract) virtual ostream &ShowSummary (ostream &out = std::cout) = 0; protected: /////// // Protected attributes /////// // Writes the HTTP request line given a cookie virtual int WriteCookieHTTPRequest(const HtCookie &Cookie, String &RequestString, const int &NumCookies); // Print debug info virtual void printDebug() = 0; /////// // Debug level /////// static int debug; }; #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookie.cc������������������������������������������������������������0000644�0000000�0000000�00000025264�11177570271�014732� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtCookie.cc // // HtCookie: This class represents a HTTP cookie. // // HtCookie.cc // // by Robert La Ferla. Started 12/5/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // Cookies input file by G.Bartolini - since 27 Jan 2003 // //////////////////////////////////////////////////////////// // // The HtCookie class represents a single HTTP cookie. // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // // This class also manages the creation of a cookie from a line // of a cookie file format, which is a text file as proposed by Netscape; // each line contains a name-value pair for a cookie. // Fields within a single line are separated by the 'tab' character; // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookie.cc,v 1.15 2003-06-20 16:47:30 mnencia Exp $ // #include "HtCookie.h" #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ #include <stdlib.h> #include <ctype.h> /////// // Static variables initialization /////// // Debug level int HtCookie::debug = 0; // Precompiled constants regarding the cookies file format (field order) #define COOKIES_FILE_DOMAIN 0 #define COOKIES_FILE_FLAG 1 #define COOKIES_FILE_PATH 2 #define COOKIES_FILE_SECURE 3 #define COOKIES_FILE_EXPIRES 4 #define COOKIES_FILE_NAME 5 #define COOKIES_FILE_VALUE 6 // Default constructor HtCookie::HtCookie() : name(0), value(0), path(0), domain(0), expires(0), isSecure(false), isDomainValid(true), srcURL(0), issue_time(), max_age(-1), rfc_version(0) { } // Constructor that accepts a name and a value // and the calling URL HtCookie::HtCookie(const String &aName, const String &aValue, const String& aURL) : name(aName), value(aValue), path(0), domain(0), expires(0), isSecure(false), isDomainValid(true), srcURL(aURL), issue_time(), max_age(-1), rfc_version(0) { } // Constructor from a server response header HtCookie::HtCookie(const String &setCookieLine, const String& aURL) : name(0), value(0), path(0), domain(0), expires(0), isSecure(false), isDomainValid(true), srcURL(aURL), issue_time(), max_age(-1), rfc_version(0) { String cookieLineStr(setCookieLine); char * token; const char * str; if (debug > 5) cout << "Creating cookie from response header: " << cookieLineStr << endl; // Parse the cookie line token = strtok(cookieLineStr, "="); if (token != NULL) { SetName(token); token = strtok(NULL, ";"); SetValue(token); } // Get all the fields returned by the server while ((str = strtok(NULL, "="))) { const char * ctoken; token = stripAllWhitespace(str); if (mystrcasecmp(token, "path") == 0) { // Let's grab the path ctoken = strtok(NULL, ";"); SetPath(ctoken); } else if (mystrcasecmp(token, "expires") == 0) { // Let's grab the expiration date HtDateTime dt; ctoken = strtok(NULL, ";"); if (ctoken && SetDate(ctoken, dt)) SetExpires(&dt); else SetExpires(0); } else if (mystrcasecmp(token, "secure") == 0) SetIsSecure(true); else if (mystrcasecmp(token, "domain") == 0) { ctoken = strtok(NULL, ";"); SetDomain(ctoken); } else if (mystrcasecmp(token, "max-age") == 0) { ctoken = strtok(NULL, ";"); SetMaxAge(atoi(ctoken)); } else if (mystrcasecmp(token, "version") == 0) { ctoken = strtok(NULL, ";"); SetVersion(atoi(ctoken)); } if (token) delete[](token); } if (debug>3) printDebug(); } // Constructor from a line of a cookie file (according to Netscape format) HtCookie::HtCookie(const String &CookieFileLine) : name(0), value(0), path(0), domain(0), expires(0), isSecure(false), isDomainValid(true), srcURL(0), issue_time(), max_age(-1), rfc_version(0) { String cookieLineStr(CookieFileLine); char * token; const char * str; if (debug > 5) cout << "Creating cookie from a cookie file line: " << cookieLineStr << endl; // Parse the cookie line if ((str = strtok(cookieLineStr, "\t"))) { int num_field = 0; int expires_value; // Holds the expires value that will be read // According to the field number, set the appropriate object member's value do { token = stripAllWhitespace(str); switch(num_field) { case COOKIES_FILE_DOMAIN: SetDomain(token); break; case COOKIES_FILE_FLAG: // Ignored break; case COOKIES_FILE_PATH: SetPath(token); break; case COOKIES_FILE_SECURE: if (mystrcasecmp(token, "false")) SetIsSecure(true); else SetIsSecure(false); break; case COOKIES_FILE_EXPIRES: if ((expires_value = atoi(token) > 0)) // Sets the expires value only if > 0 expires = new HtDateTime(atoi(token)); break; case COOKIES_FILE_NAME: SetName(token); break; case COOKIES_FILE_VALUE: SetValue(token); break; } ++num_field; } while((str = strtok(NULL, "\t"))); } if (debug>3) printDebug(); } // Copy constructor HtCookie::HtCookie(const HtCookie& rhs) : name(rhs.name), value(rhs.value), path(rhs.path), domain(rhs.domain), expires(0), isSecure(rhs.isSecure), isDomainValid(rhs.isDomainValid), srcURL(rhs.srcURL), issue_time(rhs.issue_time), max_age(rhs.max_age), rfc_version(rhs.rfc_version) { if (rhs.expires) expires = new HtDateTime(*rhs.expires); } // Destructor HtCookie::~HtCookie() { // Delete the DateTime info if (expires) delete expires; } // Set the expires datetime void HtCookie::SetExpires(const HtDateTime *aDateTime) { // // If expires has not yet been set, // we just copy the reference // otherwise, we just change the contents // of our internal attribute // // We don't have a valid datetime, it's null if (!aDateTime) { if (expires) delete expires; expires=0; } else { // We do have a valid datetime // Let's check whether expires has already been created if (!expires) expires = new HtDateTime(*aDateTime); // No ... let's create it and copy it } } // Strip all the whitespaces char * HtCookie::stripAllWhitespace(const char * str) { int len; int i; int j; char * newstr; len = strlen(str); newstr = new char[len + 1]; j = 0; for (i = 0; i < len; i++) { char c; c = str[i]; if (isspace(c) == 0) newstr[j++] = c; } newstr[j++] = (char)0; return newstr; } // Copy operator overload const HtCookie &HtCookie::operator = (const HtCookie &rhs) { // Prevent from copying itself if (this == &rhs) return *this; // Copy all the values name = rhs.name; value = rhs.value; path = rhs.path; domain = rhs.domain; srcURL = rhs.srcURL; // Set the expiration time SetExpires(rhs.expires); isSecure = rhs.isSecure; isDomainValid = rhs.isDomainValid; issue_time = rhs.issue_time; max_age = rhs.max_age; return *this; } // Print a debug message ostream& HtCookie::printDebug(ostream &out) { out << " - "; out << "NAME=" << name << " VALUE=" << value << " PATH=" << path; if (expires) out << " EXPIRES=" << expires->GetRFC850(); if (domain.length()) out << " DOMAIN=" << domain << " (" << (isDomainValid?"VALID":"INVALID") << ")"; if (max_age >= 0) out << " MAX-AGE=" << max_age; if (isSecure) out << " SECURE"; if (srcURL.length() > 0) out << " - Issued by: " << srcURL; out << endl; return out; } // // Set the date time value of a cookie's expires // Given an HtDateTime object and a datestring // It returns true if everything goes ok // and false otherwise. // int HtCookie::SetDate(const char *datestring, HtDateTime &dt) { if (!datestring) // for any reason we don't have a string for the date return 0; // and we exit DateFormat df; while (*datestring && isspace(*datestring)) datestring++; // skip initial spaces df = RecognizeDateFormat(datestring); if (df == DateFormat_NotRecognized) { // Not recognized if (debug > 0) cout << "Cookie '" << name << "' date format not recognized: " << datestring << endl; return false; } dt.ToGMTime(); // Set to GM time switch(df) { // Asc Time format case DateFormat_AscTime: dt.SetAscTime((char *)datestring); break; // RFC 1123 case DateFormat_RFC1123: dt.SetRFC1123((char *)datestring); break; // RFC 850 case DateFormat_RFC850: dt.SetRFC850((char *)datestring); break; default: if (debug > 0) cout << "Cookie '" << name << "' date format not handled: " << (int)df << endl; break; } return !(df==DateFormat_NotRecognized); } // Recognize the date sent by the server // // The expires attribute specifies a date string that defines the valid life time // of that cookie. Once the expiration date has been reached, the cookie will no // longer be stored or given out. // // The date string is formatted as: // Wdy, DD-Mon-YYYY HH:MM:SS GMT // This is based on RFC 822, RFC 850, RFC 1036, and RFC 1123, with the variations // that the only legal time zone is GMT and the separators between the elements // of the date must be dashes. // HtCookie::DateFormat HtCookie::RecognizeDateFormat(const char *datestring) { register char *s; if (datestring) { if ((s=strchr(datestring, ','))) { // A comma is present. // Two chances: RFC1123 or RFC850 if(strchr(s, '-')) return DateFormat_RFC850; // RFC 850 recognized else return DateFormat_RFC1123; // RFC 1123 recognized } else { // No comma present // Let's try C Asctime: Sun Nov 6 08:49:37 1994 if (strlen(datestring) == 24) { return DateFormat_AscTime; } } } return DateFormat_NotRecognized; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieInFileJar.h����������������������������������������������������0000644�0000000�0000000�00000004752�11177570271�016317� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////////////////////////////////////////////////////////////// // // File: HtCookieInFileJar.h - Declaration of class 'HtCookieInFileJar' // // Author: Gabriele Bartolini <angusgb@users.sf.net> // Started: Mon Jan 27 14:38:42 CET 2003 // // Class which allows a cookie file to be imported in memory // for ht://Check and ht://Dig applications. // // The cookie file format is a text file, as proposed by Netscape, // and each line contains a name-value pair for a cookie. // Fields within a single line are separated by the 'tab' character; // Here is the format for a line, as taken from http://www.cookiecentral.com/faq/#3.5: // // domain - The domain that created AND that can read the variable. // flag - A TRUE/FALSE value indicating if all machines within a given domain // can access the variable. This value is set automatically by the browser, // depending on the value you set for domain. // path - The path within the domain that the variable is valid for. // secure - A TRUE/FALSE value indicating if a secure connection with the // domain is needed to access the variable. // expiration - The UNIX time that the variable will expire on. UNIX time is // defined as the number of seconds since Jan 1, 1970 00:00:00 GMT. // name - The name of the variable. // value - The value of the variable. // /////////////////////////////////////////////////////////////// // // Part of the ht://Check <http://htcheck.sourceforge.net/> // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1999-2004 Comune di Prato, Italia // Copyright (c) 1995-2003 The ht://Dig Group // /////////////////////////////////////////////////////////////// // $Id: HtCookieInFileJar.h,v 1.2 2003-12-30 09:39:22 angusgb Exp $ /////////////////////////////////////////////////////////////// #ifndef __HtCookieInFileJar_H #define __HtCookieInFileJar_H #include "HtCookieMemJar.h" #include "htString.h" class HtCookieInFileJar: public HtCookieMemJar { // Public Interface public: // Default constructor HtCookieInFileJar(const String& fn, int& result); // Copy constructor HtCookieInFileJar(const HtCookieInFileJar& rhs); // Destructor ~HtCookieInFileJar(); // Assignment operator HtCookieInFileJar& operator=(const HtCookieInFileJar& rhs); // Show stats virtual ostream &ShowSummary (ostream &out = std::cout); // Protected attributes protected: String _filename; // Filename int Load(); // Load the contents of a cookies file into memory }; #endif /////////////////////////////////////////////////////////////// ����������������������htcheck-2.0.0~rc1.orig/htnet/Transport.cc�����������������������������������������������������������0000644�0000000�0000000�00000025002�11177570271�015207� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // Transport.cc // // Transport: A virtual transport interface class for accessing // remote documents. Used to grab URLs based on the // scheme (e.g. http://, ftp://...) // // Keep constructor and destructor in a file of its own. // Also takes care of the lower-level connection code. // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: Transport.cc,v 1.10 2003-06-20 16:47:30 mnencia Exp $ // // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Transport.h" #ifdef HAVE_STD #include <iomanip> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iomanip.h> #endif /* HAVE_STD */ #include <ctype.h> #define DEFAULT_CONNECTION_TIMEOUT 15 /////// // Static variables initialization /////// // Debug level int Transport::debug = 0; // Default parser content-type string String Transport::_default_parser_content_type = 0; // Statistics int Transport::_tot_open = 0; int Transport::_tot_close = 0; int Transport::_tot_changes = 0; /////// // Transport_Response class definition /////// /////// // Class Constructor /////// Transport_Response::Transport_Response() { // Initialize the pointers to the HtDateTime objs _modification_time = 0; _access_time = 0; // Set the content length and the return status code to negative values _content_length = -1; _status_code = -1; // Also set the document length, but to zero instead of -1 _document_length = 0; // Zeroes the contents and the content-type _contents = 0; _content_type = 0; // Initialize the reason_phrase _reason_phrase = 0; // Initialize the location _location = 0; } /////// // Empty destructor /////// Transport_Response::~Transport_Response() { // Free memory correctly if(_modification_time) { delete _modification_time; _modification_time=0; } if(_access_time) { delete _access_time; _access_time=0; } } void Transport_Response::Reset() { // Reset all the field of the object // Check if an HtDateTime object exists, and delete it if(_modification_time) { delete _modification_time; _modification_time=0; } if(_access_time) { delete _access_time; _access_time=0; } // Set the content length to a negative value _content_length=-1; // Also set the document length, but to zero instead of -1 _document_length=0; // Zeroes the contents and content type strings _contents.trunc(); _content_type.trunc(); // Set the return status code to a negative value _status_code=-1; // Zeroes the reason phrase of the s.c. _reason_phrase.trunc(); // Reset the location _location.trunc(); } /////// // Transport class definition /////// /////// // Constructor /////// Transport::Transport(Connection* connection) : _connection(connection), _host(0), _ip_address(0), _port(-1), _timeout(DEFAULT_CONNECTION_TIMEOUT), _retries(1), _wait_time(5), _modification_time(0), _max_document_size(0), _credentials(0), _useproxy(0), _proxy_credentials(0) { } /////// // Destructor /////// Transport::~Transport() { // Close the connection that was still up if (CloseConnection()) if ( debug > 4 ) cout << setw(5) << GetTotOpen() << " - " << "Closing previous connection with the remote host" << endl; if (_connection) delete (_connection); } /////// // Show the statistics /////// ostream &Transport::ShowStatistics (ostream &out) { out << " Connections opened : " << GetTotOpen() << endl; out << " Connections closed : " << GetTotClose() << endl; out << " Changes of server : " << GetTotServerChanges() << endl; return out; } /////// // Connection Management /////// // Open the connection // Returns // - 0 if failed // - -1 if already open // - 1 if ok int Transport::OpenConnection() { if (!_connection) return 0; if(_connection->IsOpen() && _connection->IsConnected()) return -1; // Already open and connection is up // No open connection // Let's open a new one if(_connection->Open() == NOTOK) return 0; // failed _tot_open ++; return 1; } // Assign the server to the connection int Transport::AssignConnectionServer() { if (debug > 5) cout << "\tAssigning the server (" << _host << ") to the TCP connection" << endl; if( _connection == 0 ) { cout << "Transport::AssignConnectionServer: _connection is NULL\n"; exit(0); } if (_connection->Assign_Server(_host) == NOTOK) return 0; _ip_address = _connection->Get_Server_IPAddress(); return 1; } // Assign the remote server port to the connection int Transport::AssignConnectionPort() { if (debug > 5) cout << "\tAssigning the port (" << _port << ") to the TCP connection" << endl; if( _connection == 0 ) { cout << "Transport::AssignConnectionPort: _connection is NULL\n"; exit(0); } if (_connection->Assign_Port(_port) == NOTOK) return 0; return 1; } // Connect // Returns // - 0 if failed // - -1 if already connected // - 1 if ok int Transport::Connect() { if (debug > 5) cout << "\tConnecting via TCP to (" << _host << ":" << _port << ")" << endl; if (isConnected()) return -1; // Already connected if( _connection == 0 ) { cout << "Transport::Connection: _connection is NULL\n"; exit(0); } if ( _connection->Connect() == NOTOK) return 0; // Connection failed return 1; // Connected } // Flush the connection void Transport::FlushConnection() { if(_connection) { _connection->Flush(); } } // Close the connection // Returns // - 0 if not open // - 1 if closed ok int Transport::CloseConnection() { if( _connection == 0 ) { // We can't treat this as a fatal error, because CloseConnection() // may be called from our destructor after _connection already deleted. // cout << "Transport::CloseConnection: _connection is NULL\n"; // exit(0); return 0; } if(_connection->IsOpen()) _connection->Close(); // Close the connection else return 0; _tot_close ++; return 1; } void Transport::SetConnection (const String &host, int port) { if (_port != -1) { // Already initialized // Let's check if the server or the port are changed bool ischanged = false; // Checking the connection server if(_host != host) // server is gonna change ischanged=true; // Checking the connection port if( _port != port ) // the port is gonna change ischanged=true; if (ischanged) { // Let's close any pendant connection with the old // server / port pair _tot_changes ++; if ( debug > 4 ) cout << setw(5) << GetTotOpen() << " - " << "Change of server. Previous connection closed." << endl; CloseConnection(); } } // Copy the host and port information to the object _host = host; _port = port; } // Create a new date time object containing the date specified in a string HtDateTime *Transport::NewDate(const char *datestring) { while(isspace(*datestring)) datestring++; // skip initial spaces DateFormat df = RecognizeDateFormat (datestring); if(df == DateFormat_NotRecognized) { // Not recognized if(debug > 0) cout << "Date Format not recognized: " << datestring << endl; return 0; } HtDateTime *dt = new HtDateTime; dt->ToGMTime(); // Set to GM time switch(df) { // Asc Time format case DateFormat_AscTime: dt->SetAscTime((char *)datestring); break; // RFC 1123 case DateFormat_RFC1123: dt->SetRFC1123((char *)datestring); break; // RFC 850 case DateFormat_RFC850: dt->SetRFC850((char *)datestring); break; default: cout << "Date Format not handled: " << (int)df << endl; break; } return dt; } // Recognize the possible date format sent by the server Transport::DateFormat Transport::RecognizeDateFormat (const char *datestring) { register char *s; if((s=strchr(datestring, ','))) { // A comma is present. // Two chances: RFC1123 or RFC850 if(strchr(s, '-')) return DateFormat_RFC850; // RFC 850 recognized else return DateFormat_RFC1123; // RFC 1123 recognized } else { // No comma present // Let's try C Asctime: Sun Nov 6 08:49:37 1994 if(strlen(datestring) == 24) return DateFormat_AscTime; } return DateFormat_NotRecognized; } // This method is used to write into 'dest' the credentials contained in 's' // according to the HTTP Basic access authorization [RFC2617] // It is written in this abstract class because it is used also // when dealing with HTTP proxies, no matter what protocol we are // using (HTTP now, but FTP in the future). void Transport::SetHTTPBasicAccessAuthorizationString(String &dest, const String& s) { static char tbl[64] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' }; dest.trunc(); const char *p; int n = s.length(); int ch; for (p = s.get(); n > 2; n -= 3, p += 3) { ch = *p >> 2; dest << tbl[ch & 077]; ch = ((*p << 4) & 060) | ((p[1] >> 4) & 017); dest << tbl[ch & 077]; ch = ((p[1] << 2) & 074) | ((p[2] >> 6) & 03); dest << tbl[ch & 077]; ch = p[2] & 077; dest << tbl[ch & 077]; } if (n != 0) { char c1 = *p; char c2 = n == 1 ? 0 : p[1]; ch = c1 >> 2; dest << tbl[ch & 077]; ch = ((c1 << 4) & 060) | ((c2 >> 4) & 017); dest << tbl[ch & 077]; if (n == 1) dest << '='; else { ch = (c2 << 2) & 074; dest << tbl[ch & 077]; } dest << '='; } } // End of Transport.cc (it's a virtual class anyway!) ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieJar.cc���������������������������������������������������������0000644�0000000�0000000�00000010306�11177570271�015356� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // HtCookieJar.cc // // HtCookieJar: This class stores/retrieves cookies. // // by Robert La Ferla. Started 12/9/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // //////////////////////////////////////////////////////////// // // The HtCookieJar class stores/retrieves cookies. // It's an abstract class though, which has to be the interface // for HtHTTP class. // // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookieJar.cc,v 1.5 2002-08-06 16:27:02 angusgb Exp $ // #include "HtCookieJar.h" /////// // Static variables initialization /////// // Debug level int HtCookieJar::debug = 0; /////// // Writes the HTTP request line given a cookie // in a flexible way (chooses between the RFC2109 // and the specification given by Netscape) /////// // // RFC2109: The syntax for the header is: // cookie = "Cookie:" cookie-version // 1*((";" | ",") cookie-value) // cookie-value = NAME "=" VALUE [";" path] [";" domain] // cookie-version = "$Version" "=" value // NAME = attr // VALUE = value // path = "$Path" "=" value // domain = "$Domain" "=" value // int HtCookieJar::WriteCookieHTTPRequest(const HtCookie &Cookie, String &RequestString, const int &NumCookies) { switch (Cookie.GetVersion()) { // RFC2109 Version case 1: // Writes the string to be sent to the web server if (NumCookies == 1) RequestString << "Cookie: $Version=\"1\"; "; else RequestString << "; " ; // Print complete debug info if (debug > 6) { cout << "Cookie (RFC2109) info: NAME=" << Cookie.GetName() << " VALUE="<< Cookie.GetValue() << " PATH=" << Cookie.GetPath(); if (Cookie.GetExpires()) cout << " EXPIRES=" << Cookie.GetExpires()->GetRFC850(); cout << endl; } // Prepare cookie line for HTTP protocol RequestString << Cookie.GetName() << "=" << Cookie.GetValue(); if (Cookie.GetPath().length() > 0) RequestString << " ;$Path=" << Cookie.GetPath(); if (Cookie.GetDomain().length() > 0) RequestString << " ;$Domain=" << Cookie.GetDomain(); break; // Netscape specification case 0: // Writes the string to be sent to the web server if (NumCookies == 1) RequestString << "Cookie: "; else RequestString << "; " ; // Print complete debug info if (debug > 6) { cout << "Cookie (Netscape spec) info: NAME=" << Cookie.GetName() << " VALUE=" << Cookie.GetValue() << " PATH=" << Cookie.GetPath(); if (Cookie.GetExpires()) cout << " EXPIRES=" << Cookie.GetExpires()->GetRFC850(); cout << endl; } // Prepare cookie line for HTTP protocol RequestString << Cookie.GetName() << "=" << Cookie.GetValue(); break; } return true; } int HtCookieJar::GetDomainMinNumberOfPeriods(const String& domain) const { // Well ... if a domain has been specified, we need some check-ups // as the standard says. static char* TopLevelDomains[] = { "com", "edu", "net", "org", "gov", "mil", "int", 0}; const char* s = strrchr(domain.get(), '.'); if (!s) // no 'dot' has been found. Not valid return 0; if (! *(++s)) // nothing after the dot. Not Valid return 0; for (char** p = TopLevelDomains; *p; ++p) { if (!strncmp(*p, s, strlen(*p))) return 2; } return 3; // By default the minimum value } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/Makefile.in������������������������������������������������������������0000644�0000000�0000000�00000037141�11245527335�014757� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config subdir = htnet ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkglibdir)" pkglibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(pkglib_LTLIBRARIES) libhtnet_la_LIBADD = am_libhtnet_la_OBJECTS = Connection.lo Transport.lo HtHTTP.lo \ HtCookie.lo HtCookieJar.lo HtCookieMemJar.lo HtHTTPBasic.lo \ HtCookieInFileJar.lo libhtnet_la_OBJECTS = $(am_libhtnet_la_OBJECTS) libhtnet_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libhtnet_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libhtnet_la_SOURCES) DIST_SOURCES = $(libhtnet_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline pkglib_LTLIBRARIES = libhtnet.la libhtnet_la_SOURCES = Connection.cc Transport.cc HtHTTP.cc HtCookie.cc \ HtCookieJar.cc HtCookieMemJar.cc HtHTTPBasic.cc HtCookieInFileJar.cc libhtnet_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = \ Connection.h \ Transport.h \ HtHTTP.h \ HtHTTPBasic.h \ HtCookie.h \ HtCookieJar.h \ HtCookieMemJar.h \ HtCookieInFileJar.h all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htnet/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htnet/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ else :; fi; \ done uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libhtnet.la: $(libhtnet_la_OBJECTS) $(libhtnet_la_DEPENDENCIES) $(libhtnet_la_LINK) -rpath $(pkglibdir) $(libhtnet_la_OBJECTS) $(libhtnet_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags 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-pkglibLTLIBRARIES \ 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 uninstall uninstall-am uninstall-pkglibLTLIBRARIES # 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: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/Transport.h������������������������������������������������������������0000644�0000000�0000000�00000024312�11177570271�015054� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������// // Transport.h // // Transport: A virtual transport interface class for accessing // remote documents. Used to grab URLs based on the // scheme (e.g. http://, ftp://...) // // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1995-2000 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: Transport.h,v 1.13 2003-12-10 08:57:18 angusgb Exp $ // // #ifndef _Transport_H #define _Transport_H #include "Object.h" #include "HtDateTime.h" #include "htString.h" #include "URL.h" #include "Connection.h" #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ // Declare in advance class Transport; // But first, something completely different. Here's the response class class Transport_Response : public Object { friend class Transport; // declaring friendship public: /////// // Construction / Destruction /////// Transport_Response(); virtual ~Transport_Response(); // Reset the information stored virtual void Reset(); // This function must be defined // Get the contents virtual const String &GetContents() const { return _contents; } // Get the modification time object pointer virtual HtDateTime *GetModificationTime() const { return _modification_time; } // Get the access time object pointer virtual HtDateTime *GetAccessTime() const { return _access_time; } // Get the Content type virtual const String &GetContentType() const { return _content_type; } // Get the Content length virtual int GetContentLength() const { return _content_length; } // Get the Document length (really stored) virtual int GetDocumentLength() const { return _document_length; } // Get the Status Code virtual int GetStatusCode() const { return _status_code; } // Get the Status Code reason phrase virtual const String &GetReasonPhrase() { return _reason_phrase; } // Get the location (redirect) virtual const String &GetLocation() { return _location; } protected: // Body of the response message String _contents; // Contents of the document HtDateTime *_modification_time; // Modification time returned by the server HtDateTime *_access_time; // Access time returned by the server String _content_type; // Content-type returned by the server int _content_length; // Content-length returned by the server int _document_length; // Length really stored int _status_code; // return Status code String _reason_phrase; // status code reason phrase String _location; // Location (in case of redirect) }; /////// // Transport class declaration /////// class Transport : public Object { public: /////// // Construction / Destruction /////// Transport(Connection* _connection = 0); virtual ~Transport(); /////// // Enumeration of possible return status of a resource retrieving /////// enum DocStatus { Document_ok, Document_not_changed, Document_not_found, Document_not_parsable, Document_redirect, Document_not_authorized, Document_no_connection, Document_connection_down, Document_no_header, Document_server_error, Document_no_host, Document_no_port, Document_not_local, Document_not_recognized_service, // Transport service not recognized Document_other_error // General error (memory) }; /////// // Connects to an host and a port // Overloaded methods provided in order to take // the info from a URL obj or ptr /////// // Set Connection parameters virtual void SetConnection (const String &host, int port); // from a URL pointer virtual void SetConnection (URL *u) { SetConnection (u->host(), u->port()); } // from a URL object virtual void SetConnection (URL &u) { SetConnection (&u); } // Make the request virtual DocStatus Request() = 0; // different in derived classes // Get the date time information about the request const HtDateTime *GetStartTime() const { return &_start_time; } const HtDateTime *GetEndTime() const { return &_end_time; } // Set and get the connection time out value void SetTimeOut ( int t ) { _timeout=t; } int GetTimeOut () { return _timeout; } // Set and get the connection retry number void SetRetry ( int r ) { _retries=r; } int GetRetry () { return _retries; } // Set and get the wait time after a failed connection void SetWaitTime ( unsigned int t ) { _wait_time = t; } unsigned int GetWaitTime () { return _wait_time; } // Get the Connection Host const String &GetHost() { return _host; } // Get the Connection IP Address const String &GetHostIPAddress() { return _ip_address; } // Get the Connection Port int GetPort() { return _port; } // Set and get the credentials // Likely to vary based on transport protocol virtual void SetCredentials (const String& s) { _credentials = s;} virtual String GetCredentials () { return _credentials;} // Proxy settings virtual void SetProxy(int aUse) { _useproxy=aUse; } // Proxy credentials virtual void SetProxyCredentials (const String& s) { _proxy_credentials = s;} virtual String GetProxyCredentials () { return _proxy_credentials;} // Set the modification date and time for If-Modified-Since void SetRequestModificationTime (HtDateTime *p) { _modification_time=p; } void SetRequestModificationTime (HtDateTime &p) { SetRequestModificationTime (&p) ;} // Get the modification date time HtDateTime *GetRequestModificationTime () { return _modification_time; } // Get and set the max document size to be retrieved void SetRequestMaxDocumentSize (int s) { _max_document_size=s; } int GetRequestMaxDocumentSize() const { return _max_document_size; } virtual Transport_Response *GetResponse() = 0; virtual DocStatus GetDocumentStatus() = 0; /////// // Querying the status of the connection /////// // Are we still connected? // This is the only part regarding // a connection that's got a public access virtual bool isConnected(){ return _connection?_connection->IsConnected():0; } // Set the default parser string for the content-type static void SetDefaultParserContentType (const String &ct) { _default_parser_content_type = ct; } // Set the debug level static void SetDebugLevel (int d) { debug=d;} // Get statistics info static int GetTotOpen () { return _tot_open; } static int GetTotClose () { return _tot_close; } static int GetTotServerChanges () { return _tot_changes; } protected: /////// // Services about a Transport layer connection // They're invisible from outside /////// // Open the connection virtual int OpenConnection(); // Assign the host and the port for the connection int AssignConnectionServer(); int AssignConnectionPort(); // Connect to the specified host and port int Connect(); // Write a message inline int ConnectionWrite(char *cmd) { return _connection?_connection->Write(cmd):0; } // Assign the timeout to the connection (returns the old value) inline int AssignConnectionTimeOut() { return _connection?_connection->Timeout(_timeout):0; } // Assign the retry number to the connection (returns the old value) inline int AssignConnectionRetries() { return _connection?_connection->Retries(_retries):0; } // Assign the wait time (after a failure) to the connection inline int AssignConnectionWaitTime() { return _connection?_connection->WaitTime(_wait_time):0; } // Flush the connection void FlushConnection(); // Close the connection int CloseConnection(); // Reset Stats static void ResetStatistics () { _tot_open=0; _tot_close=0; _tot_changes=0;} // Show stats static ostream &ShowStatistics (ostream &out); // Methods for manipulating date strings -- useful for subclasses enum DateFormat { DateFormat_RFC1123, DateFormat_RFC850, DateFormat_AscTime, DateFormat_NotRecognized }; // Create a new HtDateTime object HtDateTime *NewDate(const char *); // Recognize Date Format DateFormat RecognizeDateFormat (const char *); protected: Connection *_connection; // Connection object String _host; // TCP Connection host String _ip_address; // TCP Connection host (IP Address) int _port; // TCP Connection port int _timeout; // Connection timeout int _retries; // Connection retry limit unsigned int _wait_time; // Connection wait time (if failed) HtDateTime *_modification_time; // Stored modification time if avail. int _max_document_size; // Max document size to retrieve String _credentials; // Credentials for this connection int _useproxy; // if true, GET should include full url, // not path only String _proxy_credentials; // Credentials for this proxy connection HtDateTime _start_time; // Start time of the request HtDateTime _end_time; // end time of the request /////// // Default parser content-type // This string is matched in order to determine // what content type can be considered parsed // directly by the internal indexer (not by using // any external parser) /////// static String _default_parser_content_type; /////// // Debug level /////// static int debug; // Statistics about requests static int _tot_open; // Number of connections opened static int _tot_close; // Number of connections closed static int _tot_changes; // Number of server changes // Use the HTTP Basic Digest Access Authentication method to write a String // to be used for credentials (both HTTP and HTTP PROXY authentication) static void SetHTTPBasicAccessAuthorizationString(String &dest, const String& s); }; #endif ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieMemJar.cc������������������������������������������������������0000644�0000000�0000000�00000036710�11177570271�016024� 0����������������������������������������������������������������������������������������������������ustar �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� // HtCookieMemJar.cc // // HtCookieMemJar: This class stores/retrieves cookies. // // by Robert La Ferla. Started 12/9/2000. // Reviewed by G.Bartolini - since 24 Feb 2001 // //////////////////////////////////////////////////////////// // // The HtCookieMemJar class stores/retrieves cookies // directly into memory. It is derived from HtCookieJar class. // // See "PERSISTENT CLIENT STATE HTTP COOKIES" Specification // at http://www.netscape.com/newsref/std/cookie_spec.html // Modified according to RFC2109 (max age and version attributes) // /////// // // Part of the ht://Dig package <http://www.htdig.org/> // Part of the ht://Check package <http://htcheck.sourceforge.net/> // Copyright (c) 2001 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // <http://www.gnu.org/copyleft/gpl.html> // // $Id: HtCookieMemJar.cc,v 1.10 2003-06-20 16:47:30 mnencia Exp $ // #include "HtCookieMemJar.h" #include "HtCookie.h" #include "List.h" #include "Dictionary.h" #ifdef HAVE_STD #include <iostream> #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include <iostream.h> #endif /* HAVE_STD */ #include <stdlib.h> #include <ctype.h> // Constructor HtCookieMemJar::HtCookieMemJar() : _key(0), _list(0), _idx(0) { cookieDict = new Dictionary(); cookieDict->Start_Get(); // reset the iterator } // Copy constructor HtCookieMemJar::HtCookieMemJar(const HtCookieMemJar& rhs) : _key(0), _list(0), _idx(0) { if (rhs.cookieDict) { // Let's perform a deep copy of the 'jar' cookieDict = new Dictionary(); rhs.cookieDict->Start_Get(); // Let's walk the domains while (char* d = rhs.cookieDict->Get_Next()) { List* l = new List(); cookieDict->Add(d, l); // add that domain // Let's walk the cookies for that domain if (List* rhsl = (List*) rhs.cookieDict->Find(d)) { rhsl->Start_Get(); while (HtCookie* cookie = ((HtCookie *)rhsl->Get_Next())) { HtCookie* new_cookie = new HtCookie(*cookie); l->Add((Object *)new_cookie); // add this cookie } } } } else cookieDict = new Dictionary(); cookieDict->Start_Get(); // reset the iterator } // Destructor HtCookieMemJar::~HtCookieMemJar() { if (debug>4) printDebug(); if (cookieDict) delete cookieDict; } // Add a cookie to the Jar int HtCookieMemJar::AddCookie(const String &CookieString, const URL &url) { // Builds a new Cookie object HtCookie *Cookie = new HtCookie(CookieString, url.get()); // Interface to the insert method // If the cookie has not been added, we'd better delete it if (!AddCookieForHost (Cookie, url.host())) delete Cookie; return true; } // Add a cookie to a host int HtCookieMemJar::AddCookieForHost(HtCookie *cookie, String HostName) { List *list; // pointer to the Cookie list of an exact host HtCookie *theCookie; bool inList = false; ///////////////////////////////////////////////////////////// // That's an abstract from the Netscape Cookies specification ///////////////////////////////////////////////////////////// // // When searching the cookie list for valid cookies, // a comparison of the domain attributes of the cookie // is made with the Internet domain name of the host from which the URL // will be fetched. If there is a tail match, then the cookie // will go through path matching to see if it should be sent. // // "Tail matching" means that domain attribute is matched against // the tail of the fully qualified domain name of the host. // A domain attribute of "acme.com" would match host names "anvil.acme.com" // as well as "shipping.crate.acme.com". // // Only hosts within the specified domain can set a cookie // for a domain and domains must have at least two (2) // or three (3) periods in them to prevent domains of // the form: ".com", ".edu", and "va.us". // // Any domain that fails within one of the seven special top level domains // listed below only require two periods. // Any other domain requires at least three. // // The seven special top level domains are: // "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT". // // The default value of domain is the host name of the // server which generated the cookie response. // ///////////////////////////////////////////////////////////// // Let's get the domain of the cookie String Domain(cookie->GetDomain()); // Lowercase the HostName HostName.lowercase(); if (!Domain.length()) Domain = HostName; else { Domain.lowercase(); // lowercase the domain // The cookie's domain must have a minimum number of periods // inside, as stated by the abstract cited above int minimum_periods = GetDomainMinNumberOfPeriods(Domain); if (!minimum_periods) { if (debug > 2) cout << "Cookie - Invalid domain " << "(minimum number of periods): " << Domain << endl; cookie->SetIsDomainValid(false); } else { // Let's see if the domain is now valid const char* s = Domain.get(); const char* r = s + strlen(s) - 1; // go to the last char int num_periods = 1; // at minimum is one while (r > s && *r) { if (*r == '.' && *(r+1) && *(r+1) != '.') ++num_periods; // when a 'dot' is found increment // the number of periods --r; } if (num_periods >= minimum_periods) // here is a so-far valid domain { while (*r && *r == '.') ++r; // goes beyond the first dot if (r>s) Domain.set((char*) r); // Set the new 'shorter' domain if (HostName.indexOf(Domain.get()) != -1) { if (debug > 2) cout << "Cookie - valid domain: " << Domain << endl; } else if (HostName.length() == 0) { if (debug > 2) cout << "Imported cookie - valid domain: " << Domain << endl; } else { cookie->SetIsDomainValid(false); if (debug > 2) cout << "Cookie - Invalid domain " << "(host not within the specified domain): " << Domain << endl; } } else { cookie->SetIsDomainValid(false); if (debug > 2) cout << "Cookie - Invalid domain " << "(minimum number of periods): " << Domain << endl; } } } if (! cookie->getIsDomainValid()) // Not a valid domain Domain = HostName; // Set the default // Is the host in the dictionary? if (cookieDict->Exists(Domain) == 0) { // No, add a list instance list = new List(); cookieDict->Add(Domain, list); } else list = (List *)cookieDict->Find(Domain); // Is cookie already in list? list->Start_Get(); // Let's start looking for it // The match is made on the name and the path if (debug > 5) cout << "- Let's go searching for the cookie '" << cookie->GetName() << "' in the list" << endl; while (!inList && (theCookie = (HtCookie *)list->Get_Next())) { if ( (theCookie->GetName().compare(cookie->GetName()) == 0 ) && ( theCookie->GetPath().compare(cookie->GetPath()) == 0 )) { // The cookie has been found inList = true; // Let's update the expiration datetime if (debug > 5) cout << " - Found: Update cookie expire time." << endl; theCookie->SetExpires(cookie->GetExpires()); } } // Well ... the cookie wasn't in the list. Until now! ;-) // Let's go add it! if (inList == false) { if (debug > 5) cout << " - Not Found: let's go add it." << endl; list->Add((Object *)cookie); } return !inList; } // Retrieve all cookies that are valid for a domain List * HtCookieMemJar::cookiesForDomain(const String &DomainName) { List * list; list = (List *)cookieDict->Find(DomainName); return list; } int HtCookieMemJar::SetHTTPRequest_CookiesString(const URL &_url, String &RequestString) { // Let's split the URL domain and get all of the subdomains. // For instance: // - bar.com // - foo.bar.com // - www.foo.bar.com String Domain(_url.host()); Domain.lowercase(); int minimum_periods = GetDomainMinNumberOfPeriods(Domain); if (debug > 3) cout << "Looking for cookies - Domain: " << Domain << " (Minimum periods: " << minimum_periods << ")" << endl; // Let's get the subdomains, starting from the end const char* s = Domain.get(); const char* r = s + strlen(s) - 1; // go to the last char int num_periods = 1; // at minimum is one while (r > s && *r) { if (*r == '.' && *(r+1) && *(r+1) != '.') { ++num_periods; // when a 'dot' is found increment // the number of periods if (num_periods > minimum_periods) // here is a so-far valid domain { const String SubDomain(r+1); if (debug > 3) cout << "Trying to find cookies for subdomain: " << SubDomain << endl; if (cookieDict->Exists(SubDomain)) WriteDomainCookiesString(_url, SubDomain, RequestString); } } --r; } if (num_periods >= minimum_periods && cookieDict->Exists(Domain)) // Let's send cookies for this domain to the Web server ... WriteDomainCookiesString(_url, Domain, RequestString); return true; } ///////////////////////////////////////////////////////////// // That's an abstract from the Netscape Cookies specification ///////////////////////////////////////////////////////////// // // // When requesting a URL from an HTTP server, the browser will match // the URL against all cookies and if any of them match, // a line containing the name/value pairs of all matching cookies // will be included in the HTTP request. // // Here is the format of that line: // Cookie: NAME1=OPAQUE_STRING1; NAME2=OPAQUE_STRING2 ... // // This method writes on a string (RequestString) the headers // for cookies settings as defined by Netscape standard // ///////////////////////////////////////////////////////////// int HtCookieMemJar::WriteDomainCookiesString(const URL &_url, const String &Domain, String &RequestString) { // Cookie support. We need a list of cookies and a cookie object List *cookieList; HtCookie *cookie; const HtDateTime now; // Instant time, used for checking // cookies expiration time // Let's find all the valid cookies depending on the specified domain cookieList = cookiesForDomain(Domain); if (cookieList) { // Let's store the number of cookies eventually sent int NumCookies = 0; if (debug > 5) cout << "Found a cookie list for: '" << Domain << "'" << endl; // Let's crawl the list for getting the 'path' matching ones cookieList->Start_Get(); while ((cookie = (HtCookie *)cookieList->Get_Next())) { const String cookiePath = cookie->GetPath(); const String urlPath = _url.path(); // // Let's see if the cookie has expired // by checking the Expires value of it // If it's not empty and the datetime // is before now. // // Another way of determining whether a // cookie is expired is checking the // max_age property that is to say: // (now - issuetime <= maxage). // const bool expired = (cookie->GetExpires() && (*(cookie->GetExpires()) < now)) // Expires || (HtDateTime::GetDiff(now, cookie->GetIssueTime()) <= cookie->GetMaxAge()); // Max-age if (debug > 5) cout << "Trying to match paths and expiration time: " << urlPath << " in " << cookiePath; // Is the path matching if (!expired && !strncmp(cookiePath, urlPath, cookiePath.length())) { if (debug > 5) cout << " (passed)" << endl; ++NumCookies; // Write the string by passing the cookie to the superclass' method WriteCookieHTTPRequest(*cookie, RequestString, NumCookies); } else if (debug > 5) cout << " (discarded)" << endl; } // Have we sent one cookie at least? if (NumCookies > 0) RequestString <<"\r\n"; } // That's the end of function return true; } // Debug info void HtCookieMemJar::printDebug() { char * key; cookieDict->Start_Get(); cout << "Summary of the cookies stored so far" << endl; while ((key = cookieDict->Get_Next())) { List * list; HtCookie * cookie; cout << " - View cookies for: '" << key << "'" << endl; list = (List *)cookieDict->Find(key); list->Start_Get(); while ((cookie = (HtCookie *)list->Get_Next())) cookie->printDebug(); } } /////// // Show the summary of the stored cookies /////// ostream &HtCookieMemJar::ShowSummary(ostream &out) { char * key; int num_cookies = 0; // Global number of cookies int num_server = 0; // Number of servers with cookies cookieDict->Start_Get(); out << endl << "Summary of the cookies" << endl; out << "======================" << endl; while ((key = cookieDict->Get_Next())) { List * list; HtCookie * cookie; int num_cookies_server = 0; ++num_server; // Number of servers with cookies out << " Host: '" << key << "'" << endl; list = (List *)cookieDict->Find(key); list->Start_Get(); while ((cookie = (HtCookie *)list->Get_Next())) { ++num_cookies_server; cookie->printDebug(out); } out << " Number of cookies: " << num_cookies_server << endl << endl; // Global number of cookies num_cookies += num_cookies_server; } out << "Total number of cookies: " << num_cookies << endl; out << "Servers with cookies: " << num_server << endl << endl; return out; } // Get the next cookie. It is a bit tricky, but for now it is good const HtCookie* HtCookieMemJar::NextCookie() { if (!cookieDict) return 0; if (!_idx && (_key = cookieDict->Get_Next()) && (_list = (List *)cookieDict->Find(_key))) _list->Start_Get(); // the first time we position at the beginning ++_idx; if (!_key) return 0; // ends if (!_list) return 0; // ends const HtCookie* cookie((const HtCookie*)_list->Get_Next()); // Cookie object if (cookie) return cookie; else { // Non ci sono cookie per l'host. Si passa a quello seguente if ((_key = cookieDict->Get_Next()) && (_list = (List *)cookieDict->Find(_key))) { _list->Start_Get(); if ((cookie = (const HtCookie*)_list->Get_Next())) return cookie; } } return 0; } // Reset the iterator void HtCookieMemJar::ResetIterator() { cookieDict->Start_Get(); _idx = 0; } ��������������������������������������������������������htcheck-2.0.0~rc1.orig/htnet/HtCookieInFileJar.cc���������������������������������������������������0000644�0000000�0000000�00000010034�11177570271�016443� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/////////////////////////////////////////////////////////////// // // File: HtCookieInFileJar.cc - Definition of class 'HtCookieInFileJar' // // Author: Gabriele Bartolini <angusgb@users.sf.net> // Started: Mon Jan 27 14:38:42 CET 2003 // // Class which allows a cookie file to be imported in memory // for ht://Check and ht://Dig applications. // // The cookie file format is a text file, as proposed by Netscape, // and each line contains a name-value pair for a cookie. // Fields within a single line are separated by the 'tab' character; // Here is the format for a line, as taken from http://www.cookiecentral.com/faq/#3.5: // // domain - The domain that created AND that can read the variable. // flag - A TRUE/FALSE value indicating if all machines within a given domain // can access the variable. This value is set automatically by the browser, // depending on the value you set for domain. // path - The path within the domain that the variable is valid for. // secure - A TRUE/FALSE value indicating if a secure connection with the // domain is needed to access the variable. // expiration - The UNIX time that the variable will expire on. UNIX time is // defined as the number of seconds since Jan 1, 1970 00:00:00 GMT. // name - The name of the variable. // value - The value of the variable. // /////////////////////////////////////////////////////////////// // // Part of the ht://Check <http://htcheck.sourceforge.net/> // Part of the ht://Dig package <http://www.htdig.org/> // Copyright (c) 1999-2004 Comune di Prato, Italia // Copyright (c) 1995-2003 The ht://Dig Group // /////////////////////////////////////////////////////////////// // $Id: HtCookieInFileJar.cc,v 1.2 2003-12-30 09:39:22 angusgb Exp $ /////////////////////////////////////////////////////////////// #ifndef __HtCookieInFileJar_H #include "HtCookieInFileJar.h" #endif #include <stdio.h> #define MAX_COOKIE_LINE 16384 // Costruttore (default constructor) HtCookieInFileJar::HtCookieInFileJar(const String& fn, int& result) : _filename(fn) { result = Load(); } // Costruttore di copia (copy constructor) HtCookieInFileJar::HtCookieInFileJar(const HtCookieInFileJar& rhs) { } // Distruttore HtCookieInFileJar::~HtCookieInFileJar() { } // Operatore di assegnamento (assignment operator) HtCookieInFileJar& HtCookieInFileJar::operator=(const HtCookieInFileJar& rhs) { if (this == &rhs) return *this; // Code for attributes copy return *this; // ritorna se stesso } // Loads the contents of a cookies file into memory int HtCookieInFileJar::Load() { FILE *f = fopen((const char *)_filename, "r"); if (f == NULL) return -1; char buf[MAX_COOKIE_LINE]; while(fgets(buf, MAX_COOKIE_LINE, f)) { if (*buf && *buf != '#' && (strlen(buf) > 10)) // 10 is an indicative value { HtCookie *Cookie = new HtCookie(buf); // Interface to the insert method // If the cookie is not valid or has not been added, we'd better delete it if (!Cookie->GetName().length() || !AddCookieForHost (Cookie, Cookie->GetSrcURL())) { if (debug > 2) cout << "Discarded cookie line: " << buf; delete Cookie; } } } return 0; } // Outputs a summary of the cookies that have been imported ostream &HtCookieInFileJar::ShowSummary(ostream &out) { char * key; int num_cookies = 0; // Global number of cookies cookieDict->Start_Get(); out << endl << "Cookies that have been correctly imported from: " << _filename << endl; while ((key = cookieDict->Get_Next())) { List * list; HtCookie * cookie; list = (List *)cookieDict->Find(key); list->Start_Get(); while ((cookie = (HtCookie *)list->Get_Next())) { ++num_cookies; out << " " << num_cookies << ". " << cookie->GetName() << ": " << cookie->GetValue() << " (Domain: " << cookie->GetDomain(); if (debug > 1) { out << " - Path: " << cookie->GetPath(); if (cookie->GetExpires()) out << " - Expires: " << cookie->GetExpires()->GetRFC850(); } out << ")" << endl; } // Global number of cookies } return out; } /////////////////////////////////////////////////////////////// ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/ChangeLog.old����������������������������������������������������������������0000644�0000000�0000000�00000201760�11177570304�014115� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Thu Sep 19 09:26:59 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.2.0' released. Thu Sep 19 09:18:11 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: another check for null pointers in the cookie jar Mon Sep 9 14:07:56 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/listlinks.php: anchor filter setting Thu Aug 8 15:56:49 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: Cookie version is now stored (0 = Netscape, 1 = RFC2109) Thu Aug 8 14:13:16 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: filtering as far as the domain of the link is concerned Thu Aug 8 13:41:07 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added the Domain field to the Link table: it allows to determine whether a link is directed to a resource belonging to the same server, or either to an internal domain server or an external one, according to the configuration attributes. Whenever it can't be determined it's set to NULL. * htcommon/Link.[h,cc]: ditto * htparsing/HtmlParser.cc: ditto Thu Aug 8 12:22:09 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added the Domain field to the Schedule table; it allows to immediately recognise internal URLs from external ones, according to the configuration limits. * htcommon/SchedulerEntry.[h,cc]: ditto * htcheck/Scheduler.cc: ditto Tue Aug 6 18:24:54 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * these changes were suggested by David Reed <DReed1@citgo.com> (thanks) * htdig/Document.cc: manage cookies via SSL * htnet/HtCookie.[h,cc]: features both RFC2109 and Netscape version * htnet/HtCookieJar.cc: ditto Thu Aug 1 19:00:58 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: fixed a stupid bug regarding the ProxyCredentials Mon Jul 29 10:45:07 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Transport.[h,cc]: added the Proxy Authorization support * htnet/HtHTTP.[h,cc]: ditto * htcheck/Scheduler.[h,cc]: ditto * htcommon/HtDefaults.cc: added the 'http_proxy_authorization' feature * doc/htcheck.sgml: ditto Fri Jul 5 09:01:09 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * .version: why did I set it to 1.2.1 without a 1.2.0? :-) * other small changes Thu Jul 4 13:39:21 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: ignore case for 'javascript' and fixed row counting * php/include/it.inc.php: fixed a word in italian Tue Jul 2 13:33:59 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * .version: set to 1.2.1 * doc/*: updated the documentation Tue Jul 2 12:33:53 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults: added the 'url_reserved_chars' attribute, which allows to customise the set of characters that can be considered as reserverd in a URL, avoiding their coding under the <tt>RFC1738</tt> standard. This string is used when checking whether a URL is well-encoded or not, issuing a '<em>BadEncoded</em>' state for the link which created it. The default value is slightly different from what the RFC says, giving more flexibility to the spider (it is suggested not to change it unless you are extremely sure of what you are doing). * htparsing/HtmlParser.cc: ditto * doc/htcheck.sgml: ditto * installdirs/htcheck.conf: ditto Tue Jul 2 10:54:54 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php interface: safer against XSS (cross-site scripting) attacks, through the use of an internal function called WriteHTML() which uses PHP strtr() function. Tue Jul 2 09:45:07 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,cc]: moved the SetLinkResults method from Scheduler class to this one, and fixed a bug regarding the setting of the link result when a 'bad encoding' occurred. * htcheck/Scheduler.[h,cc]: ditto Mon Jul 1 16:36:30 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: Bad encoded URLs are considered as broken. Mon Jul 1 16:09:41 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/img/Makefile.[am,in]: added the BadEncoded.png image * php/include/[it,en,de].php: added the BadEncoded string Mon Jul 1 15:36:10 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: removed the WellEncoded field from the Schedule table * htcommon/SchedulerEntry.[h,cc]: ditto * htcheck/Scheduler.cc: ditto * htparsing/HtmlParser.cc: ditto Mon Jul 1 15:18:57 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: removed the WellEncoded field from the Link table. I thought it was better to consider the bad encoding as a LinkResult value. * htcheck/Scheduler.cc: added the support for the feature above * htcommon/Link.[h,cc]: ditto * htparsing/HtmlParser.cc: ditto Mon Jul 1 13:36:29 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added a field (WellEncoded) in the Link table which informs whether a link contains a not well encoded link URL. * htcommon/Link.[h,cc]: added the support for the feature above * htparsing/HtmlParser.cc: ditto Mon Jul 1 13:03:34 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: added a field (WellEncoded) in the Schedule table which informs whether an URL is well encoded or not. * htcheck/Scheduler.cc: added the support for the feature above * htcommon/SchedulerEntry.[cc,hh]: ditto * htparsing/HtmlParser.cc: ditto Sat Jun 29 12:12:16 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: the available operations menu has been brought upper in the page Sat Jun 29 12:05:36 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showsource.php: the row number is now highlighted * php/showtidy.php: there is the support for the row highlighting * php/showlink.php: ditto * php/css/main.css: added the style for the row Sat Jun 29 11:50:19 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showtidy.php: added support for tidy * php/showurl.php: ditto * php/include/global.inc.php: ditto * php/include/[it,en,de].php: ditto Thu Jun 27 18:58:16 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showlink.php: show the source page with the link to the row Thu Jun 27 18:39:03 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showsource.php: a very basic version for showing the source of an URL * php/showurl.php: added a link to the source of the URL if present * php/include/[it,en,de].php: ditto Thu Jun 27 15:27:09 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showlink.php: some stupid bugs * php/include/[it,en,de].php: ditto Thu Jun 27 15:20:33 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: removed debug info Thu Jun 27 15:18:02 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showlink.php: added the row number * php/include/[it,en,de].php: ditto Thu Jun 27 15:09:17 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: added the 'store_url_contents' attribute * htcommon/HtDefaults.cc: ditto * installdirs/htcheck.conf: ditto * htcommon/_Url.cc: ditto * htcommon/_Url.h: ditto * htparsing/HtmlParser.cc: added support for storing the row of each statement * htparsing/HtmlParser.h: ditto * htcommon/HtmlStatement.cc: ditto * htcommon/HtmlStatement.h: ditto * htmysql/HtmysqlDB.cc: added the storage of the URL contents and the row number for every HtmlStatement. * doc/htcheck.sgml: added the 'store_url_contents' attribute's documentation Tue Jun 11 17:44:17 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtSGMLCodec.[h,cc]: updated with ht://Dig ones * htparsing/HtWordCodec.[h,cc]: ditto Mon May 3 16:13:15 EST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: removed code with SQL parts from the Anchors management. It is just the beginning of a more clean and OO code. * htparsing/HtmlParser.cc: consider any 'id' attribute as possible anchor target. * htmysql/HtmysqlDB.[h,cc]: ditto. Added the AnchorsTable() method. Fri May 31 15:17:59 EST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: Fixed a bug regarding URL initialization of the Configuration Object (causing a core dump when using the http_proxy directive) Fri May 3 12:30:05 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Connection.[h,cc]: IP address management * htnet/Transport.h: ditto * htcommon/_Server.[h,cc]: ditto * htcheck/Scheduler.cc: ditto Thu Apr 18 17:32:02 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/mysqldb.inc.php: fixed a bug in db dropping * php/*.php: converted from DOS to UNIX file * php/include/*.php: ditto Wed Apr 17 12:27:22 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.sgml: added the db_name_prepend explanation Wed Apr 17 12:20:36 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: db_name_prepend attribute for setting the string to be prepended to every database created by htcheck. htcheck/htcheck.cc: ditto * configure.in: management of the 'with-db-name-prepend' attribute for setting the default value for the db_name_prepend attribute of htcheck. * [...]makefile.am: ditto Tue Apr 9 16:37:28 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie*.[h,cc]: RFC2109 compliant. * htmysql/HtmysqlDB.cc: add the max-age attribute to the Cookies table * htlib/HtDateTime.[h,cc]: Add const-ness to the DiffTime static method Tue Apr 9 12:50:26 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.cc: fixed a bug in expires date recognition Thu Apr 4 12:27:45 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/Database.[h,cc]: removed from the tree (why where they still there?) * htlib/DB2_db.[h,cc]: ditto Thu Apr 4 12:13:23 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * Scheduler.cc: the WordType class was not initialized - led to a core dump Tue Apr 2 08:45:54 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: added the 'remove_default_doc' attribute * doc/htcheck.sgml: ditto Tue Apr 2 08:37:33 CEST 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/URL.[h,cc]: management of Configuration file through a static variable * htcheck/Scheduler.cc: passage of the Configuration file to the URL class Thu Mar 21 10:15:15 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc: fixed an error in the manual Thu Mar 21 10:08:21 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.[h,cc]: added the feature for keeping alive a database without dropping it; only tables are dropped. Thanks to Patrick Guillot for the proposal (<pguillot@paanjaru.com>). * htcheck/htcheck.cc: ditto * htmysql/Htmysql.[h,cc]: ditto * htmysql/HtmysqlDB.[h,cc]: ditto * doc/htcheck.1: manual page (ditto) * doc/htcheck.sgml: source of the documentation (ditto) Tue Mar 19 08:38:11 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.cc: enhanced controls regarding the expires setting when no expires is returned. Prevents NULL pointer exceptions to be arisen. Mon Mar 18 09:14:12 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.cc: fixed a bug in the SetDate function, and also added the new copy constructor of the HtDateTime class. Mon Mar 18 09:11:55 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/HtDateTime.cc (Parse, SetFTime): Added Parse method for more flexible parsing of LOOSE/SHORT formats, use it in SetFTime. Also skip unexpected leading spaces in SetFTime, as these frequently cause problems with some strptime() implementations. Made by Gilles Detillieux from the Ht://Dig group. * Added the copy constructor. Tue Feb 26 10:39:17 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: Report about content-types with the totals Tue Feb 26 09:02:32 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changes for possible patch * configure.in: updated checks for getpeername_length_t with ht://Dig's With Solaris 2.6 there are some problems determining this type Mon Feb 18 17:46:08 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1' released. Mon Feb 18 17:26:16 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * General changes for building under GCC3 (thanks Marco!) Mon Feb 18 11:44:17 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * Cosmetic changes (regarding const-ness) Tue Feb 12 12:17:23 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * fixed another bug in the PHP interface after the ASP tags remove Mon Feb 11 08:59:48 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: removed .inc extension - moved to .inc.php * PHP interface: removed ASP tags * modified the documentation Sun Feb 10 18:21:49 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: very simple and pretty silly cookies report (just to have one!) * General cleaning for the 1.1 release Thu Feb 7 08:55:36 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Connection.[h,cc]: const String instead of char* for service parameter in Assign_Port() Method * htnet/HtHTTP.cc: gets control of Read_Line methods (return error when they fail) Wed Feb 6 12:03:54 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * Some changes to make code ready for the new release Tue Feb 5 18:47:32 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/Htmysql.h: removed inline methods * htcommon/SchedulerEntry.h: ditto * htlib/HtDateTime.h: ditto * php/include/german.inc: removed *** in descriptions Tue Feb 5 14:36:54 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/german.inc: added german language file (thanx Michael) * php/include/global.inc: ditto Fri Jan 25 10:37:54 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Transport.h: added const-ness to SetCredentials' string object Fri Jan 11 21:21:25 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtDefaults.cc: new attribute 'accept_language' * doc/*: ditto * installdirs/htcheck.conf: ditto Fri Jan 11 18:54:24 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.[h,cc]: management of the accept-language directive added and removed case sensitivity in header parsing (again) * htnet/Scheduler.[h,cc]: management of the accept-language directive added * htnet/HtCookie.cc: removed case sensitivity in header parsing * htcommon/URL.cc: cosmetic changes Fri Jan 4 15:09:45 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: removed case sensitivity in transfer-encoding Thu Jan 3 18:30:54 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/Server.[h,cc]: improved constructors * htcommon/_Server.[h,cc]: ditto Thu Jan 3 18:18:53 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/Server.[h,cc]: begun to improve constructors * htcommon/_Server.[h,cc]: ditto Thu Jan 3 08:47:42 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/URL.[h,cc]: improved constructors * htcommon/_Url.[h,cc]: ditto Wed Jan 2 09:13:26 CET 2002 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: Content Language added * php/include/[italian,english].inc.php: Content Language added Mon Dec 31 09:34:48 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showlink.php: fixed bug regarding the URLs references Sun Dec 30 15:40:27 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htHTTP.[h,cc]: management of the Content-Language directive for the response * _Url.h: added the attribute ContentLanguage and the relative access methods * Scheduler.cc: treatment of the attribute above * HtmysqlDB.cc: ditto Sat Dec 29 13:07:08 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookie.[h,cc]: new fields (srcURL and isDomainValid) and a more robust class with initialization list and copy constructor * htnet/HtCookieJar.[h,cc]: Management of the domain field of the cookie * htnet/HtCookieMemJar.cc: Management of the domain field of the cookie * htmysql/HtmysqlDB.cc: new fields (SrcUrl and DomainValid) in the Cookies table of the MySQL database Fri Dec 21 18:47:04 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changelog.old: splitted * installdirs/Makefile.am: management of default config file is ok * htmysql/HtmysqlDB.cc: changed size of the 'HTTPBytes' field of the 'htCheck' database table Tue Dec 18 16:43:21 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/functions.inc: GetURL() escape special HTML entities Mon Dec 17 12:45:29 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: WSM indexes more accurate Mon Dec 17 06:40:25 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: check for null pointer of cookie jar Sun Dec 16 19:48:10 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Connection.[h,cc]: synchronised with ht://Dig and a few cosmetic changes * htnet/HtHTTPBasic.[h,cc]: added from ht://Dig and modified * htnet/HtHTTP.[h,cc]: sync with ht://Dig and changes (cons and des) * htnet/Transport.[h,cc]: sync with ht://Dig and changes (cons and des) Sun Dec 16 10:30:23 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: WSM graphs and URL snipping * php/showlink.php: URL snipping * php/listlinks.php: ditto * php/listurls.php: ditto * php/qryurls.php: ditto * php/include/global.inc: attribute for snipping a URL name (def. value 70 chars) * php/include/italian.inc: some info about WSM indexes * php/include/english.inc: ditto * php/img/[in,out].png: Images the representation through bars graphs of Web Structure Mining indexes * php/img/Makefile.am: inserted images above * php/css/main.css: a few cosmetic changes Sat Dec 15 07:27:23 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: Cookies table has been now added * htcheck/Scheduler.[h,cc]: Cookies storage in the DB now featured * htnet/HtCookieJar.h: virtual functions for accessing cookies * htnet/HtCookieMemJar.[h,cc]: functions for accessing cookies Fri Dec 14 17:28:17 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.sgml: a few changes Fri Dec 14 17:12:19 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.[h,cc]: fixed bug regarding BASE tag, using the idea of Hal Roberts <hroberts@cyber.law.harvard.edu> Fri Dec 14 11:20:24 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: included Web Structure Mining indexes * php/include/italian.inc: ditto * php/include/english.inc: ditto Mon Jul 9 17:23:29 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1's development has now started * htcheck/Scheduler.[h,cc]: handling of malformed URLs * htcommon/SchedulerEntry.h: ditto * htmysql/HtmysqlDB.cc: ditto * htparsing/HtmlParser.cc: ditto Mon Jun 25 16:42:26 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.09b-klunk' released. Tue Jun 19 16:30:51 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/*.php: removed stupid and silly session control (with a cookie) Tue Jun 19 13:43:25 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/footer.inc: cosmetic changes regarding HTML output Tue Jun 19 08:52:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,cc]: some cleanings Tue Jun 19 08:46:47 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Scheduler.cc: now every URL which is in the start_url, is always fetched, even if it does not satisfy limit rules Fri Jun 15 17:44:01 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * acinclude.m4: moved custom settings for autoconf from aclocal.m4 in here * aclocal.m4: libtool 1.4 macros installed * regererated configure and all of the Makefile.in Fri Jun 15 15:20:27 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/global.inc: $dblist array for specifying a list of database names to be queried by ht://Check without performing a query to the MySQL server in order to get a list of possible ones. * php/index.php: changes above. * doc/htcheck.sgml: ditto Thu Jun 14 08:59:57 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/mysqldb.inc: Removed the error message when a database is not accessible from the web environment through the PHP scripts. This change was suggested by Izak Burger <iburger@cs.sun.ac.za>. Thu Jun 7 16:55:36 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/[header,footer].inc: removed a buggy TD Mon May 28 08:54:08 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/listurls.php: when a URL has not been retrieved for connection reasons a description of the problem is shown (the ConnStatus field). This feature was posted by Michael Stenitzer <stenitzer@eva.ac.at>. Mon May 28 08:39:48 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/showurl.php: fixed a bug with the server display Thu May 24 10:48:09 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/img/Javascript.png: a better image for javascript URLs. Mon May 14 15:14:39 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: ShowSummary for cookies is now displayed according to '-s' option (variable called 'stats') Sat May 12 12:55:37 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[h,cc]: Link table indexes are now created at the end of the crawl, through a class method * htcheck/Scheduler.cc: changes above Fri May 11 12:22:41 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * installdirs/htcheck.conf: url_index_length has been added in the default configuration file. Fri May 11 08:14:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/Htdefaults.cc: the 'url_index_length' attribute has been added. This now allows the user to control the length of the index for the Url field in the Schedule and Url tables. This attribute may affect the performance of the crawls, as long as the length of an index can either slow down or speed up the spidering process. * htmysql/HtmysqlDB.[h,cc]: the feature above has been committed * htcheck/Scheduler.cc: ditto * doc/htcheck.sgml: ditto Thu May 10 14:37:07 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: removed any SQL management inside the method that is due to check the HTML anchors. Code has been moved to HtmysqlDB class, in order to set anchors treatment as escape safe. * htmysql/HtmysqlDB.[h,cc]: changes above. Tue May 8 17:28:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.[h,cc]: more verbosity on destructor and deserialize variable is now a boolean. Tue May 8 13:26:36 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: Set the Idx_Url to the full length for speed reasons. Tue May 8 07:40:09 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: other 'escape' safe fields and fixed a bug regarding signle quote conversion. Mon May 7 17:49:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: Link anchors are now 'escape' safe Mon May 7 17:24:00 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed a bug regarding empty tags, like <script> Sun May 6 15:08:51 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: displays the tag correctly. Sun May 6 14:40:19 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/Link.[h,cc]: Javascript URLs (pseudo-protocol) are handled * htcommon/SchedulerEntry.[h,cc]: ditto * htcheck/Scheduler.cc: ditto * htcheck/HtmlParser.cc: ditto * htcommon/URL.cc: ditto * htmysql/HtmysqlDB.cc: Schedule URLs are now 'escape' safe * php/img/Javascript.png: image for Javascript URLs (pseudo-protocol) * php/img/Makefile.am: ditto * php/include/english.inc: Javascript URLs (pseudo-protocol) entry * php/include/italian.inc: ditto Sun May 6 12:48:28 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtCookieJar.h: ShowSummary - abstract method Sat May 5 23:17:20 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: improved checking system with an enumeration used for returning codes from internal functions. This way, errors can be caugth easily. * htcheck/Scheduler.cc: ditto and cookies summary * htnet/HtCookieJar.h: ShowSummary, printing cookies (to be derived) * htnet/HtCookieMemJar.[h,cc]: ShowSummary, printing cookies Sat May 5 18:54:33 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: TABLES definition has changed, trying to save storage space - and so speed up queries. Also cosmetic changes. Sat May 5 12:08:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: another bug fixed, making the parser stronger against '<' symbols (used as 'lower than' - instead of '<'); Fri May 4 09:47:19 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: MainSchedule object removed; now it's a dynamically created object (through 'new' statement); Thu May 3 23:27:18 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/SchedulerEntry.cc: Reset() method - fixed a possible bug * htcheck/Scheduler.cc: NULL -> 0 (C++ standard) Thu May 3 23:19:42 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: GetNextElement had a bug regarding the missing reset of the destination schedule object. Thu May 3 23:12:05 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Transport.[h,cc]: connection is now an optional object (it's a pointer technically speaking). Also NULL pointers have been converted to C++ standard (0) - ht://Dig compatible * htnet/HtHTTP.[h,cc]: ditto. Connection object is created and destroyed Thu May 3 17:08:11 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: MainSchedule is not a global variable anymore Thu May 3 16:58:49 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.cc: fixed a bug when there was a final '/' in an insert query, causing it to be confused by MySQL parser. Thanks Jay Wed May 2 09:29:03 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: there's a small bug in HTML parsing. This needs deeper checks! Mon Apr 30 17:55:37 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: exclude getopt_long if 'getopt.h' include file is not present in the system. Mon Apr 30 17:10:25 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: fixed bug regarding Configuration variable passing to ShowInfo function. It did not make possible to show the anchors summary. Mon Apr 30 16:19:42 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: POSIX standard as far as '--help' and '--version' are concerned (with getopt_long). Mon Apr 30 14:11:13 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed a bug with bad HTML documents (as raised by James P. Andersson). Mon Apr 30 11:56:38 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/_Url: better management of last modified date time, giving the chance to hide it if it has no meaning (not found documents, as suggested by Qianwen Zhang. * htcheck/Scheduler: modified for the reason above * php/showurl: modified for the changes above and for fixing a bug with the server display (released a patch for this). Mon Apr 30 11:48:07 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.0b9-klunk's development has now started Fri Apr 27 19:12:06 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.08b-muttley' released. Fri Apr 27 10:43:07 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: decalred the configuration dictionary. Bombing bug on Solaris throwing Arithmetic exception has been finally fixed. In italian we'd say: "Che stronzo che sono!" <better not translate it> Thu Apr 26 21:52:10 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/ParsedString.cc: taken from ht://Dig * htlib/Dictionary.cc: taken from ht://Dig * htlib/langinfo.h: removed * htlib/Makefile.am: removed langinfo.h Thu Apr 26 20:40:16 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/Scheduler.cc: when parsing a URL, if host is empty, no new server is created and stored in memory (and later in the database). These entries are stored in the database with a IDServer=0, therefore with no server. * htcommon/SchedulerEntry.[h,cc]: if given no server, set the IDServer to '0'. * php/showurl.php: query has changed in order to view a Schedule with no entry in the server table (for the changes above: like mailtos) * php/listurls.php: new order for all the documents * URL.cc: port control (if 0 is not displayed) Thu Apr 26 17:23:03 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/include/italian.inc.php: $strContentTypeResults was missing * php/include/english.inc.php: $strContentTypeResults was missing Thu Apr 26 16:50:17 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/HtDateTime: methods for handling MySQL timestamp values have been added (with MySQL 3.23.x previous method didn't store datetimes) * htmysql/HtmysqlDB.cc: now datetimes are stored correctly in MySQL 3.23.x * htlib/HtString.h: (const char *) method for conversion's been added * htnet/HtHTTP.cc: removed a warning Wed Apr 25 16:56:33 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcheck/htcheck.cc: now system information are retrieved through the 'uname' function. A configuration check is now performed in order to find the 'sys/utsname.h' include file. System info are useful for setting the HTTP user agent string. * htcheck/Scheduler.cc: method for setting the HTTP user agent string has been added. Now the user agent string is in this format: "ht://Check/version (machine)" (ht://Check can be changed through configuration file. * configure.in, include/htconfig.h.in: configuration checks for the above include file Fri Apr 20 09:55:57 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htparsing/HtmlParser.cc: fixed a bug regarding Sean's warning on http://www.ci.windsor.ca.us/3112.html and particularly this tag: <FORM METHOD="POST ACTION"="your CGI script goes here"> Fri Apr 13 10:57:21 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * now e-mail links are stored and marked * 'file:/' calls are now treated as errors * PHP interface modified for changes above * README: explanation of new LinkResult enumeration Thu Apr 12 18:34:49 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now services that are not 'http' are stored again (it was a bug) but not crawled. They are now in the DB as 'NotValidService' records of the Schedule table. Tue Apr 10 21:43:32 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htmysql/HtmysqlDB.[cc,h]: portability of load_defaults function. Now the string containing the group is not 'const' anymore, but we act on a non-const copy of it. Mer Mar 28 16:54:44 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * configure.in: sockets controls updated with ht://Dig's Wed Mar 28 16:53:30 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.0b8-muttley's development has now started Wed Mar 28 09:08:02 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.07b-anaconda' released. Wed Mar 28 08:50:09 CEST 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/htcheck.1: man page submitted by Marco Nenciarini <mnenciarini@prato.linux.it> has been added. Thanx Marco! * doc/htcheck.sgml: installation instructions modified, as well as thanks section. * NOTES: updated Thu Mar 22 13:38:50 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htcommon/HtURLCodec.[cc,h]: removed because not used * htcommon/HtSGMLCodec.[cc,h]: moved to htparsing lib * htlib/HtCodec.[cc,h]: moved to htparsing lib * htlib/HtWordCodec.[cc,h]: moved to htparsing lib * htlib/HtWordType.[cc,h]: moved to htparsing lib * htlib/WordType.[cc,h]: moved to htparsing lib * Makefile.am and .in: modified for changes above * All these changes make now possible to compile it all statically Wed Mar 21 11:38:58 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: I have committed the changes proposed by Stefan Brunner <stb@sil.at> and regarding PHP3 compatibility, includes paths and eval. Tue Mar 20 14:25:58 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * doc/Makefile.am: man page Sun Mar 18 14:01:56 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Transport.[h,cc], htnet/HtHTTP.cc: in order to modularize the net code the default parser string for the content-type has been added to the Transport class. * Scheduler.cc: modified for the changes above. Sat Mar 17 11:08:02 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * optimize_db: this attribute has been set to false by default. I hardly see its advantages, so probably I'll remove it soon! Sat Mar 17 10:30:56 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * libraries: built as package libs (not global libs, rather 'htcheck' libs, in order to avoid any conflicts with htdig's ones). * Updated Configuration.h, .cc to ht://Dig's. * Moved to libtool 1.3.5 Fri Mar 16 16:43:21 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * I have corrected libraries versions and installation Fri Mar 16 15:51:04 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/Makefile.am: changed HTDIG with HTCHECK for library version Fri Mar 16 09:20:45 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib: updated to ht://Dig tree * htlib/WordType.h, .cc: I have put the code from ht://Dig (htword library) in here. I also updated all of the HtWordType an HtWordCodec code. * Removed some warnings (I need a deeper check for load_mysql_defaults) Tue Mar 13 13:01:55 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/timegm.c: Blame on me! I forgot to add this file to the previous release! I'll try to fix this later. Tue Mar 13 10:14:15 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.0b7-anaconda's development has now started Mon Mar 12 21:11:50 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.06b-zizou' released. Thu Mar 8 15:27:04 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: removed an unuseful <else> Sun Mar 4 21:51:38 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htlib/HtDateTime.h, cc: substituted with ht://Dig one * htlib/timegm.cc: now our own version is provided (taken by ht://Dig) * htlib/Makefile.am, in: changed for timegm compilation Sun Mar 04 11:32:43 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: fixed a bug regarding <no header> with persistent connections enabled, but head call before the get one disabled. Wed Feb 28 12:27:34 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * cookies now support expire time * configuration option 'disable_cookies' has been added: Scheduler.cc and HtDefaults.cc and the manual have changed. * HtHTTP: support for cookies enabling/disabling has been added. Sun Feb 25 15:09:54 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Suppport for cookies now works pretty properly. Needs to be improved as far as subdomains are concerned. * Created abstract class HtCookieJar from which specific classes must derive * Created HtCookieMemJar class for memory storage of cookies Sat Feb 24 20:47:58 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet: Added the very first support for Cookies. Thanks to Robert LaFerla. * modified also other related files like Scheduler class Thu Feb 22 14:16:37 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: added images for link results Thu Feb 22 09:14:47 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: fixed bug with qryurls.php and listlinks.php, due to malformed querystring parameters (now urlencoded). Mon Feb 19 09:14:47 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * New link result type: 'NotAuthorized'. * Changes regard both the application and the interface Tue Feb 13 13:45:06 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Scheduler.cc: added LCASE() function for anchor comparison * acconfig.h: added MYSQL_LOAD_DEFAULTS_ARGTWO Tue Feb 13 09:49:36 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: added the logo to the distribution version Tue Feb 06 09:30:24 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP Interface: fixed a word in italian language file * PHP Interface: proper visualization of HTML statement in listlinks.php Mon Feb 05 12:53:40 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * A css file has been now included for the PHP interface * Results that often were larger than the screen size, have now been adjusted and they fit a window ... ;-) * configure and makefile have been changed in order to manage the new php/css directory Sun Jan 28 17:30:22 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * automatic language detection for the PHP interface, through the ACCEPT_LANGUAGE directive sent by the browser. * Documentation modified accordingly. Sat Jan 27 11:48:12 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.06b-zizou's development has now started * configure control for mysql's load_defaults' second argument's detection Wed Jan 25 16:18:40 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.05b-flukekelso' released. Tue Dec 19 17:06:44 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in ReadChunkedBody regarding Read_Line. Many thanks to Robert LaFerla. Mon Nov 27 16:13:10 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now url-like fields are all defined as BINARY, which means that all matches are now case sensitive. Mon Oct 23 18:11:11 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed a bug with redirected link (relative way) Mon Oct 16 18:01:13 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed credits and copyright info Fri Oct 13 17:05:31 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Restored previous situation (no mailto). Thu Oct 12 12:15:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now the "mailto:" are considered as URLs. URL.cc and HtmlParser.cc have been modified. Sun Oct 08 12:08:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HtmysqlDB.cc : further code cleanings. Sat Oct 07 09:58:54 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HtmysqlDB.cc : removed Filter String conversion. Fri Oct 06 19:31:23 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HTML <OBJECT> tag's "data" attribute is now parsed correctly Thu Oct 05 17:09:38 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Added default configuration installation Thu Oct 05 10:16:59 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Basic HTTP Authentication enabled. * Configuration attribute "authorization" added. * Documentation updated and default configuration file Fri Sep 29 13:52:27 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in showlink.php page, as Chad posted (referencing URL link not working). Mon Sep 18 13:38:17 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Modified the Scheduler retrieving order (keep track of the hop count) * Fixed a bug in the showurl.php script regarding the show of the documents with an IDReferer = 0. Fri Sep 15 12:54:07 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/index.php: get the first info from htCheck table Fri Sep 15 12:23:54 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * added php/qryurls.php for querying the URLs * modified php/index.php and the english and italian language file Tue Sep 12 10:51:44 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * configure.in: minor changes regarding the prefix settings. * htcheck.cc: usage() now shows help correctly * doc/htchec.sgml: other changes Mon Sep 11 14:16:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Cleaned up HtDefaults.cc file from ht://Dig unused attributes * doc/htchec.sgml: configuration attributes inserted and other changes Sun Sep 10 12:38:37 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changed URL class in order to correctly assign default ports to services * doc/htchec.sgml: further changes Fri Sep 08 21:15:51 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in the php script regarding the connection to the database. * doc/htcheck.sgml: added sections "How it works" and "Getting Started". Fri Sep 08 13:10:37 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in database initialization (as Edward reported). The affected class was HtmysqlQueryResult. The constructor didn't initialized the query type to "useresult". * Fixed compilation warning as Joakim reported in HtmysqlDB class, regarding load_defaults call. Thu Sep 07 12:38:09 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.05b-flukekelso's development has now started * added doc/htcheck.sgml containing the documentation * changed the configure script and the makefiles in order to install the html and the documentation too. * where: what Sun Mar 04 11:32:43 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: fixed a bug regarding <no header> with persistent connections enabled, but head call before the get one disabled. Wed Feb 28 12:27:34 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * cookies now support expire time * configuration option 'disable_cookies' has been added: Scheduler.cc and HtDefaults.cc and the manual have changed. * HtHTTP: support for cookies enabling/disabling had been added. Sun Feb 25 15:09:54 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Suppport for cookies now works pretty properly. Needs to be improved as far as subdomains are concerned. * Created abstract class HtCookieJar from which specific classes must derive * Created HtCookieMemJar class for memory storage of cookies Sat Feb 24 20:47:58 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet: Added the very first support for Cookies. Thanks to Robert LaFerla. * modified also other related files like Scheduler class Thu Feb 22 14:16:37 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: added images for link results Thu Feb 22 09:14:47 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: fixed bug with qryurls.php and listlinks.php, due to malformed querystring parameters (now urlencoded). Mon Feb 19 09:14:47 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * New link result type: 'NotAuthorized'. * Changes regard both the application and the interface Tue Feb 13 13:45:06 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * Scheduler.cc: added LCASE() function for anchor comparison * acconfig.h: added MYSQL_LOAD_DEFAULTS_ARGTWO Tue Feb 13 09:49:36 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP interface: added the logo to the distribution version Tue Feb 06 09:30:24 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * PHP Interface: fixed a word in italian language file * PHP Interface: proper visualization of HTML statement in listlinks.php Mon Feb 05 12:53:40 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * A css file has been now included for the PHP interface * Results that often were larger than the screen size, have now been adjusted and they fit a window ... ;-) * configure and makefile have been changed in order to manage the new php/css directory Sun Jan 28 17:30:22 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * automatic language detection for the PHP interface, through the ACCEPT_LANGUAGE directive sent by the browser. * Documentation modified accordingly. Sat Jan 27 11:48:12 CET 2001 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.06b-zizou's development has now started * configure control for mysql's load_defaults' second argument's detection Wed Jan 25 16:18:40 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version '1.1.05b-flukekelso' released. Tue Dec 19 17:06:44 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in ReadChunkedBody regarding Read_Line. Many thanks to Robert LaFerla. Mon Nov 27 16:13:10 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now url-like fields are all defined as BINARY, which means that all matches are now case sensitive. Mon Oct 23 18:11:11 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed a bug with redirected link (relative way) Mon Oct 16 18:01:13 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed credits and copyright info Fri Oct 13 17:05:31 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Restored previous situation (no mailto). Thu Oct 12 12:15:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now the "mailto:" are considered as URLs. URL.cc and HtmlParser.cc have been modified. Sun Oct 08 12:08:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HtmysqlDB.cc : further code cleanings. Sat Oct 07 09:58:54 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HtmysqlDB.cc : removed Filter String conversion. Fri Oct 06 19:31:23 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HTML <OBJECT> tag's "data" attribute is now parsed correctly Thu Oct 05 17:09:38 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Added default configuration installation Thu Oct 05 10:16:59 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Basic HTTP Authentication enabled. * Configuration attribute "authorization" added. * Documentation updated and default configuration file Fri Sep 29 13:52:27 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in showlink.php page, as Chad posted (referencing URL link not working). Mon Sep 18 13:38:17 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Modified the Scheduler retrieving order (keep track of the hop count) * Fixed a bug in the showurl.php script regarding the show of the documents with an IDReferer = 0. Fri Sep 15 12:54:07 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * php/index.php: get the first info from htCheck table Fri Sep 15 12:23:54 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * added php/qryurls.php for querying the URLs * modified php/index.php and the english and italian language file Tue Sep 12 10:51:44 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * configure.in: minor changes regarding the prefix settings. * htcheck.cc: usage() now shows help correctly * doc/htchec.sgml: other changes Mon Sep 11 14:16:35 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Cleaned up HtDefaults.cc file from ht://Dig unused attributes * doc/htchec.sgml: configuration attributes inserted and other changes Sun Sep 10 12:38:37 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changed URL class in order to correctly assign default ports to services * doc/htchec.sgml: further changes Fri Sep 08 21:15:51 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in the php script regarding the connection to the database. * doc/htcheck.sgml: added sections "How it works" and "Getting Started". Fri Sep 08 13:10:37 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug in database initialization (as Edward reported). The affected class was HtmysqlQueryResult. The constructor didn't initialized the query type to "useresult". * Fixed compilation warning as Joakim reported in HtmysqlDB class, regarding load_defaults call. Thu Sep 07 12:38:09 CET 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.05b-flukekelso's development has now started * added doc/htcheck.sgml containing the documentation * changed the configure script and the makefiles in order to install the html and the documentation too. Thu Sep 07 08:35:09 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 'htcheck-1.1.0b4-utero' released. Wed Sep 06 09:26:10 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed the bug with prefix in the configure script Tue Sep 05 09:53:20 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Removed db settings regarding the host, the user and the password * Now authentication is made through MySQL option files (that should reside into the home directory or in the /etc dir). Mon Sep 04 13:58:54 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changed permissions to htcheck.conf file to 600. Mon Sep 04 12:37:56 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * HTTP Proxy support enabled (to be tested) * 'http_proxy' configuration attribute now defines the HTTP proxy to be used. * 'http_proxy_exclude' now defines the URL to be excluded by the proxy gateway. * Added the 'db_host' configuration option (default: localhost) * Added the 'db_user' configuration option (default: "", current user) * Added the 'db_passwd' configuration option (default: "") Fri Sep 01 10:38:53 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * showlink.php: fixed a bug in the "anchor" visualization Wed Aug 28 10:38:53 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * URLRef.*: changed attributes to URL instead of String * HtmysqlDB.cc: inserted date-time info on optimization Mon Aug 28 16:52:59 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The PHP interface for searching through the links has been improved. Now we can see the broken links and the anchor not found, the redirected URLs, etc ... Mon Aug 28 12:21:27 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * More accurated running information are now stored in the htCheck table * Now 'top' anchors are considered valid Mon Aug 28 10:17:43 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed a bug with anchors check * Sources have now been cleaned from other the compilation warnings Thu Aug 24 16:46:13 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * listlinks.php: added regular expression management and help strings. Thu Aug 24 12:53:05 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Fixed bug with the default prefix configuration file (configure.in) Wed Aug 23 10:56:00 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 1.1.04b-utero's development has now started * Sources have now been cleaned from most of the compilation warnings Tue Aug 22 10:56:00 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * version 'htcheck-1.1.0b3-utero' released. Tue Aug 22 09:57:19 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The filter in the link list page now works good, but with large databases it is quite slow. Need improvements. Mon Aug 21 17:51:40 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * List of links php page added, with filter capabilities Mon Aug 21 09:37:50 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Database dropping php page added Fri Aug 18 12:44:03 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Changed the broken link summary (more complete now) * Added the 'anchor not found' summary * Added the 'htCheck' table containing general info of the crawl * For the same reasons, the RunInfo class has been created * Added the configuration option 'summary_anchor_not_found' Thu Aug 17 15:47:58 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.cc: ask again for a document after a <NoHeader> response is given by the HTTPRequest() method. Thu Aug 17 12:25:33 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * htnet/HtHTTP.*, htnet/Transport.* : fixed bug with HTTP/1.1 management. Now the "Connection: close" directive is handled and force the connection to be closed. So the bug has now been fixed. Fixed other minor bugs and strings initializations. Thu Aug 17 09:19:09 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Improvements in the Scheduler class * Added 'optimize_db' configuration parameter for optimizing the tables of the database. Default is true. * Added 'sql_big_table_option' configuration parameter for performing huge queries. Default is true. * Optimization of the database (Htmysql.h as virtual method, HtmysqlDB.*) * Set the SQL_BIG_TABLE_OPTION with the SetSQLBigTableOption() method. Ditto. * Beginning explanations in the README file about tables Wed Aug 16 13:22:27 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Now HTML anchors that were not found are checked and the LinkResult field in the Link table is now set properly. * The temporary table TmpAnchors is created and then dropped. It lets us check for the anchors. Mon Aug 14 18:04:51 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The SetLinkResults() method has now been added to the Scheduler class. It updates the info regarding a link, and set it to ok, broken or redirected so far. Now only the anchor case is not managed yet. Mon Aug 14 17:15:31 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * the configuration parameter max_hop_count has been now added * the LinkResult field has been added to the Link table. It contains info about the link, if it's ok, broken, redirected or the anchor (if it's the case) hasn't been found. * the LinkType now handles the redirection case too. * The Status field of the Schedule table now is more accurated (it says why a URL has not been retrieved, for example because of the BadQueryString settings or the MaxHopCount). * Now redirections (with the location HTTP header) are treated as links, special links with TagPosition and AttrPosition set to 0. Mon Aug 14 13:19:26 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * showurls.php: now shows the location field too * a bug in the php scripts installation has been fixed. Mon Aug 14 12:34:29 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The configure and make system has been modified in order to manage the php scripts. A new configuration option has been issued (--with-php-dir=DIR) and the make install procedure now look after the scripts too. Indeed, I forgot to include them into last release (1.1.0b2). Thanks to Bud Rogers. Thu Aug 10 12:34:35 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * 'IDReferer' field added to the Schedule table. * 'Hop Count' field added to the Schedule table. * The referer management now works fine * The hop counting now works good. Soon I'll put a configuration attribute for controlling the scan to a fixed number of hops from the starting page. Tue Aug 08 16:12:22 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Link class : there's a field now containing the anchor reference, for those URL created by <A href="xxx#anchorname">. It contains the 'anchorname' part. * HtmysqlDB.cc: modified for managing the new Link table field. * HtmlParser.cc: now it handles the anchor management (FindLink () method). * SQL: in this file I wanna put all the SQL statement I find useful. Mon Aug 07 17:15:01 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The PHP interface is growing up. Now it's possibile to see the URL properties and the link info. Every outgoing and ingoing link related to a URL is now shown. And it works pretty well, and I think it could be very useful for testing and getting more solid the program. Now there's the italian language customisation file too ... GaNzooo !!! Thu Aug 03 18:19:05 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * The PHP web interface's development goes on. Now There's the chance to add multiple languages on it. There's now the include/english.inc file which contains english sentences. An italian one is going to come soon. Thu Jul 27 16:44:31 CEST 2000 Gabriele Bartolini <angusgb@users.sourceforge.net> * Created 'php' folder for querying any database that has been created Thu Jun 29 09:49:36 CEST 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * HtHTTP: parsing only of text/html files. Thu May 18 17:21:15 CEST 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Bug with store_only_links: tags without attributes weren't stored Fri May 12 13:55:05 CEST 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Tagged branch htcheck-1-1 * Tagged version htcheck-1-1-0b1-utero Fri May 12 12:48:43 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Released 1.1.0b1-utero version * other small bugs fixed Fri May 12 08:53:27 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Fixed some bugs in URL weight calculation Thu May 11 18:06:53 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added a method for calculating the "weight" of a URL. It's Scheduler::CalculateSizeAdd(). Thu May 11 10:06:53 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added an index for the LinkType field into the Link table * Added the field SizeAdd to the Url table for calculating the weight of a document when is loaded by the user (for example images weight are counted). Tue May 09 14:17:47 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added a new info to the Link table: LinkType. Now can know if a link is done directly when the page is loaded (ex. images or sounds) or not (normal link). This let us know the "weight" of a page. Tue May 09 08:50:59 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Fixed tasks of -s and -v options. -s now controls the show of the results of the checking. If not set, htcheck crawls only. Mon May 08 15:17:47 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added "IMG lowsrc" link parsing to HtmlParser.cc Fri Apr 28 11:37:37 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * fixed a bug in configure.in for MySQL detection * removed -U option for specifying the starting url * fixed some bugs regarding the show of the result of ContentTypes Thu Apr 27 11:07:52 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added a new Status for the Scheduler: Checked. * Added a new field in the Url table: ConnStatus. It stores the result of the connection attempt in order to retrieve the Url. * Added other results like: ContentTypes shown ordered by servers and Status codes. * Other small bugs fixed. Wed Apr 26 13:47:51 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Now htcheck can give results. For now only broken links. It checks if a database with the same name exists. If yes it gives you the results stored in the DB. In order to clean it you gotta use the -i option. Wed Apr 26 11:00:26 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Modified Configuration.h and HtWordType in order to compile with gcc 2.95.2 . Some warnings stays still up ... Fri Apr 21 13:45:42 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added the storing of the TransferEncoding for every Url * Filled in the htcheck.conf file Fri Apr 21 10:45:33 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added installdirs for htcheck.conf * Tag: htcheck-1.1.0b-utero version * Removed htnet/HtFile.h * Modified files that call 'defaults.h' header Fri Apr 21 09:00:15 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Modified configure.in and aclocal.m4 for a better mysql check. * Added COPYING file * Modified README file * Added DEVELOPER file * Added INSTALL file * Added header for GPL in all ht://Check files * Renamed htcommon/defaults.* to htcommon/HtDefaults.* * Removed htparsing/Parsable.* and htparsing/HTML.* Thu Apr 20 10:24:42 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Added configuration attribute: store_only_links. If set to true htcheck stores only those attributes and tags that produce a link. If false, stores every tag and attribute. Default: true. * Removed the -i option effect. Every database is erased by default. * bad_extensions in now cleaned up by default. Wed Apr 19 12:24:06 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Created Index for MySQL tables. This really improves performances. Mon Apr 17 18:08:53 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Improved "crawling" system. * Now we store only the tags we want (I can issue an attribute). Fri Apr 14 11:35:48 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Second big crawl. Added SIGINT control. Now it stores only tags with a link included (soon a configuration option available). * Faster retrieving of next Url (to be changed). Mon Apr 10 11:08:23 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Fixed a bug in HtmlParser.cc when trying to parse a wrong tag like <align = center>. Mon Apr 03 16:30:45 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * First working version Wed Mar 29 17:43:10 2000 Gabriele Bartolini <g.bartol@comune.prato.it> * Created functions for insert HtmlStatement, HtmlAttribute and Link objects into the DB. Fri Oct 07 13:49:02 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Store Url info into the DB. Wed Oct 06 13:01:02 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Added HtmlStatement and HtmlAttribute classes Wed Oct 06 09:42:53 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * URL, _Url, _Server, Server, SchedulerEntry now to htcommon Tue Oct 05 10:42:53 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * URL, _Url, Server, _Server now belong to htnet Mon Oct 04 12:37:14 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Fixed CHUNK problem. Now inserted a flush() method into io class Tue Sep 28 08:00:00 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Created htnet library and directory Mon Sep 27 10:00:00 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Updated files of htlib as htdig changes Fri Sep 17 14:00:00 1999 Gabriele Bartolini <g.bartol@comune.prato.it> * Imported sources ����������������htcheck-2.0.0~rc1.orig/aclocal.m4�������������������������������������������������������������������0000644�0000000�0000000�00001031553�11245527330�013425� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# generated automatically by aclocal 1.10.2 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, [m4_warning([this file was generated for autoconf 2.63. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # =========================================================================== # http://autoconf-archive.cryp.to/ax_lib_mysql.html # =========================================================================== # # SYNOPSIS # # AX_LIB_MYSQL([MINIMUM-VERSION]) # # DESCRIPTION # # This macro provides tests of availability of MySQL client library of # particular version or newer. # # AX_LIB_MYSQL macro takes only one argument which is optional. If there # is no required version passed, then macro does not run version test. # # The --with-mysql option takes one of three possible values: # # no - do not check for MySQL client library # # yes - do check for MySQL library in standard locations (mysql_config # should be in the PATH) # # path - complete path to mysql_config utility, use this option if # mysql_config can't be found in the PATH # # This macro calls: # # AC_SUBST(MYSQL_CFLAGS) # AC_SUBST(MYSQL_LDFLAGS) # AC_SUBST(MYSQL_VERSION) # # And sets: # # HAVE_MYSQL # # LAST MODIFICATION # # 2008-04-12 # # COPYLEFT # # Copyright (c) 2008 Mateusz Loskot <mateusz@loskot.net> # # 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. AC_DEFUN([AX_LIB_MYSQL], [ AC_ARG_WITH([mysql], AC_HELP_STRING([--with-mysql=@<:@ARG@:>@], [use MySQL client library @<:@default=yes@:>@, optionally specify path to mysql_config] ), [ if test "$withval" = "no"; then want_mysql="no" elif test "$withval" = "yes"; then want_mysql="yes" else want_mysql="yes" MYSQL_CONFIG="$withval" fi ], [want_mysql="yes"] ) MYSQL_CFLAGS="" MYSQL_LDFLAGS="" MYSQL_VERSION="" dnl dnl Check MySQL libraries (libpq) dnl if test "$want_mysql" = "yes"; then if test -z "$MYSQL_CONFIG" -o test; then AC_PATH_PROG([MYSQL_CONFIG], [mysql_config], [no]) fi if test "$MYSQL_CONFIG" != "no"; then AC_MSG_CHECKING([for MySQL libraries]) MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`" MYSQL_VERSION=`$MYSQL_CONFIG --version` AC_DEFINE([HAVE_MYSQL], [1], [Define to 1 if MySQL libraries are available]) found_mysql="yes" AC_MSG_RESULT([yes]) else found_mysql="no" AC_MSG_RESULT([no]) fi fi dnl dnl Check if required version of MySQL is available dnl mysql_version_req=ifelse([$1], [], [], [$1]) if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then AC_MSG_CHECKING([if MySQL version is >= $mysql_version_req]) dnl Decompose required version string of MySQL dnl and calculate its number representation mysql_version_req_major=`expr $mysql_version_req : '\([[0-9]]*\)'` mysql_version_req_minor=`expr $mysql_version_req : '[[0-9]]*\.\([[0-9]]*\)'` mysql_version_req_micro=`expr $mysql_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` if test "x$mysql_version_req_micro" = "x"; then mysql_version_req_micro="0" fi mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \ \+ $mysql_version_req_minor \* 1000 \ \+ $mysql_version_req_micro` dnl Decompose version string of installed MySQL dnl and calculate its number representation mysql_version_major=`expr $MYSQL_VERSION : '\([[0-9]]*\)'` mysql_version_minor=`expr $MYSQL_VERSION : '[[0-9]]*\.\([[0-9]]*\)'` mysql_version_micro=`expr $MYSQL_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'` if test "x$mysql_version_micro" = "x"; then mysql_version_micro="0" fi mysql_version_number=`expr $mysql_version_major \* 1000000 \ \+ $mysql_version_minor \* 1000 \ \+ $mysql_version_micro` mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number` if test "$mysql_version_check" = "1"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi fi AC_SUBST([MYSQL_VERSION]) AC_SUBST([MYSQL_CFLAGS]) AC_SUBST([MYSQL_LDFLAGS]) ]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 52 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac _LT_REQUIRED_DARWIN_CHECKS AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # -------------------------- # Check for some things on darwin AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. echo "int foo(void){return 1;}" > conftest.c $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib ${wl}-single_module conftest.c if test -f libconftest.dylib; then lt_cv_apple_cc_single_mod=yes rm -rf libconftest.dylib* fi rm conftest.c fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[0123]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil="~$DSYMUTIL \$lib || :" else _lt_dsymutil= fi ;; esac ]) # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<EOF [$]* EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" m4_if($1,[],[ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognize shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognize a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_PROG_LD_GNU ])# AC_PROG_LD # AC_PROG_LD_GNU # -------------- AC_DEFUN([AC_PROG_LD_GNU], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac]) with_gnu_ld=$lt_cv_prog_gnu_ld ])# AC_PROG_LD_GNU # AC_PROG_LD_RELOAD_FLAG # ---------------------- # find reload flag for linker # -- PORTME Some linkers may need a different reload flag. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, [lt_cv_ld_reload_flag='-r']) reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac ])# AC_PROG_LD_RELOAD_FLAG # AC_DEPLIBS_CHECK_METHOD # ----------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], [AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" if test "$GXX" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], [AC_REQUIRE([LT_AC_PROG_SED])dnl dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext <<EOF int a; void foo (void) { a = 0; } EOF ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; EOF ],[$1],[F77],[cat > conftest.$ac_ext <<EOF subroutine foo implicit none integer*4 a a=0 return end EOF ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF public class foo { private int a; public void bar (void) { a = 0; } }; EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then _LT_AC_TAGVAR(predep_objects, $1)="$p" else _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then _LT_AC_TAGVAR(postdep_objects, $1)="$p" else _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $rm -f confest.$objext _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi # PORTME: override above test on systems where it is broken ifelse([$1],[CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_AC_TAGVAR(predep_objects,$1)= _LT_AC_TAGVAR(postdep_objects,$1)= _LT_AC_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then create an initial libtool script # with a default configuration from the untagged config vars. Otherwise # add code to config.status for appending the configuration named by # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _LT_AC_TAGVAR(predep_objects, $1) \ _LT_AC_TAGVAR(postdep_objects, $1) \ _LT_AC_TAGVAR(predeps, $1) \ _LT_AC_TAGVAR(postdeps, $1) \ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ _LT_AC_TAGVAR(hardcode_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(fix_srcfile_path, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\[$]0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` ;; esac ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([LT_AC_PROG_SED]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat <<EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <<EOF >> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include <windows.h> # #undef WIN32_LEAN_AND_MEAN # #include <stdio.h> # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include <cygwin/cygwin_dll.h> # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # Cheap backport of AS_EXECUTABLE_P and required macros # from Autoconf 2.59; we should not use $as_executable_p directly. # _AS_TEST_PREPARE # ---------------- m4_ifndef([_AS_TEST_PREPARE], [m4_defun([_AS_TEST_PREPARE], [if test -x / >/dev/null 2>&1; then as_executable_p='test -x' else as_executable_p='test -f' fi ])])# _AS_TEST_PREPARE # AS_EXECUTABLE_P # --------------- # Check whether a file is executable. m4_ifndef([AS_EXECUTABLE_P], [m4_defun([AS_EXECUTABLE_P], [AS_REQUIRE([_AS_TEST_PREPARE])dnl $as_executable_p $1[]dnl ])])# AS_EXECUTABLE_P # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10.2], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10.2])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 4 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [# Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 13 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar <conftest.tar]) grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) �����������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/configure��������������������������������������������������������������������0000755�0000000�0000000�00003203004�11245527332�013470� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.63. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell bug-autoconf@gnu.org about your system, echo including any error possibly output before this message. echo This can help us improve future autoconf versions. echo Configuration will now proceed without shell functions. } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<EOF $* EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 </dev/null 6>&1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_default_prefix=/opt/htcheck # Factoring default headers for most tests. ac_includes_default="\ #include <stdio.h> #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef STDC_HEADERS # include <stdlib.h> # include <stddef.h> #else # ifdef HAVE_STDLIB_H # include <stdlib.h> # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include <memory.h> # endif # include <string.h> #endif #ifdef HAVE_STRINGS_H # include <strings.h> #endif #ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif #ifdef HAVE_STDINT_H # include <stdint.h> #endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif" ac_header_list= ac_func_list= ac_subst_vars='LTLIBOBJS LIBOBJS EXTRA_LIBS MYSQL_LDFLAGS MYSQL_CFLAGS MYSQL_VERSION MYSQL_CONFIG LIBTOOL ac_ct_F77 FFLAGS F77 CXXCPP NMEDIT DSYMUTIL RANLIB AR ECHO SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC DEBUG_FALSE DEBUG_TRUE HTML_DIR DOC_DIR DB_NAME_PREPEND HTNOTIFY_FALSE HTNOTIFY_TRUE DEFAULT_DB_CHARSET URL_DB_SIZE DB_NAME DEFAULT_CONFIG_FILE CONFIG_DIR MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE HTCHECK_MICRO_VERSION HTCHECK_MINOR_VERSION HTCHECK_MAJOR_VERSION am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode with_config_dir with_default_config_file with_db_name with_db_url_max_size with_db_charset enable_htnotify with_db_name_prepend with_doc_dir with_html_dir enable_debug enable_dependency_tracking enable_shared enable_static enable_fast_install with_gnu_ld enable_libtool_lock with_pic with_tags with_mysql ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { $as_echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { $as_echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 { (exit 1); exit 1; }; } ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { $as_echo "$as_me: error: working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-htnotify Turn on htdig notification storage --enable-debug Turn on debugging --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-config-dir=DIR where your config directory is default=$ac_default_prefix/conf --with-default-config-file=FILE Where ht://Check will look for a configuration file default=$ac_default_prefix/conf/htcheck.conf --with-db-name=NAME database name default=htcheck --with-db-url-max-size=NUMBER length of the database fields for URLs default=255 --with-db-charset=CHARSET database character set default=utf8 --with-db-name-prepend=NAME database name string to be prepended default=[empty] --with-doc-dir=DIR where you want to install the documentation files default=$ac_default_prefix/doc --with-html-dir=DIR where you want to install the html documentation files default=$ac_default_prefix/doc/html --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-mysql=[ARG] use MySQL client library [default=yes], optionally specify path to mysql_config Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi ac_header_list="$ac_header_list sys/time.h" ac_header_list="$ac_header_list unistd.h" ac_func_list="$ac_func_list alarm" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu VERSION=`cat ${srcdir}/.version` am__api_version='1.10' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 $as_echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:$LINENO: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=htcheck VERSION=$VERSION cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' HTCHECK_MAJOR_VERSION=`expr $VERSION : '\([0-9][0-9]*\)'` HTCHECK_MINOR_VERSION=`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'` HTCHECK_MICRO_VERSION=`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'` ac_config_headers="$ac_config_headers include/config.h" # Initialize maintainer mode { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE # Get any --with or --disable flags now # This looks a little messy, but it's word-wrapping problems :-( # Check whether --with-config-dir was given. if test "${with_config_dir+set}" = set; then withval=$with_config_dir; CONFIG_DIR="$withval" else CONFIG_DIR='${prefix}/conf' fi # Check whether --with-default-config-file was given. if test "${with_default_config_file+set}" = set; then withval=$with_default_config_file; DEFAULT_CONFIG_FILE="$withval" else DEFAULT_CONFIG_FILE='${CONFIG_DIR}/htcheck.conf' fi # Check whether --with-db-name was given. if test "${with_db_name+set}" = set; then withval=$with_db_name; DB_NAME="$withval" else DB_NAME="htcheck" fi # Check whether --with-db-url-max-size was given. if test "${with_db_url_max_size+set}" = set; then withval=$with_db_url_max_size; URL_DB_SIZE=$withval else URL_DB_SIZE=255 fi # Check whether --with-db-charset was given. if test "${with_db_charset+set}" = set; then withval=$with_db_charset; DEFAULT_DB_CHARSET="$withval" else DEFAULT_DB_CHARSET="utf8" fi # Check whether --enable-htnotify was given. if test "${enable_htnotify+set}" = set; then enableval=$enable_htnotify; case "${enableval}" in yes) htnotify=true ;; no) htnotify=false ;; *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-htnotify" >&5 $as_echo "$as_me: error: bad value ${enableval} for --enable-htnotify" >&2;} { (exit 1); exit 1; }; } ;; esac else htnotify=false fi if test x$htnotify = xtrue; then HTNOTIFY_TRUE= HTNOTIFY_FALSE='#' else HTNOTIFY_TRUE='#' HTNOTIFY_FALSE= fi # Check whether --with-db-name-prepend was given. if test "${with_db_name_prepend+set}" = set; then withval=$with_db_name_prepend; DB_NAME_PREPEND="$withval" else DB_NAME_PREPEND="" fi # Check whether --with-doc-dir was given. if test "${with_doc_dir+set}" = set; then withval=$with_doc_dir; DOC_DIR="$withval" else DOC_DIR='${prefix}/doc' fi # Check whether --with-html-dir was given. if test "${with_html_dir+set}" = set; then withval=$with_html_dir; HTML_DIR="$withval" else HTML_DIR='${DOC_DIR}/html' fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; case "${enableval}" in yes) debug="true" ;; no) debug="false" ;; *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 $as_echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} { (exit 1); exit 1; }; } ;; esac else debug="false" fi if test "$debug" = "true"; then DEBUG_TRUE= DEBUG_FALSE='#' else DEBUG_TRUE='#' DEBUG_FALSE= fi echo configuring ht://Check version $VERSION DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } if test -z "$ac_file"; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 $as_echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi fi fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi rm -f conftest$ac_cv_exeext { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:$LINENO: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.h> int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <string.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ctype.h> #include <stdlib.h> #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_minix_config_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 $as_echo_n "checking for minix/config.h... " >&6; } if test "${ac_cv_header_minix_config_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 $as_echo "$ac_cv_header_minix_config_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 $as_echo_n "checking minix/config.h usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <minix/config.h> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 $as_echo_n "checking minix/config.h presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <minix/config.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 $as_echo_n "checking for minix/config.h... " >&6; } if test "${ac_cv_header_minix_config_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_minix_config_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 $as_echo "$ac_cv_header_minix_config_h" >&6; } fi if test "x$ac_cv_header_minix_config_h" = x""yes; then MINIX=yes else MINIX= fi if test "$MINIX" = yes; then cat >>confdefs.h <<\_ACEOF #define _POSIX_SOURCE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define _POSIX_1_SOURCE 2 _ACEOF cat >>confdefs.h <<\_ACEOF #define _MINIX 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if test "${ac_cv_safe_to_define___extensions__+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_safe_to_define___extensions__=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && cat >>confdefs.h <<\_ACEOF #define __EXTENSIONS__ 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define _ALL_SOURCE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define _GNU_SOURCE 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define _POSIX_PTHREAD_SEMANTICS 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define _TANDEM_SOURCE 1 _ACEOF ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:$LINENO: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 $as_echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 $as_echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${lt_cv_path_SED+set}" = set; then $as_echo_n "(cached) " >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { $as_echo "$as_me:$LINENO: result: $SED" >&5 $as_echo "$SED" >&6; } # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$lt_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:$LINENO: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 $as_echo_n "checking for BSD-compatible nm... " >&6; } if test "${lt_cv_path_NM+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 6936 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_cc_needs_belf=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" for ac_header in dlfcn.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_F77+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { $as_echo "$as_me:$LINENO: result: $F77" >&5 $as_echo "$F77" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 $as_echo "$ac_ct_F77" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 $as_echo_n "checking whether $F77 accepts -g... " >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then $as_echo_n "(cached) " >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 $as_echo "$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi if test $ac_compiler_gnu = yes; then G77=yes else G77= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:$LINENO: result: none" >&5 $as_echo "none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat <<EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <<EOF >> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:$LINENO: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } fi { $as_echo "$as_me:$LINENO: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if test "${lt_cv_objdir+set}" = set; then $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:$LINENO: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:$LINENO: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. echo "int foo(void){return 1;}" > conftest.c $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib ${wl}-single_module conftest.c if test -f libconftest.dylib; then lt_cv_apple_cc_single_mod=yes rm -rf libconftest.dylib* fi rm conftest.c fi fi { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_ld_exported_symbols_list=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[0123]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil="~$DSYMUTIL \$lib || :" else _lt_dsymutil= fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9048: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9052: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9338: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9342: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9442: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:9446: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) allow_undefined_flag="$_lt_dar_allow_undefined" archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 $as_echo_n "checking for shl_load... " >&6; } if test "${ac_cv_func_shl_load+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 $as_echo "$ac_cv_func_shl_load" >&6; } if test "x$ac_cv_func_shl_load" = x""yes; then lt_cv_dlopen="shl_load" else { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 $as_echo_n "checking for dlopen... " >&6; } if test "${ac_cv_func_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 $as_echo "$ac_cv_func_dlopen" >&6; } if test "x$ac_cv_func_dlopen" = x""yes; then lt_cv_dlopen="dlopen" else { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_svld_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_dld_link=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF #line 11824 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF #line 11924 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ compiler_lib_search_dirs \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ fix_srcfile_path \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { $as_echo "$as_me:$LINENO: creating $ofile" >&5 $as_echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= compiler_lib_search_dirs_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$lt_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:$LINENO: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" if test "$GXX" = yes ; then output_verbose_link_cmd='echo' archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else ld_shlibs_CXX=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <<EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext compiler_lib_search_dirs_CXX= if test -n "$compiler_lib_search_path_CXX"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14333: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14337: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14437: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14441: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 $as_echo "$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ compiler_lib_search_dirs_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 $as_echo "$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16020: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16024: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_F77=yes fi else lt_cv_prog_compiler_static_works_F77=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16124: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16128: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <<EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <<EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) allow_undefined_flag_F77="$_lt_dar_allow_undefined" archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 $as_echo "$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 $as_echo "$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 $as_echo "$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ compiler_lib_search_dirs_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ fix_srcfile_path_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18321: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18325: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; rdos*) lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18611: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18615: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_GCJ=yes fi else lt_cv_prog_compiler_static_works_GCJ=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18715: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18719: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <<EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix[3-9]*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <<EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) allow_undefined_flag_GCJ="$_lt_dar_allow_undefined" archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_GCJ=no fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 $as_echo "$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 $as_echo "$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 $as_echo "$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ compiler_lib_search_dirs_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ fix_srcfile_path_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm -r conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ compiler_lib_search_dirs_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ fix_srcfile_path_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion { $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5 $as_echo_n "checking maximum warning verbosity option... " >&6; } if test -n "$CXX" then if test "$GXX" = "yes" then ac_compile_warnings_opt='-Wall' fi CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" fi if test -n "$CC" then if test "$GCC" = "yes" then ac_compile_warnings_opt='-Wall' fi CFLAGS="$CFLAGS $ac_compile_warnings_opt" ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" fi { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5 $as_echo "$ac_compile_warnings_msg" >&6; } unset ac_compile_warnings_msg unset ac_compile_warnings_opt { $as_echo "$as_me:$LINENO: checking adding -fno-rtti to g++" >&5 $as_echo_n "checking adding -fno-rtti to g++... " >&6; } if test -n "$CXX" then if test "$GXX" = "yes" then CXXFLAGS_save="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fno-rtti" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="$CXXFLAGS_save" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } #NO_EXCEPTIONS # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_AR+set}" = set; then $as_echo_n "(cached) " >&6 else case $AR in [\\/]* | ?:[\\/]*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" ;; esac fi AR=$ac_cv_path_AR if test -n "$AR"; then { $as_echo "$as_me:$LINENO: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sh", so it can be a program name with args. set dummy sh; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SHELL+set}" = set; then $as_echo_n "(cached) " >&6 else case $SHELL in [\\/]* | ?:[\\/]*) ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/sh" ;; esac fi SHELL=$ac_cv_path_SHELL if test -n "$SHELL"; then { $as_echo "$as_me:$LINENO: result: $SHELL" >&5 $as_echo "$SHELL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_SED+set}" = set; then $as_echo_n "(cached) " >&6 else case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed" ;; esac fi SED=$ac_cv_path_SED if test -n "$SED"; then { $as_echo "$as_me:$LINENO: result: $SED" >&5 $as_echo "$SED" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --with-mysql was given. if test "${with_mysql+set}" = set; then withval=$with_mysql; if test "$withval" = "no"; then want_mysql="no" elif test "$withval" = "yes"; then want_mysql="yes" else want_mysql="yes" MYSQL_CONFIG="$withval" fi else want_mysql="yes" fi MYSQL_CFLAGS="" MYSQL_LDFLAGS="" MYSQL_VERSION="" if test "$want_mysql" = "yes"; then if test -z "$MYSQL_CONFIG" -o test; then # Extract the first word of "mysql_config", so it can be a program name with args. set dummy mysql_config; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then $as_echo_n "(cached) " >&6 else case $MYSQL_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no" ;; esac fi MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG if test -n "$MYSQL_CONFIG"; then { $as_echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5 $as_echo "$MYSQL_CONFIG" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test "$MYSQL_CONFIG" != "no"; then { $as_echo "$as_me:$LINENO: checking for MySQL libraries" >&5 $as_echo_n "checking for MySQL libraries... " >&6; } MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`" MYSQL_VERSION=`$MYSQL_CONFIG --version` cat >>confdefs.h <<\_ACEOF #define HAVE_MYSQL 1 _ACEOF found_mysql="yes" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else found_mysql="no" { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi mysql_version_req= if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then { $as_echo "$as_me:$LINENO: checking if MySQL version is >= $mysql_version_req" >&5 $as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; } mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'` mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'` mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` if test "x$mysql_version_req_micro" = "x"; then mysql_version_req_micro="0" fi mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \ \+ $mysql_version_req_minor \* 1000 \ \+ $mysql_version_req_micro` mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'` mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'` mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` if test "x$mysql_version_micro" = "x"; then mysql_version_micro="0" fi mysql_version_number=`expr $mysql_version_major \* 1000000 \ \+ $mysql_version_minor \* 1000 \ \+ $mysql_version_micro` mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number` if test "$mysql_version_check" = "1"; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi # Checks for libraries. # Checks for header files. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.h> int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <string.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdlib.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <ctype.h> #include <stdlib.h> #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if test "${ac_cv_header_time+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/types.h> #include <sys/time.h> #include <time.h> int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_time=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\_ACEOF #define TIME_WITH_SYS_TIME 1 _ACEOF fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/types.h> #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if test "${ac_cv_search_opendir+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_search_opendir=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if test "${ac_cv_search_opendir+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_search_opendir=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_opendir+set}" = set; then break fi done if test "${ac_cv_search_opendir+set}" = set; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi # More header checks--here use C++ ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 $as_echo_n "checking whether the compiler implements namespaces... " >&6; } if test "${ac_cv_cxx_namespaces+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ namespace Outer { namespace Inner { int i = 0; }} int main () { using namespace Outer::Inner; return i; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_namespaces=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_namespaces=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 $as_echo "$ac_cv_cxx_namespaces" >&6; } if test "$ac_cv_cxx_namespaces" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_NAMESPACES /**/ _ACEOF fi { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } if test "${ac_cv_cxx_have_std+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <iostream> #include <map> #include <iomanip> #include <cmath> #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_have_std=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_have_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std" >&5 $as_echo "$ac_cv_cxx_have_std" >&6; } if test "$ac_cv_cxx_have_std" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STD /**/ _ACEOF fi for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h sys/utsname.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_fstream+set}" = set; then { $as_echo "$as_me:$LINENO: checking for fstream" >&5 $as_echo_n "checking for fstream... " >&6; } if test "${ac_cv_header_fstream+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fstream" >&5 $as_echo "$ac_cv_header_fstream" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking fstream usability" >&5 $as_echo_n "checking fstream usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <fstream> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking fstream presence" >&5 $as_echo_n "checking fstream presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <fstream> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: fstream: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: fstream: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: fstream: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: fstream: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: fstream: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: fstream: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: fstream: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: fstream: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: fstream: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: fstream: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for fstream" >&5 $as_echo_n "checking for fstream... " >&6; } if test "${ac_cv_header_fstream+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_fstream=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fstream" >&5 $as_echo "$ac_cv_header_fstream" >&6; } fi if test "x$ac_cv_header_fstream" = x""yes; then nofstream=0 else nofstream=1 fi if test "x$nofstream" = "x1" ; then if test "${ac_cv_header_fstream_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for fstream.h" >&5 $as_echo_n "checking for fstream.h... " >&6; } if test "${ac_cv_header_fstream_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fstream_h" >&5 $as_echo "$ac_cv_header_fstream_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking fstream.h usability" >&5 $as_echo_n "checking fstream.h usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <fstream.h> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking fstream.h presence" >&5 $as_echo_n "checking fstream.h presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <fstream.h> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: fstream.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: fstream.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: fstream.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: fstream.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: fstream.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: fstream.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: fstream.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: fstream.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: fstream.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: fstream.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: fstream.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for fstream.h" >&5 $as_echo_n "checking for fstream.h... " >&6; } if test "${ac_cv_header_fstream_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_fstream_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fstream_h" >&5 $as_echo "$ac_cv_header_fstream_h" >&6; } fi if test "x$ac_cv_header_fstream_h" = x""yes; then nofstream=0 else nofstream=1 fi if test "x$nofstream" = "x1" ; then { { $as_echo "$as_me:$LINENO: error: To compile ht://Check, you will need a C++ library. Try installing libstdc++." >&5 $as_echo "$as_me: error: To compile ht://Check, you will need a C++ library. Try installing libstdc++." >&2;} { (exit 1); exit 1; }; } fi fi # Checks for typedefs, structures, and compiler characteristics. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } if test "${ac_cv_header_stdbool_h+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <stdbool.h> #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; # if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a runtime test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); # endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdbool_h=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } { $as_echo "$as_me:$LINENO: checking for _Bool" >&5 $as_echo_n "checking for _Bool... " >&6; } if test "${ac_cv_type__Bool+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_type__Bool=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if (sizeof (_Bool)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if (sizeof ((_Bool))) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type__Bool=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 $as_echo "$ac_cv_type__Bool" >&6; } if test "x$ac_cv_type__Bool" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if test "${ac_cv_c_const+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const /**/ _ACEOF fi { $as_echo "$as_me:$LINENO: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if test "${ac_cv_c_inline+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_inline=$ac_kw else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { $as_echo "$as_me:$LINENO: checking for size_t" >&5 $as_echo_n "checking for size_t... " >&6; } if test "${ac_cv_type_size_t+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_type_size_t=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if (sizeof (size_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if (sizeof ((size_t))) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 $as_echo "$ac_cv_type_size_t" >&6; } if test "x$ac_cv_type_size_t" = x""yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if test "${ac_cv_struct_tm+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/types.h> #include <time.h> int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_struct_tm=time.h else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi # Checks for library functions. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 $as_echo_n "checking whether closedir returns void... " >&6; } if test "${ac_cv_func_closedir_void+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then ac_cv_func_closedir_void=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header_dirent> #ifndef __cplusplus int closedir (); #endif int main () { return closedir (opendir (".")) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_closedir_void=no else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_closedir_void=yes fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 $as_echo "$ac_cv_func_closedir_void" >&6; } if test $ac_cv_func_closedir_void = yes; then cat >>confdefs.h <<\_ACEOF #define CLOSEDIR_VOID 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5 $as_echo_n "checking for error_at_line... " >&6; } if test "${ac_cv_lib_error_at_line+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <error.h> int main () { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_error_at_line=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_error_at_line=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 $as_echo "$ac_cv_lib_error_at_line" >&6; } if test $ac_cv_lib_error_at_line = no; then case " $LIBOBJS " in *" error.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; esac fi { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then ac_cv_func_lstat_dereferences_slashed_symlink=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_dereferences_slashed_symlink=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 $as_echo_n "checking whether lstat accepts an empty string... " >&6; } if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then ac_cv_func_lstat_empty_string_bug=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return lstat ("", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_empty_string_bug=no else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_empty_string_bug=yes fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } if test $ac_cv_func_lstat_empty_string_bug = yes; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_LSTAT_EMPTY_STRING_BUG 1 _ACEOF fi { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then ac_cv_func_lstat_dereferences_slashed_symlink=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_dereferences_slashed_symlink=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 $as_echo_n "checking for working memcmp... " >&6; } if test "${ac_cv_func_memcmp_working+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then ac_cv_func_memcmp_working=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Some versions of memcmp are not 8-bit clean. */ char c0 = '\100', c1 = '\200', c2 = '\201'; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) return 1; /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) return 1; } return 0; } ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_memcmp_working=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_memcmp_working=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 $as_echo "$ac_cv_func_memcmp_working" >&6; } test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in *" memcmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; esac for ac_header in $ac_header_list do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in $ac_func_list do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 $as_echo_n "checking for working mktime... " >&6; } if test "${ac_cv_func_working_mktime+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then ac_cv_func_working_mktime=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Test program from Paul Eggert and Tony Leneis. */ #ifdef TIME_WITH_SYS_TIME # include <sys/time.h> # include <time.h> #else # ifdef HAVE_SYS_TIME_H # include <sys/time.h> # else # include <time.h> # endif #endif #include <limits.h> #include <stdlib.h> #ifdef HAVE_UNISTD_H # include <unistd.h> #endif #ifndef HAVE_ALARM # define alarm(X) /* empty */ #endif /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv static time_t time_t_max; static time_t time_t_min; /* Values we'll use to set the TZ environment variable. */ static char *tz_strings[] = { (char *) 0, "TZ=GMT0", "TZ=JST-9", "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) /* Return 0 if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static int spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test. */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; return mktime (&tm) != (time_t) -1; } static int mktime_test1 (now) time_t now; { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int mktime_test (now) time_t now; { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) && mktime_test1 ((time_t) (time_t_min + now))); } static int irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); return tm.tm_mon == 2 && tm.tm_mday == 31; } static int bigtime_test (j) int j; { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) return 0; } return 1; } static int year_2050_test () { /* The correct answer for 2050-02-01 00:00:00 in Pacific time, ignoring leap seconds. */ unsigned long int answer = 2527315200UL; struct tm tm; time_t t; tm.tm_year = 2050 - 1900; tm.tm_mon = 2 - 1; tm.tm_mday = 1; tm.tm_hour = tm.tm_min = tm.tm_sec = 0; tm.tm_isdst = -1; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); t = mktime (&tm); /* Check that the result is either a failure, or close enough to the correct answer that we can assume the discrepancy is due to leap seconds. */ return (t == (time_t) -1 || (0 < t && answer - 120 <= t && t <= answer + 120)); } int main () { time_t t, delta; int i, j; /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ alarm (60); for (;;) { t = (time_t_max << 1) + 1; if (t <= time_t_max) break; time_t_max = t; } time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta; t += delta) if (! mktime_test (t)) return 1; if (! (mktime_test ((time_t) 1) && mktime_test ((time_t) (60 * 60)) && mktime_test ((time_t) (60 * 60 * 24)))) return 1; for (j = 1; ; j <<= 1) if (! bigtime_test (j)) return 1; else if (INT_MAX / 2 < j) break; if (! bigtime_test (INT_MAX)) return 1; } return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_working_mktime=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_working_mktime=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 $as_echo "$ac_cv_func_working_mktime" >&6; } if test $ac_cv_func_working_mktime = no; then case " $LIBOBJS " in *" mktime.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;; esac fi { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then ac_cv_func_stat_empty_string_bug=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_stat_empty_string_bug=no else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_stat_empty_string_bug=yes fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi for ac_func in strftime do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else # strftime is in -lintl on SCO UNIX. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 $as_echo_n "checking for strftime in -lintl... " >&6; } if test "${ac_cv_lib_intl_strftime+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strftime (); int main () { return strftime (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_intl_strftime=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_strftime=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 $as_echo "$ac_cv_lib_intl_strftime" >&6; } if test "x$ac_cv_lib_intl_strftime" = x""yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STRFTIME 1 _ACEOF LIBS="-lintl $LIBS" fi fi done for ac_func in strptime do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:$LINENO: checking for strptime declaration in time.h" >&5 $as_echo_n "checking for strptime declaration in time.h... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <time.h> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "strptime" >/dev/null 2>&1; then cat >>confdefs.h <<\_ACEOF #define HAVE_STRPTIME_DECL /**/ _ACEOF { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* for ac_func in vprintf do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 $as_echo_n "checking for _doprnt... " >&6; } if test "${ac_cv_func__doprnt+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define _doprnt innocuous__doprnt /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _doprnt (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef _doprnt /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char _doprnt (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub__doprnt || defined __stub____doprnt choke me #endif int main () { return _doprnt (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func__doprnt=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func__doprnt=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 $as_echo "$ac_cv_func__doprnt" >&6; } if test "x$ac_cv_func__doprnt" = x""yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_DOPRNT 1 _ACEOF fi fi done for ac_func in snprintf vsnprintf do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else case " $LIBOBJS " in *" $ac_func.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; esac fi done for ac_func in getcwd memmove memset re_comp regcomp strchr strerror strrchr strstr strtol uname strdup memcmp memcpy raise mkstemp localtime_r timegm do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether we need gethostname() prototype?" >&5 $as_echo_n "checking whether we need gethostname() prototype?... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/uio.h> #include <sys/file.h> #include <fcntl.h> #include <netdb.h> #include <stdlib.h> extern "C" int gethostname(char *, int); int main () { gethostname("sdsu.edu", (int) 8); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF #define NEED_PROTO_GETHOSTNAME /**/ _ACEOF else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: checking how to call getpeername?" >&5 $as_echo_n "checking how to call getpeername?... " >&6; } for sock_t in 'struct sockaddr' 'void'; do for getpeername_length_t in 'size_t' 'int' 'unsigned int' 'long unsigned int' 'socklen_t' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/types.h> #include <sys/socket.h> extern "C" int getpeername(int, $sock_t *, $getpeername_length_t *); $sock_t s; $getpeername_length_t l; int main () { getpeername(0, &s, &l); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_found=yes ; break 2 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_found=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done if test "$ac_found" = no then { $as_echo "$as_me:$LINENO: WARNING: can't determine, using size_t" >&5 $as_echo "$as_me: WARNING: can't determine, using size_t" >&2;} getpeername_length_t="size_t" else { $as_echo "$as_me:$LINENO: result: $getpeername_length_t" >&5 $as_echo "$getpeername_length_t" >&6; } fi cat >>confdefs.h <<_ACEOF #define GETPEERNAME_LENGTH_T $getpeername_length_t _ACEOF { $as_echo "$as_me:$LINENO: checking how to call select?" >&5 $as_echo_n "checking how to call select?... " >&6; } for fd_set_t in 'fd_set' 'int' do for timeval_t in 'struct timeval' 'const struct timeval' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/time.h> #include <sys/types.h> #include <unistd.h> extern "C" int select(int, $fd_set_t *, $fd_set_t *, $fd_set_t *, $timeval_t *); $fd_set_t fd; int main () { select(0, &fd, 0, 0, 0); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_found=yes ; break 2 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_found=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done if test "$ac_found" = no then { $as_echo "$as_me:$LINENO: WARNING: can't determine argument type using int" >&5 $as_echo "$as_me: WARNING: can't determine argument type using int" >&2;} fd_set_t="int" else { $as_echo "$as_me:$LINENO: result: $fd_set_t" >&5 $as_echo "$fd_set_t" >&6; } fi cat >>confdefs.h <<_ACEOF #define FD_SET_T $fd_set_t _ACEOF #old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS" LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" for ac_header in mysql.h mysqld_error.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "mysql.h" int main () { load_defaults(0, 0, 0, 0); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_found=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_found=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$ac_found" = no then { $as_echo "$as_me:$LINENO: WARNING: can't find load_defaults()" >&5 $as_echo "$as_me: WARNING: can't find load_defaults()" >&2;} else cat >>confdefs.h <<_ACEOF #define HAVE_LOAD_DEFAULTS 1 _ACEOF { $as_echo "$as_me:$LINENO: checking how to call mysql load_defaults function?" >&5 $as_echo_n "checking how to call mysql load_defaults function?... " >&6; } for returnvalue in 'void' 'int' do for argtwo in 'char *' 'const char *' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "mysql.h" #include "mysqld_error.h" extern "C" $returnvalue load_defaults(const char *conf_file, $argtwo *groups, int *argc, char ***argv); int main () { load_defaults(0, 0, 0, 0); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_found=yes ; break 2 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_found=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done if test "$ac_found" = no then { $as_echo "$as_me:$LINENO: WARNING: can't determine argument type using const char **" >&5 $as_echo "$as_me: WARNING: can't determine argument type using const char **" >&2;} argtwo="const char *" else { $as_echo "$as_me:$LINENO: result: $argtwo" >&5 $as_echo "$argtwo" >&6; } fi cat >>confdefs.h <<_ACEOF #define MYSQL_LOAD_DEFAULTS_ARGTWO $argtwo _ACEOF fi #CPPFLAGS="$old_CPPFLAGS" ac_config_files="$ac_config_files Makefile htcheck/Makefile htcommon/Makefile htlib/Makefile htmysql/Makefile htnet/Makefile htparsing/Makefile include/Makefile installdirs/Makefile doc/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HTNOTIFY_TRUE}" && test -z "${HTNOTIFY_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"HTNOTIFY\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"HTNOTIFY\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"DEBUG\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTION]... [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to <bug-autoconf@gnu.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2008 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { $as_echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { $as_echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "htcheck/Makefile") CONFIG_FILES="$CONFIG_FILES htcheck/Makefile" ;; "htcommon/Makefile") CONFIG_FILES="$CONFIG_FILES htcommon/Makefile" ;; "htlib/Makefile") CONFIG_FILES="$CONFIG_FILES htlib/Makefile" ;; "htmysql/Makefile") CONFIG_FILES="$CONFIG_FILES htmysql/Makefile" ;; "htnet/Makefile") CONFIG_FILES="$CONFIG_FILES htnet/Makefile" ;; "htparsing/Makefile") CONFIG_FILES="$CONFIG_FILES htparsing/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "installdirs/Makefile") CONFIG_FILES="$CONFIG_FILES installdirs/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { $as_echo "$as_me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=' ' ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\).*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\).*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' <conf$$subs.awk | sed ' /^[^""]/{ N s/\n// } ' >>$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 $as_echo "$as_me: error: could not setup config files machinery" >&2;} { (exit 1); exit 1; }; } _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' <confdefs.h | sed ' s/'"$ac_delim"'/"\\\ "/g' >>$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} { (exit 1); exit 1; }; } fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac ac_file_inputs="$ac_file_inputs '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 $as_echo "$as_me: error: could not create -" >&2;} { (exit 1); exit 1; }; } fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo "" echo "" echo "ht://Check configured ..." echo "Now you must run 'make' followed by 'make install'" echo "" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/Makefile.config��������������������������������������������������������������0000644�0000000�0000000�00000002206�11177570304�014464� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������## ## Makefile.config ## Copyright (c) 1999-2000 Comune di Prato - Prato - Italy ## Some Portions Copyright (c) 1995-2000 The ht://Dig Group <www.htdig.org> ## Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> ## $Id: Makefile.config,v 1.11 2008-11-17 07:52:38 angusgb Exp $ ## ## This file is part of ht://Check ## AUTOMAKE_OPTIONS = foreign no-dependencies if HTNOTIFY HTDIGNS = -DHTDIG_NOTIFICATION endif INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la if DEBUG AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/install-sh�������������������������������������������������������������������0000755�0000000�0000000�00000032464�11245527334�013576� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # 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. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # 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_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= 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 the last 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. -s $stripprog installed files. -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 " 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 *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done 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 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 trap '(exit $?); exit' 1 2 13 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 starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? 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 # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # 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 case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/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-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or 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 eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && 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=$dstdir/_inst.$$_ rmtmp=$dstdir/_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 && $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` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # 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 -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$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 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/include/���������������������������������������������������������������������0000755�0000000�0000000�00000000000�11245531570�013201� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/include/Makefile.am����������������������������������������������������������0000644�0000000�0000000�00000000155�11177570303�015237� 0����������������������������������������������������������������������������������������������������ustar �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� include $(top_srcdir)/Makefile.config EXTRA_DIST = config.h.in stamp-h.in pkginclude_HEADERS = htconfig.h �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/include/stamp-h.in�����������������������������������������������������������0000644�0000000�0000000�00000000012�11177570303�015074� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������timestamp ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/include/Makefile.in����������������������������������������������������������0000644�0000000�0000000�00000033036�11245527335�015257� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/Makefile.config subdir = include ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgincludedir)" pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(pkginclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline EXTRA_DIST = config.h.in stamp-h.in pkginclude_HEADERS = htconfig.h all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status include/config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgincludeHEADERS: $(pkginclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(pkgincludedir)" || $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" @list='$(pkginclude_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \ $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \ done uninstall-pkgincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(pkginclude_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(HEADERS) config.h installdirs: for dir in "$(DESTDIR)$(pkgincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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 distclean-hdr distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-pkgincludeHEADERS install-dvi: install-dvi-am 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 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-pkgincludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic distclean-hdr \ 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-pkgincludeHEADERS 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 uninstall uninstall-am uninstall-pkgincludeHEADERS # 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: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/include/config.h.in����������������������������������������������������������0000644�0000000�0000000�00000016760�11245527334�015241� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* include/config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID /* Define this to the type of the second argument of select() */ #undef FD_SET_T /* Define this to the type of the third argument of getpeername() */ #undef GETPEERNAME_LENGTH_T /* Define to 1 if you have the `alarm' function. */ #undef HAVE_ALARM /* Define to 1 if you have the <arpa/inet.h> header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT /* Define to 1 if you have the <fcntl.h> header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H /* Determine whether load_defaults() is still defined in the API */ #undef HAVE_LOAD_DEFAULTS /* Define to 1 if you have the <locale.h> header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R /* Define to 1 if `lstat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_LSTAT_EMPTY_STRING_BUG /* Define to 1 if you have the `memcmp' function. */ #undef HAVE_MEMCMP /* Define to 1 if you have the `memcpy' function. */ #undef HAVE_MEMCPY /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP /* Define to 1 if MySQL libraries are available */ #undef HAVE_MYSQL /* Define to 1 if you have the <mysqld_error.h> header file. */ #undef HAVE_MYSQLD_ERROR_H /* Define to 1 if you have the <mysql.h> header file. */ #undef HAVE_MYSQL_H /* define if the compiler implements namespaces */ #undef HAVE_NAMESPACES /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the <netdb.h> header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the <netinet/in.h> header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `raise' function. */ #undef HAVE_RAISE /* Define to 1 if you have the `regcomp' function. */ #undef HAVE_REGCOMP /* Define to 1 if you have the `re_comp' function. */ #undef HAVE_RE_COMP /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* define if the compiler supports ISO C++ standard library */ #undef HAVE_STD /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the <stddef.h> header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the <stdlib.h> header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the `strftime' function. */ #undef HAVE_STRFTIME /* Define to 1 if you have the <strings.h> header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the <string.h> header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strptime' function. */ #undef HAVE_STRPTIME /* Define if the function strptime is declared in <time.h> */ #undef HAVE_STRPTIME_DECL /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the <sys/file.h> header file. */ #undef HAVE_SYS_FILE_H /* Define to 1 if you have the <sys/ioctl.h> header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the <sys/socket.h> header file. */ #undef HAVE_SYS_SOCKET_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/time.h> header file. */ #undef HAVE_SYS_TIME_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 <sys/utsname.h> header file. */ #undef HAVE_SYS_UTSNAME_H /* Define to 1 if you have the `timegm' function. */ #undef HAVE_TIMEGM /* Define to 1 if you have the `uname' function. */ #undef HAVE_UNAME /* Define to 1 if you have the <unistd.h> header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF /* Define to 1 if you have the `vsnprintf' function. */ #undef HAVE_VSNPRINTF /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define how to call the second argument of mysql's load_defaults() */ #undef MYSQL_LOAD_DEFAULTS_ARGTWO /* Define if you need a prototype for gethostname() */ #undef NEED_PROTO_GETHOSTNAME /* 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 version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your <sys/time.h> declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Version number of package */ #undef VERSION /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `unsigned int' if <sys/types.h> does not define. */ #undef size_t ����������������htcheck-2.0.0~rc1.orig/include/htconfig.h�����������������������������������������������������������0000644�0000000�0000000�00000001164�11177570303�015156� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* include/htconfig.h.in. Generated from configure.in by autoheader. */ /* Part of the ht://Dig package <http://www.htdig.org/> Copyright (c) 1999, 2000 The ht://Dig Group For copyright details, see the file COPYING in your distribution or the GNU General Public License version 2 or later <http://www.gnu.org/copyleft/gpl.html> */ #include <config.h> #if HAVE_STDBOOL_H # include <stdbool.h> #else # if ! HAVE__BOOL # ifdef __cplusplus typedef bool _Bool; # else typedef unsigned char _Bool; # endif # endif # define bool _Bool # define false 0 # define true 1 # define __bool_true_false_are_defined 1 #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/README�����������������������������������������������������������������������0000644�0000000�0000000�00000033447�11245477405�012457� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ht://Check 2.0.0 README Website: http://htcheck.sourceforge.net/ Copyright (c) 1999-2006 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> Some Portions Copyright (c) 2008-2009 Devise.IT srl <http://www.devise.it/> Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> $Id: README,v 1.21 2008-11-16 18:28:51 angusgb Exp $ ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. =========================================================================== ht://Check is more than a link checker. It is a console application written for Linux systems in C++ and derived from ht://Dig. It can retrieve information through HTTP/1.1 and store the information in a MySQL database, and it is particularly suitable for small Internet domains or Intranet. Its purpose is to help a webmaster manage one or more related sites: after a "crawl", ht://Check gives back very useful summaries and reports, including broken links, anchors not found, content-types and HTTP status codes summaries, etc. From version 1.2.3, ht://Check also performs accessibility checks in accordance with the principles of the University of Toronto's Open Accessibility Checks (OAC) project, allowing users to discover site-wide barriers like images without proper alternatives, missing titles, etc. ht://Check can also be used for Web structure analysis, as it stores information regarding links between HTML documents. =========================================================================== ht://Check - FEATURES ===================== ht://Check is made up of two logical parts: a "spider" which starts checking URLs from a specific one or from a list of them; and an "analyser" which takes the results of the first part and shows summaries (this part can be done via console or by using the PHP interface through a web server - distributed as a separate package since version 2.0.0). The "Spider" or "Crawler" ------------------------- - HTTP/1.1 compliant with persistent connections and cookies support (pre-loading too) - HTTP Basic authentication supported - HTTP Proxy support (with basic authentication too) - Crawl customisable through many configuration attributes which let the user limit the digging on URLs pattern matchings and distance ("hops") from the first URL. - MySQL databases directly created by the spider - MySQL connections through user or general option files as defined by the database system (/etc/my.cnf or ~/.my.cnf) - Accessibility checks performed on HTML documents No support for Javascript and other protocols like HTTPS, FTP, NNTP and local files. The "Analyser" -------------- Just a preface: as long as all of the data after a crawl are all stored into a MySQL database, it is pretty easy to get your desired info by querying the database. The spider, anyway, is included into the 'htcheck' application, which at the end shows by itself a small text report. In a second time you can always retrieve info from that database by building your own interface (PHP, Perl for instance) or by just using the default one written in PHP, distributed separately. 'htcheck' (the console appllication) gives you a summary of broken links, broken anchors, servers seen, content-types encountered. The PHP interface lets you perform: - Queries regarding URLs, by choosing many discrimineting criterias such as pattern matching, status code, content-type, size. - Queries regarding links, with pattern matching on both source and destination URLs (also with regular expressions), the results (broken, ok, anchor not found, redirected) and their type (normal, direct, redirected). - Info regarding specific URLs (outgoing and ingoing links, last modify datetime, etc ... - Info regarding specific links (broken or ok) and the HTML instruction that issued it - Statistics on documents retrieved ht://Check - DATABASE TABLES EXPLANATION ======================================== 1) Link ------- This table contains info on all the links that ht://Check found during the crawl. Each link is identified by 4 fields, which make up the primary key: the source URL, the destination URL, the tag position in the document and the attribute position in the tag definition. For example, let's suppose our first URL visited is http://www.foo.com/ and it is as shown below (so simple, I hope you never write it this way): <HTML> <A href="http://htcheck.source.net/"> </HTML> So, http://www.foo.com/ is identified as URL number 1 (IDUrl=1) whereas http://htcheck.sourceforge.net/ has IDUrl=2. The A tag has position number 2 in the document, and the attribute which creates a link is the 'href' with position 1 in the tag. So our link record's primary key is: IDUrlSrc=1, IDUrlDest=2, TagPosition=2, AttrPosition=1. Sometimes, when referencing a URL we use the so called anchors, by specifying them after a '#' in the URL field. If that's been set, the anchor field of the table contains that value. The most interesting fields of the table are LinkType and LinkResult, which are both enumeration fields. The LinkResult field is set only at the end of the crawl, after all the URLs have been retrieved. LinkType field can contain records with these cases: - 'Normal' (a normal link, like the 'href' ones: this means you have to click before accessing it); - 'Direct' (a direct link is a link that is downloaded, usually, automatically by agents, like for example images called by the <IMG src> HTML tag); - 'Redirection': this is a special case, it's an unusual link, because it's an instance of the HTTP redirection, performed by the server (3xx status codes). So this kind of records don't have a TagPosition and an AttrPosition properly set (obviously, there's no HTML statement issuing this link). LinkResult field can contain records with these cases: - 'NotChecked': this is the default case, and it's issued when every Link record is created; only at the end of the crawl loop, this field can be set properly; - 'NotRetrieved': the destination URL of the link has not been retrieved; - 'OK': the link works perfectly. And the anchor, if present, works fine (only if the document has been retrieved, and not only checked wether it exists or not); - 'Broken': the link is broken. The destination URL has not been found; - 'Redirected': the destination URL has been redirected by the HTTP server; - 'AnchorNotFound': the destination URL has been found and parsed, but the link anchor doesn't exist in it. - 'NotAuthorized': you must have rights to access this URL, that is to say a valid user and a password for authentication (see 'authorization' attribute). - 'EMail': that's an e-mail address reference. The tables as of the 'mysqldump' program ======================================== Here follows the structure of the tables of the a typical ht://Check database, as created by the <i>mysqldump<i> program. Please refer to the MySQL documentation for more and further information. And if you find some useful advice and suggestions to give me regarding the database (and of course everything else) please come up tome with an e-mail! :-) -- -- Table structure for table `Accessibility` -- CREATE TABLE Accessibility ( IDCheck mediumint(8) unsigned NOT NULL default '0', IDUrl mediumint(8) unsigned NOT NULL default '0', TagPosition smallint(5) unsigned default '0', AttrPosition tinyint(3) unsigned default '0', Code tinyint(3) unsigned default '0', PRIMARY KEY (IDCheck), KEY IDUrl (IDUrl,TagPosition,AttrPosition), KEY Code (Code,IDUrl,TagPosition) ); -- -- Table structure for table `Cookies` -- CREATE TABLE Cookies ( IDCookie mediumint(8) unsigned NOT NULL default '0', Name varchar(255) NOT NULL default '', Value text NOT NULL, Path varchar(255) NOT NULL default '', Domain varchar(255) NOT NULL default '', MaxAge mediumint(9) NOT NULL default '-1', Version tinyint(4) NOT NULL default '0', SrcUrl varchar(255) NOT NULL default '', Expires datetime NOT NULL default '0000-00-00 00:00:00', Secure tinyint(4) NOT NULL default '0', DomainValid tinyint(4) NOT NULL default '0', PRIMARY KEY (IDCookie) ); -- -- Table structure for table `HtmlAttribute` -- CREATE TABLE HtmlAttribute ( IDUrl mediumint(8) unsigned NOT NULL default '0', TagPosition smallint(5) unsigned NOT NULL default '0', AttrPosition tinyint(3) unsigned NOT NULL default '0', Attribute varchar(32) NOT NULL default '', Content varchar(255) NOT NULL default '', PRIMARY KEY (IDUrl,TagPosition,AttrPosition), KEY Idx_Attribute (Attribute(8)), KEY Idx_Content (Content(8)) ); -- -- Table structure for table `HtmlStatement` -- CREATE TABLE HtmlStatement ( IDUrl mediumint(8) unsigned NOT NULL default '0', TagPosition smallint(5) unsigned NOT NULL default '0', Row mediumint(8) unsigned NOT NULL default '0', Tag varchar(32) NOT NULL default '', Statement varchar(255) default NULL, LinkTagPosition smallint(5) unsigned default NULL, LinkDescription varchar(255) default NULL, PRIMARY KEY (IDUrl,TagPosition), KEY Idx_Tag (Tag(4)), KEY Idx_Statement (Tag(8)) ); -- -- Table structure for table `Link` -- CREATE TABLE Link ( IDUrlSrc mediumint(8) unsigned NOT NULL default '0', IDUrlDest mediumint(8) unsigned NOT NULL default '0', TagPosition smallint(5) unsigned NOT NULL default '0', AttrPosition tinyint(3) unsigned NOT NULL default '0', Anchor varchar(255) binary NOT NULL default '', LinkType enum('Normal','Direct','Redirection') NOT NULL default 'Normal', LinkResult enum('NotChecked','NotRetrieved','OK','Broken','AnchorNotFound','Redirected','NotAuthorized','EMail','Javascript','BadEncoded') NOT NULL default 'NotChecked', LinkDomain enum('SameServer','Internal','External') default NULL, PRIMARY KEY (IDUrlSrc,IDUrlDest,TagPosition,AttrPosition), KEY Idx_IDUrlDest (IDUrlDest), KEY Idx_Anchor (Anchor(8)), KEY Idx_LinkType (LinkType), KEY Idx_LinkResult (LinkResult) ); -- -- Table structure for table `Schedule` -- CREATE TABLE Schedule ( IDUrl mediumint(8) unsigned NOT NULL default '0', IDServer smallint(5) unsigned NOT NULL default '0', Url varchar(255) binary NOT NULL default '', Status enum('ToBeRetrieved','Retrieved','CheckIfExists','Checked','BadQueryString','BadExtension','MaxHopCount','FileProtocol','EMail','Javascript','NotValidService','Malformed') NOT NULL default 'ToBeRetrieved', Domain enum('Internal','External') default NULL, CreationTime datetime NOT NULL default '0000-00-00 00:00:00', IDReferer mediumint(8) unsigned NOT NULL default '0', HopCount tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (IDUrl), KEY Idx_IDServer (IDServer), KEY Idx_Url (Url(64)), KEY Idx_Status (Status) ); -- -- Table structure for table `Server` -- CREATE TABLE Server ( IDServer smallint(5) unsigned NOT NULL default '0', Server varchar(255) NOT NULL default '', IPAddress varchar(15) default NULL, Port smallint(5) unsigned NOT NULL default '0', HttpServer varchar(255) NOT NULL default '', HttpVersion varchar(255) NOT NULL default '', PersistentConnection tinyint(1) unsigned NOT NULL default '0', Requests smallint(5) unsigned NOT NULL default '0', PRIMARY KEY (IDServer), KEY Idx_Server (Server(24)), KEY Idx_Requests (Requests) ); -- -- Table structure for table `Url` -- CREATE TABLE Url ( IDUrl mediumint(8) unsigned NOT NULL default '0', IDServer smallint(5) unsigned NOT NULL default '0', Url varchar(255) binary NOT NULL default '', ContentType varchar(32) NOT NULL default '', ConnStatus enum('OK','NoHeader','NoHost','NoPort','NoConnection','ConnectionDown','ServiceNotValid','OtherError','ServerError') NOT NULL default 'OK', ContentLanguage varchar(16) NOT NULL default '', TransferEncoding varchar(32) NOT NULL default '', LastModified datetime NOT NULL default '0000-00-00 00:00:00', LastAccess datetime NOT NULL default '0000-00-00 00:00:00', Size int(11) NOT NULL default '0', StatusCode smallint(6) NOT NULL default '0', ReasonPhrase varchar(32) NOT NULL default '', Location varchar(255) binary NOT NULL default '', Title varchar(255) NOT NULL default '', Contents mediumtext, DocType enum('not-public','not-html','xhtml-11','xhtml-10','xhtml-10-transitional','xhtml-10-frameset','html-401','html-401-transitional','html-401-frameset','html-40','html-40-transitional','html-40-frameset','html-32','html-20','html-20-level2','html-20-level1','html-20-strict','html-20-strict-level1','html-iso-iec-15445-2000','unknown') default NULL, Charset enum('windows-1258','iso-8859-1','iso-8859-2','iso-8859-3','iso-8859-4','iso-8859-5','iso-8859-6','iso-8859-7','iso-8859-8','iso-8859-9','utf-8','koi8-r','koi8-u','iso-8859-10','iso-8859-13','iso-8859-14','iso-8859-15','windows-1250','windows-1251','windows-1252','windows-1253','windows-1254','windows-874','windows-1255','windows-1256','windows-1257','unknown') default NULL, Description varchar(255) default NULL, Keywords varchar(255) default NULL, SizeAdd int(11) NOT NULL default '0', PRIMARY KEY (IDUrl), KEY Idx_IDServer (IDServer), KEY Idx_Url (Url(64)), KEY Idx_ContentType (ContentType(16)), KEY Idx_StatusCode (StatusCode), KEY Idx_Charset (Charset) ); -- -- Table structure for table `htCheck` -- CREATE TABLE htCheck ( StartTime datetime NOT NULL default '0000-00-00 00:00:00', EndTime datetime NOT NULL default '0000-00-00 00:00:00', ScheduledUrls mediumint(8) unsigned NOT NULL default '0', TotUrls mediumint(8) unsigned NOT NULL default '0', RetrievedUrls mediumint(8) unsigned NOT NULL default '0', TCPConnections mediumint(8) unsigned NOT NULL default '0', ServerChanges mediumint(8) unsigned NOT NULL default '0', HTTPRequests mediumint(8) unsigned NOT NULL default '0', HTTPSeconds mediumint(8) unsigned NOT NULL default '0', HTTPBytes bigint(20) unsigned NOT NULL default '0', AccessibilityChecks tinyint(3) unsigned NOT NULL default '1', User varchar(255) NOT NULL default '', PRIMARY KEY (StartTime,EndTime) ); �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/�������������������������������������������������������������������������0000755�0000000�0000000�00000000000�11245531567�012331� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/htcheck.1����������������������������������������������������������������0000755�0000000�0000000�00000004307�11245477405�014033� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������.TH HTCHECK "1" "September 2009" "ht://Check 2.0.0" FSF .SH NAME ht://Check \- manual page for ht://Check 2.0.0 .SH SYNOPSIS .B htcheck [\fI-isvk\fR] [\fI-c configfile\fR] [\fI-D dbname\fR] .SH DESCRIPTION ht://Check is more than a link checker. It is a console application written for Linux systems in C++ and derived from ht://Dig. .PP It can retrieve information through HTTP/1.1 and store the information in a MySQL database, and it is particularly suitable for small Internet domains or Intranet. .PP Its purpose is to help a webmaster manage one or more related sites: after a "crawl", ht://Check gives back very useful summaries and reports, including broken links, anchors not found, content-types and HTTP status codes summaries, etc. .PP From version 1.2.3, ht://Check also performs accessibility checks in accordance with the principles of the University of Toronto's Open Accessibility Checks (OAC) project, allowing users to discover site-wide barriers like images without proper alternatives, missing titles, etc. .PP ht://Check can also be used for Web structure analysis, as it stores information regarding links between HTML documents. .SH OPTIONS .TP \fB\-v\fR Verbose mode (more 'v's increment verbosity) .TP \fB\-s\fR Statistics (broken links, etc...) available .TP \fB\-i\fR Initialize the database (drop a previous db) .TP \fB\-k\fR Initialize the database (drop tables, keep the db) .TP \fB\-c\fR configfile Configuration file .TP \fB\-D\fR dbname Name of the database .SH AUTHORS Written by Gabriele Bartolini <angusgb@users.sourceforge.net> .SH "REPORT BUGS" Report bugs by using Sourceforge's bug tracker at: http://sourceforge.net/tracker/?group_id=5071&atid=105071 or write down a note to the author. .SH AVAILABILITY The latest version of this distribution is available online from: http://htcheck.sourceforge.net/ .SH COPYRIGHT Copyright (c) 1999-2006 Comune di Prato - Prato - Italy .PP Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> .PP Some Portions Copyright (c) 2008-2009 Devise.IT srl <http://www.devise.it/> .PP This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/Makefile.am��������������������������������������������������������������0000644�0000000�0000000�00000001702�11245503560�014355� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> include $(top_srcdir)/Makefile.config man_MANS = htcheck.1 DOCFILES = htcheck.text htcheck.pdf EXTRA_DIST = css $(DOCFILES) $(man_MANS) htcheck.txt htcheck.html install-data-local: all @echo "Installing documentation files ..." $(mkinstalldirs) $(DESTDIR)$(DOC_DIR) @for i in $(DOCFILES); do \ $(INSTALL_DATA) $(top_srcdir)/doc/$$i $(DESTDIR)$(DOC_DIR)/$$i; echo $(DESTDIR)$(DOC_DIR)/$$i; \ done $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/css @echo "Installing documentation files in HTML format ..." $(INSTALL_DATA) $(top_srcdir)/doc/htcheck.html $(DESTDIR)$(HTML_DIR); echo $(DESTDIR)$(HTML_DIR); $(INSTALL_DATA) $(top_srcdir)/doc/css/*.css $(DESTDIR)$(HTML_DIR)/css; echo $(DESTDIR)$(HTML_DIR)/css; ��������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/htcheck.text�������������������������������������������������������������0000644�0000000�0000000�00000105040�11245477405�014650� 0����������������������������������������������������������������������������������������������������ustar �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� ht://Check user guide Gabriele Bartolini <[1]gabriele.bartolini@devise.it> ht://Check, more than a link checker - User guide. _________________________________________________________________ Abstract ht://Check is a link checker that retrieves information through the HTTP protocol and stores it in a MySQL database. It is particularly suited for small Internet domains or Intranet. It is written in ANSI C++, which makes it portable over POSIX systems and extremely fast. ht://Check is free software, distributed under the GNU General Public License (GPL). _________________________________________________________________ Introduction ht://Check's main goal is to help webmasters managing one or more related sites: after a "crawl", ht://Check creates a rich data source made up of information based on the retrieved documents. Here follows a short list of the major insights that ht://Check is able to detect: * complete source code for HTML documents retrieved; * single documents attributes such as content-type, size, last modification time, etc. * information regarding the retrieval process of a resource [for example: the resource was succesfully retrieved, showing the returned HTTP status codes] * information regarding the structure of a document, such as the HTML tags they are made up of * information regarding the structure of the website that has been analysed (links between documents create the so-called inter-documents relationships between Internet resources); this feature allows users to get further information: + link results: check whether a link to a URL or a URL fragment (anchor) exists and is not broken; retrieves further information such as redirections, e-mail links and bad encoded links (according to RFC1738) [some limitations apply: such as Javascript URLs, which cannot be parsed] + relationships between documents, in terms of incoming links and outgoing ones (Web structure mining activity) * web content accessibility checks: from version 1.2.3, ht://Check also performs accessibility checks in accordance with the principles of the University of Toronto's Open Accessibility Checks (OAC) project, allowing users to discover site-wide barriers like images without proper alternatives, missing titles, etc. A skinny report is given by the htcheck application. Most of the available information can be analysed through the PHP interface which comes as a separate package. How it works ht://Check is essentially a web spider, or robot or crawler. As well as a search engine (like ht://Dig) indexes words from the Internet, ht://Check stores HTML statements such as tags and attributes, links, URL information, and more. At the moment, ht://Check supports only HTTP/1.1 (and HTTP/1.0 also): future plans regard enabling the FTP, NNTP, HTTPS and also local files checks. Everything is stored in a MySQL database, created from scratch by the application itself. You don't need to create it before, just run htcheck and every needed table will be automatically built by the program. For information regarding the connection to the MySQL database, please consult the [2]MySQL connection settings using the option file section. The information retrieval module ht://Check is made up of two logical "modules", one corcerning the information retrieval, the other one the analysis of the performed crawl. The first step, which is the most important also, is completely performed by the htcheck program; depending on the values set in the [3]configuration file, htcheck starts retrieving the URL defined in the start_url configuration attribute; the crawling process is limited in several ways, most of which regard the URL domain (like limit_urls_to , limit_normalized, exclude_urls ) or the distance from the starting URL (max_hop_count), etcetera. When htcheck retrieves the first document, it checks the answer that the server gave back; if the document exists (HTTP 200 status code is returned), and the Content-Type is text/html, htcheck starts parsing the document, and retrieves and stores at least all of the HTML tags and attributes that create a link (it can store all of them if you set store_only_links to false). htcheck can also manage HTTP redirection (created by header "Location" sent by the remote HTTP server) and cookies (as defined by http://www.netscape.com/newsref/std/cookie_spec.html). In a few words that's the main mechanism regarding the information retrieval module, but -believe me- it is not as easy as it seems! But, as far as you are concerned, I think that's enough for now. The tables of a ht://Check database First of all, you don't need to create a database for ht://Check; indeed htcheck will do it for you! However, ht://Check creates a database which is made up of these tables: * Schedule * Url * Server * HtmlStatement * HtmlAttribute * Link * htCheck * Cookies (since version 1.1) * Accessibility (since version 1.2.3) The main task of the Schedule table is to manage the crawling system: by querying this table, htcheck knows which URLs need to be retrieved, or just checked if they exist. The Url table contains info about those URLs that have been retrieved (either successfully or not): here you can find the HTTP status code returned and its reason phrase, its size, the last access time and modification time too, and more. The Server table contains information about the HTTP servers that have been encountered during the crawling process. The HtmlStatement table contains information about the HTML statements found in each URL; every one of them contains one and only one HTML tag, but can also contain one or more HTML attributes inside. These ones are stored in the HtmlAttribute table. The Link table let us find and locate every link instantiated by HTML statements (or by HTTP redirections too), so we can have a referencing as well as a referenced URL, and know precisely which HTML attribute created this link. The Cookies table is handled since version 1.1 and stores all the cookies that have been retrieved during the crawl and their related information. The htCheck table contains general info such as start and finish time, number of connections, etcetera. Getting the information stored Our starting point is that we now have a database full of information, because htcheck has already finished to crawl through the web. The very first way to get reports from a crawl, is to run htcheck with the -s option, which let it produce summaries (see the [4]Getting Started section). The other way given by ht://Check is to use the PHP interface, which is really simple and easy to use. Since version 2.0.0, the interface is distributed separately from the ht://Check main package. As the database is now a common MySQL database, you can use whatever you want in order to to retrieve the information stored in it (Perl, C/C++ programs, JSP). You can also get them on Windows systems, just download MyODBC. You got lots of choices, as you can see! _________________________________________________________________ Installation System Requirements In order to install and run ht://Check you need a GNU/Linux system with: * GNU C/C++ compiler and libstdc++ installed * MySQL 5.1.x, 5.0.x, 4.1.x, 4.0.x, 3.23.x or 3.22.x However, ht://Check compiles on other POSIX platforms: so please, if you try and successfully install it, please drop me a line with the characteristics of your system. Download ht://Check ht://Check can be downloaded from http://htcheck.sourceforge.net/. Decompressing the tarball Usually you download ht://Check sources in a tar.gz file. In order to decompress them with the following command: tar xzvf filename.tar.gz For tar.bz2 files, use: tar xjvf filename.tar.bz2 Quick Install configure make make install The configure script For more info on the configure script, run: [code,bash] configure --help Specifying the application directory By default, ht://Check is installed into the /opt/htcheck directory. And everything is under that directory. Nothing is put out of it. If you want to specify another directory of installation, just use the configuration option —prefix=DIR. For example, if you want to install it into the /myapps/htcheck dir, just run configure with this option too: configure [other options] --prefix=/myapps/htcheck Specifying a MySQL directory ht://Check needs MySQL client library support. By default, ht://Check uses mysql_config to determine the compiler settings. In case the automatic detection of mysql_config fails (different location on the file system, or different name), please specify it using the —with-mysql option: --with-mysql=/opt/local/bin/mysql_config5 Setting the path to ht://Check's man page ht://Check comes with a simple man page, useful for reminding you the options of the application. Let's suppose you installed ht://Check in the /opt/htcheck directory, you can easily set the man application to read this page too, by adding in the user or system profile (i.e. ~/.bash_profile or /etc/profile) these line: export MANPATH=$MANPATH:/opt/htcheck/man MySQL user's privileges for ht://Check In order to run the htcheck program, you must connect to the MySQL server as a valid user, with enough permissions. As long as the spider needs to create and drop databases, tables and indexes too, perform insert, update and delete operations you must grant to it these rights (by altering the user table's contents of the mysql database on the MySQL server). So, set to Y these fields values: * Select_priv * Insert_priv * Update_priv * Delete_priv * Create_priv * Drop_priv * Index_priv However, you are suggested to give a look at the [5]following section. MySQL connection settings In order to access a MySQL server, you have 2 choices: * doing nothing: the access is made by the current user to localhost with no password specified. * create or use an existing option file for MySQL. See the ref [6]following section. MySQL connection settings using the option file We were saying that you can create or use an existing option file for MySQL, where you can specify the host to be accessed, the user, the password, the port and the socket. By default, ht://Check looks for the ~/.my.cnf file and if this is not found the global option file for mysql is searched (/etc/my.cnf). You can change the prefix (my) with the mysql_conf_file_prefix configuration option (only for MySQL 3.23, 4.0, 4.1 and 5.0). The group searched is [client] but it can be customised with mysql_conf_group. For example, you can write the ~/.my.cnf file this way: [client] host=mysqlserver.mydomain.com user=htcheck password=ht12345 You can also specify a different port or socket. You are strongly recommended to change this file permissions to 600. It goes without saying that in both cases you have to grant permissions to the user ht://Check is connecting as. See the [7]previous section and MySQL documentation for more info on this subject. _________________________________________________________________ Getting started In order to perform the first crawl, you just need to edit the configuration file, which resides in the configuration directory with the name htcheck.conf (you may use another file as configuration file, but you gotta run htcheck it with the -c option). Just change the start_url attribute to whatever you want, for example: start_url: http://www.foo.com Remember that every URL must start with the service name, that is to say http://. Then set the limit_urls_to attribute to $(start_url), in order to scan only the http://www.foo.com website. You may change many other attributes (database name included), but for now, in order to test if it works or not, that's enough. You can finally enter the bin directory inside the htcheck installation directory (by default /opt/htcheck) and run: htcheck -vs However, here are the available options (just run htcheck —help) and you will get this: usage: htcheck [-isvkhr] [-c configfile] [-D dbname] [--help] [--version] Options: -v Verbose mode (more 'v's increment verbosity) -s Statistics (broken links, etc...) available -i Initialize the database (drop a previous db) -k Initialize the database (drop tables, keep the db) -c configfile Configuration file -D dbname Name of the database --help Display this -h Same as --help --version Display version -r Same as --version Remember that htcheck always check if the database already exists in the MySQL server. If it does not exist, it is created from scratch. On the other hand, if htcheck is launched with the -i option, this database is initialized again (this means that a new crawl is performed), else the program just use a previous database, which is useful in order to get some reports like broken links and anchors, content-type summaries (in this case you gotta set the -s option). Since version 1.2.0 it is possible not to drop a database, but keep it alive, and recreate the structure: in technical words, ht://Check tables are dropped and then recreated: this feature was proposed by Patrick Guillot (<pguillot@paanjaru.com>) and enables to use ht://Check within a database that can be used for other purposes as well. _________________________________________________________________ The configuration file General syntax ht://Check uses a flexible configuration file. This configuration file is a plain ASCII text file. Each line in the file is either a comment or contains an attribute. Comment lines are blank lines or lines that start with a #. Attributes Attributes consist of a variable name and an associated value: <name>:<whitespace><value><newline> The name contains any alphanumeric character or underline (_). The value can include any character except newline. It also cannot start with spaces or tabs since those are considered part of the whitespace after the colon. It is important to keep in mind that any trailing spaces or tabs will be included. It is possible to split the value across several lines of the configuration file by ending each line with a backslash (\). The effect on the value is that a space is added where the line split occurs. If ht://Check needs a particular attribute and it is not in the configuration file, it will use the default value which is defined in htcommon/defaults.cc of the source directory. Inclusion and variable expansion A configuration file can include another file, by using a special name, include. The value is taken as the file name of another configuration file to be read in at this point. If the given file name is not fully qualified, it is taken relative to the directory in which the current configuration file is found. Variable expansion is permitted in the file name. Multiple include statements, and nested includes are also permitted. Example: include: common.conf Configuration attributes Here you can find a brief explanation of ht://Check configuration attributes. They've been grouped in these sections: * [8]setting the spider * [9]setting the database info * [10]setting HTTP connections * [11]setting what to store * [12]setting what to report * [13]accessibility checks Setting the "spider" start_url This is the list of URLs that will be used to start a dig when there was no existing database. Note that multiple URLs can be given here. Type: string Default: http://htcheck.sourceforge.net/ Example: start_url: http://www.somewhere.org/alldata/index.html limit_urls_to This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Any number of strings can be specified, separated by spaces. If multiple patterns are given, at least one of the patterns has to match the URL. Matching is a case-insensitive string match on the URL to be used. The match will be performed after the relative references have been converted to a valid URL. This means that the URL will always start with http://. Granted, this is not the perfect way of doing this, but it is simple enough and it covers most cases. Type: string Example: limit_urls_to: .sdsu.edu kpbs limit_normalized This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Unlike the limit_urls_to directive, this is done after the URL is normalized. Type: string Default: Example: limit_normalized: http://www.mydomain.com exclude_urls If a URL contains any of the space separated patterns, it will be rejected. This is used to prevent htcheck from performing infinite loops on poorly designed dynamic pages. Type: string Default: Example: exclude_urls: students.html cgi-bin bad_extensions This is a list of extensions on URLs which are considered non-parsable. This list is used mainly to supplement the MIME-types that the HTTP server provides with documents. Some HTTP servers do not have a correct list of MIME-types and so can advertise certain documents as text while they are some binary format. Type: string Default: Example: bad_extensions: .foo .bar .bad bad_querystr This is a list of CGI query strings to be excluded from indexing. This can be used in conjunction with CGI-generated portions of a website to control which pages are indexed. Type: string Default: Example: bad_querystr: forum=private section=topsecret&passwd=required max_hop_count Instead of limiting the indexing process by URL pattern, it can also be limited by the number of hops or clicks a document is removed from the starting URL. The starting page will have hop count 0. Type: number Default: 999999 Example: max_hop_count: 4 max_urls_count Maximum number of URLs to be parsed. When this number is reached, ht://Check stops parsing URLs and performs a simple check for existance. Type: number Default: -1 Example: max_urls_count: 100 check_external If set to true, htcheck check if external Urls exist or not. An external Url is an Url which doesn't match limit configuration attributes. External URLs aren't parsed. Type: boolean Default: true Example: check_external: false Setting the database info db_name Name of the MySQL database to be created or read. Type: string Default: htcheck (or as defined by the —with-db-name configure option) Example: db_name: test db_name_prepend String to be prepended to the MySQL database name specified. This allows to set a common string to identify all the database name used by ht://Check and to grant database privileges by using this string value. You can change the default value also by using the configure option: —with-db-name-prepend (default empty). Type: string Default: (or as defined by the —with-db-name-prepend configure option) Example: db_name_prepend: htcheck_ mysql_conf_file_prefix Only for MySQL < 5.1. Prefix for the MySQL configuration file to be searched. Default is my and the file that is searched is usually ~/.my.cnf (suggested). If it is not found the /etc/.my.cnf file is searched. For its syntax, look at the Option File contents inside the MySQL documentation. Type: string Default: my Example: mysql_conf_file_prefix: htcheck mysql_conf_group Group to be searched inside the .my.cnf file of MySQL for getting the settings for the connection to the server. In other words, it's the section marked with [<group>] inside the MySQL option file (default is [client]). Type: string Default: client Example: mysql_conf_group: htcheck optimize_db Optimize the database tables at the end of the crawl. Disable it if the database server doesn't support it. Type: boolean Default: false Example: optimize_db: true sql_big_table_option Enable or disable this option that is useful when performing huge queries. Otherwise, sometimes when it's not set, the MySQL db server may return a table is full error. Type: boolean Default: true Example: sql_big_table_option: false url_index_length This number specifies the length of the index of the Url field in the Schedule and Url tables of the database. You can set different values depending on the average length of the URLs that htcheck can find in your sites. If you don't want to set any limitation, just put a -1 value. This now allows the user to control the length of the index for the Url field in the Schedule and Url tables. This attribute may affect the performance of the crawls, as long as the length of a index can either slow down or speed up the spidering process. Type: number Default: 64 Example: url_index_length: -1 Setting HTTP connections user_agent This allows customization of the user_agent: field sent when the digger requests a file from a server. Type: string Default: ht://Check Example: user_agent: htcheck-crawler persistent_connections If set to true, when servers make it possible, htdig can take advantage of persistent connections, as defined by HTTP/1.1 (RFC2616). This permits to reduce the number of open/close operations of connections, when retrieving a document with HTTP. Type: boolean Default: true Example: persistent_connections: false head_before_get This option works only if we take advantage of persistent connections (see persistent_connections attribute). If set to true an HTTP/1.1 HEAD call is made in order to retrieve header information about a document. If the status code and the content-type returned let the document be parsable, then a following GET call is made. Type: boolean Default: true Example: head_before_get: false timeout Specifies the time the digger will wait to complete a network read. This is just a safeguard against unforeseen things like the all too common transformation from a network to a notwork. The timeout is specified in seconds. Type: number Default: 30 Example: timeout: 42 authorization This tells htcheck to send the supplied username:password with each HTTP request. The credentials will be encoded using the "Basic" authentication scheme. There must be a colon (:) between the username and password. Type: string Default: Example: authorization: myusername:mypassword max_retries This option set the maximum number of retries when retrieving a document fails (mainly for reasons of connection). Type: number Default: 3 Example: max_retries: 6 tcp_max_retries This option set the maximum number of attempts when a connection raises a xref:timeout. After all these retries, the connection attempt results timed out. Type: number Default: 1 Example: tcp_max_retries: 6 tcp_wait_time This attribute sets the wait time after a connection fails and the xref:timeout is raised. Type: number Default: 5 Example: tcp_wait_time: 10 http_proxy When this attribute is set, all HTTP document retrievals will be done using the HTTP-PROXY protocol. The URL specified in this attribute points to the host and port where the proxy server resides. The use of a proxy server greatly improves performance of the indexing process. Type: string Default: Example: http_proxy: http://proxy.bigbucks.com:3128 http_proxy_exclude When this is set, URLs matching this will not use the proxy. This is useful when you have a mixture of sites near to the digging server and far away. Type: string Default: Example: http_proxy_exclude: http://intranet.foo.com/ http_proxy_authorization This tells htcheck to send the supplied username:password with each HTTP request, when using a proxy with authorization requested. The credentials will be encoded using the \"Basic\" authentication scheme. There must be a colon (:) between the username and password. Type: string Default: Example: http_proxy_authorization: myusername:mypassword accept_language This attribute allows to restrict the set of natural languages that are preferred as a response to an HTTP request performed by the digger. This can be done by putting one or more language tags (as defined by RFC 1766) in the preferred order, separated by spaces. By doing this, when the server performs a content negotiation based on the accept-language given by the HTTP user agent, a different content can be shown depending on the value of this attribute. If set empty, no language will be sent and the server default will be returned. Type: string Default: Example: accept_language: en-us en it remove_default_doc Set this to the default documents in a directory used by the servers you are indexing. These document names will be stripped off of URLs when they are normalized, if one of these names appears after the final slash, to translate URLs like http://foo.com/index.html into http://foo.com/ Note that you can disable stripping of these names during normalization by setting the list to an empty string. The list should only contain names that all servers you index recognize as default documents for directory URLs, as defined by the DirectoryIndex setting in Apache's srm.conf, for example. Type: string list Default: Example: remove_default_doc: default.html default.htm index.html index.htm disable_cookies If set to true, htcheck will disable the HTTP cookies management. Type: boolean Default: false Example: disable_cookies: true cookies_input_file Set the input file to be used when importing cookies for the crawl; cookies must be specified according to Netscape's format. For more information, give a look at the example cookies file distributed with ht://Check. By default, no input file is read. Type: string Default: Example: cookies_input_file: /tmp/cookies.txt url_reserved_chars This string allows to customise the set of characters that can be considered as reserverd in a URL, avoiding their coding under the RFC1738 standard. This string is used when checking whether a URL is well-encoded or not, issuing a BadEncoded state for the link which created it. The default value is slightly different from what the RFC says, giving more flexibility to the spider (it is suggested not to change it unless you are extremely sure of what you are doing). Type: string Default: ;/?:@&=$,._%-#x~+ Example: url_reserved_chars: \\;/?:@&=+\$,._%-#x~ Setting what to store max_doc_size This is the upper limit to the amount of data retrieved for documents. This is mainly used to prevent unreasonable memory consumption since each document will be read into memory by htcheck. Type: number Default: 100000 Example: max_doc_size: 5000000 store_only_links If set to false, htcheck will store in the DB every tag he finds in every document it crawls. If set to true, htcheck stores only those Html attributes and statements that produce a link or set an anchor (identified by the pair tag: A, attribute: name). Type: boolean Default: false Example: store_only_links: true store_url_contents This attribute allows to store the contents of the parsed URLs. It is very useful, but can also be dangerous. You must know what you are doing, and if you enable this, your performances may slow down and your disk storage requirements can get extremely high. It is recommended to use this only for small crawls. Type: boolean Default: false Example: store_url_contents: true available_charsets This attribute specifies the set of possible charsets that htcheck recognises and stores into the database; other charsets will be marked as other. Type: string list Default: windows-1250 iso-8859-1 iso-8859-10 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-885 9-7 iso-8859-8 iso-8859-9 koi8-r koi8-u utf-8 windows-1251 windows-1252 window s-1253 windows-1254 windows-1255 windows-1256 windows-1257 windows-1258 windows-8 74 Example: available_charsets: iso-8859-1 Setting what to report summary_anchor_not_found Enable or disable the show of the summary of the HTML anchors that have not been found. Type: boolean Default: true Example: summary_anchor_not_found: false Accessibility checks accessibility_checks Enable or disable the recognition of accessibility problems, using some of the checks proposed by the Open Accessibility Checks project by the Adaptive TechnologyResource Center at the University Of Toronto. From version 1.2.3, ht://Checks internally stores this kind of information in the AccessibilityChecks table using the code number specified in OAC (http://oac.atrc.utoronto.ca). Type: boolean Default: true Example: accessibility_checks: false _________________________________________________________________ FAQ Configuration and compilation I'm compiling with gcc 3.2 and getting several warnings/errors regarding ostream You should use the following command to configure ht://Check so it can be built with gcc 3.2: CXXFLAGS=-Wno-deprecated CPPFLAGS=-Wno-deprecated ./configure However, from version 1.2.2, sources have been updated in order to automatically detect the correct standard C++ library; backward compatibility C++ headers (such as fstream.h) are not used anymore in the main code, although pre-processing checks are performed for older libraries. The MySQL database of ht://Check What tables have to be created? What about the fields? and their format? ht://Check does everything for you. It creates the database structure itself, so you don't need to create it before. You just need to grant the spider enough permissions in order to do that. Configuring the spider (htcheck) How do I change the URLs to check without going through the PHP interface? No. There's no way to configure the spider through PHP for now. You just have to edit the configuration file (usually htcheck.conf). If I run htcheck at the commandline, I don't see a way to change the URLs to check. I'm guessing that the Server table in the htcheck database is what I want to modify, right? No .. you don't need to modify the MySQL database at all. Indeed it's for getting the results only. Every database is directly created by the application (from scratch). You must edit the parameters in the htcheck.conf file. You have to set one or more starting URL with the start_url attribute. Then you can limit the search to a set of URLs by setting the limit_urls_to, limit_normalized and exclude_urls options. These are the most used and important, though you can use the bad_extension, max_hop_count, bad_query_string. But in most of cases you only have to set the limit_urls_to parameter. For instance: start_url: http://www.foo.com limit_urls_to: $(start_url) The limit_normalized parameter checks for every URL after it has been normalised (transformed into this format: service://host:port/path ). _________________________________________________________________ Copyright Copyright © 1999-2006 Comune di Prato - Prato - Italy Some portions Copyright © 1995-2003 The ht://Dig Group Some Portions Copyright © 2008-2009 Devise.IT srl - http://www.devise.it/ _________________________________________________________________ References 1. [htdig] The ht://Dig Group. ht://Dig Search Engine. http://www.htdig.org/ 2. [mysql] Sun Microsystems, Inc. MySQL. http://www.mysql.com/ 3. [RFC1738] The Internet Society. RFC 1738 - Uniform Resource Locators (URL). http://tools.ietf.org/html/rfc1738 4. [RFC1766] The Internet Society. RFC 1766 - Tags for the Identification of Languages. http://tools.ietf.org/html/rfc1766 5. [RFC2616] The Internet Society. RFC 2616 - Hypertext Transfer Protocol 1.1 — HTTP/1.1. http://tools.ietf.org/html/rfc2616 _________________________________________________________________ Last updated 27-Aug-2009 13:38:45 CEST Riferimenti 1. mailto:gabriele.bartolini@devise.it 2. file://localhost/home/bf97/L23602-1174TMP.html#mysqloptionfile 3. file://localhost/home/bf97/L23602-1174TMP.html#configurationfile 4. file://localhost/home/bf97/L23602-1174TMP.html#gettingstarted 5. file://localhost/home/bf97/L23602-1174TMP.html#mysqlconnectionsettings 6. file://localhost/home/bf97/L23602-1174TMP.html#mysqloptionfile 7. file://localhost/home/bf97/L23602-1174TMP.html#mysqluserprivileges 8. file://localhost/home/bf97/L23602-1174TMP.html#settingspider 9. file://localhost/home/bf97/L23602-1174TMP.html#settingdatabase 10. file://localhost/home/bf97/L23602-1174TMP.html#settinghttpconnections 11. file://localhost/home/bf97/L23602-1174TMP.html#settingstore 12. file://localhost/home/bf97/L23602-1174TMP.html#settingreport 13. file://localhost/home/bf97/L23602-1174TMP.html#accessibilitychecks ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/���������������������������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�013121� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/xhtml-deprecated.css�������������������������������������������������0000644�0000000�0000000�00000012413�11245477405�017066� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������body { background: #dedede; margin: 0; min-height: 480px; } h1,h2,h3,h4,h5 { padding: 0.5em 0 0 5%; text-align: left; background: transparent; font-family: Tahoma, Verdana, sans-serif; font-weight: bold; margin-top: 1.5em; } h1 { font-size: 200%; } h2 { font-size: 125%; } h3 { font-size: 110%; font-family: sans-serif;} h4 { font-size: 100%; font-style: italic; font-family: sans-serif;} h1 { padding: 0.5em 0 0.5em 5%; color: white; background: #1f764c; /* Olive green */ margin: 0; border-bottom: solid 1px black; } h2 { text-decoration: underline;} /* This is only used by level 0 sections in book document types. */ h2.sect0 { font-size: 175%; text-decoration: underline;} span#author { font-family: sans-serif; font-size: larger; font-weight: bold; } div#informalpreface p { } div.literalparagraph { margin: 0 5%; } div.literalblock { margin: 0 5%; } div.listingblock { padding: 0 5%; } pre.verseblock { padding: 0 5%; } p.verseblock { white-space: pre; } a { font-weight: bold; background: #ffd; /* Light yellow */ color: #093; /* Green */ text-decoration: none; } a:hover { text-decoration: underline; } p { padding: 0 5%; } ul,ol { padding: 0 5%; margin-left: 1.75em; list-style-position: outside; } ol ol, ol ul, ul ol, ul ul, dd ol, dd ul { margin-left: 0; } /* Keep lists close to preceeding titles. Broken in IE6. */ p.listtitle + ul, p.listtitle + ol, p.listtitle + dl { margin-top: 0; } dl { padding: 0 5%; } dt { font-style: italic; } dd, li { padding-bottom: 0.5em; } dd p, li p { margin: 0 0 0.4em; padding: 0; } li div.literalparagraph { margin-left: 0; } div.literalparagraph pre, li div.literalparagraph pre { margin-left: 2%; } div.listingblock, li div.listingblock { margin-left: 0; } li div.literalblock { margin-left: 0; } dd div.literalblock { margin-left: 0; } div.literalblock pre, li div.literalblock pre { margin-left: 2%; } dd div.literalparagraph { margin-left: 0; } dd div.literalparagraph pre { margin-left: 2%; } .listingblock, .literalparagraph, .literalblock, tt { color: #461b7e; } div.listingblock pre { background: #f0f0f0; border: 1px dashed gray; padding: 0.5em 1em; } table { margin-left: 5%; margin-right: 5%; } thead,tfoot,tbody { /* No effect in IE6. */ border-top: 2px solid green; border-bottom: 2px solid green; } thead,tfoot { font-weight: bold; } table.hlist td:first-child { font-style: italic; } p.listtitle { margin-top: 1.5em; margin-bottom: 0.2em; } p.tabletitle { margin-top: 1.5em; margin-bottom: 0.5em; } p.blocktitle { margin-top: 1.5em; margin-bottom: 0.2em; } p.imagetitle { margin-top: 0.2em; margin-bottom: 1.5em; } div.image img { border: 1px solid #ece9d8; } a.imagelink > img:hover { border: 1px solid #093; } /* IE6 broken */ a.imagelink > img { border: 1px solid transparent; } a.imagelink { /* Don't use text link colors. */ background: transparent; color: white; } div#content { margin: 50px 3em 3em 140px; border-top: 1px solid black; border-left: 1px solid black; border-right: 2px solid black; border-bottom: 2px solid black; background: white; } div#footer { background: #f0f0f0; font: 8pt sans-serif; margin-top: 2em; margin-bottom: 0; padding: 0.8em 0 0.8em 0; position: relative; bottom: 0; border-top: 1px solid silver; } div#footer table { margin-left: 2%; } div#footer p { margin: .5em 0 0 0; padding: 0 5%; } div#footer a { color: black; background: transparent; text-decoration: underline; } div#badges { padding: 0 15px; } div#badges td { vertical-align: middle; } div#badges img { border-style: none; } /* * Style sheet rules that are applied using element class attributes. */ div.image { width: 100%; border-style: none; margin-bottom: 1.5em; margin-left: 1em; /* for IE5,6 misbehavior */ padding: 0; text-align: left; } div.admonition { margin: 1.0em 20% 1.0em 5%; } div.admonition div.text * { padding: 0; } div.admonition div.icon { float: left; width: 56px; } div.admonition div.text { margin-left: 56px; padding-top: 1px; } div.admonition div.text * { padding: 0; } div.clear { clear: both; } /* Print nicely. */ @media print { @page { margin: 10% } /* This _is_ valid CSS2. */ h1,h2,h3,h4 { page-break-after: avoid; page-break-inside: avoid } blockquote,pre { page-break-inside: avoid } ul,ol,dl { page-break-before: avoid } /* Override existing property settings. */ h1,a { color: black; background: white; } div#content { margin: 0; border: 0; } div#footer { display: none; } /* IE5,6 only has the problem displaying, so restore margin for printing */ div.image { margin-left: 0; } p.imagetitle { page-break-before: avoid; } p.blocktitle, tabletitle { page-break-after: avoid; } } div.sidebarblock, exampleblock { margin: 0.5em 20% 0.5em 5%; padding: 0.5em 1em; border: 1px solid silver; } div.sidebarblock *, exampleblock * { padding: 0; } div.sidebarblock div, exampleblock div { margin: 0; } div.sidebarblock { background: #ffffee; } p.sidebartitle { font-family: sans-serif; font-weight: bold; margin-top: 0.5em; margin-bottom: 0.2em; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/����������������������������������������������������������������0000755�0000000�0000000�00000000000�11245527430�013777� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/tmp/������������������������������������������������������������0000755�0000000�0000000�00000000000�11245527264�014604� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/tmp/props/������������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�015750� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/tmp/text-base/��������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�016501� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/tmp/prop-base/��������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�016475� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/props/����������������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�015150� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/������������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�015701� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/docbook-xsl.css.svn-base������������������������������0000444�0000000�0000000�00000010524�11245477405�022354� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* CSS stylesheet for XHTML produced by DocBook XSL stylesheets. Tested with XSL stylesheets 1.61.2, 1.67.2 */ span.strong { font-weight: bold; } body blockquote { margin-top: .75em; line-height: 1.5; margin-bottom: .75em; } html body { margin: 1em 5% 1em 5%; line-height: 1.2; } body div { margin: 0; } h1, h2, h3, h4, h5, h6, div.toc p b, div.list-of-figures p b, div.list-of-tables p b, div.abstract p.title { color: #527bbd; font-family: tahoma, verdana, sans-serif; } div.toc p:first-child, div.list-of-figures p:first-child, div.list-of-tables p:first-child, div.example p.title { margin-bottom: 0.2em; } body h1 { margin: .0em 0 0 -4%; line-height: 1.3; border-bottom: 2px solid silver; } body h2 { margin: 0.5em 0 0 -4%; line-height: 1.3; border-bottom: 2px solid silver; } body h3 { margin: .8em 0 0 -3%; line-height: 1.3; } body h4 { margin: .8em 0 0 -3%; line-height: 1.3; } body h5 { margin: .8em 0 0 -2%; line-height: 1.3; } body h6 { margin: .8em 0 0 -1%; line-height: 1.3; } body hr { border: none; /* Broken on IE6 */ } div.footnotes hr { border: 1px solid silver; } div.navheader th, div.navheader td, div.navfooter td { font-family: sans-serif; font-size: 0.9em; font-weight: bold; color: #527bbd; } div.navheader img, div.navfooter img { border-style: none; } div.navheader a, div.navfooter a { font-weight: normal; } div.navfooter hr { border: 1px solid silver; } body td { line-height: 1.2 } body th { line-height: 1.2; } ol { line-height: 1.2; } ul, body dir, body menu { line-height: 1.2; } html { margin: 0; padding: 0; } body h1, body h2, body h3, body h4, body h5, body h6 { margin-left: 0 } body pre { margin: 0.5em 10% 0.5em 1em; line-height: 1.0; color: navy; } tt.literal, code.literal { color: navy; } .programlisting, .screen { border: 1px solid silver; background: #f4f4f4; margin: 0.5em 10% 0.5em 0; padding: 0.5em 1em; } div.sidebar { background: #ffffee; margin: 1.0em 10% 0.5em 0; padding: 0.5em 1em; border: 1px solid silver; } div.sidebar * { padding: 0; } div.sidebar div { margin: 0; } div.sidebar p.title { font-family: sans-serif; margin-top: 0.5em; margin-bottom: 0.2em; } div.bibliomixed { margin: 0.5em 5% 0.5em 1em; } div.glossary dt { font-weight: bold; } div.glossary dd p { margin-top: 0.2em; } dl { margin: .8em 0; line-height: 1.2; } dt { margin-top: 0.5em; } dt span.term { font-style: italic; } div.variablelist dd p { margin-top: 0; } div.itemizedlist li, div.orderedlist li { margin-left: -0.8em; margin-top: 0.5em; } ul, ol { list-style-position: outside; } div.sidebar ul, div.sidebar ol { margin-left: 2.8em; } div.itemizedlist p.title, div.orderedlist p.title, div.variablelist p.title { margin-bottom: -0.8em; } div.revhistory table { border-collapse: collapse; border: none; } div.revhistory th { border: none; color: #527bbd; font-family: tahoma, verdana, sans-serif; } div.revhistory td { border: 1px solid silver; } /* Keep TOC and index lines close together. */ div.toc dl, div.toc dt, div.list-of-figures dl, div.list-of-figures dt, div.list-of-tables dl, div.list-of-tables dt, div.indexdiv dl, div.indexdiv dt { line-height: normal; margin-top: 0; margin-bottom: 0; } /* Table styling does not work because of overriding attributes in generated HTML. */ div.table table, div.informaltable table { margin-left: 0; margin-right: 5%; margin-bottom: 0.8em; } div.informaltable table { margin-top: 0.4em } div.table thead, div.table tfoot, div.table tbody, div.informaltable thead, div.informaltable tfoot, div.informaltable tbody { /* No effect in IE6. */ border-top: 2px solid #527bbd; border-bottom: 2px solid #527bbd; } div.table thead, div.table tfoot, div.informaltable thead, div.informaltable tfoot { font-weight: bold; } div.mediaobject img { border: 1px solid silver; margin-bottom: 0.8em; } div.figure p.title, div.table p.title { margin-top: 1em; margin-bottom: 0.4em; } @media print { div.navheader, div.navfooter { display: none; } } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/xhtml-deprecated.css.svn-base�������������������������0000444�0000000�0000000�00000012413�11245477405�023361� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������body { background: #dedede; margin: 0; min-height: 480px; } h1,h2,h3,h4,h5 { padding: 0.5em 0 0 5%; text-align: left; background: transparent; font-family: Tahoma, Verdana, sans-serif; font-weight: bold; margin-top: 1.5em; } h1 { font-size: 200%; } h2 { font-size: 125%; } h3 { font-size: 110%; font-family: sans-serif;} h4 { font-size: 100%; font-style: italic; font-family: sans-serif;} h1 { padding: 0.5em 0 0.5em 5%; color: white; background: #1f764c; /* Olive green */ margin: 0; border-bottom: solid 1px black; } h2 { text-decoration: underline;} /* This is only used by level 0 sections in book document types. */ h2.sect0 { font-size: 175%; text-decoration: underline;} span#author { font-family: sans-serif; font-size: larger; font-weight: bold; } div#informalpreface p { } div.literalparagraph { margin: 0 5%; } div.literalblock { margin: 0 5%; } div.listingblock { padding: 0 5%; } pre.verseblock { padding: 0 5%; } p.verseblock { white-space: pre; } a { font-weight: bold; background: #ffd; /* Light yellow */ color: #093; /* Green */ text-decoration: none; } a:hover { text-decoration: underline; } p { padding: 0 5%; } ul,ol { padding: 0 5%; margin-left: 1.75em; list-style-position: outside; } ol ol, ol ul, ul ol, ul ul, dd ol, dd ul { margin-left: 0; } /* Keep lists close to preceeding titles. Broken in IE6. */ p.listtitle + ul, p.listtitle + ol, p.listtitle + dl { margin-top: 0; } dl { padding: 0 5%; } dt { font-style: italic; } dd, li { padding-bottom: 0.5em; } dd p, li p { margin: 0 0 0.4em; padding: 0; } li div.literalparagraph { margin-left: 0; } div.literalparagraph pre, li div.literalparagraph pre { margin-left: 2%; } div.listingblock, li div.listingblock { margin-left: 0; } li div.literalblock { margin-left: 0; } dd div.literalblock { margin-left: 0; } div.literalblock pre, li div.literalblock pre { margin-left: 2%; } dd div.literalparagraph { margin-left: 0; } dd div.literalparagraph pre { margin-left: 2%; } .listingblock, .literalparagraph, .literalblock, tt { color: #461b7e; } div.listingblock pre { background: #f0f0f0; border: 1px dashed gray; padding: 0.5em 1em; } table { margin-left: 5%; margin-right: 5%; } thead,tfoot,tbody { /* No effect in IE6. */ border-top: 2px solid green; border-bottom: 2px solid green; } thead,tfoot { font-weight: bold; } table.hlist td:first-child { font-style: italic; } p.listtitle { margin-top: 1.5em; margin-bottom: 0.2em; } p.tabletitle { margin-top: 1.5em; margin-bottom: 0.5em; } p.blocktitle { margin-top: 1.5em; margin-bottom: 0.2em; } p.imagetitle { margin-top: 0.2em; margin-bottom: 1.5em; } div.image img { border: 1px solid #ece9d8; } a.imagelink > img:hover { border: 1px solid #093; } /* IE6 broken */ a.imagelink > img { border: 1px solid transparent; } a.imagelink { /* Don't use text link colors. */ background: transparent; color: white; } div#content { margin: 50px 3em 3em 140px; border-top: 1px solid black; border-left: 1px solid black; border-right: 2px solid black; border-bottom: 2px solid black; background: white; } div#footer { background: #f0f0f0; font: 8pt sans-serif; margin-top: 2em; margin-bottom: 0; padding: 0.8em 0 0.8em 0; position: relative; bottom: 0; border-top: 1px solid silver; } div#footer table { margin-left: 2%; } div#footer p { margin: .5em 0 0 0; padding: 0 5%; } div#footer a { color: black; background: transparent; text-decoration: underline; } div#badges { padding: 0 15px; } div#badges td { vertical-align: middle; } div#badges img { border-style: none; } /* * Style sheet rules that are applied using element class attributes. */ div.image { width: 100%; border-style: none; margin-bottom: 1.5em; margin-left: 1em; /* for IE5,6 misbehavior */ padding: 0; text-align: left; } div.admonition { margin: 1.0em 20% 1.0em 5%; } div.admonition div.text * { padding: 0; } div.admonition div.icon { float: left; width: 56px; } div.admonition div.text { margin-left: 56px; padding-top: 1px; } div.admonition div.text * { padding: 0; } div.clear { clear: both; } /* Print nicely. */ @media print { @page { margin: 10% } /* This _is_ valid CSS2. */ h1,h2,h3,h4 { page-break-after: avoid; page-break-inside: avoid } blockquote,pre { page-break-inside: avoid } ul,ol,dl { page-break-before: avoid } /* Override existing property settings. */ h1,a { color: black; background: white; } div#content { margin: 0; border: 0; } div#footer { display: none; } /* IE5,6 only has the problem displaying, so restore margin for printing */ div.image { margin-left: 0; } p.imagetitle { page-break-before: avoid; } p.blocktitle, tabletitle { page-break-after: avoid; } } div.sidebarblock, exampleblock { margin: 0.5em 20% 0.5em 5%; padding: 0.5em 1em; border: 1px solid silver; } div.sidebarblock *, exampleblock * { padding: 0; } div.sidebarblock div, exampleblock div { margin: 0; } div.sidebarblock { background: #ffffee; } p.sidebartitle { font-family: sans-serif; font-weight: bold; margin-top: 0.5em; margin-bottom: 0.2em; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/xhtml11-quirks.css.svn-base���������������������������0000444�0000000�0000000�00000001012�11245477405�022732� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Workarounds for IE6's broken and incomplete CSS2. */ div.sidebar-content { background: #ffffee; border: 1px solid silver; padding: 0.5em; } div.sidebar-title, div.image-title { font-family: sans-serif; font-weight: bold; margin-top: 0.0em; margin-bottom: 0.5em; } div.listingblock div.content { border: 1px solid silver; background: #f4f4f4; padding: 0.5em; } div.quoteblock-content { padding-left: 2.0em; } div.exampleblock-content { border-left: 2px solid silver; padding-left: 0.5em; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/xhtml11-manpage.css.svn-base��������������������������0000444�0000000�0000000�00000000343�11245477405�023032� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Overrides for manpage documents */ h1 { padding-top: 0.5em; padding-bottom: 0.5em; border-top: 2px solid silver; border-bottom: 2px solid silver; } h2 { border-style: none; } div.sectionbody { margin-left: 5%; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/xhtml-deprecated-manpage.css.svn-base�����������������0000444�0000000�0000000�00000000545�11245477405�024772� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Man page text is indented from headings. */ p,ul,ol,dl,h4,h5 { padding: 0 10%; } h2 { text-decoration: none;} /* Man page emphasis is always bold. */ em, dt { font-style: normal; font-weight: bold; } div#synopsis p { } div.literalparagraph { margin: 0 10%; } div.literalblock { margin: 0 10%; } div.listingblock { margin: 0 10%; } �����������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/text-base/xhtml11.css.svn-base����������������������������������0000444�0000000�0000000�00000006565�11245477405�021440� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Debug borders */ p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 { } body { margin: 1em 5% 1em 5%; } a { color: blue; text-decoration: underline; } a:visited { color: fuchsia; } em { font-style: italic; } strong { font-weight: bold; } tt { color: navy; } h1, h2, h3, h4, h5, h6 { color: #527bbd; font-family: sans-serif; margin-top: 1.2em; margin-bottom: 0.5em; line-height: 1.3; } h1 { border-bottom: 2px solid silver; } h2 { border-bottom: 2px solid silver; padding-top: 0.5em; } div.sectionbody { font-family: serif; margin-left: 0; } hr { border: 1px solid silver; } p { margin-top: 0.5em; margin-bottom: 0.5em; } pre { padding: 0; margin: 0; } span#author { color: #527bbd; font-family: sans-serif; font-weight: bold; font-size: 1.2em; } span#email { } span#revision { font-family: sans-serif; } div#footer { font-family: sans-serif; font-size: small; border-top: 2px solid silver; padding-top: 0.5em; margin-top: 4.0em; } div#footer-text { float: left; padding-bottom: 0.5em; } div#footer-badges { float: right; padding-bottom: 0.5em; } div#preamble, div.tableblock, div.imageblock, div.exampleblock, div.verseblock, div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, div.admonitionblock { margin-right: 10%; margin-top: 1.5em; margin-bottom: 1.5em; } div.admonitionblock { margin-top: 2.5em; margin-bottom: 2.5em; } div.content { /* Block element content. */ padding: 0; } /* Block element titles. */ div.title, caption.title { font-family: sans-serif; font-weight: bold; text-align: left; margin-top: 1.0em; margin-bottom: 0.5em; } div.title + * { margin-top: 0; } td div.title:first-child { margin-top: 0.0em; } div.content div.title:first-child { margin-top: 0.0em; } div.content + div.title { margin-top: 0.0em; } div.sidebarblock > div.content { background: #ffffee; border: 1px solid silver; padding: 0.5em; } div.listingblock { margin-right: 0%; } div.listingblock > div.content { border: 1px solid silver; background: #f4f4f4; padding: 0.5em; } div.quoteblock > div.content { padding-left: 2.0em; } div.attribution { text-align: right; } div.verseblock + div.attribution { text-align: left; } div.admonitionblock .icon { vertical-align: top; font-size: 1.1em; font-weight: bold; text-decoration: underline; color: #527bbd; padding-right: 0.5em; } div.admonitionblock td.content { padding-left: 0.5em; border-left: 2px solid silver; } div.exampleblock > div.content { border-left: 2px solid silver; padding: 0.5em; } div.verseblock div.content { white-space: pre; } div.imageblock div.content { padding-left: 0; } div.imageblock img { border: 1px solid silver; } span.image img { border-style: none; } dl { margin-top: 0.8em; margin-bottom: 0.8em; } dt { margin-top: 0.5em; margin-bottom: 0; font-style: italic; } dd > *:first-child { margin-top: 0; } ul, ol { list-style-position: outside; } ol.olist2 { list-style-type: lower-alpha; } div.tableblock > table { border: 3px solid #527bbd; } thead { font-family: sans-serif; font-weight: bold; } tfoot { font-weight: bold; } div.hlist { margin-top: 0.8em; margin-bottom: 0.8em; } td.hlist1 { vertical-align: top; font-style: italic; padding-right: 0.8em; } td.hlist2 { vertical-align: top; } @media print { div#footer-badges { display: none; } } �������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/all-wcprops�����������������������������������������������������0000444�0000000�0000000�00000001556�11245477405�016200� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������K 25 svn:wc:ra_dav:version-url V 51 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css END xhtml-deprecated.css K 25 svn:wc:ra_dav:version-url V 72 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/xhtml-deprecated.css END xhtml11-quirks.css K 25 svn:wc:ra_dav:version-url V 70 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/xhtml11-quirks.css END xhtml11.css K 25 svn:wc:ra_dav:version-url V 63 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/xhtml11.css END xhtml-deprecated-manpage.css K 25 svn:wc:ra_dav:version-url V 80 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/xhtml-deprecated-manpage.css END docbook-xsl.css K 25 svn:wc:ra_dav:version-url V 67 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/docbook-xsl.css END xhtml11-manpage.css K 25 svn:wc:ra_dav:version-url V 71 /svnroot/htcheck/!svn/ver/614/trunk/htcheck/doc/css/xhtml11-manpage.css END ��������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/format����������������������������������������������������������0000444�0000000�0000000�00000000002�11245477405�015206� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������9 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/prop-base/������������������������������������������������������0000755�0000000�0000000�00000000000�11245477405�015675� 5����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/.svn/entries���������������������������������������������������������0000444�0000000�0000000�00000002317�11245527264�015401� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������9 dir 620 https://angusgb@htcheck.svn.sourceforge.net/svnroot/htcheck/trunk/htcheck/doc/css https://angusgb@htcheck.svn.sourceforge.net/svnroot/htcheck 2009-08-27T11:50:37.322403Z 614 angusgb svn:special svn:externals svn:needs-lock 9d2f00da-8b7b-46b5-9189-48900c6a05fa xhtml-deprecated.css file 2009-08-27T12:41:41.000000Z e8f488c4551ff4c306a39b14a39c47c4 2009-08-27T11:50:37.322403Z 614 angusgb 5387 xhtml11-quirks.css file 2009-08-27T12:41:41.000000Z 9782e313e925ef17c992ffb35051c80a 2009-08-27T11:50:37.322403Z 614 angusgb 522 xhtml11.css file 2009-08-27T12:41:41.000000Z 865608501734d3113334cde7a09766a4 2009-08-27T11:50:37.322403Z 614 angusgb 3445 xhtml-deprecated-manpage.css file 2009-08-27T12:41:41.000000Z bdadc7ed2d58a1cf7a28f683e94bdda0 2009-08-27T11:50:37.322403Z 614 angusgb 357 docbook-xsl.css file 2009-08-27T12:41:41.000000Z e443f6554eb1f49039490655fb05def1 2009-08-27T11:50:37.322403Z 614 angusgb 4436 xhtml11-manpage.css file 2009-08-27T12:41:41.000000Z 43044b2270ff27cd554e1996096a53e3 2009-08-27T11:50:37.322403Z 614 angusgb 227 �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/docbook-xsl.css������������������������������������������������������0000644�0000000�0000000�00000010524�11245477405�016061� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* CSS stylesheet for XHTML produced by DocBook XSL stylesheets. Tested with XSL stylesheets 1.61.2, 1.67.2 */ span.strong { font-weight: bold; } body blockquote { margin-top: .75em; line-height: 1.5; margin-bottom: .75em; } html body { margin: 1em 5% 1em 5%; line-height: 1.2; } body div { margin: 0; } h1, h2, h3, h4, h5, h6, div.toc p b, div.list-of-figures p b, div.list-of-tables p b, div.abstract p.title { color: #527bbd; font-family: tahoma, verdana, sans-serif; } div.toc p:first-child, div.list-of-figures p:first-child, div.list-of-tables p:first-child, div.example p.title { margin-bottom: 0.2em; } body h1 { margin: .0em 0 0 -4%; line-height: 1.3; border-bottom: 2px solid silver; } body h2 { margin: 0.5em 0 0 -4%; line-height: 1.3; border-bottom: 2px solid silver; } body h3 { margin: .8em 0 0 -3%; line-height: 1.3; } body h4 { margin: .8em 0 0 -3%; line-height: 1.3; } body h5 { margin: .8em 0 0 -2%; line-height: 1.3; } body h6 { margin: .8em 0 0 -1%; line-height: 1.3; } body hr { border: none; /* Broken on IE6 */ } div.footnotes hr { border: 1px solid silver; } div.navheader th, div.navheader td, div.navfooter td { font-family: sans-serif; font-size: 0.9em; font-weight: bold; color: #527bbd; } div.navheader img, div.navfooter img { border-style: none; } div.navheader a, div.navfooter a { font-weight: normal; } div.navfooter hr { border: 1px solid silver; } body td { line-height: 1.2 } body th { line-height: 1.2; } ol { line-height: 1.2; } ul, body dir, body menu { line-height: 1.2; } html { margin: 0; padding: 0; } body h1, body h2, body h3, body h4, body h5, body h6 { margin-left: 0 } body pre { margin: 0.5em 10% 0.5em 1em; line-height: 1.0; color: navy; } tt.literal, code.literal { color: navy; } .programlisting, .screen { border: 1px solid silver; background: #f4f4f4; margin: 0.5em 10% 0.5em 0; padding: 0.5em 1em; } div.sidebar { background: #ffffee; margin: 1.0em 10% 0.5em 0; padding: 0.5em 1em; border: 1px solid silver; } div.sidebar * { padding: 0; } div.sidebar div { margin: 0; } div.sidebar p.title { font-family: sans-serif; margin-top: 0.5em; margin-bottom: 0.2em; } div.bibliomixed { margin: 0.5em 5% 0.5em 1em; } div.glossary dt { font-weight: bold; } div.glossary dd p { margin-top: 0.2em; } dl { margin: .8em 0; line-height: 1.2; } dt { margin-top: 0.5em; } dt span.term { font-style: italic; } div.variablelist dd p { margin-top: 0; } div.itemizedlist li, div.orderedlist li { margin-left: -0.8em; margin-top: 0.5em; } ul, ol { list-style-position: outside; } div.sidebar ul, div.sidebar ol { margin-left: 2.8em; } div.itemizedlist p.title, div.orderedlist p.title, div.variablelist p.title { margin-bottom: -0.8em; } div.revhistory table { border-collapse: collapse; border: none; } div.revhistory th { border: none; color: #527bbd; font-family: tahoma, verdana, sans-serif; } div.revhistory td { border: 1px solid silver; } /* Keep TOC and index lines close together. */ div.toc dl, div.toc dt, div.list-of-figures dl, div.list-of-figures dt, div.list-of-tables dl, div.list-of-tables dt, div.indexdiv dl, div.indexdiv dt { line-height: normal; margin-top: 0; margin-bottom: 0; } /* Table styling does not work because of overriding attributes in generated HTML. */ div.table table, div.informaltable table { margin-left: 0; margin-right: 5%; margin-bottom: 0.8em; } div.informaltable table { margin-top: 0.4em } div.table thead, div.table tfoot, div.table tbody, div.informaltable thead, div.informaltable tfoot, div.informaltable tbody { /* No effect in IE6. */ border-top: 2px solid #527bbd; border-bottom: 2px solid #527bbd; } div.table thead, div.table tfoot, div.informaltable thead, div.informaltable tfoot { font-weight: bold; } div.mediaobject img { border: 1px solid silver; margin-bottom: 0.8em; } div.figure p.title, div.table p.title { margin-top: 1em; margin-bottom: 0.4em; } @media print { div.navheader, div.navfooter { display: none; } } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/xhtml11-quirks.css���������������������������������������������������0000644�0000000�0000000�00000001012�11245477405�016437� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Workarounds for IE6's broken and incomplete CSS2. */ div.sidebar-content { background: #ffffee; border: 1px solid silver; padding: 0.5em; } div.sidebar-title, div.image-title { font-family: sans-serif; font-weight: bold; margin-top: 0.0em; margin-bottom: 0.5em; } div.listingblock div.content { border: 1px solid silver; background: #f4f4f4; padding: 0.5em; } div.quoteblock-content { padding-left: 2.0em; } div.exampleblock-content { border-left: 2px solid silver; padding-left: 0.5em; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/xhtml11.css����������������������������������������������������������0000644�0000000�0000000�00000006565�11245477405�015145� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Debug borders */ p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 { } body { margin: 1em 5% 1em 5%; } a { color: blue; text-decoration: underline; } a:visited { color: fuchsia; } em { font-style: italic; } strong { font-weight: bold; } tt { color: navy; } h1, h2, h3, h4, h5, h6 { color: #527bbd; font-family: sans-serif; margin-top: 1.2em; margin-bottom: 0.5em; line-height: 1.3; } h1 { border-bottom: 2px solid silver; } h2 { border-bottom: 2px solid silver; padding-top: 0.5em; } div.sectionbody { font-family: serif; margin-left: 0; } hr { border: 1px solid silver; } p { margin-top: 0.5em; margin-bottom: 0.5em; } pre { padding: 0; margin: 0; } span#author { color: #527bbd; font-family: sans-serif; font-weight: bold; font-size: 1.2em; } span#email { } span#revision { font-family: sans-serif; } div#footer { font-family: sans-serif; font-size: small; border-top: 2px solid silver; padding-top: 0.5em; margin-top: 4.0em; } div#footer-text { float: left; padding-bottom: 0.5em; } div#footer-badges { float: right; padding-bottom: 0.5em; } div#preamble, div.tableblock, div.imageblock, div.exampleblock, div.verseblock, div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, div.admonitionblock { margin-right: 10%; margin-top: 1.5em; margin-bottom: 1.5em; } div.admonitionblock { margin-top: 2.5em; margin-bottom: 2.5em; } div.content { /* Block element content. */ padding: 0; } /* Block element titles. */ div.title, caption.title { font-family: sans-serif; font-weight: bold; text-align: left; margin-top: 1.0em; margin-bottom: 0.5em; } div.title + * { margin-top: 0; } td div.title:first-child { margin-top: 0.0em; } div.content div.title:first-child { margin-top: 0.0em; } div.content + div.title { margin-top: 0.0em; } div.sidebarblock > div.content { background: #ffffee; border: 1px solid silver; padding: 0.5em; } div.listingblock { margin-right: 0%; } div.listingblock > div.content { border: 1px solid silver; background: #f4f4f4; padding: 0.5em; } div.quoteblock > div.content { padding-left: 2.0em; } div.attribution { text-align: right; } div.verseblock + div.attribution { text-align: left; } div.admonitionblock .icon { vertical-align: top; font-size: 1.1em; font-weight: bold; text-decoration: underline; color: #527bbd; padding-right: 0.5em; } div.admonitionblock td.content { padding-left: 0.5em; border-left: 2px solid silver; } div.exampleblock > div.content { border-left: 2px solid silver; padding: 0.5em; } div.verseblock div.content { white-space: pre; } div.imageblock div.content { padding-left: 0; } div.imageblock img { border: 1px solid silver; } span.image img { border-style: none; } dl { margin-top: 0.8em; margin-bottom: 0.8em; } dt { margin-top: 0.5em; margin-bottom: 0; font-style: italic; } dd > *:first-child { margin-top: 0; } ul, ol { list-style-position: outside; } ol.olist2 { list-style-type: lower-alpha; } div.tableblock > table { border: 3px solid #527bbd; } thead { font-family: sans-serif; font-weight: bold; } tfoot { font-weight: bold; } div.hlist { margin-top: 0.8em; margin-bottom: 0.8em; } td.hlist1 { vertical-align: top; font-style: italic; padding-right: 0.8em; } td.hlist2 { vertical-align: top; } @media print { div#footer-badges { display: none; } } �������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/xhtml11-manpage.css��������������������������������������������������0000644�0000000�0000000�00000000343�11245477405�016537� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Overrides for manpage documents */ h1 { padding-top: 0.5em; padding-bottom: 0.5em; border-top: 2px solid silver; border-bottom: 2px solid silver; } h2 { border-style: none; } div.sectionbody { margin-left: 5%; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/css/xhtml-deprecated-manpage.css�����������������������������������������0000644�0000000�0000000�00000000545�11245477405�020477� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Man page text is indented from headings. */ p,ul,ol,dl,h4,h5 { padding: 0 10%; } h2 { text-decoration: none;} /* Man page emphasis is always bold. */ em, dt { font-style: normal; font-weight: bold; } div#synopsis p { } div.literalparagraph { margin: 0 10%; } div.literalblock { margin: 0 10%; } div.listingblock { margin: 0 10%; } �����������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/Makefile.in��������������������������������������������������������������0000644�0000000�0000000�00000031321�11245527334�014373� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group <www.htdig.org> # Author: Gabriele Bartolini - Prato - Italy <angusgb@users.sourceforge.net> VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.config subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline man_MANS = htcheck.1 DOCFILES = htcheck.text htcheck.pdf EXTRA_DIST = css $(DOCFILES) $(man_MANS) htcheck.txt htcheck.html all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $$i; then file=$$i; \ else file=$(srcdir)/$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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 info: info-am info-am: install-data-am: install-data-local install-man install-dvi: install-dvi-am 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 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 \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am uninstall uninstall-am uninstall-man uninstall-man1 install-data-local: all @echo "Installing documentation files ..." $(mkinstalldirs) $(DESTDIR)$(DOC_DIR) @for i in $(DOCFILES); do \ $(INSTALL_DATA) $(top_srcdir)/doc/$$i $(DESTDIR)$(DOC_DIR)/$$i; echo $(DESTDIR)$(DOC_DIR)/$$i; \ done $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/css @echo "Installing documentation files in HTML format ..." $(INSTALL_DATA) $(top_srcdir)/doc/htcheck.html $(DESTDIR)$(HTML_DIR); echo $(DESTDIR)$(HTML_DIR); $(INSTALL_DATA) $(top_srcdir)/doc/css/*.css $(DESTDIR)$(HTML_DIR)/css; echo $(DESTDIR)$(HTML_DIR)/css; # 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/htcheck.pdf��������������������������������������������������������������0000644�0000000�0000000�00000234025�11245477405�014443� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������%PDF-1.3 %ª«¬­ 4 0 obj << /Type /Info /Producer (FOP 0.20.5) >> endobj 5 0 obj << /Length 1938 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gb"/l?ZVu#&A[3%.<qmLf+:3'5FkQI8ZnCQ-bUiChb7[O50-j722?_r,)O'_"W0lli7t]MPVbIIp_a-K/S5g+>%pbZUSE%SE*P1)O>3/a/CQ@$dE"'Y,MTH`T5E5pD;("_prGBKnr1]5piF(^59(]7/nstR^c6F`h[BT;oSddP;r6B;.+jJ"(k3Ee?fcK'EN\Plhm=,Z/^nj(iS0Y9g0lT4N(c7,1#7`XCh%iZ\4C+qYcY:ZYc@sYBoXQ@_00&:O,JuWF4uHFGt)^T:/*'ag.F_1<RV7Xi`mqh_m7Ce>K`IsWG33W?"9DM>FVO),%r1kX]TDl::lY0/#=G8=fm\5o0i(i<^_P9M3NarnqaPr?s#Z:&GV61.(uj;NNp0:>E,]Saoacj(W46m]he)hItt'\R8BOE;Z8Z]k61tipTecs:8bG'>gmV]c"'C'B9UP<^*9%jUs2Y0Km^;?-*c13P&F7K3uSInJS5Gp%Zu)i&PM`3SX(\H:/J+%lRl$4RAc26:1CnT7c_Z:086r#*lqmm!f(0<W7)1R^dO/"Sl$Y5ZHu;8d3iHW;GLldj3ViOU+[)QP1eKg]48$E?k7Td&+&D0`:8jZ%R:1?&GZ+SkITq[%;`(1ht9#HFJYMY8,B&iS?D.n%<,lDi/?ZF(OuQ%IX@R@-#lOh4^EBcp'7<)&.!Y5(Z8[9pNoQ.FHpj7kP\fo624E&EiL,k@K6IbC>$%j6A\bIdf]328-KF["+e7k@cM9DQa:\L:rP_)_hV*Xbh8`Kg9*Qt//'^L%g;l-\DK:L=Go"J1h-'!Ig:U:=j3V26'N8I1_M6EK@^+;HLA7#hbc\Q/o/q!G(*Y&?X<;+)1mM^+RiT<.1TA5m<W]F:I`9#qcDJdT`7b+V-B'M5C$+;a1B)PXpPa8o[`)L.b;$!:b-0-lK44KG0=@+cuWCR.IS5Lo)<FDJ\^G),_T,:B?-+.1eDAfPAaVh\LLPKi=Q.p5+`"*>oBWE*NEMjK+.<U&2*5NET@Tt*?Ypgo"!X0=^KEJcXq]@-fR4#EBS4Kg_:=pHJ#`iTW<Qo6DVJ1B/H;eT+%<p'1)'&CB/q$MYk(Y@&^BhYn3F"$UJ4<$P3Sk>4-T&T!(p7NoD7$FbWG]:!:'nS2CZfepHV/7ZtDe:(Y:H5iBDb8;pLbos?eK61d)?QlcP9%Zu0_?H"4QCT4i)]AkDdpBLbN0:LW!I`'H4)ol#7e@o!']u*]B$>/%(NSm51#^es[Zs=E"ClODAB'65F1cq#_ChG?:p]p:gnIZ_H[/(`d,Hj>l50ql?C)OiHd^l1$Zu-AR#@KM&V1HE*Z.B8^Y-o#=H:TVlF1,2:e%f6*SlS*!n@?)8'&Vtr=M@h,iZk!m:6ULr0ZXG$!hYa=GUfMCoMd*oHbE17^&j?tl>qWd"T`(uBZl'/I3-'HFJqBPb4U6`KceQV)+=Kjji=s#dVY<#-0orZBeDB%`+-1gD',0P(j)%;g_<)rs+r5r&nps^2O0!ggoo$"$=_-+@^4_Q2f9?!*\)]&l%Df9L\I"SjZ]LCCjKdXS;a?iND_@[[2#C;b!,$+(V1ZibL>3HCs+mk#hn1J#sg_ej)!DPG+57+A?&]]5;Z6:P^](#/P%8#J'X'm_4i,#4C2gg(9F+Ge2;Y5?T$#*erg\4GsXCaZZJW<U0"_\Xi!/]LRXi,,:n>i:$_\FI)hWd2!Ou?N^$d@X0'i0D_r-@>I$f3ZW?..hbT];>dQ;;dTc\,^ARs+r!tqB\m4#Pn%!Z+]dO]nf!"P4j?4<P/A_1j[Q*GLO/\prECW"='V;RWP<bg!VatE:1Y$$+IJBUTlt1`S(=SX>CAWTO1ss4;2rh6fMjjh1VY"?-XX^R'"@C`..b@jpq9*=@V(.s=>nfN19b`6bG,2D?=Lr<bE,*Te=/1u$cEZInopu8tX@Cp=oEB\hn[II->;bDY-HNfF~> endstream endobj 6 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 5 0 R /Annots 7 0 R >> endobj 7 0 obj [ 8 0 R 10 0 R 12 0 R 14 0 R 16 0 R 18 0 R 20 0 R 22 0 R 24 0 R 26 0 R 28 0 R 30 0 R 32 0 R 34 0 R 36 0 R 38 0 R 40 0 R 42 0 R 44 0 R 46 0 R 48 0 R 50 0 R 52 0 R 54 0 R 56 0 R 58 0 R 60 0 R 62 0 R ] endobj 8 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 639.3 95.328 627.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 9 0 R /H /I >> endobj 10 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 626.1 125.328 614.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 11 0 R /H /I >> endobj 12 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 612.9 220.308 600.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 13 0 R /H /I >> endobj 14 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 599.7 228.3 587.7 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 15 0 R /H /I >> endobj 16 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 586.5 205.656 574.5 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 17 0 R /H /I >> endobj 18 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 573.3 90.0 561.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 19 0 R /H /I >> endobj 20 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 560.1 165.0 548.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 21 0 R /H /I >> endobj 22 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 546.9 162.996 534.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 23 0 R /H /I >> endobj 24 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 533.7 185.976 521.7 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 25 0 R /H /I >> endobj 26 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 520.5 122.328 508.5 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 27 0 R /H /I >> endobj 28 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 507.3 157.308 495.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 29 0 R /H /I >> endobj 30 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 494.1 232.308 482.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 31 0 R /H /I >> endobj 32 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 480.9 208.98 468.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 33 0 R /H /I >> endobj 34 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 467.7 256.824 455.7 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 35 0 R /H /I >> endobj 36 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 454.5 249.48 442.5 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 37 0 R /H /I >> endobj 38 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 441.3 194.664 429.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 39 0 R /H /I >> endobj 40 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 428.1 106.992 416.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 41 0 R /H /I >> endobj 42 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 414.9 141.312 402.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 43 0 R /H /I >> endobj 44 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 401.7 132.312 389.7 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 45 0 R /H /I >> endobj 46 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 388.5 108.0 376.5 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 47 0 R /H /I >> endobj 48 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 375.3 218.304 363.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 49 0 R /H /I >> endobj 50 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 362.1 174.996 350.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 51 0 R /H /I >> endobj 52 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 348.9 60.0 336.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 53 0 R /H /I >> endobj 54 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 335.7 207.996 323.7 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 55 0 R /H /I >> endobj 56 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 322.5 231.312 310.5 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 57 0 R /H /I >> endobj 58 0 obj << /Type /Annot /Subtype /Link /Rect [ 60.0 309.3 216.972 297.3 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 59 0 R /H /I >> endobj 60 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 296.1 84.672 284.1 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 61 0 R /H /I >> endobj 62 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 282.9 89.304 270.9 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 63 0 R /H /I >> endobj 64 0 obj << /Length 2838 /Filter [ /ASCII85Decode /FlateDecode ] >> stream GauHN968iW'#*[5Y^E]U-,FgjS<Mrlb=O^Nj"Q`jXnFFOLZDP;"rRh;COc<V!$or$%RBGj[r`4TRH`tff3^K/rUT+<LM2f2EO]+gDVW5)``otBj"5l8E>OJpA4a"-QA^7,nST0C=tG0g2IoR!efWLuXqUSg3,rEZmh]o<\m=+gOUHrWiSRa?(]<+Y7dp-ATQh\cQ(p9bedN'`S*.H;ZpjM:pLklJ1LK%5Kfcg]eTOiJDH4[--S=>_(4dPfWL"5\4t`1oOT`pNMlrAh2/eRZNcl[+N'/Q\_YuOpOq"2)EPmFF)d/p4(SVTd?H<IZJCSf4nrD@;L]303rktC2P:KMriS>S_4uLE1qjkO7F&l9RX^7^Ee4_a@PgRA>iUp=E,YXa_4(ttLn(td,^Z5.=CNQ\AM/%:h8lc?r!j0plpjL2@)Vpjc9%I[YaJfp/P#.5T\il(u;CW;)"k,rGP<job%5KWlJ0abHr;%mECgXhAp)GnQ(lB4ZL`HG.S6U&qgK4teSQAQP41;NZqG':O>;M94+-UKg<usbCm&0K7P-'jP>%DT_5q]/[dE=-l;4t,tRh5U6S<840&$OP>DbFF$`YmW]jOcg==VPmp[hJgmdT0TLT^ksd68[E!%Cocd^>_*a<?nq6NC.a,[,'ED!+r85*KJ$_br*i?457I/1j%1+]cVYeRYcYF*,iop6!_a]6NQ6!CgabJ(8pe(K'XSG5C]t`cf4!RXSP?cK)_*bGXDQNNf@cccSUGb[@3c\R@7i5G4[&?k-EDXj'KLM*7l8%Du<]k*+PgMMiGeJBqe%Q[r@m"<Z;5$!2@/dmQGJ8r=n-E[6?6sdg2+'l1'-Nl/4O[a0h(,L`:^/@)1dbOQ/AN.1^t;O;!5ebfQU?S7#Ib8aL$k5lGUqJL*0W[5j<RISo]H"O8FTB;#tD0pR7kBeo5b3mkmpCeGQgVSj/L[5h2N&&&<)hu1;lS4L5!EFK6Qs/&?5RQLXX(/b_hoYuVlEK2jW.T*j?K(]HrUj=4(oUbD8847:J@9Ac(#c##K5G;7*mrMMDKX79'0?h#e9hlFR;<m!Fa$icIGG:[]6pHSQ3dl>>R@6>Y0br<LB;scNhL:6F_Nf'B)AC`.;+5DmNm(WW#OM3gdC=jInJsNi!\9G^I1"JDQ0jY*h(ccARQL&[)b_do"13cRXZ"O;\8FhJ5n#QI*+H\C<#Ys!<&?K==p-,.c?uP@C_YXt+>s?bX)d-!O12&mI01CA.rBtq"M;;3+XZRoAl&J$hh/&9;Y%rJfq](P+E76,VRshVUN_um$o!#R,L(AIEXaEI^(q(>S&m*abjV71.B'/AN4!-YJQISiXXA=E/+Qr*&Q[Ub%l4?4?Tu-sOruV'S1Mf01?0YJHkIHXZ9RLVP<E?E?Hl@EHf5DY5e7k2Xe6DRcpELe^`@SM1)X0T"HsGUJs+c1c?lkI><-RYM8T>R.hkQBA[?V4M?\H\/!+6Y"PL-.0..R!661C:eJQlL%<'nZ.ioN[Q>C6,=G[*tO+:ur+)]f?%n%*u\rDm7nFR-^:Qj"ETWt&$Vh`^J+OmI&1<J9UI<?MIkB.qi;*Wj6*T/';*^V)R+Jl\N&4Q`TYDFAHMuT_DV`ha<?G)L0Hm8+9jOY;_a+I[BpEMO;hu*??*eQF+qQBm*G;ei@%/%hMM'h2+.+5Q`ZPH7fT/!8_Jp+mFR!Z!'!\D>]']KGt?'K/`NG!&:\OQ!nPIaj51'1hbpl;)G'MUs2;Wr_6Qtj9c#^*fk8=:i&<FceHG@Lk^n_:otn7:Tk'EO!EaUArGBJE=(W,Uf14.W-\OrXW&o5/)1Gj%?==QO1@eJNs&6Qr5B$YtUC):fHCE8o1Z'8IVQF?:f'm8QE#rqIAg!.;Ig,Srtg93IEtg;Ld_f1ZeU?*jG8!m`m[2uje:P(8L+r@U;C\cM?ha2E":c:AQq9ADLX)f#5^QYI9d4*11rkBLu%SsS.u$PFLW=th]I8%Ni151=\/:'LinLhpfs;)K.rSn/^1-)kKEqEWc?1o6\,>fkZB3VLcFcAP8gF"uKeG#l#d$dAO>lpBCrJ>%c8`>,)c'FmZ?D$?Ls5E>69F8%o;(;mJWf)-I/[mGMA`"6+mHU;\R0rH=?Q"8:IA%PQ<)_De"+$+6m?U=IcZ()\9OP'cq:;_/`O3S0e6I/qU@PIj*>]MY$6DV4"=_>rtKmDP\[X1.#5u/?#PXaV)Anu0\$?4+j9Qn^WK]rY=H3a&`kq,<^>ZRXc'[r03H_^ujNc?LNHG%3"XJLo$?*K4Y2J/8-6Q#+(`+Xppe;KmUGc_M"ccBq;r'DIL-%DPE%`7T?RH%H27M'=b'0<1D]aSKE%mWcooSt>N6+%)JgrSJ@&?;9S^]0&OhFo`sd/tiKcZRT+1as@D,`OVBN#A.]%`KAm9/jN9+F*`U[cfcXHB$poiqOR-]jboU"Mr3)-7-`'5fbd`kgpU!#h9E%]B>clRKu0E$G4Mr]IY(A,&tJZ:T:on@7jl"!eWET.]o!@6ZQ@.=03nC'oi>Z\lGi=a'ds=@.cfl)E1>!;$V,?<W1.X:;G!2bHVC[$G7M%Rj$@*kMa$T'Fta?2-aonMG3lDQ'=.+ct#6kYPEaq?K,[j)a!<SF8cf7ma/6aNh&0!kamop##9q;Oj%)4>5L,ckaA8P\&I.H])QT73H"%d7gH6p?E<f';R_7.lDsnf%K;/X5+FtJS-+8.G1o>D+7+).j_?i.,9eL-9H6(Wd569,+g1(:%hf#'%imMi`mG=?S%lT8JiVK@F+Q5Q7"4%oX^&A2Zqu.T\bYXTq^%+Tf*U48<l_ZKG/2Lc[G84Mo^S3(%AA)SP*r0YW/7d5kDoPN":k;>_f(a.~> endstream endobj 65 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 64 0 R /Annots 66 0 R >> endobj 66 0 obj [ 67 0 R 69 0 R ] endobj 67 0 obj << /Type /Annot /Subtype /Link /Rect [ 445.608 160.963 540.6 148.963 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 68 0 R /H /I >> endobj 69 0 obj << /Type /Annot /Subtype /Link /Rect [ 36.0 147.763 172.008 135.763 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 68 0 R /H /I >> endobj 70 0 obj << /Length 2391 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gau0E=`<%a&:XAW;">5<Y\>0<U#[X/)C1"E[#'`*</%S(<t];3X6_Gj/&/eclJN)]903:a]nj_qgts+L0L*2K'M^dJE@:A>R6+QBGnV!ChB[p8?9CrPkq&4GbK4,So/4:M>kt'$&'gNP<4]\@RVsgjbO%>dfA1#@])N\@;@7eB?>bGGX?sBuTu<f'TN%/FJnn]Z\pGAKQU7!#lYbPIHG'9Lb^TeuB+rVICOO]WlFTe*6r`EY:=hUV30A@'3fukiODH/\9!\$DJW:X+#T`s?@`C@>b49;t8LZ-I[2rIJF(><jZ12X0WMl-YWg6?ApuH!m^e='%ADiZ_SR\);Lo9<;k5:>I9\A0M^$..)^<A+oNId<!Z[2&T*ID#d@-s_k>$:9.=c@T8(A+RWqD/S<gt/"0Ze8'YD*ddsVl!]JF#Xq\R;8:lMEc.'$BuZLVi]SG*f-XMP9aKiR@.k^c/p?JE\mdhLaX.,C]T,PN;CB^,A/omkaAQ]N@WML(*i8:iNrXUjVU):Za-VS[98XlBWQ%3(r2-'iu!$_OFf]n7@isL`A)6dK=$OEj@a1nY:PHJY#5\-;O!K6gW4;CETl_%#5D^#p#:?mm:\.5+YVNth-+X_;GfA$CfT5Z:5?cG$P^unVh!$T3C]-@[tDgff=W"fjX>;H0VTi=K<b_@#%Ru*ijNUOX(dtml]P<ff,sXp'u>&-X43FKf/%:8/XMOneJ3F!:[_H_J.O2;g;<(sXO5g3g_Ch."G*IiOF3YGJ+'Ogf0.eE)VW`63^M]Q,9]*j9e(5(a*a*;0nGjWdi).X-lXG)=Cm.K;onb(baHF5+[:iVK70ob]?Q^^5r]n5k%]QR!;1gWpXIUg8RJZD3EE/WhJ>`-3SL,C35(tNJK,Mgp$;I/8Mr'aL00&O5F#8:L(H9]&ro(U>"J2qj[d4U,)m_FT#-csTBEs4r6oInj*[m+b*Jg%j@nTm`hgCq^^3D*JQ4l3N)gABY$?pbL'duWrLKm6D;[t`%MC.H.*GYq4&Ha)]1/3n$KhZaJ@m?,-d[M^SM)Ucd0s_gG#>5`5%kV5:I?\fbQXqn@MN+00YiJkH'V*pde7U!E3NnO=EBd::jtQZM8;#l&iZN4hMCgNE/sQ#:n)cAYH_=%+>apF3pfP5Xh*tZ9@Jt2K.rhk?#:k?OUCW?F&F8#\f,\``,]%"hHjQ-[p,ci>,?&Q*>m>0/&##H0<^YdY4q,:W=;Xo"sghMT`R[hYeF)V>[6hOC6jRtH3sPi3dQrI\E)nC<OjTa@@L<P53V'-1MZW\M?Dks<kf>O?#Tq/!'B#UeNGQ(Lr?#mR2_/b'r"/)&Kk-V6RG\O^iX4<JiP7)9D,<sr_O8A7oW,.bmt(80hLQTPW*.o*VflnQCr!MGJ"R]$4T<pgfRWegYkp^JN5oKJK0<p['>ka3J!faAO[Y,Blp,[.2MZs530>&HSFljfnmi#^r2/)FU1.QB<<<p4qb(U$J=u=di#",(^S+1BY2]G!$nfO\[!UZ7%7:`:S?'>>!/(,l4'Jf3)4B#pEO7S'A)HDc4[XZXYPpV3CE1ak/DD><6#gI4C0umgZH#oB#:&@6te:&.oY"nUVmJ!kC+3$B"l#:l.WV:HD0Rm2J=D[d#7S:g-"<bp>Pu$W(Z&/hGKVnmtX0iH$ci8@-@g/N-%n+Aequ4duoHI";'_#NR_GI1/N[5kJSFlB.+kZ@/f)mi?s/q,o@eSJ*[;t`1WjL1cI!m%;FP\_a:]\(^_Z/i4.#g+,BM+RWZ8)!6ZfhLqokLWpfg@X"iM0c$h1Xc\l&sIZBod"D3*(F;ZJ'cg;HL1\G.8jKXQKkta[=o'(k1GmY#76''C#=^oZ;4jn74ZStiF"nDE>gb4)Z\_Qkh%)TIcBlkgu+t)r-MEHr]HfmYqT&TVJas^`S6_N2;2s?sK5hqR[F?ffaP)n#`T3Cn(.V+0(K)cdk?"+Xt7P>1]m$j&*:=p%7K]%#q[g\6];k"(^04LTrd1Fm=^Oe?U@K*s=aWa8`OJXq5oB;XGKfC/tS_/+DF.S$/OKhgAB(rS`n.ubl7d7kq$<&';/DGWi@.5UsF>BW-OO.@f=G@OMrWjt)DM+#_n[U[Y3l)NMV9N11<P>cPXn!S/)3M.rgP;"GrcMOfM`fASkKBA(J(.eRgu0nL7gib[Um*R:S)`>l_s;C6NX88$21A<jS680m?52p^_.XDTc]"t*.1^[R0!6@6Om0/T^1=L6+=+=CqCuopIhHbjqkj)+=KR1p&IG0059,7+BBgl]T)6=;Q>^#uou[GQo:,FjK2.,f2Pn.<qj7-3p\#9mrY$'#?B?uW;;h4h3,tL.,5Gbpp;bjA3?%7W]5qJ,42RTpL>@'UaH!sZ:Fg2&FrEBWF$,Z)M1W6WIPYH?/;*ApIfUh6@hJ~> endstream endobj 71 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 70 0 R /Annots 72 0 R >> endobj 72 0 obj [ 73 0 R ] endobj 73 0 obj << /Type /Annot /Subtype /Link /Rect [ 201.648 743.489 285.3 731.489 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 43 0 R /H /I >> endobj 74 0 obj << /Length 2263 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat%%bBDVu&Dd46fU[HM^jJAP9:Rn8NmftmEn[+r$]9N]e0L`<?ki;"4/=9EL*C<oA7Grd?ljO[>VL).B32hOQK'aTROuj%CN\cA2Z.VI08/5Wct7ad=gQ!Aqcp=MEFHP&!uk:d1Kj!BPZ@aA/:%8WQ4(?gmgS[@bWali=T;L0&)^$(o]4qalc..igjp^7l=^g#ReRp3rKs$Yp*\.$NM8s:jE"YLP5l&@9@a&J8G2n:Hp;00^q3Q]-,;0?9uQ-@!>l:tT`AQ<=b$9abq%Z<6;-Q5bWV=Z.&_)6G/)H:%B:Go!$GYn1<6k,&r#tR)dVO.&)g5_c*@"C_o=a.k=on?dC<S6G\oA'<Y2MiU^"<&I%9[PG$'n99NkNo9]R1EW(+=&$4M=1"hDiTNV;;f\O(.q[ncU1YB3r_!>]@,q/2"p^23:N_+Tc8Gp"N3[^3UF$0j)Vca8dF24A>CB(7Sf;Ee?YG/>i;jbD&aVr'3fi1lWDnM1d>$E[BSb<-kR);,1klKaek91'jD9=aG^2A!Hu3+f,V>%DDIVUGR78ZG*jddW?u9Q=6"]bV>7paEYi#^,o`^eG6?V0iu@9Tg[FF+%d\^c1t.%EZe5(mTVNpQ#=7$D>lJi%W35q3G9)%<6AlG3R\hMkXQQ[0]ZNc:a*#-kJ3O3d4FOK!:ifB]9+^5+,$P\KMHe(CHe%dmAt5.92Kg*Aq/3mjI@X(p*E'RV,P-"r0mBT3;[RHof#D]]:QeBb[Lh2=:e+M828H)_qSE-n8c*7DVi.Q?=qF.$J[C4=iQp65Eg=>_A[8(qsXn2N,50M?%l[BRq5n_gf_7mP#2@0W47k3^U"L!>UVI*6+^-j_\:UaC,+^hOaMA<eDA($uVjh;:^C4l^1ZYEuA,'O[?>%$8!lGghAak-t4`jGa?o\O3>I^m"$-r*#?tQf/e6[Q[TL;(_KNhJMJ%R+af<,Vo]E6)]lH8=Lli)eS?Js'uh@CROt.m[V4TEbW5#R>>r6\*i]P`.n+7+W>/GBMJo<-UO&nM5tX/:L`74&r9GObX/c6?&l:bH\hnpJ3N_Re!Wnt\1!iL&e#+qYq=0<l<p3t?N!\tdqo&KqUi<cue)9>"JG?t)-N[):^Geb;l>1Qi":ifHiIIp\MH#]Mp2F>XDL`n)Vu7/#%:P?t]B@%dMc%"\M9hnn\4S_N)$%5\hsodG&ok$\?!VSojsc\IPprfH)l,9@n$lPu))nH6T)_iP@oZQd@Y6$FR56t-%#kM;U&379?Fu.A0Lhj[,&%$Tbe>n:H&QN$NeODm`CR#>8JR$c*$?O.El;';$?A5aUtK7h)S[j][!Q?+f9P<Re#@nn+Hm&TRS4J#cIBnjrTDqa9i:>%Z:=!ORQti!Kd#)ROUR!!PY=l#:KIp?Ks<nQXcnU:$1ea/$u/K>!g9sG4#?#ZL\!U1Eg2IIX6UQT#e-m7>%"o4iVp"Ipqu]1`oPON(M)=J0/qPT5N'+&[ogi@._%uX&,r]#q)4B\(U4us;W]`?9^m3F[UP2_IGB6sqrW3V],f41SeG!P;`[ql`LKR`?\tpj99F36,*j?`F96afJjlT`in-=)SR1<\f\&@_^:D2FH&%]`jJphe5+Kpj^9%LfTO7K')D:=2/Upr\HB9gF34SL[jq)lX%0YEXJLNW(M(:US#=KBsIfF_:/'@_/&9=_U5n(CE6_'XUbjAkcE8=pef&R@uLNAGl#8FTYH'9""%`=A3:c#a1rO=*7Q!S!GgFf,YimeJ_B)bOUkl$NNc*op@\M@WPJ2us$!dk".$pXWAFapX`1"To"0T*r?gT6CQ#T/L^%rUI:+nNlk%!@gX+-hgXk3g^sq`b[<6D$-j>eNJNP'EPH3@'mpn7o&nl1^)s"6QPNgXPYed$XDX8+Y]TmAJ.JhA\:!Q/&%[5(9]Y"o\Wf,+<k9"*'HS.KScW1'8%RbkQeDG2Y5peP6MUG:;e3,O]-:_PNg#.0l)o"5:E"4,b9`1[lA3X?.<kb[*OPmjlXAjs4u&L[#<ggYH(9"\Hfqi!?,Xan=1`!(hFHh/a27^#T>gQU'D8?3.!rr\sp;JpE9\l's($$^0qYa4I>g,+8L[JZ<@#b'cl3N-BkKF1t#R*T#ElLk2]-S%>UX+)M3O99E]ns3,bs32Y9&KI/`n.J$e^gR=WjEpPRMi*2t+JKkX,ldshC\+]jLp0Z)YLO!lK"]04u$7qYMQK$Kdm.8o")+"Mfac><HYl>h-<XI-n.+VBM(4>aV+/IIdB>uY6]r6e.Yrh=KrFZ'3l+3:_~> endstream endobj 75 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 74 0 R /Annots 76 0 R >> endobj 76 0 obj [ 77 0 R ] endobj 77 0 obj << /Type /Annot /Subtype /Link /Rect [ 130.98 528.163 203.976 516.163 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 41 0 R /H /I >> endobj 78 0 obj << /Length 2155 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat=-997Om&AI=/pokBi`,seCgQ.IV_!\K9!jjMh0aN&pG%0qK]0/hIlu1eP/$=aOaWN4bNiT5Gl`\%&2D7"iod`hu3n(K2\C.e@MJG9Nj-j]"1WOO(jdFgLd69]nIW;2igNrhhdtaRiiKa+>gUr(X\:35-2turCo.Z&5l6l.9jc,5/l(2'5nB,o=O%)Ir"uU,t2,%WS2QsDq_2/`I[U!WF41Y6&/9p-8p;j=1WI+oC(nq&-.cnp,k9a*]K,gd4rH\L?`;F(8M%r+sf$k,!3Mqf'%'):m"Z$Us2>^3=_7)I,a'kR7gQ)""F]p7ZNk:;MgoS5nFQQ_r4$]V@YJ4+ThJfKdD/,dLck3LCa+UK.;S-.]=M<K@+D,V*4'h>AQA3ei.f,\"RjMc#n(pb9Dpp?WS9]_!e=SuonlYr^\2pr)UYTFd*tEhm;%C%Z+>.DLR`2WaDV32*">qc`,0JHHH4[pn\oLa\4\(^;p=c^E1sC\SQ4ABpSCO!c26T]kU5m6-9b`a<`eJ>.W03#f]bskCJnus0h>-13o0lmt&=b8@JSQ<Jm7XB)J3X1'I@<l+OR)5GN:ZZ=Yj,DoT@`sfb[h?>LFD!+l=ggL&,\PNUVKr.HOdq(gSg3bb)4*IA%-9L8\"<fnh;2rQ(_R((u`0>=g*>4bI4902O'RH9eFF<I\a8`JrJYF9TPSW%;;<oC;!\7lZ><(DN.>N#d>J&(Fb59hTOoOp)V67FK0F5$QQg_&3=M!Z!^\"a7MQWpXt.^]L&*"A.^!nKp$\?IQ1lgYk[1Ta;tFj[X8u7paH?"ZU9,.%%oc;L1lAT?`OfbKO/hBf);>HMiO_LJ=2#"4^`6k&_<4O_f505L=*p15@4AJO<?#!+8dCF-&O=$4A\O.+-?L[17L0,!Hr0dlf8$L>@'R.93>\F329XC62efB:Gt"B$d]j)/Up0'O&NpF4?Wn6AN(E>WMP653rJMOC?_Cfm^P(F>5G3GD7=C-/3dXPm>*M&orS.]2JaM%jk$ERGDD5$hYs89RO1Rjla?_hKJf$8>98!na%_\Cc(IK`l6;\cU]MkmpV\J9,Dk_0Np[5r$UIqWGue;ZH@2=bD((an"f>#KU2_K7npC;2V86'/39J9rfBH<c=X6jjW_MNr0EG)MLe<uo0InB!.A]p-M%WH9/inJ_rqoB"$#![2UC([_@D/MJpJ4.@MG\r]!o:^i(A.7)@2tXPd>lsIIZlbT+?DXqje5X/6)U37XtfKS?S66"d/0KX"IW+?MF\*uSat"?!-=iNcuA;W;2a.NKA^2R=sN'.:G*;@_h/D(nT^0P>`1UKV_m#W6a4n+@Ac<(G^UC)CWlg!?GHsW!eE[O's-N^RHZI#>P1LiA99u!nro79P5+;+B"Ol_^<N2V-?O<8oq:Rq@Q84#4sEj'pNfdl4sG7m$,'f''l)tVAoJnZ)Rb<@A5jZTe+K3pP,/mXbiMAJhFdI:S>nP92ji:Yd`=#C(_Y36O?GUjceQ\jWlT_F(%@'uE9Z-e?$Bh+m"*Jp;@)c#JN-%PDDkD;?qS`>jPhshEas(!lS76$=%Ih!pF!:l_dG=hTEO]Pn@YTN).AMlLT#rAf;^<@?"C&U&)&'Zad+t7jCZ<+Qt5sKRakKr0?<JB];FPHbniTr=dDnm-8AUq's,_C'AOLohHgf@b/mDs*PoDF,)..fR5T,r#O7oTG\uRsG.W(P%HKl>oaJ1g],0r9H*R2Bq/>(22n2E0%6MmM2!9!H/fE6EL=V#<(#$<VmK)184F,f*fT]F/P@58,R!5/Rn-G3moYufd.!!()(6mr#'K:i7o2<FG5-b6%m0Z(Gduf==J=oc:TKCW]PHm:Ph^_HAO43fb,bUHEn&NhAei!koFt/nleS[UjBEs4]QsMqBQ=\lMn2C^850gCXi4qlMAKHtdlg>6]5Qi3[$9'I47:]V53El7$#;mZsX5QX/)`0:)7OfK*EJu1XdKRoCpjKr^^,V'[&tfq%9NAf4#[,/FOVTP'Y7)h<"k!CaAj6IG5(jkq&af:L%-"'G`,O\&*Fm,K3D4Q59Tq<rVK9t^[g@p>Cgtg4bnCd+'SM(cHtchO=pcb5'%DOpF9h3_RAcB,CmB'<1MH]t")lr3J%X"\q[bK+'bGN9XTb/5cDM%o7+8+A_Y%fl'uOY`"'=SSA,~> endstream endobj 79 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 78 0 R >> endobj 80 0 obj << /Length 1837 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gau`T;3.2+&:Vs/i,L9T%bM!'8ptE#gY:356e.]%<OZ-DDus)RV\h=]Qi?[t63q):[-Gg`00gA$k*u1\)=qIJ=Pa4A7u?Q52@J-i/j.1.TBEEYSr(6/4CZTNkBt"sSb0DNL%E8dr;fsueZ,q]!YRqQBp6P:]T0CIiOko!$h)uOI=GO6k`<JR+$]\VheH:Xan"BokoY=Q0Cf&W>"Drt$:]JA5tMc0e$2\)J^BLAJ.3\'?Z?pP>Sa=,n"8U6QMU<\WX0k\KQbO$;!N[uk?UE;KhSMe6^^/5R0HMZ>`7kF*[$n+Kr@@sl/)`eMmSso5luu/4)fGiPgUVYJa(oecL'me_@"c(;B>+Y&?-\G<'K%g)=K<V>ob4j*%J4WWr&9q7+p2bFt7\];mQV=lYZWS?B4p+6E.0PO30eCN@G9XbkG=HmR`[&gc=8SC\9H<\jSfgiqhb2Cb@"T%GTO<g_,3,_@;0>PGnGo>8'4+?<+59T&I^-4"`L$?uTHP*g'WkW@XreM3C>B4c.B.qe`mb@Z2u-09])kM1p\S$0$(;&'?.t#2"9&AanX/P+H)!3P+(d.=-&`Z7M-fAL[@%s0]:d<i@8r18WCAa1TR!\,GtCf(oXi5Y)r,P(Qr7A.fU&")XP4,rtQ3-e<5QiIS9fT6"9U@&cRqA=[`V7]D`,,/Ad`V$4V3DLR^#*iMal@LEk=iZq`UO&(o"r4(nsH<BKk-eB^^c`d(+,1f=:..`C-S.X?Jp^[Gd-k1$N:BhM5L3:Mo;1^Uu5G]<=r0S@QfNi?0HH<4.FYi1R)JE"S1Mf56[S1%3$ErEfmD"[/f)J`Q@2MqdHWh_&AMqS2k&M)W&\UI9UiI.#7>81qWnZY+D'fqGELQm%/_T>B>i%o0k72)J2h^FURLX^PP21s?qp!nM(&29+ZR?5-ndTak\&^*K1_-:h@_")?3\Gl\4>6:YhL:t+)L4_m@;-UG8VX-pLRT/T6U4%9F,?`pP3!3?D%q;,C<Xhmlo`VRrRRjH#8#JaH.)_L_)gSo%n"g(h.]X)TSiYdkdIUubuZ1^"n>#8g`:G/#]dV(Cbkn?`FJRs7s)C9A"R]*12^l=,3o<ikh[AHe,u4\MNam8#'19E$lItTZm+PUZ]N*QY*&+:;=^Q`&%E>aM\6]fF&M'QLjVL'=<hSBQ)0Ah`\=/<[ECGaUWoStH"RgW)V@I?/cjV*T@'A*Uf^NTjSo^&5sE?$6Qp=<V%Mssbc;mmXDrMo83lF`Xa`qi\N_u/`Q;)s@smR]gtu.jD[R*Z)!1ski4H&aM\ZI7!)D>>Rq&DdSQ@?dS3*Qher(&s2liAEGS+p5DggjXAHHO(,+d_@T7).5Aimpum&A^Xq48jH2eDAF&RjP8]'6E%ZRT\df#5`TGjf!GmM[\pGa*4J7h_-Mqh0_@E:!uM(E-!QUL=7q>1.f)OmO900*tI@aJ\1_m3lAG"tptN1^.^acO>!UTkVma'!ohcN3-o%`&n'%V:ojmb`rh3]9@3l[[`5qN<e&kRXiYQE=)ep#Fd81B/I]3T&(]2h+9$q4qP2-jW994<_7/.QGWJW5>:6B&/B(g8Z_Hn1T/k#:KNYde-JbB[q1LoNWpj(qA0_Mr4tuB\^?X'5=skaFf1u=W!VZn7`'&`=T?n@%bgVTY%k>!mZ1_R+'O528/H5dmm686<Dl2p<k-7IcR_6d5`q&6bX#*7B&rguK%9eSM,DapqHjNNplr[)#<"W5!_EReg5Y"!8'^Pl(qNSkO>/B6+/;XoJ4@n7I0:ft(gZ7\-%;WfRnijY=qMI>/&3q(^ZA2?J6=2Q3`"k5$QL(HAcManCIeLRRYpXjMn0/l@fHJP/ke>~> endstream endobj 81 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 80 0 R /Annots 82 0 R >> endobj 82 0 obj [ 83 0 R 84 0 R 85 0 R ] endobj 83 0 obj << /Type /Annot /Subtype /Link /Rect [ 272.952 543.089 356.616 531.089 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 39 0 R /H /I >> endobj 84 0 obj << /Type /Annot /Subtype /Link /Rect [ 342.276 420.163 425.94 408.163 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 68 0 R /H /I >> endobj 85 0 obj << /Type /Annot /Subtype /Link /Rect [ 89.988 112.084 168.312 100.084 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 37 0 R /H /I >> endobj 86 0 obj << /Length 2477 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gatm==`<=Y&:Vs/n3_b=JXFi5"@Z2[hP0bA"cDuITI&<$,>0LXfhHsE8(KP^.*&qJ(0Hrek282mjR^E]qlfs`m1=(+\@]"Hq\sln_*<;.#4O29,3$T0lLD*)Hi(C![9>Z+"j_*[OYSX4<B:&]R+R\`J6li(4RBS>C-3hpT(9M`r*7h5iNF/L=tl82-*ic9"`[+:m.e:1<:R90>3$)`4_6at`hQq)VbE*]GVNY,DY<e\"=_qM:63nVe<C?,W)>`&a]rBbWYb<S9=k/W#!l:*UgC._=<nA#?#lg*N$V8qd9n(<%6W"Wrg\/,UOSq-cWVO;BMjAY6AH5fQLBb3[T5jk*DjB":=F&e.RfK9l=.8>49Na7*"p;CcE797!_0U7cH3;c)/Qcu/N\tacle@ZXclC9ZFr7e=Z&H^?4diW5obubs7/6'G`n"$HZm*2TT&4#%&K[brE5'V&nXElUSCEf%Mi[=i&tXNYp8rhc-dtC.-)h==]!oR6P!2B*]f"hHG'(N#%GHUm19n5s6H/D(7`Gl<YV`ba!FLEYLYFbJsB`EmEI:CT0F5WV^2b"'#sGE";&/Q*UBdsVH!5-It'MMaK@';p'ql]C3b+`M;/T6?eKuN[TY]q9[GWt*>FCGrVAYa;U*?smB0&6P)1DZ-J@O!8HUTi[ZaFC=S<ptG"LV:qJA<u/g04@;OW`9*Sq8sd!tSQYl\9O=q[.oN'e6QJ^,k1#C\S<r3Ns(ZH%aJS9Vm3(Gh<9\g3:[S]OBkdG$R_/pW]Cc`*$Yq/pga-5:r3jNhE<","F+i`_qV^]t!rjV"aE5I%?OMAa\,"6NAYi?*t8CRXi)Zp8OW-#>7QEqR[o8ep/[3NL:IZq4T%/D[t-<\n7&.a$6;gBCQnTt!J)ENGMd8Rd-<hu]NQ4`F69-NX6%@_dl,hIgHqh0=lO%=ZQSG.aJ.Fs9s84iss%7GEmK5,AS?o&=+,`cDb[cc(g>]t;k+S^8T9"LuJEjmKs%WqTI1OK8GGQeTC%m1u6j[\IuJ/th<[%e6<N[!QI%mU+PppUiNRODo<b4#k=sW#^X'm(+t=KD<O`J26IYQ3.jLpof=Y"L!mWV=`c$2Y"[[q/=GT;cZ`q5W6D@XI)&inE*8e::IalD4<:4ETj1@jo3a1j2IUmhs>q6`sFPf=-mgh>;JI&*QPT/),+tSGb1\m=tcFO?>!Ee%nRT\b;rH0@cnZaH6CB=458>Lm[KfN^\J.(hf$26F*W/U`4PQ7[nSC/+53E`R5)'%^)R[J[`RR`gNA.OrWF3/JmmQ)6G[^p')J0A5ID!j0_mEnRL`h#Mu*-eI09Rg-fK7r[cP'.F:SjmMG>*M$ZuCCGg=Xk#qD!d^9LMpUZ7aa=3n52D&'<l@eV"K,uWf`JrCri:F)7?($3oTU["H3]QfT`j-cm"&9;rumKj5[\Tg'=M:Vj<k",F9Jh'T;r\(j!)fiX"`[X)aQ\r(8P/j2[?q4PS&f]R6L`=tllncf\l2T:)2)o!RSf"Mo\1K/n6%n"+Jjp!;OP+N8'3t=im\0Vh14aX#%)f8Aa=?$Hat.)InmK9,HdDPnD3-fYEq^c0EugbVC;f$[lSe,>dJkMZ<IXB-#/4=\fedtsLqF-X]VZoB^=#Y1E:]R+2CR,;#,(USoGTnJ0_:sf*@r_D<)%#8=Qg_TL.HZ"\6NpaJ7g[bBO%^mQMBF/N92MaN42)Y+uf/">)f)^h)#q,VRW&l#;Xl,'jZ=aiVC_OBOG]^?REkhi:TE(SX+L7J7dJ6"me2k:4M$)8p=lbG_1[g9blMrmR2o_V)!U(9erO(:J5o$bV1a>Uj"l4b=tKC6huc7)dLeA_R4#epi8Bs$XeR(\%F%D9p3:MFEI4NYuk<JGepr:egT7,9Ufq(NcXr`-'6]hc,s_0jA6N:h<:G>a4j8j*>lb4TtXJlqoaS^Y^=_qDYBT<[6C!;=Y?&0eOl'Q6'66QIAss2`FM=FSNq@2`$p3`^;jrn9?6=M\6Y)tG23/"oqSh2o=&+-.<$3Hq%J';ZnTDP!Y<CV6VP=59-FnM:h:@u=DRS7iQYMR3)IHa4b92Q(;.`o:[M"O2#"VhgKn,qc(i>QC_AS@M']8W%7W5i25p:2`Pik(mFl'!Ifit)]#Ihc]*C4pGqUP`Wg&Z^'@f,!RXCfEZK<ct*7VKRl.ReC-4nWr9W$.DXNf<(nKjI!'30t^]RmfMJ=@R=q+7h:.sOBX/=[g_Yk)GkiVrfa]jA-1-.3J<W=:VJQCIA,PdVS!Dj<L[h0(2<n@HX+:\_+SOB0//=;Y@Gr(NC66P\!GJ0BB_W8H)YG%*gWDEk,omDI7"8rLH_W11cbVi+J).jg?c?dZ0K$.#J(iQ*mddo,bf2I0Oa$,r1c]SD-n464RV%BjNo5`;b'I\0`6'5\YC3P>;p)=VaqT/S=\2j=!=S\0`XmodT:6MNSYs/p-h#-NNA!i)R8-l/hdqi]/O,(U[k2n,JWT1+JZZi:$SUG+n~> endstream endobj 87 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 86 0 R >> endobj 88 0 obj << /Length 1886 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat%$D/\Gm%/ui*@:12."7B.'^D'+f]Ae"c!sWRDYV5;r.(7n:F_mZqpZ::n:@+FTV'JK\,.8eTHq6FHojthJr%2mcOJHUKXNQmp4KLZcKg2bjlT.V)OXQ$Vp!3Br@_H=pS54TsO=YO\fX](m]&XBmTSb\9ri+rn/H47(s#;"WP,&mmcGY&nab&RrrYqo+T[bG<ET>!JOKZ'd05m!t#BmUZ:(Y<aS4:Fi"uWmTlLOLhbOW\[<91pjMbZ#f4jiM,=g8dWWS$iT@FVLm$mO0\HHYDQH_r0.etB,n7sdH"FaJ<k4Y$0"X@dl:q0%(aG`>M"#LIRc&eC'EJ5TTpNin>Y6=JA,Dg"3C,6]$[JYKq:Cc/M^.OFke;qR\r\[^KA]O)cr2\iG:X\5oCZVP=/d1K8RJKCH"=O#>=n7#&K74Cet4F]@(VP-4]9hqTVm)'^4G?Flj"AGE0L+#]O+"_[[a%.hff1Mf^T;^[IbDhtY(j9P#nZA$McDb7V(05SEC/FlpHM)@@Ot?7<"=Rp\okeiu57L1$`_PS"`(qT?;b#3f&^8q0r`jm93@f/5f46l1L)1<o?MDV!>[9R43EY1eSD@H=Q+4B-flJ5K2^a.b"6*mJr.a=Vj.h:GZ*sW3PuU#8387h5QWNfU[9HgY4!o34>e-\_jpJ"6Nr6%4R*^-;ro1]i&&cBqOU%ub*c'1"4g7H#c.r,T*!ZnUo;X=.`H6`plm69rMVu=GLeI.M`_JE_*3JPh>R&gcNeLOKh4QD6N'J/WD'Q;OJf-:e6]t+D+?B3)B2,G+L@\@hmjZ9(M5>ro[Q\W0VRD#/WLrY57OX-C=Wo%4)/Jo&1]H6NbRHVnC;*]"Eq%l%EQ"3ZKpbH*!BAmGcb-8SQ-`._50=4BoS7E[JjH%=Njb'JD\b#FZE:X*!H(UT0+(5]VV8;QP/p;V`?(HU:^SYfT#N,">Sh6#FB/dU6(VS/U%sZgBh$<H<Q@=mW,P,q7p/]Gp=s$1hsYi+C;>pY<gG;WM,IQZ*$@."G8@!\J@)\'7=hf<)>YUj3EZSt(+W+NG=%bYd[rMj%QVkbjjoA*Q6m8iK]cW0E?@-J#*t.l/Qna/-at7I,b@2gcd3?7P;XZo<mn-K$`=oIo-SVaMT#%A%0D+=SAK*l<qT1);dU$T8s5tGCJ?20F94s,_$*5?,@8]0qgoLpIr+'2HI@si^,jJ,K;YR_\65<XZBpm.LY^!TSKJ8r+,<54peG!P<Qc>0J=+:U-5Ea!F,H9;$sLg=#c._KbVl/4ab_W$LnhqTNsenKXCKd'$pp-QW@mWRX+t]#gnYMqI:QN&D$`3ZEpKk3>[/9\;tr!#FI)64!Q;BH0PX0-WmsYR]^f7bY/HW2&,_8e2:=(`&m*ad'ahUG*NaS.=^`I$/re3Z3N"+/1Hu1H!HLsOXE6oNah`qgN4O,"m=`hUk'(0$PRU:m`mPO15'61EFal'!6,Y@pAr2?b=3AO`7kPm0&#(cQ*E\Z;Reh)_JJMRsrou`mpM%STR\6&uHP*^0Ku:j5KZ$YB&rr'd=bs7l?K_l@4`A]$iH@F$]m%cpj-5M3AqM7Gi2>3J,+u,@U^r.-[DqrNP)dfJXm&#fW&JAH5'U4"ga#$Rr2qnFY>&XY)Po>F+PP]Yc:T\N.U(/-]/e7S=]/]aaVat_&s.4B"*jk==.IGQL3*;Z1gPGRdW$ob+k8jhH"B)Prl=&mpV%`c50k0,.]$-84CKf0V`Yb``MkIf[f(l)dY48__KT_a`afd<0e0S9/WH/$Z]'D%&`;4+5;[T8",=fG:2^KS;hCXLSmNH!J<$%``/q][q$B`d6(5JuX\5BPB?NZf:<DU\^eJ3Z9Yr>?H8COqmR,#&o<BI_I&G7`;\B0c^j=<I3%CJPr==YO\6A~> endstream endobj 89 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 88 0 R /Annots 90 0 R >> endobj 90 0 obj [ 91 0 R 93 0 R 95 0 R 97 0 R ] endobj 91 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 144.874 136.668 132.874 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 92 0 R /H /I >> endobj 93 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 119.674 170.316 107.674 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 94 0 R /H /I >> endobj 95 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 94.474 179.328 82.474 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 96 0 R /H /I >> endobj 97 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 69.274 150.996 57.274 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 98 0 R /H /I >> endobj 99 0 obj << /Length 1666 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gb"/'9p;>1&A@sB:j^nqAS!-<J@T6Th6!K9<$h(+P15d+Z;H>e#NYDKIXN+gVI_",;n8e!Ye\VXHN!].pT):(A*?cZHuHDqptg0[4WjZ#Nsg1J"Yg;rm]B+MpU>W+(4PAYUGVW%:N'HKN39VYKFJG%\MVd+WMf&OmHOoTp8>Cri@FuhKK0+T1f\Cnf=K>kATF+!.Xc,ocB]Q_7jGn10)a0R$fF/[;o6F[nGM%*CD;mVU]Da./*m1/]@30_hOH],l;<%EN9rW9KLL"Pg`"k50DhV+R8*(U.MYX=+:JLU<Nb)U,(+g_C:G^7M`P$[VX)RCrb*2.c6%.*9Qt:5Dr7R2re1,'VHZ&dB%f:T<EZjjaSS8tPUba!4[U5*<&/1K>.0;^O++6k3j7`[07j73`\*SS_WY:!>]!&D2;a1kI_p5LAWYC:M>?`Nj-]V>o6]/i.gI+BKEEJOP6]n0VXMNaJ:`o.[/Ng;,ZK+:B#Mu3*_pW$(I4!i_RZo.c]-U@/=3p3-]GG*^.HkPDRPF%at.Jnb9J3#?QYkNfq43b?^SGb[]RQ.5HGWM078ocPX[o0j41'H&-t6?%Vbr-MaHl<6=Sn2b$-NJ=hJ+deiO^H5sfQT\D=u?i=AHr>&ZG@T_q\.H=T8GQEho"bV"%'WFqB`ZFEI>60o7Sfat:4V=(+d?b3MS:)-&3&>"\<Wb?T+eJkXEfi\JNSu7L;1e'?fP;4Cq%"!eNq5!.5UQg9CjC9]_L&"?9&ZZkDf'*rHA^O%/*s']hY0pdO@K+\5(!Y,p&5Y^6::<bQBoXV)RgQ9_C1",`MR\)P^tus[j8!4mj&=XQ7N.fnq?<?ZfQ/ICmnr.=MRtuCfpkt[$B@om:pQX'eUYIiNbtdH2;\RQ2-m)AA,<rl'?^hm%9<C+pSP>HoK:K!fH'D\D5q?Yd28N$[lT,mkEnPl\1otl0cH-elr^_t;&(VJpFO%*2t']J;c.]dEUk[P"\D*i8!b1DiRURLN&)Y;Z]2'?)c]G@MiHEjo2Vc1'#@c1%@YkuPA6%L?(dC.P(h1dk<EqA9XfFB_D1^]8N2dBcZJB`ZaDV(r<QN!A9!\am?QPVKYnjB[age33bX^afu+:IlGCM[%p_9IGU>1\jekRK`hFX:e=9P+l<jihQ/Z6u@P1=a=`'.((C\8hn*s_OjWG%Bl*U)aQ)@95!**%f[s7@@RI,>&-"%?G.Vl\f3XTS>W]i'1Zp=%XI?r!U<?Gl47)aAN.*Lm>'ue!(:"\c3'__]mpiF$D/!dJ,8WboHpI&S>G]jd&O1TO];`-9AP;)(MHNgb^XRQgq7Ybql!@&2;rYJ?0=ZA.%ODsRIKlHln(&Cdu3B=&I>O%dc68u\*Y\!6sUs)^[`t`ffjD@p:@<6M4)*jX_E-'Wq>:-PFEZ-6WNn/FR[^0ckDFOml8]J7.jq5f%4s$DK%r(Rco*>M*&dOFgJ!amOr?a%%ZFY]t+_b6=A<K?B+?=oN;:#1LoVfDk,*>Yh'G#@hMG"3:5l6pdJFQ*L/4g5Z^$`Z3.q'\F1bnj0mlZU+$YJd"Pe'?/rD@7[./5N*Y)&De!Leh3e[+<1!t.3kS"[:tLn-LcJ]0!F#F3O>Po6+pnD\m"Q=B\'R2Z.E[mLj/#,6q@?>""2Kg64;Ld,US(_h&@_1DGQ"=98<If\'.oRH~> endstream endobj 100 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 99 0 R /Annots 101 0 R >> endobj 101 0 obj [ 102 0 R 104 0 R ] endobj 102 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 756.689 156.324 744.689 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 103 0 R /H /I >> endobj 104 0 obj << /Type /Annot /Subtype /Link /Rect [ 54.0 731.489 148.98 719.489 ] /C [ 0 0 0 ] /Border [ 0 0 0 ] /A 105 0 R /H /I >> endobj 106 0 obj << /Length 1532 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gatn'gMZ%0&;KZP'Y5c;JXR0>*E2$2\*5fi#3`ll08^sH-/)g0U)]>:S@:-t7FohO/Ht>B=BID81E=^?C$8?n`Q_20K0A9VX3JM([L;H3jpsO!1h0DH,!R6rWc\7>Y`Vr]d91dHCVKVK@rbMiP)J]]`l3Z?Y1YL,<7O_QO-K\Q<0]"@LZaUF^(i1$,Hl]b49['Rb7sg:r8Xl-0nG,#_!RddJ@n)0ea&59%>$Bg+@3r(D3N_jU!g7&i.OI6-MQ(UZ43oDIDoj[S_DjoGmIn%`Vo0#""e`9[9Z359&eL3l@%Hk(=*@),sK>23UZmqQUU'c_T7]M-h%E4U;0nY-k79>SFtmN`M]S:&uUTa4Mm2Q-qQI,m#W!*`h$pJW$\"-qj'r4.'u=O/rO-th=BZrMrT7?5',]YN=.C+IaE@Be*Mo31_YaJ6=!/O(S$C\8GorSa>p1ipmH`Fj[t02h$fpLf<MX\oCoHHS!TYC3Ue/B2H$jcc^9A30.O6^;5rcj?t^CcA%%#Bhp_uc<`1QC_K>I:-n@;D*$`3oNiI<#Zq>C3^ao^V5<_3d0=;CWJeR@Eks)@P^B-DM\RuQ==]Tm5!LPOC6+X?OXin.^L9WtCEajG#(P&L8UYCigo_\%=FO*GB+g%PNWLd$2@i;!B*/akaV%f.(btRbu.p+$.J9!B-&mtp)_N^ruI0HrP##p4TMos2B;'V@0UY-!6^A;Y'r24k(a+=%N5,rN:O"HQ>o/ONNmPB-)fhCthO2F7>Z[$@ic/Z'IJd]]tEU8G]l93h%"?]/CWWGt3.]oUbP/t?RUEm[.S*-6^=*$o25k\K8E"r4'5lU]C@<cGf33=!q&"pTnW;*h\(/V!dm;S2mK3@I`P:[rqQ#.d6.3&9d>DlI%q"j1SGV2)k-Re48B"#A-1;P6dE:I3[ouW,+1RcN([T6Fu#1I%ud]t>T^;JYOliKZ11pLj0#pf.?F?KS+8?beEN<DQ\'_Ks4O^Qj9,(X,DOad"?,Zn+=O?eaiK*]5a$)YO-?9Fr_J-:Ms]"Hch^8GgroUQq:bOeQ!DP!\fl0ljqIb7Mo?EuZ7Snm2+0b_(dJe06HlN/L!i@1sR:MEgeCIcd+:,'OElms63dYqeu<F50XC[4l-ocq/1XWAa!$5E+NnA@)(Yjf&4;LB!Udh`!L$ZuJ,D1#0ed%(oOW67&7QJaB:qc5#`LuDc@@XZPMJu@MGakCqQis:sPXS/!kBLT!ZQ$2Rir[_MbS_S`!K!54`Z5YU+IE8H-#4G=(#:CRMqS^U1O(E?YIRXt\_[$FZoh>-_2?S?PV&dO2OO0Sk[/VJjni]BePM*m[XQC*&Rl2G*hYW.`4cDLA$lAtIrZl]VCN)[r<LR^f4RSTsGCuj#I&%!Rf&]#Fg:+jj>t8tbCYtHV^gB)8:g?hRVs\AddPPSS5Z=h(Df.c%/H#c!B47S*I]CuJ3t"#RF0=?&*=51<r'XrL7a5(R]!E@hmipa\Ap-03Ji"7-l&WWW[^EXVNk4mN7&G@OJSCFFk30&Hf)0!$=RA><P%qi~> endstream endobj 107 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 106 0 R >> endobj 108 0 obj << /Length 1380 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gau0D;3.J1&:Vs/i2sIdj2K#G]PkK,>ID%C\mG5P\ud/(0aT<H$KcO+hfhV#YXo+:X(nJ29`3._1ZS;NjS`h5s't8$Jp_L%/:;BN^n)'dfF&mJ`b:;Z&%kp1I<eo:.OhC1^@RX9o\nPKUAn>nH'ud']fjI(?i:UfrBe5o[2*L-d@L$0\,$7f6lcNa57%lUr`?;"li>uJ+QOpnYmYj@SZ4$oaD/k+`+.jIoFE\h9r;k(A7ULAk]V"Xqh*]Z$A-@T^Vl>#^e&@N5JDqPT#W97`8fK=),cNr`SV%FEJcK';O^HH/P_<KK7;%XYg"9u]d60gjAjX_/3Y]CYHEV%#%GM15P`I@bIX[YHG(mKV:u&>rilIUpH.(G?W\MZ[=gn8_ipeS$!PLg/Lr-Q)\F/PKJ>to5Yob!'C0$uh(Nki,MOb;;</YD<HB\BS0H78$i.7*G0kjo(bF.SmKjQ)H1D1cER6N?dV^F4B[j6";\MVPs)oonO\O/WFF35<]0b*6)iI9?[/GE=k,IS^[m2K2e0Ja4W$L1XQ-a5R3>Pe"l))k6[K:cf%-%!l2Y0O%KM#+lE]5F!+WOZpprnp;#@^9JVC44Q-?-gHJc>p<;d16c$uL"X4/[:]'JsH=!414p6-W=E)DbdpG&a47,=\k.Ju(&UaQf@?i*hA5?:/k/'Ea&q]R5lGVeY*iYmi2$']e3qSb5`kYn=D@0NC\!.:`uMCaUT3]?ON9r)R!^OTofY0\#TJq<\IOg>,Ya1We,*f@Ne?5?Q`U&agC;4/_e"Y,'EbG?n)(]BKM,,,h`>40O2TLt+aJ[!c/9$&:g&QpK'b*sXTsJ"6J.IZO?@E1/Ff:JNNr,um$pUrlI/k&jMP;18Y.'k]m0KWsW=+-sO`EpA>Ri?d@%Y^OsB<g'*C-Aqm-6Xsc;DE+S?\j:QDKZVu&K>:H`e87KE1182eaYkJScsP>K2V)Fc9<!)5m0pB'_X+?^k7^&0Q=ntG)6pZbXnS*U+a#6CBp'N-UNs:/3-Tm(/"Z(mSt0Y]Fmn3'H#A]4qF[EIQN;[]]-]K$:+De]Y7?\WR&>OPlEU%Dk_K'4n(eA=:a:8B=$l.U?HXhsRV$Rnlg*Drg<G55k@'CbMQH(!L"neuF4TF:F4"*8[kDRPK2?nTQ855"N]T>UFYPZXH[^oFLF)7RH!5B^e*ZAP>m?AK`XnQrAR=ZRVn:'MKHl)I!R7*+%ckl5#mXM#c^[T;`_P1d0f^pmTN^H$S;rru`WV,OmJM_GK%m3CcKkksT]Sr[Ghj_5?edb(fSQeI^GSO,Q\;b6"\>/4^Yfq4egiUO^XdI84C<h7W/h"P!A`qiH+BeXTQJafff,Ru="2K%"XF".T/""S#-<e&qrb"<`kAd0!"q@BGQ~> endstream endobj 109 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 108 0 R >> endobj 110 0 obj << /Length 1533 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat=,a_p-.&A@B[GT.ThBsAIl`ZU%.`e+C33.pF,)Zh<C-,NpJAi$l9aLA&qMINtA;UiJuEI"s7]iRXPR8'RQPZlQ`[P`si[^D]'bD&5r0`h#2i=^B!9<H7(FB?+%o4=L^o-dApI&gcl^Y`5@f'Eo$j'%\t<Z2A$XXl/qYX$\b*jT=#COKYejmOP=<I=7ap\0_5gWRq1:P[;l';slD$A[771]<CNrRW48ZVL0_p-qk))QudKl8[*$*`>K4o(MeZh(N<;Q5dA$Jc$jiYY9.c,;'18-Tk#V^bsS5G6<O1^/&"k2\BK,lH-K[@rKUS0AD,**oM>XScjG0i;'9^;2.Zj7N3=/m!*>!jQA5Gh1&@dm`7/A#1@&3mfK,!MK6CrKpJd;>?(4O,8=K\-<[KkGEeYUp#a%Q#_fm&-r[+3,LR,5mpaPu3`g3`gO7Vnh=G[i:Ai+>XKdajVSi.hm>WC;?eR#XdQ$]5Dc/k-LY*&;%pP5FpMGDN4[pCIZ@uup.&UX2@udl>?HI2??006b"o+[njH;.+/f\3XGdc?:"mZ;E1Z*l@Tu(OZBBtHc"Xg$1+2so)VoMOeG6=rQS[^lrr'"#:^6!k<8#c:[*i@].1\3^AJA<##-E+,Sam6klJY:MF+k$;b2Q7_M!ogL*`X25VlVg&rf2C%#9R][Lbg)EQ_E!0;f[08i:;O@4Vm+Q6OQFY?IPfW7Olj/3nX])A>H>El%V/oO`*qA=VZqXO&S#IiaK@^Aa8(RU8%f$Z7b_*]^$j+M:5\m^d/u;`L$E2hBsJ]@g5:Se.Ro9PPcBi1+/uJ",@``95gJ8-[4783`VMsLS&S$)BrG?WV;GaqBs/RBmgo5\kFWETHon\B4Pd)b-bNS!],DWD_E9H7(c:Q(5IQ=".XW@_K,^^j#39O<&e5Jd6'"tr"#E9KN;)XA>RZP^Q@kr4b<V%c/O9JpNF"8B@&1)M?=J@MZFK'/-TDB?eV.`8YFMd3QdgnNJ9[[?%d48Oe*F&2LPrCPO2FC1&bA$k6?==?b(TH0PS"YE-$UMlMon?3K%=S2)eLZRGR]a'p&Whrb3_)gfXSZ:2%FbQR`^WMRK5]Z>NC&R_sEOV(4_eW5*B^dAd$eGpS0DkL:4`U.SgW0+@^Fs5`OeBK;m'XG!4Fo/CLuajT_HI<i*IM0h,I.EIJa+^t;)gT'n*^DfgJrCc$[,+JHAGRG$>>\?8RG?Z5G6Il_0;^VS&Z7V.1+h*rUD<[sL$WNcPAau/be>"TOQ!cde)R`',a+jp':nl.qUYnEFalM95+Etl4%CC4NuA\n*1Z%q5748knGk\5kPQ_:-,'acE1k\MRK$t*ZOW)(>;Y=<)d%%Y*AT<^eNk+knc\gTAa@Dlk&j(-/[>V@mtH%\-GOYUES7`^PY^-TKITPR*]OZHuP`^#M^)'8pUr-FLq.C%QV2B]9@Z<@J8@FY<[$/i/CDngm?i`*Xe`qPm^A-&E<H[p4soBG1_U[P)/?gGB+.03cRbPb%[-3W9?hW+Y"ds$<^?BmIW%j-(][FY<^K@$FL~> endstream endobj 111 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 110 0 R >> endobj 112 0 obj << /Length 1783 /Filter [ /ASCII85Decode /FlateDecode ] >> stream GauHL9lo&I&A@C2n5a0KL'dA([jH*XG'Z[mjj7^&)MeMB2ADhrTG@4QG:AF/66[[91[XsH;V8rtZ1%'a^7*C9hGWW8Qak='T=N6^7NE<EW5F"-(\o5*hrbsAc^Uda(IaUGmu((C/%pDjr8l.P"UBTG=_HXHH=:U4>f%,g1S1cXotn7N6+bT?eSLPG*hLn_Ud\SqZp_+:nBc++5KhifE$*tjFe@u?G^tds%/[7GI7i*8CJ+5R=..%*k0"AZ`u7Oh@4>90*7APud#Ek9Vsk5M$t^qY;(A9%_]mDq/LpDXOd?Le-50T\AOX!nn_"Ds+%=FU5B7R45Q59M-V"cN2<6OkC,o'r<0mE+P"e**W%da4ga>]/=su-CrK8*0:`a0?'+/KpERM5$,a_Y/-l^.&cs.BmH9&Y9]2<8?[_]sRe:_J5@7a"!O-td6V3c/`-7!3.BsGEiFSlg9aW689/EP.]\jg+aicM!%d^:W%lpbk=G"L>AoqNALASis%rs-Kn<-#,,@bGGUCVs"dDua@I/TGSq%4Bp".NM;j(_OMYSMaD]c$-!NQ,caHV8NAs5JjPXH7K2+70+GaSX6k-1:]bfV+LOcjhBDO6<)\`'=GYXgKLI@.<5Ga>onEKRaBMa>X25L&?c6N2Ru%j>$!VXLpGooS2[:YY\1mLD=3IcP@Ir`Y)\A%L$&6Y^D9_/d"*2Y^@TUX]Te.!,"WcD<dddTo@^U@9+mlF#dcquhn*%#&]EiZ:;B!/U;4;CEXJ@@36U"DZWHbG'-6FE&s%s02ZKJ_cTbl*c[cM?<FPH7j\"II=d#G!ogrhFW1!?M!VN"Qp[e1cirr7^"X"!J<_)UL&=MB\O1:Dp!X3aP5\$lJh<t8a5&<]PE(gM-no"kp6Z.d2p'kR7<=V<f3^$n<AOqC.>1f2s.on0Zi`^^3eY(G@*TRC$d(G[6d:Ek2k_H2eo`IgL@u;V,e1a1d=1TW6.iYdU7(r7]PSuFn:hm(=lhe<+f:D'7&t2Hbd$ma!X'mjpX^2u5I-gZJoq8DlmMQKG<"JQfG2Jo'BA/I/q*(L'f6N%pW!]B;j'iFf(6j*Oc$ImM^l$IbDHOmA\e-T4aQNsIec(;Q`>SpG4/l0[636mcCB0Qp=_bhdcQ5Ap)?LkQIE7,9^A=X-3e&JA6+<EX>ZZ/f5\Qde,n_^[1YttqLGrRX/sIi.6V'-lrI'(jRY<T2E)gl!Va5]U@22m`H;N4.r;(/iE@FML_.BMH-I/TDiTDgFV%Ue[RNLg2b[s!#?-/TaR6g.4qX`5=(eHh.l3/nQ-IZR:;KRKO=F2]&q3-Lt2>r9YpsUo_r4/&t'YM#gUCVb$Rnk;+_e&t$)XCV7?4DdH!s_Ms:;^fbFY]:LADZpWP9p<=r^EPK1n+#6M6#]/K6RrBCVd?r;SZrh(+XB)RnsXb(r^"=6uG^2ZBOr_r,Yj^p*^JQG2g7[43UAjLbZN\kjmc([\oR8\5E[cf-b!IlbEV`(ld7K1Ls=+^:EY.LS*I/ilqU@2%!'I']^LM!i&n0`^#O(YKSoT+,C7A[`*o$(Y*tF2=#iIjiIaf;eeDi'Jjb1cqM=U<9E8>\SeW:QC2T12[<hq[InL>pKWMLf[LWW3D3eMcd-l^M+`l\MOQb9)u9S.A_F*]bG*JkapZpl^mTHA0YbQdY"r089U#(236ud-&\h]1(<Z:f3X1b*T@7&LKseC3'FX!UIHlKWl,CR0#SOHie@[$UJacq(\IknQM4]%Ug)<aV_pbV71,6AB&);YOcT!$joESJoh#ko"Dt*HR,-5`B~> endstream endobj 113 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 112 0 R >> endobj 114 0 obj << /Length 1403 /Filter [ /ASCII85Decode /FlateDecode ] >> stream GauHLcZ?-F&AJ%F@,<?#ku3ZT!dne;f62ITVnP$ZMupjs+$][bBTiAf?#0Tn)e3pQjFXVMh::qBT9_TW<Y%D$O##^ARsa=EgD0C/pnM.<i*F92_NVdiPhr$V5H7tsKt[6[ni"5a/f\gn-=Z/*orpOJW.26;-:&d0rO-Fj!"g"WN^9q#YTE;q9pYZCblniE,`Z/0+4ce'lJ'H/$)]V3ZhI6[YE"Y@K^^tk_@@K<hWKR1_J>D1ZMK"B\=#J/$-3BHP,#4OP1fGbb3MM[Dj:LXT7u0rmW)Ht0lfl>N%kfX+[QfsVtB1Nea6TJ%fQV:6NKD\rn+8Nk?8aBbef!B]2NAD2R!%Cl0VM/j8)al"^4K7&[3=Ke%2T:7@*$0==O,N2daTA%4$agbKWeW;"=/7Xg+':NQfq]Ptd!^h+Ct@5#Z?BQlpC@S[RejA!F!4%Wo*IILH,I>)":tLooJQPVkAQaNB%:;Hf(;k=o57b7i/ThH(fmOiaBpP_f=;S+EX%3b^(kk0u.7T,NE"<*E@k+h*7G7Y:-Gqtki&V-u[l(;#Yc3b2I/FIdZo@7U^jd0o'Y_(:ZuB7Jjs$jiA>T]0FcE_srt.Ki[$ppa@Y4pOH8]HE'jm%usd&X+oB7glW1]=QDiSsk%5VDr36MSd(hE<fZI'PP%`kt\'V\6r:$?(n01p\Wssa&f=[(k^,oDD81i9dRun8hi;K'"bC@S0-t'J-m*sQc9#NZaiaaH5YV@[_)'o8u?:pb@^>b(>!K,1=jiSPb>B\RB!?S38:U[^SiSmi@H-\+-*AL3l>^[)Gnd22>QkmND;\]/VBYZ@S"h0d6PrLj[S)L6`"iE]M.3@BjG,9:Nu-&HOR3`B@=!Q.JbY6$s2+m18l>3Gti5"@usMRL\>(#Nt)<7UTr&eiAVan,a%`_L%=G8k5+u=!="UY8JeFuK3G-q!=33Kd>uIV5SG@$.CDLB=2+F*?^L3t*5*\P/.UTm?q8\BI!]`FPbjk]k%0X.&IC`@-=j@;T2@r./%l;hFP3B[U;&Df;`PVI;d]^fGF/NRTDrmZN$stABj1XId0q6WerM277T[Pjg/'`\]JObBgs@ZF`Ag'fjrl<1E)\=SP4<XDP?86.9S\9R,*i?,nD$<nJ0[:(+gE$2K"8eP+5De\DPsGj]pOTcC)IUt#ic"u+"&8o&J=Am/Vo/@-KQY0@4^]Y*RjuY#A=p/KSRtTa?"%;.eiWdm@7C]Dg+SgW=@u@gA][%I!lpid!b_<DK.5q\&qI6abq1.PP&WMAb*G`Vk8k;F@aW!")KZ4P7`e2i/Zjc/81Q@s5[`836)]1GG/f57t]PP5i;/s$+isWO.A<iQ;7QHK&'o6^VnF#+!,lMB@-(,(g#HmB55jHLZ.0W:M<306sTtpIi?<U+0GJHM.dT0~> endstream endobj 115 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 114 0 R >> endobj 116 0 obj << /Length 1492 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat%$?&ta='Re<25^f)`\fP[l0mT:4gT%:'h%`poFfLQk9X$F&XDK;Prq`'/"?V0"P_[3>*oH;LHOeYQ:)6Vi&J$)DHV([8^!-V)^A1#I+D*55.1"tL9+(-[LZH/2O5@WXnuDfM1T1E6(^,Z+OQE83!Fak&5*SdHipr$U=88OX'EHXVJ)hJ_[eba)#[Lo*BC"3&re3355sS\%3#*$^.I]FbO*apWgKRg:+qR]<U:Q^U-AudM+2f=UOi__>lfZ77&Iec8Z%q*',4'`6!@=>uhJ2S+nXL$UkQm+QLu\9o9;hGu_=k'qCFQc.%tOG1"!Hd*+hUtaL$_4#%g_UTfeK1-[4#q[pD<o>!=cnERH-^-a3M&KA(>8L:FWFu".`YW>*%70KBr,$R;V?R4R@Qp<E\llMlQ.,1+'GQ)!-(^j^.Lofm9Y:bI,"eab8Yh0NBNg`djSC0T.FkjDM,.&q[>TcfBt9RDBWY*`#6>_uOr2Zao(gk&CPLCr3cU.Mu%`_gr0(GQRh8U4a54.#,cbEinZZ>#tOp.@Po,K/bn(m*D2gG"GGj`dV_0oY"hKh=cJ.P2oP+>$#E:nC"?&UFa&4Ri=FtYH["E^9g@h''3_Y7BPGXT>(7&fAHOsabd1KC('m;,k($79h^@.e0X7<0>CXoXa)BO_(GA<HdYqrU3+n^)VIA^.6SjkFX=.[]:;MXZH0!PqK%g<[U_t4`0r21Qi\**gnc.8S[;UR.N;@&$-+",RGM*OU+hB^DC)1B194s%b&kRkZVaT&q;/(TZX1e>RT.BO7Na\ZF-]EZ&5+=73UJ_X$&9c-YX?`98I)SloFSm2f!AB&6-W=kP7/*?]O1@6j9&#XoZ@f[G&mENFI37_YursK<s@$P=9]>a8O5bAGJO<kFR[HIl*a_jp(%F-&4&''N8lC$<5X#_0V.>BC*c=qYH7@%h6,GuLtPmDArWms*:01I]iU2i47%q;;S!Edh8g0`.\U);?HWT]0u.'A9?o(#(mVhCfPI'_?-7qtL7,_%gTgKEas0i55o8!4aub]s.1]ns@#(=FGm?,sGt;BUGLj)Ln"Af?*b&Tq6MFD"RVNa/UPuj_^3NLH<cSYTWbRCj1eE!,(C6eoaouR&?:jZ/4*K\oWDAA]E^W8R#L0`$Q]`:WoCV?f4Y&_MhlEWW[tb/soLKQL0,PBaYo!hkP23eI+@=>X3iH8:K1qiD2/V+"9W;;Df=/&=i)O_XU%<_gS>FfXm/SI4eo51.V5m$$4l(6RE@inB!5d\[/e7k)L;ObKB`ucV2p'[K9,07p;I66Ng?o5b25W#[h`WbA;Y08[g,_n\,#tMY$9m+7&Kd[[:(Jr7kXcG/+/be7.2m>%JkUqe0QI`*iR`\GVsT:I*gSI?G+/&`]<>#>P<@CfE1_J,7c5\YdA5g-a/0?K^F+DZ>91kH3n+Oi&T0fgeti<^.+^pqIW3up`aUg(NAu+gY1o%g@*0k9jq\uFk61b4jUU:![Jp9aIq5\~> endstream endobj 117 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 116 0 R >> endobj 118 0 obj << /Length 1780 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat=,9p;>1&A@sBE6E.LN!Agsgp1;/VG^X?`]7U/;]6lsC-c<_Ql5@r:Lag?$lCna$Pp+\ql*rsK/_Q0h1re?%^E-Q]!8C9L0?M5W9"5f(4$S_@b9<Lej$@Ha-+3GrjB2LJW\h/FU!:g>UM:$mU'2-Nc2gfY:?Y0Z1%(4OaZQBEJ`.I^Z-cDF+)#?kZlis06mi_LtLP4mpB0ok1?mG6P;nOC"<$(^YO:lfHg/=%0=$-lBb62..W0-`KoD7(])^"9VT=#gj7cR\TuX(+'[6dMD,H0*651bK@]-OWT;7mJ^sT><VE!J9Ss&-^cioG*:&J4_$YWu*(s=4cVc';8sG@K3*tXaZUs)a:=sI)9Dsr.Z*2j[)B<UEe0C+ASZCb3<Pp7A%EJBKCQ=_O>X"oQZlH4`DouOedG4m[XZ3m:e)=Ia>q;3O$XMuKc[d6TVU3&Ri[Ird-g3`h_?dB1U>jY\1GN/7]&!@*#0m@pVBkB@;Z'`..AKGD8u4"V,`ft`1m2[ikDBZU-M0A>bp0Z\Jkp;leln\:fjfu5P\R]\,fXaNPWhpP8"k;bi(SBaM7F$ZIs=&/RNFg3ktn-`&:AadfOSFqTo!go.WBN_9<)N[l+(c5P3mLJ0Re)]5T4$EJ041VI,K'c!Bm'b)P-_HamGnN>j+aY6D$4X.Y@,cc;)Uajh`Jlqoae-HR&4^;kl-R[!gnV7:1#hLr@,`q*'/BON\J`9:bKXe'&@WHbeWQ&u['KiNuBWNNcV47<O^<@M7]$;X6)/Gf`Bp6'7QdSlf</p7u;s9_:kTAfjrV/LUX+Pkp4,(T@:kC&"4[q+SL,/5.<F=^78-d`p]q(D@X;#)J#*#JD&N:R3>K1FW,q\P?rX-9j%>]GNMoQ"%Y8=VMf]kRM]:/N+$<F^i5j5Wne][>*j+KR/h3TRkRM>)C)7D-[U.j2C6SFf#tOL.?Y)`j@7O69appF'UpSEjm;QgaFLhGa9h/EBV>m4IOI1H!/&CZn?k?a;E5;UW4dsdo)mj<EH5uF\="@i@+"03Kf5P^HfINURbJ6*&(DY73cuqgiGbEL)jH!q>i:G/<*epVYJJVrV,L4;&Z2aGFZcI^k?3Cp73S0I:_&dQu/0Zo&iu!-P/2R^p6r"Nb+^^-k@jBX.3/p'M_R^'+b@#nN.#a@KOcXU,;tnZ`iS!UY"u'mSYLU:)8&OUEp.NjS66)V-XuI2a0h"do<YC/K$>saX["ONt0k`@Hh=RE7=3\^3ToRXc*_$UV7Ee=BP)$WG*>NSmbJY-a?IRn?U0*Um]sM`dOBs_C.o926qel%PZ3]2^EJFa`t_=<4gHT;cO6UTuG*d!2cF69`;WV^/?N5-^n(7Z8],EccboG1n$,6SEX8K]?]5&1Tf&e@t]=9Tmbi`Tf=N%!!>W81QrPla601UE*u$,%<.ks0MEg(KNV4]mR,Jd<f.7%Al2MeTWWU8Xqhb,eN-P.)?dpO5HZIU-R;GD47LY,Mt:]8+igWSB])p;\[JG&BFN"nc<8`-:%D^?jk$R]qQ'[jJPR['>2*2VhTq@aK7hdM+>>b&WkNXmYt*g+0hi3:%N=Q;q`:Xu7q:K"$WiBU[nnaZqQK-;Me&S8BX9>(F_!:%&D8,$bW->p*iVZHc?pqQ%%DfTj6@)),ApmQT<c,@p?$a[$7)Y/)6B\\2Hn-l.&2kbs5T:e]X0ZI`K/)r.^BKc!bgE0PdopUVG7!.CYF')p`A@ER'8r^%#1t%#7X#_X]`*pg]"q4P3EOjJ@IE7H_1n3bRL&#WSMt`$ARC9"$aA2Vu~> endstream endobj 119 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 118 0 R >> endobj 120 0 obj << /Length 1893 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat=,gMZ%0&:O:S#j?+ARkUS8CDK@nlt1T1;4u\9W@86ZU+Kh#;(GPToV(1!O_n5g>I'eH09XQ<bT+ouRGlEHm-4\L%X!Wogb!0AZ^Ob3Kn&B45(&:dOML=/V=W<><2iYkkdde[f$'Jd&?hY>S\&6:Mnl%CAqs]]Kq5U6&hic6idV7*g:?j-:=UkYMrA6\iUFG3H+-Z\cO9BYeKPsh*ck2P%Ehp47TQSKe(/c>75Yb@U^_f)hB!7\>A_B>d^;X-;I[goR]7^@D!>2.")!8J7`=]1qFqftnlgEN>?l29L(>B1$`.Sh82mTGW\0%0/,=_HnDUVP(XWal#:5sd=l[C[7+F?19PW%t7;K!"OsV:-EcZYOoe%'F-SbluQnT0IT\MZ)Xi6I4KgF!a$G1d5U*R%R&Nh;M0Fl.@3"0:0p.!h#f>ll78-nfr>N?\+#iO*a_?ko[,CV<EIcKZ)SWUB7F+$pgNJG`jm>lBn6U[(s[\\9j[s,1)1RB@NV%M'Es7G>fUWE,E/19p(nY3h09Lp-aNGoZ>he+kgq]n8oYm_&(Lj2k2dfCAuCI#'s=^Q#I&G%`oKNQK.ZljH^*,I(+D2NT`ZtLLK2G\DNkYm]]Y^j57fZ$7<A#V]I>oFH3HIR,lmh,jR7$UZ.M+lBc/Cb@>Jrr/QU;7f33+GmIQuHI[CSbSh)N1/f>Z_*UA2oW>l/L$M^S8[,%n^G$<82A;Pf,^ii1Xtk4Z4n#'c=E8a7_1sK7s(b$2rLWnF=CX)R9(Y):CK)'[qe<)/h8uXiF3Qs)tIRV&caBP41R.eP)YtY2W:m`MKL5Y>3URa=`QKmgQ?*Q,3YQ[;P@3*?K-DG2"Ma]]KEPcZHuSAG$8@-rWP'.8[+bs3b"/j)WO'?2rl7([V?FlU%ap;rENUQV.VP$M/_Aat^^0,TqOHfOI*Jmi\3`7fKLV>&&V&fAC-_T&`3RdNAoP!SH(39.TZ'!Mg%2gXSo0$VrbC$'*,Q[DMF,F_t+aNV7d$/W,HUN1q)7`9U86:Sn`#^^$N:MuY1V)ra4j]-C8Tl2Bq3"kaD17)EROA4u"&"kdOE0$Z#hQH]"6.Z7cQ=D4mfHhH4fpKrDsN6.a%4qRV^K$;!@r8Qtu2^^b/_gsVhD?)5eo,7UpG[MVAGmD.EJ->j^Tgh2\4oB-tHZO\O_dMX;F!rjYnNe\@@(;$o_L=W3-\fq"JGMXgmQPI8C\J/n]FcMQ%L1X^J8Nf#r+Vb%FKX^i-c[SfTd4'o=K`n@"I6?:NL?T(V4=1`98o4;XX753N#P_F)?C^#*\[\!Pl[Cj9420k=\\F-a^p/d`3,uigq!N_Po1en%l,QuEG@!P3*K=0JU@Ao!'_\k>qa]nFZ1Bc/s'(jV]Cf`=RR%IA;Xj/e*<e;gdGR8p+9F?kM2kX&t2L#046'X"ia^CB8Ic1X4hUA"j@:,?H5pjMtkV]3J7@5p!iC.:7C9"6@4j$8^*>YO2SW<OYQQM&u/8Z?%4-o&UahcmHbOJ:d5e/au/k9'dV,<CVNWi/X1k/;7mM?).g97C$]^a7aDCjL\=21?KbmT;tj,NiZR*U;JJk.A&F*k?LMfm"H)A\3e#6VTTUo4-gg==-1pna$qK\+f"[GLVT8)Z.[h[rbg,O4-d8([n!jFtOs&U?^1iY6K^Tu)>`=dsm95$h`PDSXNsoHj/9Wt__@uB6VF7?,c1\:GM8NT,2ik%5$f2J>Q?At.(/m3,ij+:Q>d5hjnaOc'1fnj)Sq6aO$bjUO(eb5\rXO8p/2bI(0Z4YLiu]mCi4rmJ96!FJ*6(6AnVaQNO9F"@:oY'I,)@Fo*&lK7d%%=b\ClH.km2:>+iGQ$TM'DP=</#=@=?YtGCETO8$K'u5^HB]Zu#)n:1tV7i-/:!h(;p\B\;]:QP*L,~> endstream endobj 121 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 120 0 R >> endobj 122 0 obj << /Length 1510 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat=,99\?n&AI`dI,%[Q)XD*_Enb-rWm)[n3M]P%8q7=&N6PQ"ZMaT:o5]a$?rD%`2>sKrlL(k7_drE1PDUb5EAYd,EO6_5.#'r)E<WX9BHg=q9fCD6ms_X3BoD,ckeCg%)rTc\GK(op)Y8:&:*UZaBktSro(=e;3.&K?2\qE[0i$@=naW[5C^YU9X+[9Pql$i.+"*i0UR7j/dKG.ds7c-KBIHW4ctOaeBHj3k9!jIj)pLj%N'9pe;4W5rcnmo>E_TQgBiPrGBp"`t#I_Z&mU5LP]'VYYoZ^r@^f`*X[)@0rFYTFgARip'h$O#;M@skU(J"72PlkF<jMAEARQ@(KNCBS9W-1_.WVZW*[a@SqFQgCu9<.?5lIOJ10)G1sIsuF65Q9C/s'o]VfQr%N0JnF6<IVH[ZWUMfacM%+Vb6`_pUsEp%Z8Yu3)L0^Ap1@i77rE2=0=,K\[6M0hKqI9+=?L9a@Y9=A#>&GC]%,=]jmP_Ta94\[HgW#PsM&01!JR2?;u3\6qK*ZHG)GQEJ6!hXRO@YGOI]N)V'MCZ`;lLEc09gDp08&?\*W4<4h^U8&q)$8YV`R9DW_=p++lKOgDIoguc$#pa,;B^s\t<frn,J>p+Vuq/S?cXD9o$2IL0K>69"Sl`QD,>-,XH+b;&9%<OAr]JdC=O[k%(C)FpV=g?l@S#S4i*/`3t]V:FbWkrrTH=0UdA3Ig8&r_S`5VSf/+G,_\pDl2[?p)pmJrqbF)1S5b,ZSg2/P:8R@"aPs9^2(.o>TcZf=KH,WghM!)+I._P!fdj(q6pE4Nh`:Hh?68?XXT#<mKg5ini]MSe*3Tn'QY>(aM?QiSthp4Kb.Kb0JUfj"AO1iBY%9FEeVo@:%s%p0q?q`lsCJhkS7Y+ZRJpTL?MRm5!14h"NU8A7Om^*\takaWuS26UC0cf!%rD1t&a@;sf2Y%NPSXbV/'6B]s]&=.Jh"W2`&u\SE7SkJ5C8I+Q.?jC*dc3enlp'ABoVLXf92l#iSJ<1gaCQ^9scDG24j^<:S!NO>):R"f-;733)!:r.,d'?3f@HX.N!J-BI,6R!W\h5:=[,j6Jc2cnTpl2Ws6Aa:htj8/&rp?/m+n.dAE1alp$.1c7_/"MXV^8VBE+bNZ-PU8\1+:OfsLTM.=,.W)a#!LJ?k$TV_$)c,@+O^t7kU(AaL0N^Q!KUpBmFTs3aFjV5eFCu%Ct"nd8f++qU0jEDK&^7R*,E0glK08W1,,omkmOJ+2_^p!;cnTP<BVq7Asu_:a!^W'Qbk0!4?:+&e]s.56J-Od(NRa2/%f0Fr9eb!Ee*:*PM\T5@dKi[.,Q7No*%E'G0F>0/_u2H4Cf/+'TcDe%&8'/kLWfCN$lp?JL'5`#->)$^:2_MEXGp3>tSU?qg,2Lm7UpnT)F^-2O/rQ#7Z30)"6l_O2.+Bmk)li*;r\9e$ZNSSa?Y_5+',J:&q9i?_:BDlc[H^rgjAP^JG^ugO'TV!JUfn@D?/*je9a\T>merSa-3_D`i`'!W~> endstream endobj 123 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 122 0 R >> endobj 124 0 obj << /Length 1980 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gat%$>Ar7S'Roe[cs%0j@78r%@49R*>s!.Dg:CsQAJf*;ZII$k7oIP.mrr;7etIK7:nS(CSdWm+4!4EA5.c:24#A(21G<@CZ^an5Kn%VB!oc7\&.qO*q9&Nni[2jY;UqMA/%rK8Y.Q_@BbF;++tIs4?!TL@3qH]D*sb[ZKL)<6N.Sj<NF?[R9f.M5okXe\"R@Iih)$qq?8ZOro?NE$1Njr&pig$nqkGdk6Lmf$Rn?bV6/olY2k/[RCp0Z8V(;4TghKj>/B=S".t1TsjhPh>Uj+I*cc;Tqk(r6u2/i=FfqF69Opn&;bES.&h)G4jBDN3@DfW;;eN[_[cEjeg[9.<1E[=nWTl7EQd2Z_Mkp'q-2kX)!bK9K,BQG=cUBNZ&i@#u!E8fDHX@BIs:7PN\4Q<-;Q2:=Loe[RekB+W,)EFS"OBc5_/%#.Z2>Q3I=%sk!MV/_F23T`d`?+C]HU&8(qjr4+/#g#@qB_pLM1WZHThSH*#\N:_?oU$CBtJCSN`Jld>2VfL2:&:s_M*q%rVkr&>hh[^oG[9C=@S[D)/45cmYot/OqZe//pf>C#++MB2*Vh7Pk\QoM`aL@01=&fF4R(Dd,uc_YdW+1N5j^Rk5"Fe\d+=:Qgr-\Y@W'\9"%KKEA[CfX+/f;?(["m(:"TXC2iLhI.m<Y-##VY%!,hOlfXZj'`$Z)`7"76(Pg:98s78Xgf_ibb[/R*?HNP.+\CH&W8D/1EjqGb=KP'erGHEsM8(u?684YB8`0D(+0^Dk@Yj&D,)??j3].PZU+**R.sLsF74!,P(nf#noXL$?e[hdXP<19KaIo-uN!,B`K9<W=<eI92#(rYaZZ`qkPqK1uAX6J7#e%-1%[uuol`!e$!<H>?)e-+(F6]2e.AWD_J8sHKPRNNFOtW6IVi$2VP-`]L1$tlh3PD0E7>pZ/'Q&iFTiK-&F<TpQ4BOQG!F.>f\6@gO-Da8P#kE4(,@j,>.:WX\(.cQAX_Mrq8=*KP\M=O`eDhIh:FJf-7/qHUq,"t;&G7pYp$:pf2a;fgn`ialY&_5\;T&,BH2CpZ]t6@IJm>(TSOmPRP-Al72r^M]0JlR`oAeGLL9o7s"Z/bCL8i.DF!TPDoA8d8'1Kt^cQ?C(%)tjtJMVYIk?M5UB/8;=gj\(OO?Uku^CPkC:l!C=M"*TU3\K]4+dq-`J8W<2mgk^LLBc\l*^dhk9$Z@<-qs@OWm+B=1%_S%X\$\496:1.6R0sc>Dm@(B!W-FlsZo'#6`llZk(68@=aF`TPUr<6ea8Vhb]/2^cf/j_!:Cq,I?04F4kO_lumq/^Sn840M/4Q,3O`6#9=]/JP);](am,&Rnk-_fiq:8Cr+W^THSjG)?\?Sal*C0]Sq.I^6F@+mpL?4gQ]*'FNeu!=NcEs21sV5-@0*;mb)"Vd7u6Z[N=@MFfoO<dtn2_Prpm14>/!HguFa[a"P`sNX'q[*b5a(H7gn5FL\[YP)cTcWfi?TagcYT8&.#NC/Xdf1FV;$dm1@0[O+bG's@uQkUap0lfJMZh/IgZY&1kXLXpo-dNg-t&>]Pc)fp*oCBT-&eY<O+-#8OWUfpi#YOQ5Qhd!<6e]e*[H1`T<c36,KoHW(VL-T@+T+qQJLT$-q7f;6Q%]H*.i#/npV/<a,.2Uq,7,<^TrPcl#6f:*/K\2G9FZ)OCI8djQpZ+BF56EMPrqD3>0YFN*c#)6\CVrW`RcOZb-A_0ej#\3J-:!e)m:oMT.F'K`P\TJ]%Rjs`hT$Ar_CHf'bl-tdgfZDe=+.n?IMQ\V"\&_K^BrCS0G,R[JkER>2>Y*HLC<nX,<a^Jke^r,^W?KfCW+-Ng=taifK5[+a%=Y=Fjtb7*VnqBJ.D1*Z>W`Ypt!ho.qBuY`rQtACS,^7:Lo=Y>r,!Z`SD%.L3*OR2T\WAd'[scZ@T]4'Y?%5HRp8*phgM<,8-gOnL4Q^$,qDI<]NBX2Md0=c=R-=,<tUJ#DHqedWF"4+""':[K~> endstream endobj 125 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 124 0 R >> endobj 126 0 obj << /Length 2162 /Filter [ /ASCII85Decode /FlateDecode ] >> stream Gau0D95iQE&AI=/pom"^TV;%-jK_#mg%?OpUksG#1e#2NZph&A\eN]5qs/GSg"+NIjlB5P-ph(Sq<"0UhTsNF=8p-tM3gouM_f"O4EDk[r,X5l5b(Ccp`p?%ah4'i4.e+]:+j1=->DZJPOk2^P&5'+$^DGXqq$'^Q#Tb,1X;De.U)!]YM$N"9t@4[QkqX(]SIK(-b;4d$<(_+lQsW%T?R>h1EQPih68he+7.V6lXp&uYb%4o]W$k]Z=QbJlfB0:-WmringBX`/+g)'?fLb;*>SaJJ0]-a)ea:p:>osAm+lO4rNm)[[`<j!`d"LOc519Fhi]W#p%ns`oI?B@*h\5^gnONf3(IsTgb&B;]3@W-St?ZOr4Nm5E7dTSJ#jO2LQb%`oUsQL]astWkOmYtCNM#bW..-r%U,/(c)f2"SQrjBL=8K1iNQibD.:D76*d@>'p9;S\OMH?6&;W:>i(Y["XMoeFpOY6.s!=GVFj6D-5ff#s5Phok\=,gN%-IFiSjb26AfM;2jpHQFSB\cn:.[WWjY2mZCIs?l;gm4MCBkaHsZ9TC`t$F8\>l>,SThPq1P+$(qbJ"6l9n@1e_?0TXV.`.j<:nNM=kn30]fhnAJ=81MD(L=jeN@OmAG/Fn\,-Z5gue^^Wiq"f<DB9(L#'@34P76hD9gQ;R9IaXca8$h\s8_Q=$[QOT]F/*sps@h^R)ekd(=#]6XlFd,<*J4>*H['N8dfK<hP7u?ldKLB6Z$GRO$)3j+_JR2P4A49/jT2*&Z'eo`Un"YSK3heBK;NdoK.Dh[_ZHZNbi`Mkl\i&otMNuK]`XJ'NSp=X5r#JJ$#"C.C!Z-Bq_6p0sDO9_?8k9,fjrM0-[*.GT;;*r*!(QmN'&SBB8Fm)[XB=;#eaBr*TO2i`KnW$,+pe__.f0'>Lt+j>g00J].!"uWpL7]"'Hauk/c3p^-[BBu"R+&iW\+^n^>r[I@Wahimb7C3(ASbJCt%u8^GBP*bn7/E0)4`.I%gt$I\2uEp.NSZmt/_mcP54n/!MG`\1d=iC3?)PbK\;(k%?p(*0LN/)oI3?rTfNNNmA8/N=S':cR3$=:+k=d^eqDZj4Td*pNj\P-a$qsTYf2):?(ZK#LIc/3B_pcXY-O#Vl(oJ&-=n&ATMOP5br[sKc,!_Dtem=qmWIm].ebC$o`RY8,X+@;"mY7=-QE<J?Y"G;h!mP'QeXX3&[eAIb:s7D7VFh_%TL.EM$^MTl.(Rp$Vfa8Qn'G\M?Xq)@*]#G[pE/&+feO5(*T7QTJ@\_a@LL-jGE*"+(9.TU\abaN[@`Dl5+cLQ^\'cuT`dl,LDrLp-Q7,k2<e]pT";9Th7",sI.8\m#J9KhW+),`0A?W?$\!kRJt!:"'KrEMDF>#>qmR>0Ha2pC.P3M!9har%_3X[#X)Gm+'K!l(+dB/.9D]2MtA&[Ns@gpdXF8Of#p0+$#d;rfEj[=b/lX$LGQG?4RGu,oTlH4Sm-J6<o`-**$K3P?QU+jX9Mn\=0"L*?S<%har,-DV9V5#/t\#RcuBtr=J8Wk#9=06KNUjrH3LNOYZ%<:6u<BQG\(;p4hI#oodpC/B+:W7\OJO9<9+V-4qDf;k)fq>m#94=6o!=M9N_M;0D`Z1F\c8UKH'>H#$GnUC<s0e=(\AX7Sp`JSE:`AaIEZJ9?XQ)WrFC6c[cfgT(j&lmKid40,&cf6BWl',bFt4`4Q\q8(D\MGTIf8o'fDXgtUU_h21ELfS*nd^=U2>2\fA?FQ?M7N+NIUsRg(7/IX#XG+;(@VCS>N`.5lfatB6d7$a&WcBR*=`8tIi#j4p8T5CB)M55k4bBHM9(8?'O0rk8gR.*(<d\oVh#^BEf<ekmF?*N"!dHRs,87)JH/HZm@%;LZSV;>:6$WikG`hl]R)bX(k-[f3o7*oE9Ia/)&>!cq_)'Ju'M;m;o`1>O*cg^p0tM?g^R98[O6i_Um&#o%f1NfIU=:$X^Gg/.olSJu_h>r^ReNGtl^U*_))i\STnF6"52!]#W^F>":P**ZQYTZ/j<A@iLftMMP*K>N2?dIHo'Dp!P(Y*'geHrrKgkU"K\P$C[[CkVZY8ZK(YDo;.G-WX,i.i;%LMg&ZKN*iTo2:AFCKJ6ngF*-YPbX'6G;..nJBZ?kKKqAo$BUt'<I8m=<$Ea)i?dk\F"dT;WBb~> endstream endobj 127 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 126 0 R /Annots 128 0 R >> endobj 128 0 obj [ ] endobj 129 0 obj << /Length 318 /Filter [ /ASCII85Decode /FlateDecode ] >> stream GasJM5>T0N&B/jCMAob+0)#*:@`BT/fT7Y,5R]Jl;[XL3iX#)AECjB`.T5BMGON6&S\9!DGa'<b.W??HTj\"I3Wc*C%](p/"LoJbba*<p"o"5i)?cmK17X7K+^$\&^\qmW\"n:abj*M4qDRKQ>@%-?&$,13im1?%dt)M1.kL7$mdbkq0!q<h/j-/fHaq)\kilS9e8a^M23P4tAs.7n\:dXG4ui9/pQX_1<hQNFBTbo_#*'T_%ib5d(@Hi'`DQ1]W=:=-`sK3EXsi_I^4+CiU%_j,2+(LC8Sn5_H&Ys@1pYo?0)/jh&io=q;=Jj<~> endstream endobj 130 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Resources 3 0 R /Contents 129 0 R /Annots 131 0 R >> endobj 131 0 obj [ ] endobj 134 0 obj << /Title (\376\377\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153\0\40\0\165\0\163\0\145\0\162\0\40\0\147\0\165\0\151\0\144\0\145) /Parent 132 0 R /Next 136 0 R /A 133 0 R >> endobj 136 0 obj << /Title (\376\377\0\124\0\141\0\142\0\154\0\145\0\40\0\157\0\146\0\40\0\103\0\157\0\156\0\164\0\145\0\156\0\164\0\163) /Parent 132 0 R /Prev 134 0 R /Next 137 0 R /A 135 0 R >> endobj 137 0 obj << /Title (\376\377\0\111\0\156\0\164\0\162\0\157\0\144\0\165\0\143\0\164\0\151\0\157\0\156) /Parent 132 0 R /First 138 0 R /Last 141 0 R /Prev 136 0 R /Next 142 0 R /Count -4 /A 9 0 R >> endobj 138 0 obj << /Title (\376\377\0\110\0\157\0\167\0\40\0\151\0\164\0\40\0\167\0\157\0\162\0\153\0\163) /Parent 137 0 R /Next 139 0 R /A 11 0 R >> endobj 139 0 obj << /Title (\376\377\0\124\0\150\0\145\0\40\0\151\0\156\0\146\0\157\0\162\0\155\0\141\0\164\0\151\0\157\0\156\0\40\0\162\0\145\0\164\0\162\0\151\0\145\0\166\0\141\0\154\0\40\0\155\0\157\0\144\0\165\0\154\0\145) /Parent 137 0 R /Prev 138 0 R /Next 140 0 R /A 13 0 R >> endobj 140 0 obj << /Title (\376\377\0\124\0\150\0\145\0\40\0\164\0\141\0\142\0\154\0\145\0\163\0\40\0\157\0\146\0\40\0\141\0\40\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153\0\40\0\144\0\141\0\164\0\141\0\142\0\141\0\163\0\145) /Parent 137 0 R /Prev 139 0 R /Next 141 0 R /A 15 0 R >> endobj 141 0 obj << /Title (\376\377\0\107\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\151\0\156\0\146\0\157\0\162\0\155\0\141\0\164\0\151\0\157\0\156\0\40\0\163\0\164\0\157\0\162\0\145\0\144) /Parent 137 0 R /Prev 140 0 R /A 17 0 R >> endobj 142 0 obj << /Title (\376\377\0\111\0\156\0\163\0\164\0\141\0\154\0\154\0\141\0\164\0\151\0\157\0\156) /Parent 132 0 R /First 143 0 R /Last 152 0 R /Prev 137 0 R /Next 154 0 R /Count -11 /A 19 0 R >> endobj 143 0 obj << /Title (\376\377\0\123\0\171\0\163\0\164\0\145\0\155\0\40\0\122\0\145\0\161\0\165\0\151\0\162\0\145\0\155\0\145\0\156\0\164\0\163) /Parent 142 0 R /Next 144 0 R /A 21 0 R >> endobj 144 0 obj << /Title (\376\377\0\104\0\157\0\167\0\156\0\154\0\157\0\141\0\144\0\40\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153) /Parent 142 0 R /Prev 143 0 R /Next 145 0 R /A 23 0 R >> endobj 145 0 obj << /Title (\376\377\0\104\0\145\0\143\0\157\0\155\0\160\0\162\0\145\0\163\0\163\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\164\0\141\0\162\0\142\0\141\0\154\0\154) /Parent 142 0 R /Prev 144 0 R /Next 146 0 R /A 25 0 R >> endobj 146 0 obj << /Title (\376\377\0\121\0\165\0\151\0\143\0\153\0\40\0\111\0\156\0\163\0\164\0\141\0\154\0\154) /Parent 142 0 R /Prev 145 0 R /Next 147 0 R /A 27 0 R >> endobj 147 0 obj << /Title (\376\377\0\124\0\150\0\145\0\40\0\143\0\157\0\156\0\146\0\151\0\147\0\165\0\162\0\145\0\40\0\163\0\143\0\162\0\151\0\160\0\164) /Parent 142 0 R /Prev 146 0 R /Next 148 0 R /A 29 0 R >> endobj 148 0 obj << /Title (\376\377\0\123\0\160\0\145\0\143\0\151\0\146\0\171\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\141\0\160\0\160\0\154\0\151\0\143\0\141\0\164\0\151\0\157\0\156\0\40\0\144\0\151\0\162\0\145\0\143\0\164\0\157\0\162\0\171) /Parent 142 0 R /Prev 147 0 R /Next 149 0 R /A 31 0 R >> endobj 149 0 obj << /Title (\376\377\0\123\0\160\0\145\0\143\0\151\0\146\0\171\0\151\0\156\0\147\0\40\0\141\0\40\0\115\0\171\0\123\0\121\0\114\0\40\0\144\0\151\0\162\0\145\0\143\0\164\0\157\0\162\0\171) /Parent 142 0 R /Prev 148 0 R /Next 150 0 R /A 33 0 R >> endobj 150 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\160\0\141\0\164\0\150\0\40\0\164\0\157\0\40\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153\0\47\0\163\0\40\0\155\0\141\0\156\0\40\0\160\0\141\0\147\0\145) /Parent 142 0 R /Prev 149 0 R /Next 151 0 R /A 35 0 R >> endobj 151 0 obj << /Title (\376\377\0\115\0\171\0\123\0\121\0\114\0\40\0\165\0\163\0\145\0\162\0\47\0\163\0\40\0\160\0\162\0\151\0\166\0\151\0\154\0\145\0\147\0\145\0\163\0\40\0\146\0\157\0\162\0\40\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153) /Parent 142 0 R /Prev 150 0 R /Next 152 0 R /A 37 0 R >> endobj 152 0 obj << /Title (\376\377\0\115\0\171\0\123\0\121\0\114\0\40\0\143\0\157\0\156\0\156\0\145\0\143\0\164\0\151\0\157\0\156\0\40\0\163\0\145\0\164\0\164\0\151\0\156\0\147\0\163) /Parent 142 0 R /First 153 0 R /Last 153 0 R /Prev 151 0 R /Count -1 /A 39 0 R >> endobj 153 0 obj << /Title (\376\377\0\115\0\171\0\123\0\121\0\114\0\40\0\143\0\157\0\156\0\156\0\145\0\143\0\164\0\151\0\157\0\156\0\40\0\163\0\145\0\164\0\164\0\151\0\156\0\147\0\163\0\40\0\165\0\163\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\157\0\160\0\164\0\151\0\157\0\156\0\40\0\146\0\151\0\154\0\145) /Parent 152 0 R /A 68 0 R >> endobj 154 0 obj << /Title (\376\377\0\107\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\163\0\164\0\141\0\162\0\164\0\145\0\144) /Parent 132 0 R /Prev 142 0 R /Next 155 0 R /A 41 0 R >> endobj 155 0 obj << /Title (\376\377\0\124\0\150\0\145\0\40\0\143\0\157\0\156\0\146\0\151\0\147\0\165\0\162\0\141\0\164\0\151\0\157\0\156\0\40\0\146\0\151\0\154\0\145) /Parent 132 0 R /First 156 0 R /Last 159 0 R /Prev 154 0 R /Next 242 0 R /Count -48 /A 43 0 R >> endobj 156 0 obj << /Title (\376\377\0\107\0\145\0\156\0\145\0\162\0\141\0\154\0\40\0\163\0\171\0\156\0\164\0\141\0\170) /Parent 155 0 R /Next 157 0 R /A 45 0 R >> endobj 157 0 obj << /Title (\376\377\0\101\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145\0\163) /Parent 155 0 R /Prev 156 0 R /Next 158 0 R /A 47 0 R >> endobj 158 0 obj << /Title (\376\377\0\111\0\156\0\143\0\154\0\165\0\163\0\151\0\157\0\156\0\40\0\141\0\156\0\144\0\40\0\166\0\141\0\162\0\151\0\141\0\142\0\154\0\145\0\40\0\145\0\170\0\160\0\141\0\156\0\163\0\151\0\157\0\156) /Parent 155 0 R /Prev 157 0 R /Next 159 0 R /A 49 0 R >> endobj 159 0 obj << /Title (\376\377\0\103\0\157\0\156\0\146\0\151\0\147\0\165\0\162\0\141\0\164\0\151\0\157\0\156\0\40\0\141\0\164\0\164\0\162\0\151\0\142\0\165\0\164\0\145\0\163) /Parent 155 0 R /First 160 0 R /Last 236 0 R /Prev 158 0 R /Count -44 /A 51 0 R >> endobj 160 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\42\0\163\0\160\0\151\0\144\0\145\0\162\0\42) /Parent 159 0 R /First 162 0 R /Last 178 0 R /Next 179 0 R /Count -9 /A 92 0 R >> endobj 162 0 obj << /Title (\376\377\0\163\0\164\0\141\0\162\0\164\0\137\0\165\0\162\0\154) /Parent 160 0 R /Next 164 0 R /A 161 0 R >> endobj 164 0 obj << /Title (\376\377\0\154\0\151\0\155\0\151\0\164\0\137\0\165\0\162\0\154\0\163\0\137\0\164\0\157) /Parent 160 0 R /Prev 162 0 R /Next 166 0 R /A 163 0 R >> endobj 166 0 obj << /Title (\376\377\0\154\0\151\0\155\0\151\0\164\0\137\0\156\0\157\0\162\0\155\0\141\0\154\0\151\0\172\0\145\0\144) /Parent 160 0 R /Prev 164 0 R /Next 168 0 R /A 165 0 R >> endobj 168 0 obj << /Title (\376\377\0\145\0\170\0\143\0\154\0\165\0\144\0\145\0\137\0\165\0\162\0\154\0\163) /Parent 160 0 R /Prev 166 0 R /Next 170 0 R /A 167 0 R >> endobj 170 0 obj << /Title (\376\377\0\142\0\141\0\144\0\137\0\145\0\170\0\164\0\145\0\156\0\163\0\151\0\157\0\156\0\163) /Parent 160 0 R /Prev 168 0 R /Next 172 0 R /A 169 0 R >> endobj 172 0 obj << /Title (\376\377\0\142\0\141\0\144\0\137\0\161\0\165\0\145\0\162\0\171\0\163\0\164\0\162) /Parent 160 0 R /Prev 170 0 R /Next 174 0 R /A 171 0 R >> endobj 174 0 obj << /Title (\376\377\0\155\0\141\0\170\0\137\0\150\0\157\0\160\0\137\0\143\0\157\0\165\0\156\0\164) /Parent 160 0 R /Prev 172 0 R /Next 176 0 R /A 173 0 R >> endobj 176 0 obj << /Title (\376\377\0\155\0\141\0\170\0\137\0\165\0\162\0\154\0\163\0\137\0\143\0\157\0\165\0\156\0\164) /Parent 160 0 R /Prev 174 0 R /Next 178 0 R /A 175 0 R >> endobj 178 0 obj << /Title (\376\377\0\143\0\150\0\145\0\143\0\153\0\137\0\145\0\170\0\164\0\145\0\162\0\156\0\141\0\154) /Parent 160 0 R /Prev 176 0 R /A 177 0 R >> endobj 179 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\144\0\141\0\164\0\141\0\142\0\141\0\163\0\145\0\40\0\151\0\156\0\146\0\157) /Parent 159 0 R /First 181 0 R /Last 193 0 R /Prev 160 0 R /Next 194 0 R /Count -7 /A 94 0 R >> endobj 181 0 obj << /Title (\376\377\0\144\0\142\0\137\0\156\0\141\0\155\0\145) /Parent 179 0 R /Next 183 0 R /A 180 0 R >> endobj 183 0 obj << /Title (\376\377\0\144\0\142\0\137\0\156\0\141\0\155\0\145\0\137\0\160\0\162\0\145\0\160\0\145\0\156\0\144) /Parent 179 0 R /Prev 181 0 R /Next 185 0 R /A 182 0 R >> endobj 185 0 obj << /Title (\376\377\0\155\0\171\0\163\0\161\0\154\0\137\0\143\0\157\0\156\0\146\0\137\0\146\0\151\0\154\0\145\0\137\0\160\0\162\0\145\0\146\0\151\0\170) /Parent 179 0 R /Prev 183 0 R /Next 187 0 R /A 184 0 R >> endobj 187 0 obj << /Title (\376\377\0\155\0\171\0\163\0\161\0\154\0\137\0\143\0\157\0\156\0\146\0\137\0\147\0\162\0\157\0\165\0\160) /Parent 179 0 R /Prev 185 0 R /Next 189 0 R /A 186 0 R >> endobj 189 0 obj << /Title (\376\377\0\157\0\160\0\164\0\151\0\155\0\151\0\172\0\145\0\137\0\144\0\142) /Parent 179 0 R /Prev 187 0 R /Next 191 0 R /A 188 0 R >> endobj 191 0 obj << /Title (\376\377\0\163\0\161\0\154\0\137\0\142\0\151\0\147\0\137\0\164\0\141\0\142\0\154\0\145\0\137\0\157\0\160\0\164\0\151\0\157\0\156) /Parent 179 0 R /Prev 189 0 R /Next 193 0 R /A 190 0 R >> endobj 193 0 obj << /Title (\376\377\0\165\0\162\0\154\0\137\0\151\0\156\0\144\0\145\0\170\0\137\0\154\0\145\0\156\0\147\0\164\0\150) /Parent 179 0 R /Prev 191 0 R /A 192 0 R >> endobj 194 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\110\0\124\0\124\0\120\0\40\0\143\0\157\0\156\0\156\0\145\0\143\0\164\0\151\0\157\0\156\0\163) /Parent 159 0 R /First 196 0 R /Last 226 0 R /Prev 179 0 R /Next 227 0 R /Count -16 /A 96 0 R >> endobj 196 0 obj << /Title (\376\377\0\165\0\163\0\145\0\162\0\137\0\141\0\147\0\145\0\156\0\164) /Parent 194 0 R /Next 198 0 R /A 195 0 R >> endobj 198 0 obj << /Title (\376\377\0\160\0\145\0\162\0\163\0\151\0\163\0\164\0\145\0\156\0\164\0\137\0\143\0\157\0\156\0\156\0\145\0\143\0\164\0\151\0\157\0\156\0\163) /Parent 194 0 R /Prev 196 0 R /Next 200 0 R /A 197 0 R >> endobj 200 0 obj << /Title (\376\377\0\150\0\145\0\141\0\144\0\137\0\142\0\145\0\146\0\157\0\162\0\145\0\137\0\147\0\145\0\164) /Parent 194 0 R /Prev 198 0 R /Next 202 0 R /A 199 0 R >> endobj 202 0 obj << /Title (\376\377\0\164\0\151\0\155\0\145\0\157\0\165\0\164) /Parent 194 0 R /Prev 200 0 R /Next 204 0 R /A 201 0 R >> endobj 204 0 obj << /Title (\376\377\0\141\0\165\0\164\0\150\0\157\0\162\0\151\0\172\0\141\0\164\0\151\0\157\0\156) /Parent 194 0 R /Prev 202 0 R /Next 206 0 R /A 203 0 R >> endobj 206 0 obj << /Title (\376\377\0\155\0\141\0\170\0\137\0\162\0\145\0\164\0\162\0\151\0\145\0\163) /Parent 194 0 R /Prev 204 0 R /Next 208 0 R /A 205 0 R >> endobj 208 0 obj << /Title (\376\377\0\164\0\143\0\160\0\137\0\155\0\141\0\170\0\137\0\162\0\145\0\164\0\162\0\151\0\145\0\163) /Parent 194 0 R /Prev 206 0 R /Next 210 0 R /A 207 0 R >> endobj 210 0 obj << /Title (\376\377\0\164\0\143\0\160\0\137\0\167\0\141\0\151\0\164\0\137\0\164\0\151\0\155\0\145) /Parent 194 0 R /Prev 208 0 R /Next 212 0 R /A 209 0 R >> endobj 212 0 obj << /Title (\376\377\0\150\0\164\0\164\0\160\0\137\0\160\0\162\0\157\0\170\0\171) /Parent 194 0 R /Prev 210 0 R /Next 214 0 R /A 211 0 R >> endobj 214 0 obj << /Title (\376\377\0\150\0\164\0\164\0\160\0\137\0\160\0\162\0\157\0\170\0\171\0\137\0\145\0\170\0\143\0\154\0\165\0\144\0\145) /Parent 194 0 R /Prev 212 0 R /Next 216 0 R /A 213 0 R >> endobj 216 0 obj << /Title (\376\377\0\150\0\164\0\164\0\160\0\137\0\160\0\162\0\157\0\170\0\171\0\137\0\141\0\165\0\164\0\150\0\157\0\162\0\151\0\172\0\141\0\164\0\151\0\157\0\156) /Parent 194 0 R /Prev 214 0 R /Next 218 0 R /A 215 0 R >> endobj 218 0 obj << /Title (\376\377\0\141\0\143\0\143\0\145\0\160\0\164\0\137\0\154\0\141\0\156\0\147\0\165\0\141\0\147\0\145) /Parent 194 0 R /Prev 216 0 R /Next 220 0 R /A 217 0 R >> endobj 220 0 obj << /Title (\376\377\0\162\0\145\0\155\0\157\0\166\0\145\0\137\0\144\0\145\0\146\0\141\0\165\0\154\0\164\0\137\0\144\0\157\0\143) /Parent 194 0 R /Prev 218 0 R /Next 222 0 R /A 219 0 R >> endobj 222 0 obj << /Title (\376\377\0\144\0\151\0\163\0\141\0\142\0\154\0\145\0\137\0\143\0\157\0\157\0\153\0\151\0\145\0\163) /Parent 194 0 R /Prev 220 0 R /Next 224 0 R /A 221 0 R >> endobj 224 0 obj << /Title (\376\377\0\143\0\157\0\157\0\153\0\151\0\145\0\163\0\137\0\151\0\156\0\160\0\165\0\164\0\137\0\146\0\151\0\154\0\145) /Parent 194 0 R /Prev 222 0 R /Next 226 0 R /A 223 0 R >> endobj 226 0 obj << /Title (\376\377\0\165\0\162\0\154\0\137\0\162\0\145\0\163\0\145\0\162\0\166\0\145\0\144\0\137\0\143\0\150\0\141\0\162\0\163) /Parent 194 0 R /Prev 224 0 R /A 225 0 R >> endobj 227 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\167\0\150\0\141\0\164\0\40\0\164\0\157\0\40\0\163\0\164\0\157\0\162\0\145) /Parent 159 0 R /First 229 0 R /Last 235 0 R /Prev 194 0 R /Next 236 0 R /Count -4 /A 98 0 R >> endobj 229 0 obj << /Title (\376\377\0\155\0\141\0\170\0\137\0\144\0\157\0\143\0\137\0\163\0\151\0\172\0\145) /Parent 227 0 R /Next 231 0 R /A 228 0 R >> endobj 231 0 obj << /Title (\376\377\0\163\0\164\0\157\0\162\0\145\0\137\0\157\0\156\0\154\0\171\0\137\0\154\0\151\0\156\0\153\0\163) /Parent 227 0 R /Prev 229 0 R /Next 233 0 R /A 230 0 R >> endobj 233 0 obj << /Title (\376\377\0\163\0\164\0\157\0\162\0\145\0\137\0\165\0\162\0\154\0\137\0\143\0\157\0\156\0\164\0\145\0\156\0\164\0\163) /Parent 227 0 R /Prev 231 0 R /Next 235 0 R /A 232 0 R >> endobj 235 0 obj << /Title (\376\377\0\141\0\166\0\141\0\151\0\154\0\141\0\142\0\154\0\145\0\137\0\143\0\150\0\141\0\162\0\163\0\145\0\164\0\163) /Parent 227 0 R /Prev 233 0 R /A 234 0 R >> endobj 236 0 obj << /Title (\376\377\0\123\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\167\0\150\0\141\0\164\0\40\0\164\0\157\0\40\0\162\0\145\0\160\0\157\0\162\0\164) /Parent 159 0 R /First 238 0 R /Last 241 0 R /Prev 227 0 R /Count -3 /A 103 0 R >> endobj 238 0 obj << /Title (\376\377\0\163\0\165\0\155\0\155\0\141\0\162\0\171\0\137\0\141\0\156\0\143\0\150\0\157\0\162\0\137\0\156\0\157\0\164\0\137\0\146\0\157\0\165\0\156\0\144) /Parent 236 0 R /Next 239 0 R /A 237 0 R >> endobj 239 0 obj << /Title (\376\377\0\101\0\143\0\143\0\145\0\163\0\163\0\151\0\142\0\151\0\154\0\151\0\164\0\171\0\40\0\143\0\150\0\145\0\143\0\153\0\163) /Parent 236 0 R /Prev 238 0 R /Next 241 0 R /A 105 0 R >> endobj 241 0 obj << /Title (\376\377\0\141\0\143\0\143\0\145\0\163\0\163\0\151\0\142\0\151\0\154\0\151\0\164\0\171\0\137\0\143\0\150\0\145\0\143\0\153\0\163) /Parent 236 0 R /Prev 239 0 R /A 240 0 R >> endobj 242 0 obj << /Title (\376\377\0\106\0\101\0\121) /Parent 132 0 R /First 243 0 R /Last 249 0 R /Prev 155 0 R /Next 254 0 R /Count -7 /A 53 0 R >> endobj 243 0 obj << /Title (\376\377\0\103\0\157\0\156\0\146\0\151\0\147\0\165\0\162\0\141\0\164\0\151\0\157\0\156\0\40\0\141\0\156\0\144\0\40\0\143\0\157\0\155\0\160\0\151\0\154\0\141\0\164\0\151\0\157\0\156) /Parent 242 0 R /First 245 0 R /Last 245 0 R /Next 246 0 R /Count -1 /A 55 0 R >> endobj 245 0 obj << /Title (\376\377\0\111\0\47\0\155\0\40\0\143\0\157\0\155\0\160\0\151\0\154\0\151\0\156\0\147\0\40\0\167\0\151\0\164\0\150\0\40\0\147\0\143\0\143\0\40\0\63\0\56\0\62\0\40\0\141\0\156\0\144\0\40\0\147\0\145\0\164\0\164\0\151\0\156\0\147\0\40\0\163\0\145\0\166\0\145\0\162\0\141\0\154\0\40\0\167\0\141\0\162\0\156\0\151\0\156\0\147\0\163\0\57\0\145\0\162\0\162\0\157\0\162\0\163\0\40\0\162\0\145\0\147\0\141\0\162\0\144\0\151\0\156\0\147\0\40\0\157\0\163\0\164\0\162\0\145\0\141\0\155) /Parent 243 0 R /A 244 0 R >> endobj 246 0 obj << /Title (\376\377\0\124\0\150\0\145\0\40\0\115\0\171\0\123\0\121\0\114\0\40\0\144\0\141\0\164\0\141\0\142\0\141\0\163\0\145\0\40\0\157\0\146\0\40\0\150\0\164\0\72\0\57\0\57\0\103\0\150\0\145\0\143\0\153) /Parent 242 0 R /First 248 0 R /Last 248 0 R /Prev 243 0 R /Next 249 0 R /Count -1 /A 57 0 R >> endobj 248 0 obj << /Title (\376\377\0\127\0\150\0\141\0\164\0\40\0\164\0\141\0\142\0\154\0\145\0\163\0\40\0\150\0\141\0\166\0\145\0\40\0\164\0\157\0\40\0\142\0\145\0\40\0\143\0\162\0\145\0\141\0\164\0\145\0\144\0\77\0\40\0\127\0\150\0\141\0\164\0\40\0\141\0\142\0\157\0\165\0\164\0\40\0\164\0\150\0\145\0\40\0\146\0\151\0\145\0\154\0\144\0\163\0\77\0\40\0\141\0\156\0\144\0\40\0\164\0\150\0\145\0\151\0\162\0\40\0\146\0\157\0\162\0\155\0\141\0\164\0\77) /Parent 246 0 R /A 247 0 R >> endobj 249 0 obj << /Title (\376\377\0\103\0\157\0\156\0\146\0\151\0\147\0\165\0\162\0\151\0\156\0\147\0\40\0\164\0\150\0\145\0\40\0\163\0\160\0\151\0\144\0\145\0\162\0\40\0\50\0\150\0\164\0\143\0\150\0\145\0\143\0\153\0\51) /Parent 242 0 R /First 251 0 R /Last 253 0 R /Prev 246 0 R /Count -2 /A 59 0 R >> endobj 251 0 obj << /Title (\376\377\0\110\0\157\0\167\0\40\0\144\0\157\0\40\0\111\0\40\0\143\0\150\0\141\0\156\0\147\0\145\0\40\0\164\0\150\0\145\0\40\0\125\0\122\0\114\0\163\0\40\0\164\0\157\0\40\0\143\0\150\0\145\0\143\0\153\0\40\0\167\0\151\0\164\0\150\0\157\0\165\0\164\0\40\0\147\0\157\0\151\0\156\0\147\0\40\0\164\0\150\0\162\0\157\0\165\0\147\0\150\0\40\0\164\0\150\0\145\0\40\0\120\0\110\0\120\0\40\0\151\0\156\0\164\0\145\0\162\0\146\0\141\0\143\0\145\0\77) /Parent 249 0 R /Next 253 0 R /A 250 0 R >> endobj 253 0 obj << /Title (\376\377\0\111\0\146\0\40\0\111\0\40\0\162\0\165\0\156\0\40\0\150\0\164\0\143\0\150\0\145\0\143\0\153\0\40\0\141\0\164\0\40\0\164\0\150\0\145\0\40\0\143\0\157\0\155\0\155\0\141\0\156\0\144\0\154\0\151\0\156\0\145\0\54\0\40\0\111\0\40\0\144\0\157\0\156\0\47\0\164\0\40\0\163\0\145\0\145\0\40\0\141\0\40\0\167\0\141\0\171\0\40\0\164\0\157\0\40\0\143\0\150\0\141\0\156\0\147\0\145\0\40\0\164\0\150\0\145\0\40\0\125\0\122\0\114\0\163\0\40\0\164\0\157\0\40\0\143\0\150\0\145\0\143\0\153\0\56\0\40\0\111\0\47\0\155\0\40\0\147\0\165\0\145\0\163\0\163\0\151\0\156\0\147\0\40\0\164\0\150\0\141\0\164\0\40\0\164\0\150\0\145\0\40\0\123\0\145\0\162\0\166\0\145\0\162\0\40\0\164\0\141\0\142\0\154\0\145\0\40\0\151\0\156\0\40\0\164\0\150\0\145\0\40\0\150\0\164\0\143\0\150\0\145\0\143\0\153\0\40\0\144\0\141\0\164\0\141\0\142\0\141\0\163\0\145\0\40\0\151\0\163\0\40\0\167\0\150\0\141\0\164\0\40\0\111\0\40\0\167\0\141\0\156\0\164\0\40\0\164\0\157\0\40\0\155\0\157\0\144\0\151\0\146\0\171\0\54\0\40\0\162\0\151\0\147\0\150\0\164\0\77) /Parent 249 0 R /Prev 251 0 R /A 252 0 R >> endobj 254 0 obj << /Title (\376\377\0\103\0\157\0\160\0\171\0\162\0\151\0\147\0\150\0\164) /Parent 132 0 R /Prev 242 0 R /Next 255 0 R /A 61 0 R >> endobj 255 0 obj << /Title (\376\377\0\122\0\145\0\146\0\145\0\162\0\145\0\156\0\143\0\145\0\163) /Parent 132 0 R /Prev 254 0 R /Next 257 0 R /A 63 0 R >> endobj 257 0 obj << /Title (\376\377\0\111\0\156\0\144\0\145\0\170) /Parent 132 0 R /Prev 255 0 R /A 256 0 R >> endobj 258 0 obj << /Type /Font /Subtype /Type1 /Name /F11 /BaseFont /Courier-Bold /Encoding /WinAnsiEncoding >> endobj 259 0 obj << /Type /Font /Subtype /Type1 /Name /F10 /BaseFont /Courier-Oblique /Encoding /WinAnsiEncoding >> endobj 260 0 obj << /Type /Font /Subtype /Type1 /Name /F9 /BaseFont /Courier /Encoding /WinAnsiEncoding >> endobj 261 0 obj << /Type /Font /Subtype /Type1 /Name /F7 /BaseFont /Times-Bold /Encoding /WinAnsiEncoding >> endobj 262 0 obj << /Type /Font /Subtype /Type1 /Name /F6 /BaseFont /Times-Italic /Encoding /WinAnsiEncoding >> endobj 263 0 obj << /Type /Font /Subtype /Type1 /Name /F5 /BaseFont /Times-Roman /Encoding /WinAnsiEncoding >> endobj 264 0 obj << /Type /Font /Subtype /Type1 /Name /F4 /BaseFont /Helvetica-BoldOblique /Encoding /WinAnsiEncoding >> endobj 265 0 obj << /Type /Font /Subtype /Type1 /Name /F3 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj 266 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 1 0 obj << /Type /Pages /Count 21 /Kids [6 0 R 65 0 R 71 0 R 75 0 R 79 0 R 81 0 R 87 0 R 89 0 R 100 0 R 107 0 R 109 0 R 111 0 R 113 0 R 115 0 R 117 0 R 119 0 R 121 0 R 123 0 R 125 0 R 127 0 R 130 0 R ] >> endobj 2 0 obj << /Type /Catalog /Pages 1 0 R /Outlines 132 0 R /PageMode /UseOutlines >> endobj 3 0 obj << /Font << /F11 258 0 R /F10 259 0 R /F9 260 0 R /F7 261 0 R /F6 262 0 R /F5 263 0 R /F4 264 0 R /F3 265 0 R /F1 266 0 R >> /ProcSet [ /PDF /ImageC /Text ] >> endobj 9 0 obj << /S /GoTo /D [6 0 R /XYZ 31.0 111.294 null] >> endobj 11 0 obj << /S /GoTo /D [65 0 R /XYZ 31.0 342.889 null] >> endobj 13 0 obj << /S /GoTo /D [65 0 R /XYZ 31.0 140.763 null] >> endobj 15 0 obj << /S /GoTo /D [71 0 R /XYZ 31.0 555.289 null] >> endobj 17 0 obj << /S /GoTo /D [75 0 R /XYZ 31.0 633.289 null] >> endobj 19 0 obj << /S /GoTo /D [75 0 R /XYZ 31.0 431.163 null] >> endobj 21 0 obj << /S /GoTo /D [75 0 R /XYZ 31.0 391.172 null] >> endobj 23 0 obj << /S /GoTo /D [75 0 R /XYZ 31.0 217.846 null] >> endobj 25 0 obj << /S /GoTo /D [75 0 R /XYZ 31.0 157.32 null] >> endobj 27 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 699.289 null] >> endobj 29 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 614.383 null] >> endobj 31 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 523.997 null] >> endobj 33 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 394.011 null] >> endobj 35 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 277.225 null] >> endobj 37 0 obj << /S /GoTo /D [79 0 R /XYZ 31.0 147.239 null] >> endobj 39 0 obj << /S /GoTo /D [81 0 R /XYZ 31.0 536.089 null] >> endobj 41 0 obj << /S /GoTo /D [81 0 R /XYZ 31.0 105.084 null] >> endobj 43 0 obj << /S /GoTo /D [89 0 R /XYZ 31.0 774.889 null] >> endobj 45 0 obj << /S /GoTo /D [89 0 R /XYZ 31.0 746.898 null] >> endobj 47 0 obj << /S /GoTo /D [89 0 R /XYZ 31.0 659.972 null] >> endobj 49 0 obj << /S /GoTo /D [89 0 R /XYZ 31.0 415.986 null] >> endobj 51 0 obj << /S /GoTo /D [89 0 R /XYZ 31.0 260.8 null] >> endobj 53 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 548.231 null] >> endobj 55 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 508.24 null] >> endobj 57 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 315.376 null] >> endobj 59 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 190.772 null] >> endobj 61 0 obj << /S /GoTo /D [127 0 R /XYZ 31.0 535.252 null] >> endobj 63 0 obj << /S /GoTo /D [127 0 R /XYZ 31.0 401.661 null] >> endobj 68 0 obj << /S /GoTo /D [81 0 R /XYZ 31.0 401.163 null] >> endobj 92 0 obj << /S /GoTo /D [100 0 R /XYZ 31.0 712.489 null] >> endobj 94 0 obj << /S /GoTo /D [109 0 R /XYZ 31.0 472.17 null] >> endobj 96 0 obj << /S /GoTo /D [113 0 R /XYZ 31.0 563.23 null] >> endobj 98 0 obj << /S /GoTo /D [121 0 R /XYZ 31.0 377.971 null] >> endobj 103 0 obj << /S /GoTo /D [123 0 R /XYZ 31.0 277.871 null] >> endobj 105 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 774.889 null] >> endobj 132 0 obj << /First 134 0 R /Last 257 0 R >> endobj 133 0 obj << /S /GoTo /D [6 0 R /XYZ 31.0 774.889 null] >> endobj 135 0 obj << /S /GoTo /D [6 0 R /XYZ 31.0 699.499 null] >> endobj 161 0 obj << /S /GoTo /D [100 0 R /XYZ 31.0 681.05 null] >> endobj 163 0 obj << /S /GoTo /D [100 0 R /XYZ 31.0 508.991 null] >> endobj 165 0 obj << /S /GoTo /D [100 0 R /XYZ 31.0 297.332 null] >> endobj 167 0 obj << /S /GoTo /D [100 0 R /XYZ 31.0 125.273 null] >> endobj 169 0 obj << /S /GoTo /D [107 0 R /XYZ 31.0 656.229 null] >> endobj 171 0 obj << /S /GoTo /D [107 0 R /XYZ 31.0 457.77 null] >> endobj 173 0 obj << /S /GoTo /D [107 0 R /XYZ 31.0 285.711 null] >> endobj 175 0 obj << /S /GoTo /D [107 0 R /XYZ 31.0 113.652 null] >> endobj 177 0 obj << /S /GoTo /D [109 0 R /XYZ 31.0 644.229 null] >> endobj 180 0 obj << /S /GoTo /D [109 0 R /XYZ 31.0 440.731 null] >> endobj 182 0 obj << /S /GoTo /D [109 0 R /XYZ 31.0 281.872 null] >> endobj 184 0 obj << /S /GoTo /D [111 0 R /XYZ 31.0 774.889 null] >> endobj 186 0 obj << /S /GoTo /D [111 0 R /XYZ 31.0 589.63 null] >> endobj 188 0 obj << /S /GoTo /D [111 0 R /XYZ 31.0 404.371 null] >> endobj 190 0 obj << /S /GoTo /D [111 0 R /XYZ 31.0 245.512 null] >> endobj 192 0 obj << /S /GoTo /D [113 0 R /XYZ 31.0 774.889 null] >> endobj 195 0 obj << /S /GoTo /D [113 0 R /XYZ 31.0 531.791 null] >> endobj 197 0 obj << /S /GoTo /D [113 0 R /XYZ 31.0 372.932 null] >> endobj 199 0 obj << /S /GoTo /D [113 0 R /XYZ 31.0 187.673 null] >> endobj 201 0 obj << /S /GoTo /D [115 0 R /XYZ 31.0 694.629 null] >> endobj 203 0 obj << /S /GoTo /D [115 0 R /XYZ 31.0 497.37 null] >> endobj 205 0 obj << /S /GoTo /D [115 0 R /XYZ 31.0 312.111 null] >> endobj 207 0 obj << /S /GoTo /D [115 0 R /XYZ 31.0 140.052 null] >> endobj 209 0 obj << /S /GoTo /D [117 0 R /XYZ 31.0 669.429 null] >> endobj 211 0 obj << /S /GoTo /D [117 0 R /XYZ 31.0 510.57 null] >> endobj 213 0 obj << /S /GoTo /D [117 0 R /XYZ 31.0 313.311 null] >> endobj 215 0 obj << /S /GoTo /D [117 0 R /XYZ 31.0 141.252 null] >> endobj 217 0 obj << /S /GoTo /D [119 0 R /XYZ 31.0 669.429 null] >> endobj 219 0 obj << /S /GoTo /D [119 0 R /XYZ 31.0 444.57 null] >> endobj 221 0 obj << /S /GoTo /D [119 0 R /XYZ 31.0 219.711 null] >> endobj 223 0 obj << /S /GoTo /D [121 0 R /XYZ 31.0 774.889 null] >> endobj 225 0 obj << /S /GoTo /D [121 0 R /XYZ 31.0 589.63 null] >> endobj 228 0 obj << /S /GoTo /D [121 0 R /XYZ 31.0 346.532 null] >> endobj 230 0 obj << /S /GoTo /D [121 0 R /XYZ 31.0 174.473 null] >> endobj 232 0 obj << /S /GoTo /D [123 0 R /XYZ 31.0 694.629 null] >> endobj 234 0 obj << /S /GoTo /D [123 0 R /XYZ 31.0 509.37 null] >> endobj 237 0 obj << /S /GoTo /D [123 0 R /XYZ 31.0 246.432 null] >> endobj 240 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 746.69 null] >> endobj 244 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 472.914 null] >> endobj 247 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 280.05 null] >> endobj 250 0 obj << /S /GoTo /D [125 0 R /XYZ 31.0 155.446 null] >> endobj 252 0 obj << /S /GoTo /D [127 0 R /XYZ 31.0 774.889 null] >> endobj 256 0 obj << /S /GoTo /D [127 0 R /XYZ 31.0 196.07 null] >> endobj xref 0 267 0000000000 65535 f 0000068574 00000 n 0000068786 00000 n 0000068879 00000 n 0000000015 00000 n 0000000071 00000 n 0000002101 00000 n 0000002221 00000 n 0000002435 00000 n 0000069057 00000 n 0000002564 00000 n 0000069121 00000 n 0000002696 00000 n 0000069187 00000 n 0000002828 00000 n 0000069253 00000 n 0000002958 00000 n 0000069319 00000 n 0000003090 00000 n 0000069385 00000 n 0000003219 00000 n 0000069451 00000 n 0000003349 00000 n 0000069517 00000 n 0000003481 00000 n 0000069583 00000 n 0000003613 00000 n 0000069648 00000 n 0000003745 00000 n 0000069714 00000 n 0000003877 00000 n 0000069780 00000 n 0000004009 00000 n 0000069846 00000 n 0000004140 00000 n 0000069912 00000 n 0000004272 00000 n 0000069978 00000 n 0000004403 00000 n 0000070044 00000 n 0000004535 00000 n 0000070110 00000 n 0000004667 00000 n 0000070176 00000 n 0000004799 00000 n 0000070242 00000 n 0000004931 00000 n 0000070308 00000 n 0000005061 00000 n 0000070374 00000 n 0000005193 00000 n 0000070440 00000 n 0000005325 00000 n 0000070504 00000 n 0000005454 00000 n 0000070571 00000 n 0000005586 00000 n 0000070637 00000 n 0000005718 00000 n 0000070704 00000 n 0000005850 00000 n 0000070771 00000 n 0000005981 00000 n 0000070838 00000 n 0000006112 00000 n 0000009043 00000 n 0000009166 00000 n 0000009200 00000 n 0000070905 00000 n 0000009337 00000 n 0000009473 00000 n 0000011957 00000 n 0000012080 00000 n 0000012107 00000 n 0000012244 00000 n 0000014600 00000 n 0000014723 00000 n 0000014750 00000 n 0000014888 00000 n 0000017136 00000 n 0000017244 00000 n 0000019174 00000 n 0000019297 00000 n 0000019338 00000 n 0000019477 00000 n 0000019615 00000 n 0000019753 00000 n 0000022323 00000 n 0000022431 00000 n 0000024410 00000 n 0000024533 00000 n 0000024581 00000 n 0000070971 00000 n 0000024717 00000 n 0000071038 00000 n 0000024853 00000 n 0000071104 00000 n 0000024987 00000 n 0000071170 00000 n 0000025121 00000 n 0000026880 00000 n 0000027005 00000 n 0000027042 00000 n 0000071237 00000 n 0000027180 00000 n 0000071305 00000 n 0000027317 00000 n 0000028943 00000 n 0000029053 00000 n 0000030527 00000 n 0000030637 00000 n 0000032264 00000 n 0000032374 00000 n 0000034251 00000 n 0000034361 00000 n 0000035858 00000 n 0000035968 00000 n 0000037554 00000 n 0000037664 00000 n 0000039538 00000 n 0000039648 00000 n 0000041635 00000 n 0000041745 00000 n 0000043349 00000 n 0000043459 00000 n 0000045533 00000 n 0000045643 00000 n 0000047899 00000 n 0000048025 00000 n 0000048046 00000 n 0000048457 00000 n 0000048583 00000 n 0000071373 00000 n 0000071427 00000 n 0000048604 00000 n 0000071493 00000 n 0000048811 00000 n 0000049012 00000 n 0000049225 00000 n 0000049380 00000 n 0000049669 00000 n 0000049971 00000 n 0000050233 00000 n 0000050448 00000 n 0000050646 00000 n 0000050856 00000 n 0000051104 00000 n 0000051281 00000 n 0000051499 00000 n 0000051812 00000 n 0000052077 00000 n 0000052413 00000 n 0000052733 00000 n 0000053008 00000 n 0000053354 00000 n 0000053543 00000 n 0000053816 00000 n 0000053984 00000 n 0000054144 00000 n 0000054433 00000 n 0000054704 00000 n 0000071559 00000 n 0000054947 00000 n 0000071626 00000 n 0000055087 00000 n 0000071694 00000 n 0000055266 00000 n 0000071762 00000 n 0000055463 00000 n 0000071830 00000 n 0000055636 00000 n 0000071898 00000 n 0000055821 00000 n 0000071965 00000 n 0000055994 00000 n 0000072033 00000 n 0000056173 00000 n 0000072101 00000 n 0000056358 00000 n 0000056528 00000 n 0000072169 00000 n 0000056817 00000 n 0000072237 00000 n 0000056945 00000 n 0000072305 00000 n 0000057136 00000 n 0000072373 00000 n 0000057369 00000 n 0000072440 00000 n 0000057566 00000 n 0000072508 00000 n 0000057733 00000 n 0000072576 00000 n 0000057954 00000 n 0000058136 00000 n 0000072644 00000 n 0000058421 00000 n 0000072712 00000 n 0000058567 00000 n 0000072780 00000 n 0000058800 00000 n 0000072848 00000 n 0000058991 00000 n 0000072916 00000 n 0000059134 00000 n 0000072983 00000 n 0000059313 00000 n 0000073051 00000 n 0000059480 00000 n 0000073119 00000 n 0000059671 00000 n 0000073187 00000 n 0000059850 00000 n 0000073254 00000 n 0000060011 00000 n 0000073322 00000 n 0000060220 00000 n 0000073390 00000 n 0000060465 00000 n 0000073458 00000 n 0000060656 00000 n 0000073525 00000 n 0000060865 00000 n 0000073593 00000 n 0000061056 00000 n 0000073661 00000 n 0000061265 00000 n 0000061459 00000 n 0000073728 00000 n 0000061724 00000 n 0000073796 00000 n 0000061882 00000 n 0000073864 00000 n 0000062079 00000 n 0000073932 00000 n 0000062288 00000 n 0000062482 00000 n 0000073999 00000 n 0000062739 00000 n 0000062969 00000 n 0000074067 00000 n 0000063189 00000 n 0000063395 00000 n 0000063555 00000 n 0000074134 00000 n 0000063854 00000 n 0000064390 00000 n 0000074202 00000 n 0000064717 00000 n 0000065205 00000 n 0000074269 00000 n 0000065519 00000 n 0000074337 00000 n 0000066035 00000 n 0000067131 00000 n 0000067285 00000 n 0000074405 00000 n 0000067445 00000 n 0000067561 00000 n 0000067674 00000 n 0000067790 00000 n 0000067897 00000 n 0000068007 00000 n 0000068119 00000 n 0000068230 00000 n 0000068351 00000 n 0000068465 00000 n trailer << /Size 267 /Root 2 0 R /Info 4 0 R >> startxref 74472 %%EOF �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������htcheck-2.0.0~rc1.orig/doc/htcheck.html�������������������������������������������������������������0000644�0000000�0000000�00000131603�11245477405�014634� 0����������������������������������������������������������������������������������������������������ustar ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="generator" content="AsciiDoc 8.1.0" /> <link rel="stylesheet" href="css/xhtml11.css" type="text/css" /> <link rel="stylesheet" href="css/xhtml11-quirks.css" type="text/css" /> <script type="text/javascript" src="./toc.js"></script> <title>ht://Check user guide

ht://Check, more than a link checker - User guide.

Abstract

ht://Check is a link checker that retrieves information through the HTTP protocol and stores it in a MySQL database. It is particularly suited for small Internet domains or Intranet.

It is written in ANSI C++, which makes it portable over POSIX systems and extremely fast.

ht://Check is free software, distributed under the GNU General Public License (GPL).

Introduction

ht://Check's main goal is to help webmasters managing one or more related sites: after a "crawl", ht://Check creates a rich data source made up of information based on the retrieved documents. Here follows a short list of the major insights that ht://Check is able to detect:

  • complete source code for HTML documents retrieved;

  • single documents attributes such as content-type, size, last modification time, etc.

  • information regarding the retrieval process of a resource
    [for example: the resource was succesfully retrieved, showing the returned HTTP status codes]

  • information regarding the structure of a document, such as the HTML tags they are made up of

  • information regarding the structure of the website that has been analysed (links between documents create the so-called inter-documents relationships between Internet resources); this feature allows users to get further information:

    • link results: check whether a link to a URL or a URL fragment (anchor) exists and is not broken; retrieves further information such as redirections, e-mail links and bad encoded links (according to RFC1738)
      [some limitations apply: such as Javascript URLs, which cannot be parsed]

    • relationships between documents, in terms of incoming links and outgoing ones (Web structure mining activity)

  • web content accessibility checks: from version 1.2.3, ht://Check also performs accessibility checks in accordance with the principles of the University of Toronto's Open Accessibility Checks (OAC) project, allowing users to discover site-wide barriers like images without proper alternatives, missing titles, etc.

A skinny report is given by the htcheck application. Most of the available information can be analysed through the PHP interface which comes as a separate package.

How it works

ht://Check is essentially a web spider, or robot or crawler. As well as a search engine (like ht://Dig) indexes words from the Internet, ht://Check stores HTML statements such as tags and attributes, links, URL information, and more.

At the moment, ht://Check supports only HTTP/1.1 (and HTTP/1.0 also): future plans regard enabling the FTP, NNTP, HTTPS and also local files checks.

Everything is stored in a MySQL database, created from scratch by the application itself. You don't need to create it before, just run htcheck and every needed table will be automatically built by the program.

For information regarding the connection to the MySQL database, please consult the MySQL connection settings using the option file section.

The information retrieval module

ht://Check is made up of two logical "modules", one corcerning the information retrieval, the other one the analysis of the performed crawl.

The first step, which is the most important also, is completely performed by the htcheck program; depending on the values set in the configuration file, htcheck starts retrieving the URL defined in the start_url configuration attribute; the crawling process is limited in several ways, most of which regard the URL domain (like limit_urls_to , limit_normalized, exclude_urls ) or the distance from the starting URL (max_hop_count), etcetera.

When htcheck retrieves the first document, it checks the answer that the server gave back; if the document exists (HTTP 200 status code is returned), and the Content-Type is text/html, htcheck starts parsing the document, and retrieves and stores at least all of the HTML tags and attributes that create a link (it can store all of them if you set store_only_links to false).

htcheck can also manage HTTP redirection (created by header "Location" sent by the remote HTTP server) and cookies (as defined by http://www.netscape.com/newsref/std/cookie_spec.html).

In a few words that's the main mechanism regarding the information retrieval module, but -believe me- it is not as easy as it seems! But, as far as you are concerned, I think that's enough for now.

The tables of a ht://Check database

First of all, you don't need to create a database for ht://Check; indeed htcheck will do it for you!

However, ht://Check creates a database which is made up of these tables:

  • Schedule

  • Url

  • Server

  • HtmlStatement

  • HtmlAttribute

  • Link

  • htCheck

  • Cookies (since version 1.1)

  • Accessibility (since version 1.2.3)

The main task of the Schedule table is to manage the crawling system: by querying this table, htcheck knows which URLs need to be retrieved, or just checked if they exist.

The Url table contains info about those URLs that have been retrieved (either successfully or not): here you can find the HTTP status code returned and its reason phrase, its size, the last access time and modification time too, and more.

The Server table contains information about the HTTP servers that have been encountered during the crawling process.

The HtmlStatement table contains information about the HTML statements found in each URL; every one of them contains one and only one HTML tag, but can also contain one or more HTML attributes inside. These ones are stored in the HtmlAttribute table.

The Link table let us find and locate every link instantiated by HTML statements (or by HTTP redirections too), so we can have a referencing as well as a referenced URL, and know precisely which HTML attribute created this link.

The Cookies table is handled since version 1.1 and stores all the cookies that have been retrieved during the crawl and their related information.

The htCheck table contains general info such as start and finish time, number of connections, etcetera.

Getting the information stored

Our starting point is that we now have a database full of information, because htcheck has already finished to crawl through the web.

The very first way to get reports from a crawl, is to run htcheck with the -s option, which let it produce summaries (see the Getting Started section).

The other way given by ht://Check is to use the PHP interface, which is really simple and easy to use. Since version 2.0.0, the interface is distributed separately from the ht://Check main package.

As the database is now a common MySQL database, you can use whatever you want in order to to retrieve the information stored in it (Perl, C/C++ programs, JSP). You can also get them on Windows systems, just download MyODBC. You got lots of choices, as you can see!

Installation

System Requirements

In order to install and run ht://Check you need a GNU/Linux system with:

  • GNU C/C++ compiler and libstdc++ installed

  • MySQL 5.1.x, 5.0.x, 4.1.x, 4.0.x, 3.23.x or 3.22.x

However, ht://Check compiles on other POSIX platforms: so please, if you try and successfully install it, please drop me a line with the characteristics of your system.

Download ht://Check

ht://Check can be downloaded from http://htcheck.sourceforge.net/.

Decompressing the tarball

Usually you download ht://Check sources in a tar.gz file. In order to decompress them with the following command:

tar xzvf filename.tar.gz

For tar.bz2 files, use:

tar xjvf filename.tar.bz2

Quick Install

configure
make
make install

The configure script

For more info on the configure script, run: [code,bash]

configure --help

Specifying the application directory

By default, ht://Check is installed into the /opt/htcheck directory. And everything is under that directory. Nothing is put out of it. If you want to specify another directory of installation, just use the configuration option —prefix=DIR. For example, if you want to install it into the /myapps/htcheck dir, just run configure with this option too:

configure [other options] --prefix=/myapps/htcheck

Specifying a MySQL directory

ht://Check needs MySQL client library support. By default, ht://Check uses mysql_config to determine the compiler settings. In case the automatic detection of mysql_config fails (different location on the file system, or different name), please specify it using the —with-mysql option:

--with-mysql=/opt/local/bin/mysql_config5

Setting the path to ht://Check's man page

ht://Check comes with a simple man page, useful for reminding you the options of the application. Let's suppose you installed ht://Check in the /opt/htcheck directory, you can easily set the man application to read this page too, by adding in the user or system profile (i.e. ~/.bash_profile or /etc/profile) these line:

export MANPATH=$MANPATH:/opt/htcheck/man

MySQL user's privileges for ht://Check

In order to run the htcheck program, you must connect to the MySQL server as a valid user, with enough permissions. As long as the spider needs to create and drop databases, tables and indexes too, perform insert, update and delete operations you must grant to it these rights (by altering the user table's contents of the mysql database on the MySQL server). So, set to Y these fields values:

  • Select_priv

  • Insert_priv

  • Update_priv

  • Delete_priv

  • Create_priv

  • Drop_priv

  • Index_priv

However, you are suggested to give a look at the following section.

MySQL connection settings

In order to access a MySQL server, you have 2 choices:

  • doing nothing: the access is made by the current user to localhost with no password specified.

  • create or use an existing option file for MySQL. See the ref following section.

MySQL connection settings using the option file

We were saying that you can create or use an existing option file for MySQL, where you can specify the host to be accessed, the user, the password, the port and the socket.

By default, ht://Check looks for the ~/.my.cnf file and if this is not found the global option file for mysql is searched (/etc/my.cnf). You can change the prefix (my) with the mysql_conf_file_prefix configuration option (only for MySQL 3.23, 4.0, 4.1 and 5.0). The group searched is [client] but it can be customised with mysql_conf_group.

For example, you can write the ~/.my.cnf file this way:

[client]
host=mysqlserver.mydomain.com
user=htcheck
password=ht12345

You can also specify a different port or socket. You are strongly recommended to change this file permissions to 600.

It goes without saying that in both cases you have to grant permissions to the user ht://Check is connecting as. See the previous section and MySQL documentation for more info on this subject.

Getting started

In order to perform the first crawl, you just need to edit the configuration file, which resides in the configuration directory with the name htcheck.conf (you may use another file as configuration file, but you gotta run htcheck it with the -c option).

Just change the start_url attribute to whatever you want, for example:

start_url:  http://www.foo.com

Remember that every URL must start with the service name, that is to say http://.

Then set the limit_urls_to attribute to $(start_url), in order to scan only the http://www.foo.com website.

You may change many other attributes (database name included), but for now, in order to test if it works or not, that's enough.

You can finally enter the bin directory inside the htcheck installation directory (by default /opt/htcheck) and run:

htcheck -vs

However, here are the available options (just run htcheck —help) and you will get this:

usage: htcheck  [-isvkhr] [-c configfile] [-D dbname] [--help] [--version]

Options:
        -v      Verbose mode (more 'v's increment verbosity)

        -s      Statistics (broken links, etc...) available

        -i      Initialize the database (drop a previous db)

        -k      Initialize the database (drop tables, keep the db)

        -c configfile
                Configuration file

        -D dbname
                Name of the database

        --help  Display this
        -h      Same as --help

        --version       Display version
        -r      Same as --version

Remember that htcheck always check if the database already exists in the MySQL server. If it does not exist, it is created from scratch. On the other hand, if htcheck is launched with the -i option, this database is initialized again (this means that a new crawl is performed), else the program just use a previous database, which is useful in order to get some reports like broken links and anchors, content-type summaries (in this case you gotta set the -s option).

Since version 1.2.0 it is possible not to drop a database, but keep it alive, and recreate the structure: in technical words, ht://Check tables are dropped and then recreated: this feature was proposed by Patrick Guillot (<pguillot@paanjaru.com>) and enables to use ht://Check within a database that can be used for other purposes as well.

The configuration file

General syntax

ht://Check uses a flexible configuration file. This configuration file is a plain ASCII text file. Each line in the file is either a comment or contains an attribute. Comment lines are blank lines or lines that start with a #.

Attributes

Attributes consist of a variable name and an associated value:

<name>:<whitespace><value><newline>

The name contains any alphanumeric character or underline (_).

The value can include any character except newline. It also cannot start with spaces or tabs since those are considered part of the whitespace after the colon. It is important to keep in mind that any trailing spaces or tabs will be included.

It is possible to split the value across several lines of the configuration file by ending each line with a backslash (\). The effect on the value is that a space is added where the line split occurs.

If ht://Check needs a particular attribute and it is not in the configuration file, it will use the default value which is defined in htcommon/defaults.cc of the source directory.

Inclusion and variable expansion

A configuration file can include another file, by using a special name, include. The value is taken as the file name of another configuration file to be read in at this point. If the given file name is not fully qualified, it is taken relative to the directory in which the current configuration file is found.

Variable expansion is permitted in the file name. Multiple include statements, and nested includes are also permitted. Example:

include: common.conf

Configuration attributes

Here you can find a brief explanation of ht://Check configuration attributes.

They've been grouped in these sections:

Setting the "spider"

start_url

This is the list of URLs that will be used to start a dig when there was no existing database. Note that multiple URLs can be given here.

Type: string

Default: http://htcheck.sourceforge.net/

Example:

start_url:      http://www.somewhere.org/alldata/index.html
limit_urls_to

This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Any number of strings can be specified, separated by spaces. If multiple patterns are given, at least one of the patterns has to match the URL. Matching is a case-insensitive string match on the URL to be used. The match will be performed after the relative references have been converted to a valid URL. This means that the URL will always start with http://. Granted, this is not the perfect way of doing this, but it is simple enough and it covers most cases.

Type: string

Example:

limit_urls_to:  .sdsu.edu kpbs
limit_normalized

This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Unlike the limit_urls_to directive, this is done after the URL is normalized.

Type: string

Default:

Example:

limit_normalized: http://www.mydomain.com
exclude_urls

If a URL contains any of the space separated patterns, it will be rejected. This is used to prevent htcheck from performing infinite loops on poorly designed dynamic pages.

Type: string

Default:

Example:

exclude_urls: students.html cgi-bin
bad_extensions

This is a list of extensions on URLs which are considered non-parsable. This list is used mainly to supplement the MIME-types that the HTTP server provides with documents. Some HTTP servers do not have a correct list of MIME-types and so can advertise certain documents as text while they are some binary format.

Type: string

Default:

Example:

bad_extensions: .foo .bar .bad
bad_querystr

This is a list of CGI query strings to be excluded from indexing. This can be used in conjunction with CGI-generated portions of a website to control which pages are indexed.

Type: string

Default:

Example:

bad_querystr: forum=private section=topsecret&amp;passwd=required
max_hop_count

Instead of limiting the indexing process by URL pattern, it can also be limited by the number of hops or clicks a document is removed from the starting URL. The starting page will have hop count 0.

Type: number

Default: 999999

Example:

max_hop_count: 4
max_urls_count

Maximum number of URLs to be parsed. When this number is reached, ht://Check stops parsing URLs and performs a simple check for existance.

Type: number

Default: -1

Example:

max_urls_count: 100
check_external

If set to true, htcheck check if external Urls exist or not. An external Url is an Url which doesn't match limit configuration attributes. External URLs aren't parsed.

Type: boolean

Default: true

Example:

check_external: false

Setting the database info

db_name

Name of the MySQL database to be created or read.

Type: string

Default: htcheck (or as defined by the —with-db-name configure option)

Example:

db_name: test
db_name_prepend

String to be prepended to the MySQL database name specified. This allows to set a common string to identify all the database name used by ht://Check and to grant database privileges by using this string value. You can change the default value also by using the configure option: —with-db-name-prepend (default empty).

Type: string

Default: (or as defined by the —with-db-name-prepend configure option)

Example:

db_name_prepend: htcheck_
mysql_conf_file_prefix

Only for MySQL < 5.1. Prefix for the MySQL configuration file to be searched. Default is my and the file that is searched is usually ~/.my.cnf (suggested). If it is not found the /etc/.my.cnf file is searched. For its syntax, look at the Option File contents inside the MySQL documentation.

Type: string

Default: my

Example:

mysql_conf_file_prefix: htcheck
mysql_conf_group

Group to be searched inside the .my.cnf file of MySQL for getting the settings for the connection to the server. In other words, it's the section marked with [<group>] inside the MySQL option file (default is [client]).

Type: string

Default: client

Example:

mysql_conf_group: htcheck
optimize_db

Optimize the database tables at the end of the crawl. Disable it if the database server doesn't support it.

Type: boolean

Default: false

Example:

optimize_db: true
sql_big_table_option

Enable or disable this option that is useful when performing huge queries. Otherwise, sometimes when it's not set, the MySQL db server may return a table is full error.

Type: boolean

Default: true

Example:

sql_big_table_option: false
url_index_length

This number specifies the length of the index of the Url field in the Schedule and Url tables of the database. You can set different values depending on the average length of the URLs that htcheck can find in your sites. If you don't want to set any limitation, just put a -1 value. This now allows the user to control the length of the index for the Url field in the Schedule and Url tables. This attribute may affect the performance of the crawls, as long as the length of a index can either slow down or speed up the spidering process.

Type: number

Default: 64

Example:

url_index_length: -1

Setting HTTP connections

user_agent

This allows customization of the user_agent: field sent when the digger requests a file from a server.

Type: string

Default: ht://Check

Example:

user_agent: htcheck-crawler
persistent_connections

If set to true, when servers make it possible, htdig can take advantage of persistent connections, as defined by HTTP/1.1 (RFC2616). This permits to reduce the number of open/close operations of connections, when retrieving a document with HTTP.

Type: boolean

Default: true

Example:

persistent_connections: false
head_before_get

This option works only if we take advantage of persistent connections (see persistent_connections attribute). If set to true an HTTP/1.1 HEAD call is made in order to retrieve header information about a document. If the status code and the content-type returned let the document be parsable, then a following GET call is made.

Type: boolean

Default: true

Example:

head_before_get: false
timeout

Specifies the time the digger will wait to complete a network read. This is just a safeguard against unforeseen things like the all too common transformation from a network to a notwork.

The timeout is specified in seconds.

Type: number

Default: 30

Example:

timeout: 42
authorization

This tells htcheck to send the supplied username:password with each HTTP request. The credentials will be encoded using the "Basic" authentication scheme. There must be a colon (:) between the username and password.

Type: string

Default:

Example:

authorization: myusername:mypassword
max_retries

This option set the maximum number of retries when retrieving a document fails (mainly for reasons of connection).

Type: number

Default: 3

Example:

max_retries: 6
tcp_max_retries

This option set the maximum number of attempts when a connection raises a xref:timeout. After all these retries, the connection attempt results timed out.

Type: number

Default: 1

Example:

tcp_max_retries: 6
tcp_wait_time

This attribute sets the wait time after a connection fails and the xref:timeout is raised.

Type: number

Default: 5

Example:

tcp_wait_time: 10
http_proxy

When this attribute is set, all HTTP document retrievals will be done using the HTTP-PROXY protocol. The URL specified in this attribute points to the host and port where the proxy server resides.

The use of a proxy server greatly improves performance of the indexing process.

Type: string

Default:

Example:

http_proxy: http://proxy.bigbucks.com:3128
http_proxy_exclude

When this is set, URLs matching this will not use the proxy. This is useful when you have a mixture of sites near to the digging server and far away.

Type: string

Default:

Example:

http_proxy_exclude: http://intranet.foo.com/
http_proxy_authorization

This tells htcheck to send the supplied username:password with each HTTP request, when using a proxy with authorization requested. The credentials will be encoded using the \"Basic\" authentication scheme. There must be a colon (:) between the username and password.

Type: string

Default:

Example:

http_proxy_authorization: myusername:mypassword
accept_language

This attribute allows to restrict the set of natural languages that are preferred as a response to an HTTP request performed by the digger. This can be done by putting one or more language tags (as defined by RFC 1766) in the preferred order, separated by spaces. By doing this, when the server performs a content negotiation based on the accept-language given by the HTTP user agent, a different content can be shown depending on the value of this attribute. If set empty, no language will be sent and the server default will be returned.

Type: string

Default:

Example:

accept_language:        en-us en it
remove_default_doc

Set this to the default documents in a directory used by the servers you are indexing. These document names will be stripped off of URLs when they are normalized, if one of these names appears after the final slash, to translate URLs like http://foo.com/index.html into http://foo.com/ Note that you can disable stripping of these names during normalization by setting the list to an empty string. The list should only contain names that all servers you index recognize as default documents for directory URLs, as defined by the DirectoryIndex setting in Apache's srm.conf, for example.

Type: string list

Default:

Example:

remove_default_doc: default.html default.htm index.html index.htm
disable_cookies

If set to true, htcheck will disable the HTTP cookies management.

Type: boolean

Default: false

Example:

disable_cookies: true
cookies_input_file

Set the input file to be used when importing cookies for the crawl; cookies must be specified according to Netscape's format. For more information, give a look at the example cookies file distributed with ht://Check. By default, no input file is read.

Type: string

Default:

Example:

cookies_input_file: /tmp/cookies.txt
url_reserved_chars

This string allows to customise the set of characters that can be considered as reserverd in a URL, avoiding their coding under the RFC1738 standard. This string is used when checking whether a URL is well-encoded or not, issuing a BadEncoded state for the link which created it. The default value is slightly different from what the RFC says, giving more flexibility to the spider (it is suggested not to change it unless you are extremely sure of what you are doing).

Type: string

Default: ;/?:@&=$,._%-#x~+

Example:

url_reserved_chars: \\;/?:@&=+\$,._%-#x~

Setting what to store

max_doc_size

This is the upper limit to the amount of data retrieved for documents. This is mainly used to prevent unreasonable memory consumption since each document will be read into memory by htcheck.

Type: number

Default: 100000

Example:

max_doc_size: 5000000
store_only_links

If set to false, htcheck will store in the DB every tag he finds in every document it crawls. If set to true, htcheck stores only those Html attributes and statements that produce a link or set an anchor (identified by the pair tag: A, attribute: name).

Type: boolean

Default: false

Example:

store_only_links: true
store_url_contents

This attribute allows to store the contents of the parsed URLs. It is very useful, but can also be dangerous. You must know what you are doing, and if you enable this, your performances may slow down and your disk storage requirements can get extremely high. It is recommended to use this only for small crawls.

Type: boolean

Default: false

Example:

store_url_contents: true
available_charsets

This attribute specifies the set of possible charsets that htcheck recognises and stores into the database; other charsets will be marked as other.

Type: string list

Default:

windows-1250 iso-8859-1 iso-8859-10 iso-8859-13 iso-8859-14
iso-8859-15 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7
iso-8859-8 iso-8859-9 koi8-r koi8-u utf-8 windows-1251 windows-1252 windows-1253
windows-1254 windows-1255 windows-1256 windows-1257 windows-1258 windows-874

Example:

available_charsets: iso-8859-1

Setting what to report

summary_anchor_not_found

Enable or disable the show of the summary of the HTML anchors that have not been found.

Type: boolean

Default: true

Example:

summary_anchor_not_found: false
Accessibility checks
accessibility_checks

Enable or disable the recognition of accessibility problems, using some of the checks proposed by the Open Accessibility Checks project by the Adaptive TechnologyResource Center at the University Of Toronto. From version 1.2.3, ht://Checks internally stores this kind of information in the AccessibilityChecks table using the code number specified in OAC (http://oac.atrc.utoronto.ca).

Type: boolean

Default: true

Example:

accessibility_checks: false

FAQ

Configuration and compilation

I'm compiling with gcc 3.2 and getting several warnings/errors regarding ostream

You should use the following command to configure ht://Check so it can be built with gcc 3.2:

CXXFLAGS=-Wno-deprecated CPPFLAGS=-Wno-deprecated ./configure

However, from version 1.2.2, sources have been updated in order to automatically detect the correct standard C++ library; backward compatibility C++ headers (such as fstream.h) are not used anymore in the main code, although pre-processing checks are performed for older libraries.

The MySQL database of ht://Check

What tables have to be created? What about the fields? and their format?

ht://Check does everything for you. It creates the database structure itself, so you don't need to create it before. You just need to grant the spider enough permissions in order to do that.

Configuring the spider (htcheck)

How do I change the URLs to check without going through the PHP interface?

No. There's no way to configure the spider through PHP for now. You just have to edit the configuration file (usually htcheck.conf).

If I run htcheck at the commandline, I don't see a way to change the URLs to check. I'm guessing that the Server table in the htcheck database is what I want to modify, right?

No .. you don't need to modify the MySQL database at all. Indeed it's for getting the results only. Every database is directly created by the application (from scratch). You must edit the parameters in the htcheck.conf file. You have to set one or more starting URL with the start_url attribute. Then you can limit the search to a set of URLs by setting the limit_urls_to, limit_normalized and exclude_urls options. These are the most used and important, though you can use the bad_extension, max_hop_count, bad_query_string. But in most of cases you only have to set the limit_urls_to parameter. For instance:

start_url: http://www.foo.com
limit_urls_to: $(start_url)

The limit_normalized parameter checks for every URL after it has been normalised (transformed into this format: service://host:port/path ).

Copyright

Copyright © 1999-2006 Comune di Prato - Prato - Italy

Some portions Copyright © 1995-2003 The ht://Dig Group

Some Portions Copyright © 2008-2009 Devise.IT srl - http://www.devise.it/

References

  1. [htdig] The ht://Dig Group. ht://Dig Search Engine. http://www.htdig.org/

  2. [mysql] Sun Microsystems, Inc. MySQL. http://www.mysql.com/

  3. [RFC1738] The Internet Society. RFC 1738 - Uniform Resource Locators (URL). http://tools.ietf.org/html/rfc1738

  4. [RFC1766] The Internet Society. RFC 1766 - Tags for the Identification of Languages. http://tools.ietf.org/html/rfc1766

  5. [RFC2616] The Internet Society. RFC 2616 - Hypertext Transfer Protocol 1.1 — HTTP/1.1. http://tools.ietf.org/html/rfc2616

htcheck-2.0.0~rc1.orig/doc/htcheck.txt0000644000000000000000000011746611245477405014522 0ustar ht://Check user guide ===================== :author: Gabriele Bartolini :email: gabriele.bartolini@devise.it :revdate: August 27, 2009 :revnumber: 2.0.0 :keywords: htcheck, link checker, broken links, accessibility checks ht://Check, more than a link checker - User guide. Abstract -------- ht://Check is a link checker that retrieves information through the *HTTP* protocol and stores it in a *MySQL database*. It is particularly suited for small Internet domains or Intranet. It is written in ANSI C\+\+, which makes it portable over POSIX systems and extremely fast. ht://Check is free software, distributed under the GNU General Public License (GPL). Introduction ------------ ht://Check's main goal is to help webmasters managing one or more related sites: after a "crawl", ht://Check creates a rich *data source* made up of information based on the retrieved documents. Here follows a short list of the major insights that ht://Check is able to detect: - *complete source code* for HTML documents retrieved; - *single documents attributes* such as content-type, size, last modification time, etc. - information regarding the *retrieval process of a resource* footnote:[for example: the resource was succesfully retrieved, showing the returned *HTTP status codes*] - information regarding the *structure of a document*, such as the HTML tags they are made up of - information regarding the *structure of the website* that has been analysed (links between documents create the so-called *((inter-documents relationships))* between Internet resources); this feature allows users to get further information: * *link results*: check whether a link to a URL or a URL fragment (anchor) exists and is not *broken*; retrieves further information such as redirections, e-mail links and bad encoded links (according to RFC1738) footnote:[some limitations apply: such as Javascript URLs, which cannot be parsed] * *relationships between documents*, in terms of incoming links and outgoing ones (Web structure mining activity) (((Web structure mining))) (((Web mining, structure))) - *((web content accessibility)) checks*: from version 1.2.3, ht://Check also performs accessibility checks in accordance with the principles of the University of Toronto's Open Accessibility Checks (OAC) project, allowing users to discover site-wide barriers like images without proper alternatives, missing titles, etc. A skinny report is given by the +htcheck+ application. Most of the available information can be analysed through the PHP interface which comes as a separate package. [[how-works]] How it works ~~~~~~~~~~~~ ht://Check is essentially a web _spider_, or _robot_ or _crawler_. As well as a search engine (like ht://Dig) indexes words from the Internet, ht://Check stores HTML statements such as tags and attributes, links, URL information, and more. At the moment, ht://Check supports only *HTTP/1.1* (and HTTP/1.0 also): future plans regard enabling the FTP, NNTP, HTTPS and also local files checks. Everything is stored in a MySQL database, created from scratch by the application itself. You don't need to create it before, just run '+htcheck+' and every needed table will be automatically built by the program. For information regarding the connection to the MySQL database, please consult the <> section. The _information retrieval_ module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ht://Check is made up of two logical "modules", one corcerning the information retrieval, the other one the analysis of the performed crawl. The first step, which is the most important also, is completely performed by the '+*htcheck*+' program; depending on the values set in the <>, htcheck starts retrieving the URL defined in the '+start_url+' configuration attribute; the crawling process is limited in several ways, most of which regard the URL domain (like '+ limit_urls_to +', '+limit_normalized+', '+ exclude_urls +') or the distance from the starting URL ('+max_hop_count+'), etcetera. When +htcheck+ retrieves the first document, it checks the answer that the server gave back; if the document exists (HTTP 200 *status code* is returned), and the +Content-Type+ is +text/html+, +htcheck+ starts parsing the document, and retrieves and stores at least all of the HTML tags and attributes that create a link (it can store all of them if you set '+store_only_links+' to false). +htcheck+ can also manage HTTP redirection (created by header "_Location_" sent by the remote HTTP server) and cookies (as defined by http://www.netscape.com/newsref/std/cookie_spec.html). In a few words that's the main mechanism regarding the information retrieval module, but -believe me- it is not as easy as it seems! But, as far as you are concerned, I think that's enough for now. [[tables]] The tables of a _ht://Check_ database ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ First of all, you don't need to create a database for ht://Check; indeed +htcheck+ will do it for you! However, ht://Check creates a database which is made up of these tables: * Schedule * Url * Server * HtmlStatement * HtmlAttribute * Link * htCheck * Cookies (since version 1.1) * Accessibility (since version 1.2.3) The main task of the *Schedule* table is to manage the crawling system: by querying this table, +htcheck+ knows which URLs need to be retrieved, or just checked if they exist. The *Url* table contains info about those URLs that have been retrieved (either successfully or not): here you can find the HTTP status code returned and its reason phrase, its size, the last access time and modification time too, and more. The *Server* table contains information about the HTTP servers that have been encountered during the crawling process. The *HtmlStatement* table contains information about the HTML statements found in each URL; every one of them contains one and only one HTML *tag*, but can also contain one or more HTML *attributes* inside. These ones are stored in the *HtmlAttribute* table. The *Link* table let us find and locate every link instantiated by HTML statements (or by HTTP redirections too), so we can have a referencing as well as a referenced URL, and know precisely which HTML attribute created this link. The *Cookies* table is handled since version 1.1 and stores all the cookies that have been retrieved during the crawl and their related information. The *htCheck* table contains general info such as start and finish time, number of connections, etcetera. Getting the information stored ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Our starting point is that we now have a database full of information, because +htcheck+ has already finished to crawl through the web. The very first way to get reports from a *crawl*, is to run +htcheck+ with the '-s' option, which let it produce summaries (see the <> section). The other way given by ht://Check is to use the PHP interface, which is really simple and easy to use. Since version 2.0.0, the interface is distributed separately from the ht://Check main package. As the database is now a common MySQL database, you can use whatever you want in order to to retrieve the information stored in it (Perl, C/C\+\+ programs, JSP). You can also get them on Windows systems, just download *MyODBC*. You got lots of choices, as you can see! [[systemrequirements]] Installation ------------ System Requirements ~~~~~~~~~~~~~~~~~~~ In order to install and run ht://Check you need a GNU/Linux system with: - *GNU C/C\+\+ compiler* and libstdc\+\+ installed - *MySQL* 5.1.x, 5.0.x, 4.1.x, 4.0.x, 3.23.x or 3.22.x However, ht://Check compiles on other POSIX platforms: so please, if you try and successfully install it, please drop me a line with the characteristics of your system. [[download]] Download ht://Check ~~~~~~~~~~~~~~~~~~~ ht://Check can be downloaded from +http://htcheck.sourceforge.net/+. [[decompressing]] Decompressing the tarball ~~~~~~~~~~~~~~~~~~~~~~~~~ Usually you download ht://Check sources in a +tar.gz+ file. In order to decompress them with the following command: +tar xzvf _filename_.tar.gz+ For +tar.bz2+ files, use: +tar xjvf _filename_.tar.bz2+ [[quickinstall]] Quick Install ~~~~~~~~~~~~~ [code,bash] ---------------------------------------------- configure make make install ---------------------------------------------- [[configurescript]] The +configure+ script ~~~~~~~~~~~~~~~~~~~~~~ For more info on the '+configure+' script, run: [code,bash] ----------------------------- configure --help ----------------------------- [[specifyappdir]] Specifying the application directory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ By default, ht://Check is installed into the +/opt/htcheck+ directory. And everything is under that directory. Nothing is put out of it. If you want to specify another directory of installation, just use the configuration option --prefix=DIR. For example, if you want to install it into the +/myapps/htcheck+ dir, just run configure with this option too: [code,bash] ----------------------------- configure [other options] --prefix=/myapps/htcheck ----------------------------- [[specifymysqldir]] Specifying a MySQL directory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ht://Check needs *MySQL* client library support. By default, ht://Check uses +mysql_config+ to determine the compiler settings. In case the automatic detection of mysql_config fails (different location on the file system, or different name), please specify it using the +--with-mysql+ option: [code,bash] ----------------------------- --with-mysql=/opt/local/bin/mysql_config5 ----------------------------- [[manpath]] Setting the path to ht://Check's man page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ht://Check comes with a simple man page, useful for reminding you the options of the application. Let's suppose you installed ht://Check in the +/opt/htcheck+ directory, you can easily set the man application to read this page too, by adding in the user or system profile (i.e. +~/.bash_profile+ or +/etc/profile+) these line: [code,bash] ----------------------------- export MANPATH=$MANPATH:/opt/htcheck/man ----------------------------- [[mysqluserprivileges]] MySQL user's privileges for ht://Check ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to run the +htcheck+ program, you must connect to the MySQL server as a valid user, with enough permissions. As long as the spider needs to create and drop databases, tables and indexes too, perform insert, update and delete operations you must grant to it these rights (by altering the 'user' table's contents of the 'mysql' database on the MySQL server). So, set to 'Y' these fields values: * Select_priv * Insert_priv * Update_priv * Delete_priv * Create_priv * Drop_priv * Index_priv However, you are suggested to give a look at the <>. [[mysqlconnectionsettings]] MySQL connection settings ~~~~~~~~~~~~~~~~~~~~~~~~~ In order to access a MySQL server, you have 2 choices: * doing nothing: the access is made by the current user to localhost with no password specified. * create or use an existing option file for MySQL. See the ref <>. [[mysqloptionfile]] MySQL connection settings using the option file ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ We were saying that you can create or use an existing option file for MySQL, where you can specify the host to be accessed, the user, the password, the port and the socket. By default, ht://Check looks for the +~/.my.cnf+ file and if this is not found the global option file for mysql is searched (+/etc/my.cnf+). You can change the prefix ('my') with the +mysql_conf_file_prefix+ configuration option (only for MySQL 3.23, 4.0, 4.1 and 5.0). The group searched is [client] but it can be customised with +mysql_conf_group+. For example, you can write the +~/.my.cnf+ file this way: [code,bash] ----------------------------- [client] host=mysqlserver.mydomain.com user=htcheck password=ht12345 ----------------------------- You can also specify a different +port+ or +socket+. You are strongly recommended to change this file permissions to 600. It goes without saying that in both cases you have to *grant permissions* to the user ht://Check is connecting as. See the <> and _MySQL documentation_ for more info on this subject. [[gettingstarted]] Getting started --------------- In order to perform the first crawl, you just need to edit the configuration file, which resides in the configuration directory with the name '+htcheck.conf+' (you may use another file as configuration file, but you gotta run +htcheck+ it with the '+-c+' option). Just change the '+start_url+' attribute to whatever you want, for example: [code,bash] ----------------------------- start_url: http://www.foo.com ----------------------------- Remember that every URL must start with the service name, that is to say '+http://+'. Then set the '+limit_urls_to+' attribute to +$(start_url)+, in order to scan only the 'http://www.foo.com' website. You may change many other attributes (database name included), but for now, in order to test if it works or not, that's enough. You can finally enter the +bin+ directory inside the 'htcheck' installation directory (by default +/opt/htcheck+) and run: [code,bash] ----------------------------- htcheck -vs ----------------------------- However, here are the available options (just run +htcheck --help+) and you will get this: [code,bash] ----------------------------- usage: htcheck [-isvkhr] [-c configfile] [-D dbname] [--help] [--version] Options: -v Verbose mode (more 'v's increment verbosity) -s Statistics (broken links, etc...) available -i Initialize the database (drop a previous db) -k Initialize the database (drop tables, keep the db) -c configfile Configuration file -D dbname Name of the database --help Display this -h Same as --help --version Display version -r Same as --version ----------------------------- Remember that +htcheck+ always check if the database already exists in the MySQL server. If it does not exist, it is created from scratch. On the other hand, if +htcheck+ is launched with the '-i' option, this database is initialized again (this means that a new crawl is performed), else the program just use a previous database, which is useful in order to get some reports like broken links and anchors, content-type summaries (in this case you gotta set the '-s' option). Since version 1.2.0 it is possible not to drop a database, but keep it alive, and recreate the structure: in technical words, ht://Check tables are dropped and then recreated: this feature was proposed by Patrick Guillot () and enables to use ht://Check within a database that can be used for other purposes as well. [[configurationfile]] The configuration file ---------------------- General syntax ~~~~~~~~~~~~~~ ht://Check uses a flexible configuration file. This configuration file is a plain ASCII text file. Each line in the file is either a comment or contains an attribute. Comment lines are blank lines or lines that start with a '#'. Attributes ~~~~~~~~~~ Attributes consist of a variable name and an associated value: [code,bash] ----------------------------- : ----------------------------- The +name+ contains any alphanumeric character or underline (_). The +value+ can include any character except newline. It also cannot start with spaces or tabs since those are considered part of the whitespace after the colon. It is important to keep in mind that any trailing spaces or tabs will be included. It is possible to split the +value+ across several lines of the configuration file by ending each line with a backslash (\). The effect on the value is that a space is added where the line split occurs. If ht://Check needs a particular attribute and it is not in the configuration file, it will use the default value which is defined in htcommon/defaults.cc of the source directory. Inclusion and variable expansion ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A configuration file can include another file, by using a special +name+, include. The +value+ is taken as the file name of another configuration file to be read in at this point. If the given file name is not fully qualified, it is taken relative to the directory in which the current configuration file is found. Variable expansion is permitted in the file name. Multiple include statements, and nested includes are also permitted. Example: [code,bash] ----------------------------- include: common.conf ----------------------------- Configuration attributes ~~~~~~~~~~~~~~~~~~~~~~~~ Here you can find a brief explanation of ht://Check configuration attributes. They've been grouped in these sections: * <> * <> * <> * <> * <> * <> [[settingspider]] Setting the "spider" ^^^^^^^^^^^^^^^^^^^^ [[start_url]] +start_url+ +++++++++++ This is the list of URLs that will be used to start a dig when there was no existing database. Note that multiple URLs can be given here. _Type_: string _Default_: +http://htcheck.sourceforge.net/+ _Example_: [code,bash] ----------------------------- start_url: http://www.somewhere.org/alldata/index.html ----------------------------- [[limits_urls_to]] +limit_urls_to+ +++++++++++++++ This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Any number of strings can be specified, separated by spaces. If multiple patterns are given, at least one of the patterns has to match the URL. Matching is a case-insensitive string match on the URL to be used. The match will be performed _after_ the relative references have been converted to a valid URL. This means that the URL will _always_ start with +http://+. Granted, this is not the perfect way of doing this, but it is simple enough and it covers most cases. _Type_: string _Default_: +\${start_url}+ _Example_: [code,bash] ----------------------------- limit_urls_to: .sdsu.edu kpbs ----------------------------- [[limit_normalized]] +limit_normalized+ ++++++++++++++++++++ This specifies a set of patterns that all URLs have to match against in order for them to be included in the search. Unlike the limit_urls_to directive, this is done after the URL is normalized. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- limit_normalized: http://www.mydomain.com ----------------------------- [[exclude_urls]] +exclude_urls+ ++++++++++++++ If a URL contains any of the space separated patterns, it will be rejected. This is used to prevent +htcheck+ from performing infinite loops on poorly designed dynamic pages. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- exclude_urls: students.html cgi-bin ----------------------------- [[bad_extensions]] +bad_extensions+ ++++++++++++++++ This is a list of extensions on URLs which are considered non-parsable. This list is used mainly to supplement the MIME-types that the HTTP server provides with documents. Some HTTP servers do not have a correct list of MIME-types and so can advertise certain documents as text while they are some binary format. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- bad_extensions: .foo .bar .bad ----------------------------- [[bad_querystr]] +bad_querystr+ ++++++++++++++ This is a list of CGI query strings to be excluded from indexing. This can be used in conjunction with CGI-generated portions of a website to control which pages are indexed. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- bad_querystr: forum=private section=topsecret&passwd=required ----------------------------- [[max_hop_count]] +max_hop_count+ +++++++++++++++ Instead of limiting the indexing process by URL pattern, it can also be limited by the number of hops or clicks a document is removed from the starting URL. The starting page will have hop count 0. _Type_: number _Default_: +999999+ _Example_: [code,bash] ----------------------------- max_hop_count: 4 ----------------------------- [[max_urls_count]] +max_urls_count+ ++++++++++++++++ Maximum number of URLs to be parsed. When this number is reached, ht://Check stops parsing URLs and performs a simple check for existance. _Type_: number _Default_: +-1+ _Example_: [code,bash] ----------------------------- max_urls_count: 100 ----------------------------- [[check_external]] +check_external+ ++++++++++++++++ If set to 'true', htcheck check if external Urls exist or not. An external Url is an Url which doesn't match limit configuration attributes. External URLs aren't parsed. _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- check_external: false ----------------------------- [[settingdatabase]] Setting the database info ^^^^^^^^^^^^^^^^^^^^^^^^^ [[db_name]] +db_name+ +++++++++ Name of the MySQL database to be created or read. _Type_: string _Default_: +htcheck+ (or as defined by the +--with-db-name+ configure option) _Example_: [code,bash] ----------------------------- db_name: test ----------------------------- [[db_name_prepend]] +db_name_prepend+ +++++++++++++++++ String to be prepended to the MySQL database name specified. This allows to set a common string to identify all the database name used by ht://Check and to grant database privileges by using this string value. You can change the default value also by using the configure option: --with-db-name-prepend (default empty). _Type_: string _Default_: (or as defined by the +--with-db-name-prepend+ configure option) _Example_: [code,bash] ----------------------------- db_name_prepend: htcheck_ ----------------------------- [[mysql_conf_file_prefix]] +mysql_conf_file_prefix+ ++++++++++++++++++++++++ *Only for MySQL < 5.1*. Prefix for the MySQL configuration file to be searched. Default is 'my' and the file that is searched is usually +~/.my.cnf+ (suggested). If it is not found the +/etc/.my.cnf+ file is searched. For its syntax, look at the 'Option File' contents inside the MySQL documentation. _Type_: string _Default_: +my+ _Example_: [code,bash] ----------------------------- mysql_conf_file_prefix: htcheck ----------------------------- [[mysql_conf_group]] +mysql_conf_group+ ++++++++++++++++++ Group to be searched inside the .my.cnf file of MySQL for getting the settings for the connection to the server. In other words, it's the section marked with [] inside the MySQL option file (default is [client]). _Type_: string _Default_: +client+ _Example_: [code,bash] ----------------------------- mysql_conf_group: htcheck ----------------------------- [[optimize_db]] +optimize_db+ +++++++++++++ Optimize the database tables at the end of the crawl. Disable it if the database server doesn't support it. _Type_: boolean _Default_: +false+ _Example_: [code,bash] ----------------------------- optimize_db: true ----------------------------- [[sql_big_table_option]] +sql_big_table_option+ ++++++++++++++++++++++ Enable or disable this option that is useful when performing huge queries. Otherwise, sometimes when it's not set, the MySQL db server may return a 'table is full' error. _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- sql_big_table_option: false ----------------------------- [[url_index_length]] +url_index_length+ ++++++++++++++++++ This number specifies the length of the index of the Url field in the Schedule and Url tables of the database. You can set different values depending on the average length of the URLs that htcheck can find in your sites. If you don't want to set any limitation, just put a '-1' value. This now allows the user to control the length of the index for the Url field in the Schedule and Url tables. This attribute may affect the performance of the crawls, as long as the length of a index can either slow down or speed up the spidering process. _Type_: number _Default_: +64+ _Example_: [code,bash] ----------------------------- url_index_length: -1 ----------------------------- [[settinghttpconnections]] Setting HTTP connections ^^^^^^^^^^^^^^^^^^^^^^^^ [[user_agent]] +user_agent+ ++++++++++++ This allows customization of the user_agent: field sent when the digger requests a file from a server. _Type_: string _Default_: +ht://Check+ _Example_: [code,bash] ----------------------------- user_agent: htcheck-crawler ----------------------------- [[persistent_connections]] +persistent_connections+ ++++++++++++++++++++++++ If set to true, when servers make it possible, htdig can take advantage of persistent connections, as defined by HTTP/1.1 (_RFC2616_). This permits to reduce the number of open/close operations of connections, when retrieving a document with HTTP. _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- persistent_connections: false ----------------------------- [[head_before_get]] +head_before_get+ +++++++++++++++++ This option works only if we take advantage of persistent connections (see persistent_connections attribute). If set to true an HTTP/1.1 _HEAD_ call is made in order to retrieve header information about a document. If the status code and the content-type returned let the document be parsable, then a following 'GET' call is made. _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- head_before_get: false ----------------------------- [[timeout]] +timeout+ +++++++++ Specifies the time the digger will wait to complete a network read. This is just a safeguard against unforeseen things like the all too common transformation from a network to a notwork. The timeout is specified in seconds. _Type_: number _Default_: +30+ _Example_: [code,bash] ----------------------------- timeout: 42 ----------------------------- [[authorization]] +authorization+ +++++++++++++++ This tells htcheck to send the supplied _username_:_password_ with each HTTP request. The credentials will be encoded using the "Basic" authentication scheme. There must be a colon (:) between the username and password. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- authorization: myusername:mypassword ----------------------------- [[max_retries]] +max_retries+ +++++++++++++ This option set the maximum number of retries when retrieving a document fails (mainly for reasons of connection). _Type_: number _Default_: +3+ _Example_: [code,bash] ----------------------------- max_retries: 6 ----------------------------- [[tcp_max_retries]] +tcp_max_retries+ +++++++++++++++++ This option set the maximum number of attempts when a connection raises a xref:timeout. After all these retries, the connection attempt results *timed out*. _Type_: number _Default_: +1+ _Example_: [code,bash] ----------------------------- tcp_max_retries: 6 ----------------------------- [[tcp_wait_time]] +tcp_wait_time+ +++++++++++++++ This attribute sets the wait time after a connection fails and the xref:timeout is raised. _Type_: number _Default_: +5+ _Example_: [code,bash] ----------------------------- tcp_wait_time: 10 ----------------------------- [[http_proxy]] +http_proxy+ ++++++++++++ When this attribute is set, all HTTP document retrievals will be done using the HTTP-PROXY protocol. The URL specified in this attribute points to the host and port where the proxy server resides. The use of a proxy server greatly improves performance of the indexing process. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- http_proxy: http://proxy.bigbucks.com:3128 ----------------------------- [[http_proxy_exclude]] +http_proxy_exclude+ ++++++++++++++++++++ When this is set, URLs matching this will not use the proxy. This is useful when you have a mixture of sites near to the digging server and far away. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- http_proxy_exclude: http://intranet.foo.com/ ----------------------------- [[http_proxy_authorization]] +http_proxy_authorization+ ++++++++++++++++++++++++++ This tells htcheck to send the supplied _username_:_password_ with each HTTP request, when using a proxy with authorization requested. The credentials will be encoded using the \"Basic\" authentication scheme. There _must_ be a colon (:) between the username and password. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- http_proxy_authorization: myusername:mypassword ----------------------------- [[accept_language]] +accept_language+ +++++++++++++++++ This attribute allows to restrict the set of natural languages that are preferred as a response to an HTTP request performed by the digger. This can be done by putting one or more language tags (as defined by RFC 1766) in the preferred order, separated by spaces. By doing this, when the server performs a content negotiation based on the 'accept-language' given by the HTTP user agent, a different content can be shown depending on the value of this attribute. If set empty, no language will be sent and the server default will be returned. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- accept_language: en-us en it ----------------------------- [[remove_default_doc]] +remove_default_doc+ ++++++++++++++++++++ Set this to the default documents in a directory used by the servers you are indexing. These document names will be stripped off of URLs when they are normalized, if one of these names appears after the final slash, to translate URLs like http://foo.com/index.html into http://foo.com/ Note that you can disable stripping of these names during normalization by setting the list to an empty string. The list should only contain names that all servers you index recognize as default documents for directory URLs, as defined by the DirectoryIndex setting in Apache's srm.conf, for example. _Type_: string list _Default_: _Example_: [code,bash] ----------------------------- remove_default_doc: default.html default.htm index.html index.htm ----------------------------- [[disable_cookies]] +disable_cookies+ +++++++++++++++++ If set to 'true', htcheck will disable the HTTP cookies management. _Type_: boolean _Default_: +false+ _Example_: [code,bash] ----------------------------- disable_cookies: true ----------------------------- [[cookies_input_file]] +cookies_input_file+ ++++++++++++++++++++ Set the input file to be used when importing cookies for the crawl; cookies must be specified according to Netscape's format. For more information, give a look at the example cookies file distributed with ht://Check. By default, no input file is read. _Type_: string _Default_: _Example_: [code,bash] ----------------------------- cookies_input_file: /tmp/cookies.txt ----------------------------- [[url_reserved_chars]] +url_reserved_chars+ ++++++++++++++++++++ This string allows to customise the set of characters that can be considered as reserverd in a URL, avoiding their coding under the +RFC1738+ standard. This string is used when checking whether a URL is well-encoded or not, issuing a '_BadEncoded_' state for the link which created it. The default value is slightly different from what the RFC says, giving more flexibility to the spider (it is suggested not to change it unless you are extremely sure of what you are doing). _Type_: string _Default_: +;/?:@&=+$,._%-#x~+ _Example_: [code,bash] ----------------------------- url_reserved_chars: \\;/?:@&=+\$,._%-#x~ ----------------------------- [[settingstore]] Setting what to store ^^^^^^^^^^^^^^^^^^^^^ [[max_doc_size]] +max_doc_size+ ++++++++++++++ This is the upper limit to the amount of data retrieved for documents. This is mainly used to prevent unreasonable memory consumption since each document will be read into memory by htcheck. _Type_: number _Default_: +100000+ _Example_: [code,bash] ----------------------------- max_doc_size: 5000000 ----------------------------- [[store_only_links]] +store_only_links+ ++++++++++++++++++++ If set to +false+, htcheck will store in the DB _every_ tag he finds in every document it crawls. If set to +true+, htcheck stores only those Html attributes and statements that produce a link or set an anchor (identified by the pair tag: A, attribute: name). _Type_: boolean _Default_: +false+ _Example_: [code,bash] ----------------------------- store_only_links: true ----------------------------- [[store_url_contents]] +store_url_contents+ ++++++++++++++++++++ This attribute allows to store the contents of the parsed URLs. It is very _useful_, but can also be _dangerous_. You must know what you are doing, and if you enable this, your performances may slow down and your disk storage requirements can get extremely high. It is recommended to use this only for small crawls. _Type_: boolean _Default_: +false+ _Example_: [code,bash] ----------------------------- store_url_contents: true ----------------------------- [[available_charsets]] +available_charsets+ ++++++++++++++++++++ This attribute specifies the set of possible _charsets_ that htcheck recognises and stores into the database; other charsets will be marked as 'other'. _Type_: string list _Default_: [code,bash] ------------------------------------------------------------------------------- windows-1250 iso-8859-1 iso-8859-10 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9 koi8-r koi8-u utf-8 windows-1251 windows-1252 windows-1253 windows-1254 windows-1255 windows-1256 windows-1257 windows-1258 windows-874 ------------------------------------------------------------------------------- _Example_: [code,bash] ----------------------------- available_charsets: iso-8859-1 ----------------------------- [[settingreport]] Setting what to report ^^^^^^^^^^^^^^^^^^^^^^ [[summary_anchor_not_found]] +summary_anchor_not_found+ ++++++++++++++++++++++++++ Enable or disable the show of the summary of the HTML anchors that have not been found. _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- summary_anchor_not_found: false ----------------------------- [[accessibilitychecks]] Accessibility checks ++++++++++++++++++++ [[accessibility_checks]] +accessibility_checks+ ++++++++++++++++++++++ Enable or disable the recognition of accessibility problems, using some of the checks proposed by the Open Accessibility Checks project by the Adaptive TechnologyResource Center at the University Of Toronto. From version 1.2.3, ht://Checks internally stores this kind of information in the 'AccessibilityChecks' table using the code number specified in OAC (http://oac.atrc.utoronto.ca). _Type_: boolean _Default_: +true+ _Example_: [code,bash] ----------------------------- accessibility_checks: false ----------------------------- [[faq]] FAQ --- Configuration and compilation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I'm compiling with gcc 3.2 and getting several warnings/errors regarding ostream ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You should use the following command to configure ht://Check so it can be built with gcc 3.2: [code,bash] ----------------------------- CXXFLAGS=-Wno-deprecated CPPFLAGS=-Wno-deprecated ./configure ----------------------------- However, from version 1.2.2, sources have been updated in order to automatically detect the correct standard C\+\+ library; backward compatibility C\+\+ headers (such as fstream.h) are not used anymore in the main code, although pre-processing checks are performed for older libraries. The MySQL database of ht://Check ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ What tables have to be created? What about the fields? and their format? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ht://Check does everything for you. It creates the database structure itself, so you don't need to create it before. You just need to grant the spider enough permissions in order to do that. Configuring the 'spider' (+htcheck+) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How do I change the URLs to check without going through the PHP interface? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ No. There's no way to configure the spider through PHP for now. You just have to edit the configuration file (usually 'htcheck.conf'). If I run htcheck at the commandline, I don't see a way to change the URLs to check. I'm guessing that the Server table in the htcheck database is what I want to modify, right? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ No .. you don't need to modify the MySQL database at all. Indeed it's for getting the results only. Every database is directly created by the application (from scratch). You must edit the parameters in the htcheck.conf file. You have to set one or more starting URL with the 'start_url' attribute. Then you can limit the search to a set of URLs by setting the 'limit_urls_to', 'limit_normalized' and 'exclude_urls' options. These are the most used and important, though you can use the 'bad_extension', 'max_hop_count', 'bad_query_string'. But in most of cases you only have to set the 'limit_urls_to' parameter. For instance: [code,bash] ----------------------------- start_url: http://www.foo.com limit_urls_to: $(start_url) ----------------------------- The 'limit_normalized' parameter checks for every URL after it has been normalised (transformed into this format: +service://host:port/path+ ). Copyright --------- Copyright (C) 1999-2006 Comune di Prato - Prato - Italy Some portions Copyright (C) 1995-2003 The ht://Dig Group Some Portions Copyright (C) 2008-2009 Devise.IT srl - http://www.devise.it/ References ---------- + [[[htdig]]] The ht://Dig Group. 'ht://Dig Search Engine'. http://www.htdig.org/ + [[[mysql]]] Sun Microsystems, Inc. 'MySQL'. http://www.mysql.com/ + [[[RFC1738]]] The Internet Society. 'RFC 1738 - Uniform Resource Locators (URL)'. http://tools.ietf.org/html/rfc1738 + [[[RFC1766]]] The Internet Society. 'RFC 1766 - Tags for the Identification of Languages'. http://tools.ietf.org/html/rfc1766 + [[[RFC2616]]] The Internet Society. 'RFC 2616 - Hypertext Transfer Protocol 1.1 -- HTTP/1.1'. http://tools.ietf.org/html/rfc2616 ifdef::backend-docbook[] Index ----- //////////////////////////////////////////////////////////////// The index is normally left completely empty, it's contents being generated automatically by the DocBook toolchain. //////////////////////////////////////////////////////////////// endif::backend-docbook[] htcheck-2.0.0~rc1.orig/mkinstalldirs0000755000000000000000000000664711245527335014405 0ustar #! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2006-05-11.19 # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: htcheck-2.0.0~rc1.orig/htcheck/0000755000000000000000000000000011245531570013167 5ustar htcheck-2.0.0~rc1.orig/htcheck/Makefile.am0000644000000000000000000000060111245242214015212 0ustar # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy include $(top_srcdir)/Makefile.config bin_PROGRAMS = htcheck htcheck_SOURCES = Scheduler.cc \ htcheck.cc noinst_HEADERS = Scheduler.h \ htcheck.h htcheck_DEPENDENCIES = $(HTLIBS) htcheck_LDFLAGS = htcheck_LDADD = $(HTLIBS) $(MYSQL_LDFLAGS) htcheck-2.0.0~rc1.orig/htcheck/htcheck.h0000644000000000000000000000217011177570304014753 0ustar /////// // // htcheck.h // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: htcheck.h,v 1.7 2003-12-30 09:38:47 angusgb Exp $ // // /////// #ifndef _htcheck_h_ #define _htcheck_h_ #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ #include #include #include #include #include #include #include #include #include #include "HtRegex.h" extern Configuration config; // For compatibility with htdig stuff extern int debug; // For compatibility with htdig stuff #endif htcheck-2.0.0~rc1.orig/htcheck/Scheduler.h0000644000000000000000000002114711177570304015265 0ustar /////// // Scheduler.h // Scheduler Class declaration // // Class for managing the crawling process // // Part of the ht://Check package // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Scheduler.h,v 1.31 2008-11-16 18:28:51 angusgb Exp $ // // G.Bartolini // started: 13.09.1999 /////// #ifndef _SCHEDULER_H #define _SCHEDULER_H #include #ifdef HAVE_STD #include #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #include #include #endif /* HAVE_STD */ #include #include #include #include #include #include #include "SchedulerEntry.h" #include "_Url.h" #include "_Server.h" #include "RunInfo.h" class HtmlParser; class Scheduler : public Object { // Declaring friend classes (parser classes) friend class HtmlParser; // Dictionary type (using std::map) for Servers typedef std::map ServersDictionary; // String set typedef std::set StringSet; public: // Construction / Destruction Scheduler(); virtual ~Scheduler(); enum Scheduler_Query_Type { Scheduler_Stored, Scheduler_Direct }; enum Scheduler_Codes { Scheduler_OK, Scheduler_MemoryError, Scheduler_DBError, Scheduler_Interrupted }; enum Scheduler_URL_Validation { Scheduler_URL_Valid, Scheduler_URL_MaxHopCount, Scheduler_URL_Excludes, Scheduler_URL_BadQueryString, Scheduler_URL_BadExtension, Scheduler_URL_NotValidExtension, Scheduler_URL_OutOfLimits, Scheduler_URL_FileProtocol, Scheduler_URL_EMail, Scheduler_URL_Javascript, Scheduler_URL_NotValidService, Scheduler_URL_Malformed, Scheduler_URL_MaxUrlsCount }; /////// // Database Selection /////// Scheduler_Codes SelectDatabase(const std::string &name); /////// // Restoring info from Database /////// Scheduler_Codes RestoreDatabase(); /////// // Set-up and Initialization /////// void SetOptions(Configuration &config); // Set the options int Initial(const std::string &list); // Initialize the URL list void SetArgumentList(int *_argc, char *** _argv) { argc = _argc; argv = _argv;} /////// // Running process /////// Scheduler_Codes Run(); void Stop() { stop = 1;} /////// // Show info at the end of the crawl /////// Scheduler_Codes ShowStatusCode(ostream &output = std::cout); Scheduler_Codes ShowBrokenLinks(ostream &output = std::cout); Scheduler_Codes ShowAnchorNotFound(ostream &output = std::cout); //Scheduler_Codes ShowContentTypes(ostream &output = std::cout); Scheduler_Codes ShowContentTypesPerServer(ostream &output = std::cout); /////// // Public access to protected attributes /////// Scheduler_URL_Validation IsAValidURL(const SchedulerEntry &); HtmysqlDB *GetDB() { return DB; } const HtDateTime *GetStartTime() { return &runinfo.StartTime; } const HtDateTime *GetFinishTime() { return &runinfo.FinishTime; } const int GetRunningTime() { return HtDateTime::GetDiff(runinfo.FinishTime, runinfo.StartTime); } void SetFinishTime() { runinfo.FinishTime.SettoNow(); } void SetDebugLevel(int d) { debug = d; } int GetDebugLevel() { return debug; } void SetDropDatabase(const bool f) { drop_database = f; } bool GetDropDatabase() const { return drop_database; } void SetStatsLevel(int l) { stats = l; } void SetInitializationLevel(int l) { erase = l; } const int GetInitializationLevel() const { return erase; } void SetUserAgent(const std::string &ua); protected: /////// // Protected Methods /////// /////// // Retrieve a URL /////// Transport::DocStatus Retrieve (const SchedulerEntry &s, _Url &url); /////// // Add a URL or find an existant in the DB // If OK, stores the new or found ID value into IDUrl // If previous is set to true, CurrentSchedule is considered // as it was the calling URL (so used for the referer setting // and the hop count too). If previous is set to false, we don't // set them, just think for example at the starting URL list. /////// Scheduler_Codes AddUrl(const std::string &u, unsigned int &IDUrl, bool previous=true); /////// // Add a new server /////// _Server *AddServer(_Url &u); _Server *FindServer(const std::string &signature); /////// // Search the Scheduler /////// int GetNext(); int GetNext(const std::string &StrStatus); /////// // Depending ont the Link table values (considering only those // records with a LinkType='Direct') this method calculates the // added size to the URL. That is to say: it adds sizes of the direct // linked URLs (only once per document), those that are loaded // automatically by the user agent together with the page (ex.: images). /////// Scheduler_Codes CalculateUrlSizeAdd(ostream &output = std::cout); /////// // Check the HTML anchors /////// Scheduler_Codes SetHTMLAnchorsResults(ostream &output = std::cout); /////// // Deserialize the memory dictionary /////// Scheduler_Codes DeserializeServers(); // about servers Scheduler_Codes DeserializeCookies(); // about servers /////// // Tell us if we should retry to retrieve an URL depending on // the first returned document status /////// int ShouldWeRetry(Transport::DocStatus DocumentStatus); //////// // Check for the Proxy /////// bool UseProxy(const SchedulerEntry &); /////// // Protected attributes /////// HtmysqlDB *DB; // Database Pointer ServersDictionary servers; // Servers SchedulerEntry CurrentSchedule; // CurrentSchedule retrieved SchedulerEntry CurrentLinkSchedule; // Current Link schedule SchedulerEntry Referer; // Referer _Server *CurrentServer; // Current server queried _Url *CurrentUrl; // Current Url _Url *Proxy; // Proxy Url std::string Credentials; // Credentials string std::string ProxyCredentials; // Proxy Credentials string std::string AcceptLanguage; // HTTP accept-language directive // Temporary results for querying the Schedule database table HtmysqlQueryResult ScheduleTmp; // Transport Pointers Transport *TransportConnect; HtHTTP *HTTPConnect; Transport_Response *CurrentResponse; int erase; // Erase the DB? int stop; // Catch the signals bool drop_database; // Erase the DB - without dropping the database bool deserialized; // Boolean for deserialization of servers bool deserialized_cookies; // Boolean for deserialization of cookies HtCookieJar *_cookie_jar; // Cookie jar manager object RunInfo runinfo; // Run time Info // Execution info int *argc; char ***argv; std::string options_list; /////// // Configuration variables /////// Configuration *Config; // Pointer to the configuration HtRegex Limits; // URL limits HtRegex LimitsNormalized; // URL limits (normalized) HtRegex Excludes; // URL exclusions HtRegex BadQueryString; // Bad query string HtRegex ExcludeProxy; // URLs to be excluded from the proxy StringSet ValidExtensions; // Extensions to be included StringSet BadExtensions; // Extensions to be excluded int debug; // Debug info int stats; // Statistics available? int parsed_urls; // number of parsed URLs }; #endif htcheck-2.0.0~rc1.orig/htcheck/htcheck.cc0000644000000000000000000003024111177570304015111 0ustar /////// // // ht://Check main function // // Part of the ht://Check package // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: htcheck.cc,v 1.27 2008-11-16 18:28:51 angusgb Exp $ // /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ #include #include #include "HtDefaults.h" #include "HtDateTime.h" #include "Scheduler.h" // If we have this, we probably want it. #ifdef HAVE_GETOPT_H #include #endif // We want to get system information, right? // Do we have the sys/utsname.h include file? #ifdef HAVE_SYS_UTSNAME_H #include #endif #include "htcheck.h" // // Global variables // // Scheduler *main_scheduler; std::ostringstream UserAgent; std::ostringstream SysInfo; // Debug int debug=0; // Function prototypes static void usage(); static void version(); static void reportError(const char *msg); static bool set_sys_info(); static void htcheck_exit(int); static void ShowInfo(const Configuration &config); int main(int ac, char **av) { /////// // Local variables /////// std::string configFile = DEFAULT_CONFIG_FILE; // Configuration file Configuration config; // Configuration dictionary int c; // Character for get_opt function std::string Start_URL; // Start URL std::string DB_Name; // Database name const std::string options_list="vsikc:D:hr"; // Set the global pointer to the main scheduler object if (! (main_scheduler = new Scheduler())) reportError("Scheduler creation failed"); #ifdef HAVE_GETOPT_H const struct option long_options[] = { { "help", 0, 0, 'h'}, { "version", 0, 0, 'r'}, { 0, 0, 0, 0}, }; #endif int stats = 0; int erase = 0; bool drop_database = true; /////// // Set the system information /////// if (!set_sys_info()) SysInfo << "not recognized system"; /////// // Retrieving options from command line with getopt /////// #ifdef HAVE_GETOPT_H while((c = getopt_long(ac, av, options_list.c_str(), long_options, 0)) != -1) #else while((c = getopt(ac, av, options_list.c_str())) != -1) #endif { switch (c) { case 'h': usage(); break; case 'r': version(); break; case 'v': debug++; break; case 's': stats++; break; case 'c': configFile=optarg; break; case 'i': erase=1; break; case 'k': erase=1; // drop the tables, but ... drop_database=false; // ... don't drop the database break; //case 'U': //Start_URL=optarg; //break; case 'D': DB_Name=optarg; break; case '?': usage(); break; } } if(debug>0) { cout << "ht://Check " << VERSION << endl; cout << "Initialization" << endl; } /////// // Default configuration /////// if(debug>0) cout << " Assigning configuration default values" << endl; config.Defaults(defaults); /////// // Configuration file reading /////// if(debug>0) cout << " Reading configuration file " << configFile << endl; if(access(configFile.c_str(), R_OK) < 0) { reportError(form("Unable to find configuration file '%s'", configFile.c_str())); } config.Read(configFile.c_str()); /////// // Set Options /////// if(debug>0) cout << " Setting options " << endl; // Set the argument list info main_scheduler->SetArgumentList(&ac, &av); // Set the debug level of the scheduler main_scheduler->SetDebugLevel(debug); // Set the scheduler stats level main_scheduler->SetStatsLevel(stats); // Set the scheduler initialization level main_scheduler->SetInitializationLevel(erase); // Set the scheduler flag for keeping (or dropping) the existant database main_scheduler->SetDropDatabase(drop_database); // Set the scheduler options main_scheduler->SetOptions(config); // Set the User agent string to be used by the spider UserAgent << config["user_agent"].get() << '/' << VERSION << " (" << SysInfo.str() << ")"; main_scheduler->SetUserAgent(UserAgent.str()); // Catch the initial URL list if (Start_URL.length()==0) Start_URL=config["start_url"].get(); // Determine the name of the Database if (DB_Name.length()==0) DB_Name=config["db_name"].get(); // Checks for a database name prepend string if (config["db_name_prepend"].length()) { std::string db_name_tmp(config["db_name_prepend"].get()); db_name_tmp += DB_Name; DB_Name = db_name_tmp; } /////// // Initialization /////// // Create the database switch (main_scheduler->SelectDatabase(DB_Name)) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // All right case (Scheduler::Scheduler_Interrupted): case (Scheduler::Scheduler_OK): break; } if(debug>0 || stats>0) cout << "Started ht://Check-ing " << main_scheduler->GetStartTime()->GetAscTime() << endl; if (main_scheduler->GetInitializationLevel()) { // We gotta perform a new dig. main_scheduler->Initial(Start_URL); if(debug>0) cout << "Ready to start the 'crawl'" << endl; // Set the signal masks struct sigaction action; struct sigaction old_action; memset((char*)&action, '\0', sizeof(struct sigaction)); memset((char*)&old_action, '\0', sizeof(struct sigaction)); action.sa_handler = htcheck_exit; sigaction(SIGINT, &action, &old_action); // Start the process switch (main_scheduler->Run()) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // Interrupted case (Scheduler::Scheduler_Interrupted): cout << "Interrupted ... Closing gracefully" << endl; break; // All right case (Scheduler::Scheduler_OK): if (stats>0) ShowInfo(config); break; } } else { // We use a previous database. We only show again the results. if(debug>0) cout << "Using existent database " << DB_Name << endl; ShowInfo(config); main_scheduler->SetFinishTime(); } // That's the end if(debug>0 || stats>0) { cout << "Finished ht://Check-ing " << main_scheduler->GetFinishTime()->GetAscTime() << endl; int seconds = main_scheduler->GetRunningTime(); cout << "ht://Check running for " << seconds << " seconds"; if (seconds >= 60) { int hours = seconds / 3600; int seconds2 = seconds - hours * 3600; int minutes = seconds2 / 60; seconds2 -= minutes * 60; cout << " ("; if (hours) cout << hours << " hrs "; if (minutes) cout << minutes << " min "; cout << seconds2 << " sec)"; } cout << endl; } // Frees the main scheduler object - dynamically created if (main_scheduler) delete main_scheduler; } void usage() { cout << "usage: htcheck [-isvhr] [-c configfile] [-D dbname]" << " [--help] [--version]" << endl; cout << "ht://Check " << VERSION << " - " << SysInfo.str() << endl << endl; cout << "Options:" << endl; cout << "\t-v\tVerbose mode (more 'v's increment verbosity)" << endl << endl; cout << "\t-s\tStatistics (broken links, etc...) available" << endl << endl; cout << "\t-i\tInitialize the database (completely drop a previous db)" << endl << endl; cout << "\t-k\tInitialize the database (drop tables, keep the db)" << endl << endl; cout << "\t-c configfile" << endl; cout << "\t\tConfiguration file" << endl << endl; cout << "\t-D dbname" << endl; cout << "\t\tName of the database" << endl << endl; cout << "\t--help\tDisplay this" << endl; cout << "\t-h\tSame as --help" << endl << endl; cout << "\t--version\tDisplay version" << endl; cout << "\t-r\tSame as --version" << endl << endl; exit(0); } void version() { cout << "ht://Check " << VERSION << " - " << SysInfo.str() << endl; exit(0); } void reportError(const char *msg) { cout << "! htcheck: " << msg << "\n\n"; exit(1); } void htcheck_exit(int i) { cout << "Program interrupted. Please wait for a graceful close." << endl; main_scheduler->Stop(); } void ShowInfo(const Configuration &config) { // We want to show the info retrieved so far // Status Codes switch (main_scheduler->ShowStatusCode()) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // All right case (Scheduler::Scheduler_Interrupted): case (Scheduler::Scheduler_OK): break; } // Broken Links switch (main_scheduler->ShowBrokenLinks()) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // All right case (Scheduler::Scheduler_Interrupted): case (Scheduler::Scheduler_OK): break; } // Broken Anchors if (config.Boolean("summary_anchor_not_found")) switch (main_scheduler->ShowAnchorNotFound()) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // All right case (Scheduler::Scheduler_Interrupted): case (Scheduler::Scheduler_OK): break; } // ContentTypes of successfully retrieved or checked Urls switch (main_scheduler->ShowContentTypesPerServer()) { // Database error case (Scheduler::Scheduler_DBError): main_scheduler->GetDB()->DisplayError(); reportError("Database error"); break; // Memory error case (Scheduler::Scheduler_MemoryError): reportError(strerror(errno)); break; // All right case (Scheduler::Scheduler_Interrupted): case (Scheduler::Scheduler_OK): break; } } bool set_sys_info() { #ifndef HAVE_SYS_UTSNAME_H return false; #else struct utsname sysinfo; if (uname (&sysinfo) == -1) return false; // Erase the sys info string SysInfo << sysinfo.sysname << " " << sysinfo.release << " " << sysinfo.machine; return true; #endif } htcheck-2.0.0~rc1.orig/htcheck/Makefile.in0000644000000000000000000003541011245527334015242 0ustar # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Author: Gabriele Bartolini - Prato - Italy VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config bin_PROGRAMS = htcheck$(EXEEXT) subdir = htcheck ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_htcheck_OBJECTS = Scheduler.$(OBJEXT) htcheck.$(OBJEXT) htcheck_OBJECTS = $(am_htcheck_OBJECTS) am__DEPENDENCIES_1 = htcheck_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(htcheck_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(htcheck_SOURCES) DIST_SOURCES = $(htcheck_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline htcheck_SOURCES = Scheduler.cc \ htcheck.cc noinst_HEADERS = Scheduler.h \ htcheck.h htcheck_DEPENDENCIES = $(HTLIBS) htcheck_LDFLAGS = htcheck_LDADD = $(HTLIBS) $(MYSQL_LDFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htcheck/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htcheck/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done htcheck$(EXEEXT): $(htcheck_OBJECTS) $(htcheck_DEPENDENCIES) @rm -f htcheck$(EXEEXT) $(htcheck_LINK) $(htcheck_OBJECTS) $(htcheck_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-binPROGRAMS install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: htcheck-2.0.0~rc1.orig/htcheck/Scheduler.cc0000644000000000000000000014246411245224724015427 0ustar /////// // Scheduler.cc // Scheduler Class definitions // // Class for managing the crawling process // // Part of the ht://Check package // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Scheduler.cc,v 1.88 2009/08/26 12:25:56 angusgb Exp $ // // G.Bartolini // started: 13.09.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #include #endif /* HAVE_STD */ #include "_Server.h" #include "Scheduler.h" #include "StringList.h" #include "WordType.h" #include "HtmlParser.h" #include "Htmysql.h" #include "HtCookieMemJar.h" #include "HtCookieInFileJar.h" /////// // Construction /////// Scheduler::Scheduler() : DB(0), servers(), CurrentServer(0), CurrentUrl(0), Proxy(0), Credentials(), ProxyCredentials(), AcceptLanguage(), TransportConnect(0), HTTPConnect(0), CurrentResponse(0), erase(0), stop(0), drop_database(true), deserialized(false), deserialized_cookies(false), _cookie_jar(0), argc(0), argv(0), options_list(), Config(0), ValidExtensions(), BadExtensions(), debug(0), stats(0), parsed_urls(0) { // Set the cookie jar manager object _cookie_jar = new HtCookieMemJar(); HtHTTP::SetCookieJar((HtCookieJar *)_cookie_jar); } /////// // Destruction /////// Scheduler::~Scheduler () { // Destruction of the Scheduler // Deserialize the servers stored in memory. // Let's write them into the Database if (debug > 1) cout << " ! Scheduler object is being destructed" << endl; if (!deserialized) { if (debug > 1) cout << " ! Deserializing servers" << endl; DeserializeServers(); } // Frees memory for the Cookie Jar! Yummy :-P if (_cookie_jar) { // But before print the cookies retrieved if (erase && stats) _cookie_jar->ShowSummary(cout); if (!deserialized_cookies) { if (debug > 1) cout << " ! Deserializing cookies" << endl; DeserializeCookies(); } if (debug > 1) cout << " ! Freeing memory from cookies" << endl; delete _cookie_jar; } if (Proxy) delete Proxy; // Close and delete the Database Object if (DB) { if (debug > 0) cout << "Database '" << DB->GetDB() << "' closed ..." << endl; DB->Close(); delete DB; } if (erase && stats) HtHTTP::ShowStatistics(cout); if (debug > 1) cout << " ! Scheduler object now destructed" << endl; } /////// // Initial process of scheduling: // 1 - Database Creation // 2 - Urls insertion from the configuration directive /////// int Scheduler::Initial(const std::string &list) { // // Split the list of urls up into individual urls. // StringList tokens(list.c_str(), " \t"); std::string sig; std::string url; unsigned int IDUrl; for (int i = 0; i < tokens.Count(); i++) { switch(AddUrl(tokens[i], IDUrl, false)) { case Scheduler_DBError: DB->DisplayError(); return 0; break; case Scheduler_MemoryError: case Scheduler_Interrupted: case Scheduler_OK: break; } } return 1; } /////// // Store a server in memory (dictionary) /////// _Server *Scheduler::AddServer(_Url &u) { // Let's store it in memory _Server *server = new _Server(u.host().get(), u.port()); if(!server) return 0; servers.insert(std::make_pair(u.signature(), server)); server->SetID(_Server::IncrementTotServers()); return server; } /////// // Search for a server in memory (dictionary) /////// _Server *Scheduler::FindServer(const std::string &signature) { // is it stored in memory? ServersDictionary::iterator s(servers.find(signature)); if (s == servers.end()) { return 0; } return s->second; } /////// // Select an existing or create a new database and stores a new object /////// Scheduler::Scheduler_Codes Scheduler::SelectDatabase(const std::string &db_name) { /////// // Set the database debug level according on Scheduler's one /////// Htmysql::SetDebugLevel(debug); /////// // Creating the new database object /////// #ifdef HAVE_LOAD_DEFAULTS const std::string mysql_conf_file_prefix ((*Config)["mysql_conf_file_prefix"].get()); #endif const std::string mysql_conf_group ((*Config)["mysql_conf_group"].get()); const std::string mysql_client_charset ((*Config)["mysql_client_charset"].get()); const std::string mysql_db_charset ((*Config)["mysql_db_charset"].get()); DB = new HtmysqlDB (db_name, #ifdef HAVE_LOAD_DEFAULTS mysql_conf_file_prefix, #endif mysql_conf_group, mysql_client_charset, mysql_db_charset, argc, argv); if(! DB) return Scheduler_MemoryError; /////// // Database connection /////// if (!DB->Connect()) return Scheduler_DBError; if (!erase) { if (debug > 0) cout << "Looking if Database '" << DB->GetDBSignature() << "' exists ... "; if (! DB->Exists(DB->GetDB()) ) { // We are looking for an existing database called 'db_name' if (debug > 0) cout << "Not found" << endl; erase = 1; } else { if (debug > 0) cout << "Found" << endl; // Let's select it if (DB->SelectDB(DB->GetDB())) return Scheduler_DBError; if (debug > 0) { cout << "Database '" << DB->GetDBSignature() << "' selected ..."; #ifdef HAVE_LOAD_DEFAULTS if (DB->GetUser().length()) cout << " (user: '" << DB->GetUser() << "')"; #endif cout << endl; } } } else { // We have to erase the database. However, let's see if we have // to keep the structure. In order to do this, we have to check // if the database exists. if (! drop_database) { if (debug > 0) cout << "Looking if database '" << DB->GetDBSignature() << "' exists ... should we keep it? "; if (! DB->Exists(DB->GetDB()) ) { // We are looking for an existing database called 'db_name' if (debug > 0) cout << "sorry, not found (can't keep it)" << endl; drop_database = true; // We gotta erase the database } else cout << "yes" << endl; } } /////// // Database creation /////// if (erase) { // Before creating the database, let's set the // index length for Url fields DB->SetURL_Index_Length(Config->Value("url_index_length")); if (debug > 0) { cout << "Set the length of the index for the Url fields to: "; if (DB->GetURL_Index_Length()>0) cout << DB->GetURL_Index_Length(); else cout << "unlimited"; cout << endl; } // Set the available charsets list DB->LoadAvailableCharsets((*Config)["available_charsets"].get()); // Set the 'drop_database' flag DB->SetDropDatabase(drop_database); if (!DB->CreateDatabase ()) return Scheduler_DBError; if (debug > 0) cout << "Database '" << DB->GetDBSignature() << "' created ..." << endl; } /////// // Set the SQL Big Table Option /////// if (Config->Boolean("sql_big_table_option")) { if (!DB->SetSQLBigTableOption()) { // Only a warning cout << "Setting SQL big table option failed. " << "Try to set 'sql_big_table_option' to false" << endl; } } // Set the SchedulerEntry debug level SchedulerEntry::SetDebugLevel(debug); return Scheduler_OK; } /////// // Restore a database /////// Scheduler::Scheduler_Codes Scheduler::RestoreDatabase() { if (!DB) return Scheduler_MemoryError; // First of all, we gotta load all the servers into memory // Then we gotta erase from the db all the entries of tables related // with URLs with the ToBeRetrieved flag set on. This means that // the program stopped while retrieving a URL. return Scheduler_OK; } /////// // Add a new Url /////// Scheduler::Scheduler_Codes Scheduler::AddUrl(const std::string &u, unsigned int &IDUrl, bool previous) { int NumRecords; static HtmysqlQueryResult scheduletmp; // It's a new Url ... Let's store it _Url tmp(u); // temporary _Url object tmp.normalize(); // Url normalized // CurrentLinkSchedule Assignment (it contains the current link examinated // by the Scheduler) and it's used by parsing functions like HtmlParser's CurrentLinkSchedule.SetNewUrl(tmp.get().get()); // Check if the occurrence is already present in the DB // NumRecords stores the result of the search process // If -1 an error has occurred, else it contains the number of records found if (debug > 2) cout << " > " << CurrentLinkSchedule << endl; NumRecords = DB->Search (CurrentLinkSchedule, scheduletmp); if ( NumRecords== -1) // A DB Error occurred return Scheduler_DBError; if ( NumRecords > 0) { // Try to retrieve it if (! DB->GetNextElement(CurrentLinkSchedule, scheduletmp) ) // Something went wrong return Scheduler_DBError; // At least an occurrence found if (debug > 2) cout << " > Schedule entry found, not stored (" << CurrentLinkSchedule << " )" << endl; // OK ... it's all right // Let's store the found ID value IDUrl = CurrentLinkSchedule.GetIDSchedule(); return Scheduler_OK; } _Server *server = 0; // Do we have a valid host field? if (tmp.host().length()) { // Look for the server server = FindServer(tmp.signature().get()); if (!server) { // Not present. We have a new server. server=AddServer(tmp); if(!server) // Error. Impossible to store it. return Scheduler_MemoryError; else { // Added a new server if(debug > 1) cout << " > New server: " << server->host() << " - port " << server->port() << " (" << server->GetID() << ")" << endl; } } else if(debug > 3) cout << " > Server already stored: " << server->host() << " - port " << server->port() << " (" << server->GetID() << ")" << endl; } else { // That sucks! No host field - probably a malformed URL if (debug>3) cout << " > Warning! Possible HTTP malformed URL (empty host)" << endl; CurrentLinkSchedule.SetMalformed(true); } // Assign the server ID to the Schedule entry CurrentLinkSchedule.SetServer(server); // Let's set the new ID CurrentLinkSchedule.SetIDSchedule(_Url::IncrementTotUrls()); // Let's store the found ID value IDUrl = CurrentLinkSchedule.GetIDSchedule(); // Let's get info from the calling schedule (alias referencing URL) if (!previous) { // Here we are when there's no previous URL referring this. // Guys, this means that we are fetching a URL which was present // in the start_url configuration file. We MUST retrieve it // anyway, kinda force it, right? CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_ToBeRetrieved); CurrentLinkSchedule.SetDomain(SchedulerEntry::Url_Internal); } else { // We got the referring URL in the CurrentSchedule variable // Set the referring URL CurrentLinkSchedule.SetIDReferer(CurrentSchedule.GetIDSchedule()); // Set the Hop Count CurrentLinkSchedule.SetHopCount((CurrentSchedule.GetHopCount()) + 1); // Assign the status to the URL depending on the configuration switch(IsAValidURL(CurrentLinkSchedule)) { case Scheduler_URL_Valid: // Valid URL - It has to be retrieved CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_ToBeRetrieved); CurrentLinkSchedule.SetDomain(SchedulerEntry::Url_Internal); ++runinfo.TotUrls; break; /////// // Not valid URLs /////// case Scheduler_URL_MaxHopCount: // Max Hop Count reached if (debug > 2) cout << " > Rejected: max hop count reached" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_MaxHopCount); break; case Scheduler_URL_Excludes: // It's in the exclude list if (debug > 2) cout << " > Rejected: according to exclude list" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_CheckIfExists); if (Config->Boolean("check_external")) ++runinfo.TotUrls; break; case Scheduler_URL_BadQueryString: // It's in the bad query string list if (debug > 2) cout << " > Rejected: according to the bad query string list" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_BadQueryString); break; case Scheduler_URL_BadExtension: // It's in the bad extensions list if (debug > 2) cout << " > Rejected: according to the bad extensions list" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_BadExtension); break; case Scheduler_URL_NotValidExtension: // It's NOT in the valid extensions list if (debug > 2) cout << " > Rejected: according to the valid extensions list" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_BadExtension); break; case Scheduler_URL_OutOfLimits: // It's out of bounds --> not in the limits range if (debug > 2) cout << " > Rejected: according to the limits list" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_CheckIfExists); CurrentLinkSchedule.SetDomain(SchedulerEntry::Url_External); if (Config->Boolean("check_external")) ++runinfo.TotUrls; break; case Scheduler_URL_FileProtocol: // Hey! There's a 'file://' call. It's an error !!! if (debug > 2) cout << " > Rejected: file:// call - error!" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_FileProtocol); break; case Scheduler_URL_EMail: // Hey! There's an e-mail address if (debug > 2) cout << " > Rejected: E_Mail address" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_EMail); break; case Scheduler_URL_Javascript: // Hey! There's a Javascript using the pseudo-protocol 'javascript:' if (debug > 2) cout << " > Rejected: Javascript pseudo-protocol" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_Javascript); break; case Scheduler_URL_NotValidService: // It's a URL of a service which is not managed by ht://Check if (debug > 2) cout << " > Rejected: not a valid service for ht://Check" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_NotValidService); break; case Scheduler_URL_Malformed: // It's a malformed URL if (debug > 2) cout << " > Rejected: it's a malformed URL" << endl; CurrentLinkSchedule.SetStatus(SchedulerEntry::Url_Malformed); break; case Scheduler_URL_MaxUrlsCount: // Never occurs here break; } } ++runinfo.ScheduledUrls; // Add to the Database if (!DB->Insert(CurrentLinkSchedule)) return Scheduler_DBError; else if(debug > 1) cout << " > Schedule entry stored: " << CurrentLinkSchedule << endl; return Scheduler_OK; } /////// // Deserialize the servers dictionary and stores the info into the DB /////// Scheduler::Scheduler_Codes Scheduler::DeserializeServers() { if (debug > 0) cout << "Updating database info about Servers seen." << endl; for (ServersDictionary::iterator s(servers.begin()); s != servers.end(); ++s) { _Server* server (s->second); if(debug>3) cout << "Deserializing: " << server->host() << " - port " << server->port() << " (" << server->GetID() << ")" << endl; if (!DB->Insert(*server)) return Scheduler_DBError; } deserialized = true; return Scheduler_OK; } /////// // Deserialize the cookies dictionary and stores the info into the DB /////// Scheduler::Scheduler_Codes Scheduler::DeserializeCookies() { if (!_cookie_jar) return Scheduler_MemoryError; if (debug > 0) cout << "Updating database info about cookies found." << endl; _cookie_jar->ResetIterator(); while (const HtCookie* cookie = _cookie_jar->NextCookie()) { if(debug>3) cout << "Deserializing cookie: " << cookie->GetName() << endl; if (!DB->Insert(*cookie)) return Scheduler_DBError; } deserialized_cookies = true; return Scheduler_OK; } /////// // Set the options of the scheduler from the configuration file /////// void Scheduler::SetOptions(Configuration &config) { // Set the URL class static configuration variable // IMPORTANT! This must be set before any deal with a URL object URL::SetConfiguration(config); // Set the URL class static configuration variable WordType::Initialize(config); // Set the debug level for the other classes Transport::SetDebugLevel(debug); HtCookieJar::SetDebugLevel(debug); // Set the default parser content-type string Transport::SetDefaultParserContentType ("text/html"); // Temporary variables StringList l; String t; String lowerp; register char *p; // Set limits l.Create(config["limit_urls_to"], " \t"); Limits.setEscaped(l); l.Release(); // Set limits (normalized) l.Create(config["limit_normalized"], " \t"); LimitsNormalized.setEscaped(l); l.Release(); // Set Exclusion l.Create(config["exclude_urls"], " \t"); Excludes.setEscaped(l); l.Release(); // Set Bad query string l.Create(config["bad_querystr"], " \t"); BadQueryString.setEscaped(l); l.Release(); // Valid Extensions t = config["valid_extensions"]; p = strtok(t, " \t"); while (p) { // Extensions are case insensitive lowerp = p; lowerp.lowercase(); ValidExtensions.insert(lowerp.get()); p = strtok(0, " \t"); } // Bad Extensions t = config["bad_extensions"]; p = strtok(t, " \t"); while (p) { // Extensions are case insensitive lowerp = p; lowerp.lowercase(); BadExtensions.insert(lowerp.get()); p = strtok(0, " \t"); } // Set the Proxy (if exists) const std::string proxyURL (config["http_proxy"].get()); if (proxyURL.length()) { Proxy = new _Url(proxyURL); Proxy->normalize(); if (debug>0) cout << " Setting HTTP Proxy to " << Proxy->host() << ":" << Proxy->port() << endl; } // Set Proxy Exclusion l.Create(config["http_proxy_exclude"], " \t"); ExcludeProxy.setEscaped(l); l.Release(); // Set the credentials for the authentication Credentials = config["authorization"].get(); // Set the credentials for the authentication of the HTTP Proxy ProxyCredentials = config["http_proxy_authorization"].get(); // Set the Accept-Language directive to be sent via HTTP l.Create(config["accept_language"], " \t"); AcceptLanguage.clear(); // zeroes the contents (should be already empty) for (int i = 0; i < l.Count(); i++) { if (i>0) AcceptLanguage += ','; AcceptLanguage += l[i]; } if (debug>0) cout << " Setting language for negotiation: " << ((AcceptLanguage.length()>0)? AcceptLanguage: "servers default") << endl; if (!config.Boolean("disable_cookies")) { // Imports the cookies file const std::string CookiesInputFile(config["cookies_input_file"].get()); if (CookiesInputFile.length()) { if (debug>0) cout << " Importing Cookies input file " << CookiesInputFile << endl; int result; if (HtCookieInFileJar* cookie_file = (new HtCookieInFileJar(CookiesInputFile.c_str(), result))) { if (!result) { if (debug>0) cookie_file->ShowSummary(); delete _cookie_jar; // Deletes previous cookie jar _cookie_jar = (HtCookieJar*) cookie_file; // set the imported one HtHTTP::SetCookieJar(_cookie_jar); } else cout << "! Import failed: " << CookiesInputFile << endl; } } } // Set the COnfiguration pointer Config = &config; } /////// // Check if an URL should be crawled. It checks the limits and the extension. // Returns: /////// Scheduler::Scheduler_URL_Validation Scheduler::IsAValidURL(const SchedulerEntry &s) { static std::string url; static unsigned int max_hop_count( (unsigned int) Config->Value("max_hop_count") ); // MaxHopCount if (s.GetHopCount() > max_hop_count) return(Scheduler_URL_MaxHopCount); // Initialization of the string url = s.GetScheduleUrl(); // Check the protocol if (url.compare(0, 5, "http:")) // not HTTP { if (! url.compare(0, 5, "file:")) return (Scheduler_URL_FileProtocol); else if (! url.compare(0, 7, "mailto:")) return (Scheduler_URL_EMail); else if (! url.compare(0, 11, "javascript:")) return (Scheduler_URL_Javascript); else return (Scheduler_URL_NotValidService); } // Check for malformed URLs if (s.IsMalformed()) return (Scheduler_URL_Malformed); // // If the URL contains any of the patterns in the exclude list, // mark it as invalid // if (Excludes.match(url.c_str(), 0, 0) != 0) return(Scheduler_URL_Excludes); // // If the URL has a query string and it is in the bad query list // mark it as invalid // if (url.find_last_of('?') != std::string::npos && BadQueryString.match(url.c_str(), 0, 0) != 0) return(Scheduler_URL_BadQueryString); // // See if the file extension is in the list of invalid ones // std::string::size_type ext (url.find_last_of('.')); if (ext != std::string::npos) { std::string lowerext; while (ext < url.length()) { lowerext.push_back(tolower(url[ext])); ++ext; } if (BadExtensions.size() && BadExtensions.find(lowerext) != BadExtensions.end()) return (Scheduler_URL_BadExtension); // // Or NOT in the list of valid ones // if (ValidExtensions.size() && ValidExtensions.find(lowerext) != ValidExtensions.end()) return (Scheduler_URL_NotValidExtension); } // // If any of the limits are met, we allow the URL // if ( Limits.match(url.c_str(), 1, 0) != 0) { URL aUrl (url.c_str()); aUrl.normalize(); if (LimitsNormalized.match(aUrl.get(), 1, 0) != 0) // Yep! It's valid { return(Scheduler_URL_Valid); } else if (debug>2) cout << url << ": Out of normalized limits" << endl; } else if (debug>2) cout << url << ": Out of limits" << endl; // Nooo ... out of limits return (Scheduler_URL_OutOfLimits); } /////// // Check if an URL should be crawled. It checks the limits and the extension. // Returns: /////// Scheduler::Scheduler_Codes Scheduler::Run() { int NumRetries; int Result = 0; std::string SQLStatement; Transport::DocStatus DocumentStatus; HtmlParser HtmlParserOB; const int max_urls_count( (int) Config->Value("max_urls_count") ); char crawling_sign = '+'; // Get next schedule until the list of Urls to be retrieved is empty // or until we stop the running process (SIGINT) while ( !stop && (Result=GetNext()) > 0) { ++runinfo.RetrievedUrls; // Let's build a new _Url object CurrentUrl = new _Url(CurrentSchedule.GetScheduleUrl()); CurrentUrl->SetID(CurrentSchedule.GetIDSchedule()); CurrentUrl->SetIDServer(CurrentSchedule.GetIDServer()); // CurrentUrl->normalize(); // Shows info if (debug>1) cout << crawling_sign << ' ' << runinfo.RetrievedUrls << "/" << runinfo.TotUrls << " - " << CurrentUrl->get() << " ID: " << CurrentUrl->GetID() << endl; // Find the server in memory // Look for the server if (! (CurrentServer = (_Server *) FindServer(CurrentUrl->signature().get())) ) return Scheduler_MemoryError; CurrentUrl->SetServer(CurrentServer); // Reset the counter NumRetries = 0; // Retrieve the URL do { DocumentStatus = Retrieve (CurrentSchedule, *CurrentUrl); if (NumRetries++) if (debug>1) cout << " Unable to connect. Attempts n. " << NumRetries << endl; } while (ShouldWeRetry(DocumentStatus) && NumRetries <= Config->Value("max_retries")); // Set the current transport response if (TransportConnect) { CurrentResponse = TransportConnect->GetResponse(); // If we have a response we store the return status codes if(CurrentResponse) { // We have a response CurrentUrl->SetStatusCode(CurrentResponse->GetStatusCode()); CurrentUrl->SetReasonPhrase(CurrentResponse->GetReasonPhrase().get()); CurrentUrl->SetLastAccess(CurrentResponse->GetAccessTime()); CurrentUrl->SetHTTPContentType(CurrentResponse->GetContentType().get()); CurrentUrl->SetSize(CurrentResponse->GetContentLength()); CurrentUrl->SetLastModified(CurrentResponse->GetModificationTime()); // HTTP response specific matters if (HTTPConnect == TransportConnect) { // Transfer Encoding CurrentUrl->SetTransferEncoding( ((HtHTTP_Response *)CurrentResponse)->GetTransferEncoding().get()); // Content Language CurrentUrl->SetContentLanguage( ((HtHTTP_Response *)CurrentResponse)->GetContentLanguage().get()); } // We store the server info if it's the first request if (CurrentServer->GetRequests() == 0) { CurrentServer->SetIPAddress(TransportConnect->GetHostIPAddress().get()); if (HTTPConnect == TransportConnect) { // HTTP Info // Server CurrentServer->SetHttpServer(((HtHTTP_Response *)CurrentResponse)->GetServer().get()); // Server version CurrentServer->SetHttpVersion(((HtHTTP_Response *)CurrentResponse)->GetVersion().get()); HTTPConnect->isPersistentConnectionPossible()? CurrentServer->AllowPersistentConnection() : CurrentServer->AvoidPersistentConnection(); } } } // Add the requests number of the server CurrentServer->IncrementRequests(); } if (debug>0) { cout << runinfo.RetrievedUrls << "/" << runinfo.TotUrls << " - " << CurrentUrl->get() << " ID: " << CurrentUrl->GetID(); if (DocumentStatus == Transport::Document_ok) cout << " - Size: " << CurrentUrl->GetSize(); cout << endl; } switch(DocumentStatus) { /////// // Document found /////// case Transport::Document_ok: if(debug>2) cout << " > Document found" << endl; CurrentUrl->SetConnStatus("OK"); if (CurrentSchedule.GetStatus() != SchedulerEntry::Url_CheckIfExists) { // If it is valid, we check the max urls count option if (max_urls_count > 0 && parsed_urls >= max_urls_count) { CurrentSchedule.SetStatus(SchedulerEntry::Url_MaxUrlsCount); crawling_sign = '-'; } else { ++parsed_urls; // increment the number of parsed URLs switch(HtmlParserOB(*this)) { case HtmlParser::HtmlParser_StatementFailed: case HtmlParser::HtmlParser_LinkFailed: case HtmlParser::HtmlParser_AttributeFailed: case HtmlParser::HtmlParser_AccessibilityCheckFailed: return Scheduler_DBError; break; default: if (Config->Boolean("store_url_contents")) CurrentUrl->SetContents(CurrentResponse->GetContents().get()); break; } } } break; /////// // Document not changed /////// case Transport::Document_not_changed: if(debug>2) cout << " > Document not changed" << endl; CurrentUrl->SetConnStatus("OK"); break; /////// // Document not found /////// case Transport::Document_not_found: if(debug>0) cout << " > Document not found" << endl; CurrentUrl->SetConnStatus("OK"); // We don't wanna show the last modified value in this case CurrentUrl->HideLastModified(); break; case Transport::Document_not_parsable: if(debug>1) cout << " > Document found but not parsable" << endl; CurrentUrl->SetConnStatus("OK"); break; /////// // Redirection of the document /////// case Transport::Document_redirect: // Location must point to another URL if (TransportConnect == HTTPConnect) { unsigned int IDUrl; static Link redirectedlink; CurrentUrl->SetLocation(((HtHTTP_Response *)CurrentResponse)->GetLocation().get()); CurrentUrl->SetHTTPContentType(((HtHTTP_Response *)CurrentResponse)->GetContentType().get()); _Url RedirectedUrl (CurrentUrl->GetLocation(), *CurrentUrl); AddUrl(RedirectedUrl.get().get(), IDUrl); if (debug>0) cout << " > Redirection: Adding " << RedirectedUrl.get() << " (" << IDUrl << ")" << endl; // Let's store the redirection as a special link redirectedlink.Reset(); // Set the source Url ID redirectedlink.SetIDUrlSrc(CurrentUrl->GetID()); // Set the dest Url ID redirectedlink.SetIDUrlDest(IDUrl); // Set the tag position redirectedlink.SetTagPosition(0); // Set the attribute position redirectedlink.SetAttrPosition(0); // Set the type redirectedlink.SetLinkType("Redirection"); // Write the link object if (!GetDB()->Insert(redirectedlink)) { // Insert failed if (debug>0) cout << "Link insert Failed: " << redirectedlink << endl; return Scheduler_DBError; } } CurrentUrl->SetConnStatus("OK"); // We don't wanna show the last modified value in this case CurrentUrl->HideLastModified(); break; case Transport::Document_not_authorized: if(debug>0) cout << " > Document not authorized" << endl; CurrentUrl->SetConnStatus("OK"); // We don't wanna show the last modified value in this case CurrentUrl->HideLastModified(); break; case Transport::Document_connection_down: if(debug>0) cout << " > Connection down" << endl; CurrentUrl->SetConnStatus("ConnectionDown"); break; case Transport::Document_no_connection: if(debug>0) cout << " > No connection" << endl; CurrentUrl->SetConnStatus("NoConnection"); break; case Transport::Document_no_header: if(debug>0) cout << " > No header" << endl; CurrentUrl->SetConnStatus("NoHeader"); break; case Transport::Document_no_host: if(debug>0) cout << " > No host" << endl; CurrentUrl->SetConnStatus("NoHost"); break; case Transport::Document_no_port: if(debug>0) cout << " > No port" << endl; CurrentUrl->SetConnStatus("NoPort"); break; case Transport::Document_not_local: if(debug>0) cout << " > Not local" << endl; break; case Transport::Document_not_recognized_service: // Transport service not recognized if(debug>0) cout << " > Service not valid" << endl; CurrentUrl->SetConnStatus("ServiceNotValid"); break; case Transport::Document_server_error: if(debug>0) cout << " > Server Error" << endl; CurrentUrl->SetConnStatus("ServerError"); break; case Transport::Document_other_error: // General error (memory) return Scheduler_MemoryError; break; } // Store info if(debug>1) cout << " >> Stored: " << CurrentSchedule << endl; if (!DB->Insert(*CurrentUrl)) return Scheduler_DBError; // Update it on Schedule table switch(CurrentSchedule.GetStatus()) { case SchedulerEntry::Url_CheckIfExists : CurrentSchedule.SetStatus(SchedulerEntry::Url_Checked); break; case SchedulerEntry::Url_MaxUrlsCount : CurrentSchedule.SetStatus(SchedulerEntry::Url_MaxUrlsCount); break; case SchedulerEntry::Url_ToBeRetrieved : default: CurrentSchedule.SetStatus(SchedulerEntry::Url_Retrieved); break; } if (DB->UpdateStatus(CurrentSchedule) == -1) return Scheduler_DBError; } // Create the indexes for the Link table if (DB->CreateLinkTableIndexes() == -1) return Scheduler_DBError; // Calculate Urls Size Add if (CalculateUrlSizeAdd() != Scheduler_OK) return Scheduler_DBError; // Set the link results if (DB->SetLinkResults() == -1) return Scheduler_DBError; // Set the HTML anchors results if (SetHTMLAnchorsResults() != Scheduler_OK) return Scheduler_DBError; // Deserialize the servers stored in memory. // Let's write them into the Database if (!deserialized) DeserializeServers(); // Set the SQL Big Table Option if (Config->Boolean("optimize_db")) { if (!DB->Optimize()) { // Only a warning cout << "Optimization failed. Try to set 'optimize_db' option to false" << endl; } } // Set finish time SetFinishTime(); // Set general info runinfo.TCPConnections = HtHTTP::GetTotOpen(); runinfo.ServerChanges = HtHTTP::GetTotServerChanges(); runinfo.HTTPSeconds= HtHTTP::GetTotSeconds(); runinfo.HTTPRequests= HtHTTP::GetTotRequests(); runinfo.HTTPBytes= HtHTTP::GetTotBytes(); runinfo.HTTPBytes= HtHTTP::GetTotBytes(); // Updates accessibility checks info if (!Config->Boolean("accessibility_checks")) runinfo.AccessibilityChecks = 0; // Store general info into the'htCheck' table if (! DB->Insert(runinfo)) return Scheduler_DBError; // Result may be 0 or -1 // If -1 a db error has occured if (Result == -1) // A database error occured return Scheduler_DBError; // Free the memory for the HTTP object if (HTTPConnect) delete HTTPConnect; if (CurrentUrl) delete CurrentUrl; // Stopped the process if (stop) return Scheduler_Interrupted; else return Scheduler_OK; } Transport::DocStatus Scheduler::Retrieve (const SchedulerEntry &s, _Url &url) { TransportConnect = 0; bool useproxy = UseProxy(s); // Check for the proxy to be used if (mystrncasecmp (url.service(), "http", 4) == 0) { if (debug>4) cout << "Retrieving " << url.get() << " - via HTTP" << endl; if (!HTTPConnect) { if (debug>5) cout << "Creating a new object for HTTP Connections" << endl; HTTPConnect = new HtHTTPBasic(); if (!HTTPConnect) return Transport::Document_other_error; // Set the properties that are valid for every request // Let's disable cookies if (Config->Boolean("disable_cookies")) HTTPConnect->DisableCookies(); // Set the credentials for the authentication if (Credentials.length()) HTTPConnect->SetCredentials(Credentials.c_str()); // Set the accept language directive if (AcceptLanguage.length()) HTTPConnect->SetAcceptLanguage(AcceptLanguage.c_str()); } if (debug>6) cout << "Setting the URL to be retrieved" << endl; HTTPConnect->SetRequestURL(url); if (Config->Boolean("persistent_connections")) { if (! (url.GetServer()->IsPersistentConnectionAllowed())) HTTPConnect->DisablePersistentConnection(); else { HTTPConnect->AllowPersistentConnection(); if (Config->Boolean("head_before_get")) HTTPConnect->EnableHeadBeforeGet(); else HTTPConnect->DisableHeadBeforeGet(); } } else HTTPConnect->DisablePersistentConnection(); // We retrieve the whole document (GET) only if it's marked // with the "ToBeRetrieved" flag. if(s.GetStatus() == SchedulerEntry::Url_ToBeRetrieved) HTTPConnect->SetRequestMethod(HtHTTP::Method_GET); else HTTPConnect->SetRequestMethod(HtHTTP::Method_HEAD); // Look for the referer if (CurrentSchedule.GetIDReferer()) { static HtmysqlQueryResult referertmp; // We have a referer for the Current scheduler URL Referer.Reset(); Referer.SetIDSchedule(CurrentSchedule.GetIDReferer()); if (debug > 3) cout << " > Looking for the referer (ID: " << Referer.GetIDSchedule() << ")" << endl; int NumRecords = DB->Search (Referer, referertmp); if (NumRecords==1) { // Found, let's get it if (DB->GetNextElement(Referer, referertmp)) { HTTPConnect->SetRefererURL(Referer.GetScheduleUrl().c_str()); if (debug > 2) cout << " > Found the referer (" << Referer.GetScheduleUrl() << ")" << endl; } } } // Set the TransportConnect to HTTP TransportConnect = HTTPConnect; } else { if (debug>0) cout << '"' << url.service() << "\" not a recognized transport service. Ignoring.\n"; return Transport::Document_not_recognized_service; } // Let's connect if (TransportConnect) { // Set the parameters if (debug>4) cout << "Set the connection" << endl; // Check for the HTTP proxy use if (useproxy && HTTPConnect==TransportConnect) { if (debug>3) cout << "Set the proxy to " << Proxy->host() << ":" << Proxy->port() << endl; HTTPConnect->SetProxy(useproxy); // Set the flag for HTTP proxy TransportConnect->SetConnection(Proxy); // Set the credentials for the authentication if (ProxyCredentials.length()) { if (debug>3) cout << "Set the authorization for the proxy" << endl; HTTPConnect->SetProxyCredentials(ProxyCredentials.c_str()); } } else TransportConnect->SetConnection(url); // Set the timeout if (debug>4) cout << "Set the connection timeout to " << Config->Value("timeout") << endl; TransportConnect->SetTimeOut(Config->Value("timeout")); // Set the max document size if (debug>4) cout << "Set the max document size to " << Config->Value("max_doc_size") << endl; // Set the biggest size to be retrieved TransportConnect->SetRequestMaxDocumentSize(Config->Value("max_doc_size")); // Set the number of tcp retries if (debug>4) cout << "Set the number of retries to " << Config->Value("tcp_max_retries") << endl; TransportConnect->SetRetry(Config->Value("tcp_max_retries")); // Set the time to wait after a tcp failure if (debug>4) cout << "Set the time to wait after a tcp failure to " << Config->Value("tcp_wait_time") << endl; TransportConnect->SetWaitTime(Config->Value("tcp_wait_time")); // Modification time if (debug>4) { cout << "Make the request"; if (useproxy) cout << " via proxy (" << Proxy->host() << ":" << Proxy->port() << ")"; cout << endl; } // Make the request return TransportConnect->Request(); } // Unknown error return Transport::Document_other_error; } int Scheduler::ShouldWeRetry(Transport::DocStatus DocumentStatus) { if (DocumentStatus == Transport::Document_connection_down) return 1; if (DocumentStatus == Transport::Document_no_connection) return 1; return 0; } int Scheduler::GetNext() { static int type = 1; int Result = 0; if (type == 1) { Result = GetNext("ToBeRetrieved"); if (!Result) // No more Urls to be retrieved { ScheduleTmp.Free(); type=0; } } if (type == 0 && Config->Boolean("check_external")) Result = GetNext("CheckIfExists"); return Result; } int Scheduler::GetNext(const std::string &StrStatus) { int NumRecords = 0; const std::string SQLCommonStatement = "Select IDUrl, IDServer, Url, Status, IDReferer, HopCount from Schedule"; if (!ScheduleTmp.Empty() && ScheduleTmp.Type() == Htmysql::Htmysql_Stored) { // We got a previous stored query if (debug>2) cout << "Using previous list of Urls of server " << CurrentServer->host() << ":" << CurrentServer->port() << endl; if (DB->GetNextElement(CurrentSchedule, ScheduleTmp)) // found an item { if (debug>0) cout << "- "; return 1; } } // We haven't got a previous queue // First time or "queue" is empty // Is this a request method different than ToBeRetrieved if (StrStatus == "ToBeRetrieved") { // These Urls won't increase the list of Urls to be retrieved // So we query the DB only once. Example: 'CheckIfExists' if (debug>2) cout << "Creating a new list of Urls of type: " << StrStatus << endl; std::string SQLStatement = SQLCommonStatement + " where Status='" + StrStatus + '\'' + " ORDER by IDServer, HopCount ASC"; // Executing Select query (stored query, default) NumRecords = DB->Query (SQLStatement, &ScheduleTmp); if (NumRecords == -1) return -1; // An error occured if (NumRecords > 0) { // We found at least one record if (debug>0) cout << "+ " << NumRecords << " Urls." << endl; if (DB->GetNextElement(CurrentSchedule, ScheduleTmp) ) { if (debug>0) cout << "- "; return 1; } } } else { if (CurrentServer && CurrentServer->IsPersistentConnectionAllowed()) { if (debug>2) cout << "Creating a new list of Urls for " << CurrentServer->host() << ":" << CurrentServer->port() << " - persistent connections - type: " << StrStatus << endl; std::ostringstream SQLStatement; SQLStatement << SQLCommonStatement << " where Status='" << StrStatus << '\'' << " AND IDServer = " << CurrentServer->GetID() << " ORDER BY HopCount ASC"; // Executing Select query (stored query, default) NumRecords = DB->Query (SQLStatement.str(), &ScheduleTmp); if (NumRecords == -1) return -1; // An error occured if (debug>0) cout << "+ " << NumRecords << " Urls for " << CurrentServer->host() << ":" << CurrentServer->port() << endl; if (NumRecords > 0) { // We found at least one record if (DB->GetNextElement(CurrentSchedule, ScheduleTmp)) { if (debug>0) cout << "- "; return 1; } } } } // We take the first records, as is with a temporary query std::string SQLStatement = SQLCommonStatement + " where Status='" + StrStatus + '\'' + " ORDER BY HopCount ASC"; if (debug>2) cout << "Getting next Url - type: " << StrStatus<< endl; if (DB->Query (SQLStatement, &ScheduleTmp, Htmysql::Htmysql_Temporary) == -1) return -1; // an error occured NumRecords=DB->GetNextElement(CurrentSchedule, ScheduleTmp); if (NumRecords & debug>0) cout << "+ "; ScheduleTmp.Free(); return NumRecords; // Can be 0 or 1 } /////// // Show Anchor not found summary /////// Scheduler::Scheduler_Codes Scheduler::ShowAnchorNotFound(ostream &output) { if(DB->AnchorsNotFound(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } /////// // Show the broken links summary /////// Scheduler::Scheduler_Codes Scheduler::ShowBrokenLinks(ostream &output) { if(DB->ShowBrokenLinks(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } /////// // Show the status codes retrieved /////// Scheduler::Scheduler_Codes Scheduler::ShowStatusCode(ostream &output) { if(DB->ShowStatusCode(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } Scheduler::Scheduler_Codes Scheduler::ShowContentTypesPerServer(ostream &output) { if(DB->ShowContentTypesPerServer(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } /////// // Calculate the size to be added to URLs (links of the 'Direct' type) // After executing a query, it updates SizeAdd field of the URL table // A value of bytes to be added to a URL (an HTML document for now) // depends on the attributes used to link to another URL. For example: // images are called usually with . This is considered // as a direct link and the size of URL A is being added to the SizeAdd // field of the URL calling it. But this is added only once, even if // inside the document it's called twice, 3 times, a hundred times. // Indeed we suppose the user has a cache system on his computer. // By adding a URL size with the SizeAdd field, we obtain an approximate // URL weight. /////// Scheduler::Scheduler_Codes Scheduler::CalculateUrlSizeAdd(ostream &output) { if(DB->CalculateUrlSizeAdd(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } /////// // Check the HTML anchors /////// Scheduler::Scheduler_Codes Scheduler::SetHTMLAnchorsResults(ostream &output) { if (debug>0) output << endl << "Setting HTML Anchors results" << endl; // Create the table with all the anchors; if(DB->AnchorsTable(output) == -1) // A database error occured return Scheduler_DBError; return Scheduler_OK; } /////// // Check if a URL needs the proxy /////// bool Scheduler::UseProxy(const SchedulerEntry &s) { static std::string url; if (!Proxy) return false; // Initialization of the string url = s.GetScheduleUrl(); if (ExcludeProxy.match(url.c_str(), 0, 0) == 0) return true; // if the exclude pattern is empty, use the proxy return false; } /////// // Set the user agent depending on the configuration and machine values /////// void Scheduler::SetUserAgent(const std::string &ua) { // Set the request user agent for HTTP connections HtHTTP::SetRequestUserAgent(ua.c_str()); } htcheck-2.0.0~rc1.orig/htcheck/._Scheduler.cc0000644000000000000000000000031511245224724015630 0ustar Mac OS X  2›ÍATTRTÚ&͘5˜5com.apple.quarantineq/0000;4a95411b;Thunderbird;|org.mozilla.thunderbirdhtcheck-2.0.0~rc1.orig/NEWS0000644000000000000000000003606711245477405012277 0ustar Release notes ht://Check Copyright (c) 1999-2004 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group Some Portions Copyright (c) 2008-2009 Devise.IT srl Author: Gabriele Bartolini - Prato - Italy ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. $Id$ Release notes for htcheck-2.0.0 - xx Sep 2009 - Major code changes: - code now completely uses ANSI C++ standard library types and containers such as std::string, std::map, std:set - removed any dependency on the old ht://Dig library - Performance improvements: - usage of optimised C++ string support - usage of optimised C++ containers - usage of an internal hash map of HTML elements for faster and flexible detection which dramatically reduces the numer of string comparisons in the parser - usage of an internal hash map of HTML attributes which produces similar gains to the previous change - Run-time options: - added the 'max_urls_count' configuration option which limits the number of URLs to retrieved by a crawl - 'configure' options: - added the --db-charset configuration option to specify the database charset - expanded the size of the URL field through the --with-db-url-max-size configure option - added the '--enable-debug' option which reduces the number of output operations at compile time, making the executables faster - improved MySQL client library detection - Fixes MySQL 5.1 compilation problems due to the removal of the load_defaults() function - Added control of the (X)HTML doctype version (strict, transitional and frameset) - Added storage of the column of an HTML statement - Fixes bug about proper handling of CDATA sections (Neil Schelly ) - Fixed bug regarding wrong storage of a crawl's end time - Added storage of ht://Dig's notification tags (e-mail, subject and date). This feature can be disabled at compilation time. - Stores ht://Check version in the database - Refactored the Scheduler code in order to support more RDBMS (starting from PostgreSQL) Release notes for htcheck-1.2.4 - 04 Jul 2006 - Support for MySQL 5.0 server - Accessibility checks according to the Open Accessibility Checks Project (OAC) by the University Of Toronto (http://oac.atrc.utoronto.ca/). Supported checks: - OAC #69: MARQUEE element should not be used - OAC #71: Auto-redirect should not be used - OAC #72: Auto-refresh should not be used - Fixed minor bugs including: - OAC #37-41: wrong Hx nesting (e.g.: h2 without h1) Release notes for htcheck-1.2.3 - 01 Jun 2004 - Accessibility checks according to the Open Accessibility Checks Project (OAC) by the University Of Toronto (http://oac.atrc.utoronto.ca/). Supported checks: - OAC #1: missing ALT - OAC #2: ALT is the same as the file name - OAC #3: ALT text is not shorter than 150 characters - OAC #7: ALT text can't be empty if image is used as an anchor - OAC #37-41: wrong Hx nesting (e.g.: h2 without h1) - OAC #48: document language must be identified - OAC #50: missing TITLE - OAC #51: empty TITLE - OAC #52: TITLE is not shorter than 150 characters - OAC #58: Images used in INPUT controls must have ALT text - OAC #59: Images used in INPUT controls must have valid ALT text - OAC #60: Images used in INPUT controls should have short ALT text - OAC #61: Image used in INPUT control - ALT text should not be the same as the file name - OAC #116: deprecated use of the B element - OAC #117: deprecated use of the I element - PHP interface: - Added support for searching information regarding accessibility checks, thanks to Valentina Del Sapio (Comune di Prato) Release notes for htcheck-1.2.2 - 12 Jan 2004 - Updated to new autotools (autoconf 2.58, automake 1.7.9, libtool 1.5) - Standard C++ library automatic detection (removes compilation warnings) - Database changes: - New fields stored: - URL's doctype for HTML documents (Url table) - HTML documents' description and keywords (Url table) - PHP interface: - Added doctype field for URLs query - Added description and keywords fields for URLs query - Fixed minor bugs including: - Correct negotiation of the accepted encodings with the HTTP server - Charset recognition when it is given through the Content-Type HTTP header - Automatic recovery mechanism when a HEAD call fails with some Web servers (bug #870467) Release notes for htcheck-1.2.1 - 27 Apr 2003 - Cookies input file management, which allows to import cookies in ht://Check's jar and preload them before a crawl starts - A link's description is now stored in the database, allowing to see which text has been used when issuing a link - Also, it is possible to see which tags are included inside a link: this is useful, for instance, to see which images act as buttons. - added the 'store_link_info' attribute, which allows to control the storing of the link descriptions and linked tags. - added the 'available_charsets', which allows to check URLs against a set of predefined charsets. - fixed a serious bug which prevented referring URL to be correctly set - code updated for new autotools (autoconf 2.57, automake 1.6.3 and libtool 1.4.3). - minor changes. - Database changes: - New fields stored: - URL's Charset (Url) - Link's description (HtmlStatement) - Link's position of the tag (HtmlStatement) - PHP interface: - Automatically works with 'register_globals' off - Charsets management - Lighter layout without most of the deprecated HTML elements and attributes - Successfully compiled and installed on: - [x86] Linux 2.4 (Redhat 8.0) - [x86] Linux 2.4 (Redhat 7.3) - [x86] Linux 2.4 (Debian 2.2) - [x86] FreeBSD (4.7-STABLE) - [Alpha] Linux 2.4 (Debian 3.0) - [PPC - G4] MacOS X 10.1 SERVER Edition (statically linked) - [Sparc - Ultra60] Linux 2.4 (Debian 3.0) Release notes for htcheck-1.2.0 - 16 Sep 2002 - added the 'store_url_contents' for storing the content of an HTML document - added the Proxy Authorization support ('http_proxy_authorization') - Keep trace of the bad encoded URLs through the 'url_reserved_chars' attribute - Cookies are now handled as both the RFC2109 and Netscape say - internal URLs are distinguished by external ones and the info is now stored - HTML's 'id' attribute is now used for anchors, besides the 'name' attribute - added the 'db_name_prepend' attribute for setting the string to be prepended to every database created by htcheck (also manageable through the 'with-db-name-prepend' configure option) - added the 'remove_default_doc' attribute for removing the default document for a directory index - added the '-k' feature for dropping just the tables, not the whole db - Database changes: - New fields stored: - URL's content (Url) - HTML statement's row (HtmlStatement) - Server's IP address (Server) - Cookie version (Cookies) - PHP Interface: - safer against XSS (cross-site scripting) attacks - Show the source of an HTML file - Filter for anchors now added to the links form - Added the support for 'tidy' (tidy.sourceforge.net) which allows to show the warning, errors and suggestions provided by this validator - fixed some other minor bugs and made the code more robust Release notes for htcheck-1.1 - 18 Feb 2002 - HTTP code now handles the language negotiation, through the 'accept-language' attribute of the configuration file - More robust support of cookies with the management of the domain attribute - Cookies are now stored in the database (Cookies table) - builds under GCC3 - fixed a bug regarding the BASE tag handling - fixed some other minor bugs - PHP Interface: - German language file added (thanks to Michael Stenitzer ) - some Web structure mining indexes have been added - display of the content language of a URL as given by the server - cookies simple report in the database home page - some cosmetic changes - code now has only the 'php' extension and works without the ASP tags setting Release notes for htcheck-1.1.0b9-klunk - 25 Jun 2001 - Database structure now improved and compressed; less storage space and more speed in queries. - Indexes of the Link table are created at the end of the crawl, improving performances, and controled by the 'url_index_length' parameter - 'url_index_length' configuration attribute has been added: this attribute allows the user to control the length of the index for the Url field in the Schedule and Url tables. This attribute may affect the performance of the crawls, as long as the length of an index can either slow down or speed up the spidering process. - Cookies summary (with -s option) - POSIX standard: --version and --help compatible (with getopt_long) - libtool 1.4 support - fixed many bugs regarding the parser of the spider, which is now more robust - cleaned code inside the 'core' source files - PHP Interface: - Automatic and manual choosing of ht://Check databases - Javascript URLs query support - Description of a connection trouble when a URL is not retrieved - Fixed minor bugs and done cosmetic changes Release notes for htcheck-1.1.0b8-muttley - 27 Apr 2001 - Finally runs on Solaris - MySQL 3.23.xx users: now datetime fields are stored properly - Link to e-mail are now stored and can be seen - Link with a 'file:/' call are now considered as errors - User Agent now shows the version and the platform - Fixed a bug regarding the HTML parser with (very) malformed tags - Fixed many minor bugs - PHP Interface: - Enhancements: retrieve e-mail links - Fixed some bugs Release notes for htcheck-1.1.0b7-anaconda - 28 Mar 2001 - Fixed library versioning - Man page now provided (thanks to Marco Nenciarini - Static linking now works fine - New library architecture in order to provide no conflict with ht://Dig; they are all 'package' libs instead of global libs. - 'optimize_db' has now been set to false by default - PHP Interface: - PHP3 compatibility issued - removed .inc extension as PHP source Release notes for htcheck-1.1.0b6-zizou - 12 Mar 2001 - HTTP Cookies support now enabled - New type of link result: 'Not authorized' - Fixed configuration error for load_mysql_defaults function and raised by Free BSD users. - disable_cookies attribute added in the configuration - Update of the HtDateTime class according to ht://Dig's one - PHP interface: - better output - added images for link results - bug in qryurls.php and listlinks.php has been fixed - css file added for content visualization - dynamic language detection (english or italian for now) - small bugs fixes Release notes for htcheck-1.1.0b5-flukekelso - 24 Jan 2001 - Fixed a bug in the database initialization - Default MySQL authentication (through /etc/my.cnf or ~/.my.cnf file) - 'OBJECT' HTML tag now correctly parsed - Basic HTTP Authentication enabled - PHP interface improvements: - English and italian languages available - Get info regarding URLs by choosing through a form lots of parameters (i.e. URL, status code values, content-type, size and title if present) - Other small enhancements - Documentation started - Fixed other minor bugs Release notes for htcheck-1.1.0b4-utero - 07 Sep 2000 - Now ht://Check uses MySQL's option file in order to get connection information such host, user, password, port and socket. - HTTP Proxy support (to be tested more deeply) - PHP interface's improvements: - It's now possible to look for broken links and anchors not found by using the form in listlinks.php. Filter can now be made with the LinkResult as well as the LinkType (and the referencing and referenced URLs like before). - Fixed a bug regarding SGML entities with anchors and the "#top" anchor is now considered as valid. - Sources have now been cleaned from most of the compilation warnings. Release notes for htcheck-1.1.0b3-utero - 22 Aug 2000 - Better summary of the broken links (more complete and reliable). - HTML anchors check is now performed and a field (LinkResult) has been added. It contains info about the link, if it's ok, broken, redirected and if a anchor is present and not found it warns about it. - Summary of anchors not found, enabled or disabled through the configuration attribute 'summary_anchor_not_found'. - The table 'htCheck' has been added to the database: its purpose is to store the general info of the crawl (user, start time, end time, etc ...). - Added 'optimize_db' configuration parameter for optimizing the tables of the database. Default is true. - Added 'sql_big_table_option' configuration parameter for performing huge queries. Default is true. - Fixed the bug regarding HTTP persistent connections with a preemptive HEAD call before the GET. - HTTP redirections are now treated as special links and stored into the link table with a 'Redirection' LinkResult flag. - Referer management now is done right. - Hop count management and storing added. - Added 'max_hop_count' configuration parameter for limiting the crawl to a certain distance from the starting URL. - PHP Interface: - The configure and make system has been modified in order to manage the php scripts. A new configuration option has been issued (--with-php-dir=DIR) and the make install procedure now look after the scripts too. - Page for querying the links retrieved, with a form which we can set filters through, regarding both the source and the destination URLs (with like and not like SQL statements); - Page for dropping a database. - Italian language added (include/italian.inc - See the INSTALL file) Release notes for htcheck-1.1.0b2-utero - 08 Aug 2000 - A simple PHP interface has been added. You need PHP (either as a standalone CGI interpreter or - if you have Apache - as an Apache module) compiled with the mysql add-on module. For its installation look at the INSTALL file. - The 'Link' table contains another field, the 'Anchor': its purpose is to store the 'token' after the '#' char in a link (for example in , it contains 'anchorname). Release notes for htcheck-1.1.0b1-utero - 12 May 2000 A more stable version, but tested only on a RedHat 6.x system (see README file). These new features have been added: - Now it's possible to determine if a link is normal (like A href ones), that is to say the user has to click in order to get it, or is direct (like IMG src) that is to say it's automatically loaded (potentially) by the user's browser. - Added a field to the Url table which contains the size to be added at load time in order to obtain the total weight of the document: it contains the sum Release notes for htcheck-1.1.0b-utero - 5 May 2000 This is the very first release. It can be used for checking broken links. Here are the main features: - Access to a MySQL database (in this form: user@localhost, where user is the PID owner). - HTTP 1.1 connections working with persistent connections choose - At the end, show of broken links, servers seen and content-types encountered. - Creation of these tables in the database: Url, Server, Link, Schedule, HtmlStatement, HtmlAttribute. htcheck-2.0.0~rc1.orig/htcommon/0000755000000000000000000000000011245531570013402 5ustar htcheck-2.0.0~rc1.orig/htcommon/URLRef.cc0000644000000000000000000000166111177570271015021 0ustar // // URLRef.cc // // URLRef: A definition of a URL/Referer pair with associated hopcount // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: URLRef.cc,v 1.2 2000-08-30 08:41:04 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "URLRef.h" //***************************************************************************** // URLRef::URLRef() // URLRef::URLRef() { hopcount = 0; } //***************************************************************************** // URLRef::~URLRef() // URLRef::~URLRef() { } //***************************************************************************** // int URLRef::compare(const URLRef& to) const { return hopcount - to.hopcount; } htcheck-2.0.0~rc1.orig/htcommon/HtDefaults.h0000644000000000000000000000124511177570271015625 0ustar /////// // // HtDefaults.h // // Default configuration values for ht://Check // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtDefaults.h,v 1.5 2003-12-30 09:38:47 angusgb Exp $ // /////// #ifndef _HTDEFAULTS_H_ #define _HTDEFAULTS_H_ #include "Configuration.h" extern ConfigDefaults defaults[]; extern Configuration config; #endif htcheck-2.0.0~rc1.orig/htcommon/RunInfo.cc0000644000000000000000000000224411177570271015300 0ustar /////// // RunInfo.cc // RunInfo Class definitions // // Class to that contains all the general info about the run // They will be stored into the 'htCheck' table of the database // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: RunInfo.cc,v 1.10 2008-04-11 11:08:24 angusgb Exp $ // // G.Bartolini // started: 18.08.2000 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "RunInfo.h" /////// // Construction /////// RunInfo::RunInfo () : StartTime(), FinishTime(), RetrievedUrls(0), TotUrls(0), ScheduledUrls(0), HTTPSeconds(0), HTTPRequests(0), HTTPBytes(0), TCPConnections(0), ServerChanges(0), AccessibilityChecks(1), #if HTDIG_NOTIFICATION HtDigNotification(1) #else HtDigNotification(0) #endif { } /////// // Destruction /////// RunInfo::~RunInfo () { } htcheck-2.0.0~rc1.orig/htcommon/HtmlStatement.h0000644000000000000000000001072011177570271016351 0ustar /////// // HtmlStatement.h // HtmlStatement Class declaration // // Class for HtmlStatement storage // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlStatement.h,v 1.13 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifndef _HTMLSTATEMENT_H #define _HTMLSTATEMENT_H #include #ifdef HAVE_STD #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #include #endif /* HAVE_STD */ class HtmlStatement : public Object { // Write the object to the output friend ostream& operator<<(ostream&, const HtmlStatement& ); public: // Possible HTML 4 tags enum ElementLabel { Tag_Unknown, Tag_A, Tag_ABBR, Tag_ACRONYM, Tag_ADDRESS, Tag_APPLET, Tag_AREA, Tag_B, Tag_BASE, Tag_BASEFONT, Tag_BDO, Tag_BIG, Tag_BLINK, Tag_BLOCKQUOTE, Tag_BODY, Tag_BR, Tag_BUTTON, Tag_CAPTION, Tag_CENTER, Tag_CITE, Tag_CODE, Tag_COL, Tag_COLGROUP, Tag_DD, Tag_DEL, Tag_DFN, Tag_DIR, Tag_DIV, Tag_DL, Tag_DT, Tag_EM, Tag_EMBED, Tag_FIELDSET, Tag_FONT, Tag_FORM, Tag_FRAME, Tag_FRAMESET, Tag_H1, Tag_H2, Tag_H3, Tag_H4, Tag_H5, Tag_H6, Tag_HEAD, Tag_HR, Tag_HTML, Tag_I, Tag_IFRAME, Tag_IMG, Tag_INPUT, Tag_INS, Tag_ISINDEX, Tag_KBD, Tag_LABEL, Tag_LAYER, Tag_LEGEND, Tag_LI, Tag_LINK, Tag_MAP, Tag_MARQUEE, Tag_MENU, Tag_META, Tag_NOEMBED, Tag_NOFRAMES, Tag_NOSCRIPT, Tag_OBJECT, Tag_OL, Tag_OPTGROUP, Tag_OPTION, Tag_P, Tag_PARAM, Tag_PRE, Tag_Q, Tag_S, Tag_SAMP, Tag_SCRIPT, Tag_SELECT, Tag_SHADOW, Tag_SMALL, Tag_SPAN, Tag_STRIKE, Tag_STRONG, Tag_STYLE, Tag_SUB, Tag_SUP, Tag_TABLE, Tag_TBODY, Tag_TD, Tag_TEXTAREA, Tag_TFOOT, Tag_TH, Tag_THEAD, Tag_TITLE, Tag_TR, Tag_TT, Tag_U, Tag_UL, Tag_VAR }; // Construction / Destruction HtmlStatement(); virtual ~HtmlStatement(); /////// // Public Interface /////// void Reset(); void SetIDUrl (unsigned int id) { IDUrl = id; } void SetTagPosition (unsigned int tp) { TagPosition = tp; } void SetTag (const std::string &t); void SetStatement (const std::string &s) { Statement = s; } void SetRow (unsigned int r) { Row = r; } void SetCol (unsigned int c) { Col = c; } void SetLinkTagPosition (unsigned int ltp) { LinkTagPosition = ltp; } void empty (const bool empty = true) { _empty_tag = empty; } unsigned int GetIDUrl() const { return IDUrl; } unsigned int GetTagPosition() const { return TagPosition; } const std::string &GetTag() const { return Tag; } const std::string &GetLowercaseTag() const { return LowercaseTag; } const std::string &GetStatement() const { return Statement; } unsigned int GetRow() const { return Row; } unsigned int GetCol() const { return Col; } unsigned int GetLinkTagPosition() const { return LinkTagPosition; } const ElementLabel GetElementLabel() const { return _tag_label; } const bool isClosingTag() const { return _closing_tag; } const bool isEmptyTag() const { return _empty_tag; } // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} // Initialise the map of tags static void initElementsMap(); /////// // Protected attributes /////// protected: unsigned int IDUrl; unsigned int TagPosition; std::string Tag; std::string LowercaseTag; std::string Statement; unsigned int Row; unsigned int Col; unsigned int LinkTagPosition; ElementLabel _tag_label; bool _closing_tag; bool _empty_tag; /////// // Static attributes /////// static int debug; // Run-time debugging level typedef std::map ElementsMap; static ElementsMap TagMap; }; #endif htcheck-2.0.0~rc1.orig/htcommon/Link.h0000644000000000000000000001077711177570271014471 0ustar /////// // Link.h // Link Class declaration // // Class for Link storage // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Link.h,v 1.19 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifndef _LINK_H #define _LINK_H #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ #include class Link : public Object { // Write the object to the output friend ostream &operator <<( ostream &, const Link & ); public: // Construction / Destruction Link(); virtual ~Link(); enum Link_Type { Link_Normal, Link_Direct, Link_Redirection }; enum Link_Result { Link_NotChecked, Link_NotRetrieved, Link_OK, Link_Broken, Link_Redirected, Link_AnchorNotFound, Link_EMail, Link_Javascript, Link_NotAuthorized, Link_BadEncoded }; enum Link_Domain { Link_Unknown, // Unknows Link_SameServer, // Link to a document that resides on the same Web server (host:port) Link_Internal, // Link to a different server, but inside the limits Link_External // Link towards a URL that's out of the limits }; /////// // Public Interface /////// void Reset(); void SetIDUrlSrc (unsigned int id) { IDUrlSrc = id; } void SetIDUrlDest (unsigned int id) { IDUrlDest = id; } void SetTagPosition (unsigned int tp) { TagPosition = tp; } void SetAttrPosition (unsigned int ap) { AttrPosition = ap; } void SetAnchor (const std::string &a) { Anchor = a; } void SetLinkType (Link_Type t) { LinkType = t; } void SetLinkResult (Link_Result r) { LinkResult = r; } void SetLinkDomain (Link_Domain d) { LinkDomain = d; } // Insert into a string the value for the LinkType // (converts a Link_Type value into a std::string). void RetrieveLinkType (std::string &) const; // Insert into a string the value for the LinkResult // (converts a Link_Result value into a std::string). void RetrieveLinkResult (std::string &) const; // Insert into a string the value for the LinkDomain // (converts a Link_Domain value into a std::string). void RetrieveLinkDomain (std::string &) const; int SetLinkType (const std::string& Type); // Set the Link_Type value // depending on the Type value int SetLinkResult (const std::string& Result); // Set the Link_Result value // depending on the Result value int SetLinkDomain (const std::string& Result); // Set the Link_Result value // depending on the Result value unsigned int GetIDUrlSrc() const { return IDUrlSrc; } unsigned int GetIDUrlDest() const { return IDUrlDest; } unsigned int GetTagPosition()const { return TagPosition; } unsigned int GetAttrPosition() const { return AttrPosition; } const std::string &GetAnchor() const { return Anchor; } Link_Type GetLinkType() const { return LinkType; } Link_Result GetLinkResult() const { return LinkResult; } Link_Domain GetLinkDomain() const { return LinkDomain; } // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} /////// // Protected attributes /////// protected: unsigned int IDUrlSrc; unsigned int IDUrlDest; unsigned int TagPosition; unsigned int AttrPosition; std::string Anchor; Link_Type LinkType; Link_Result LinkResult; Link_Domain LinkDomain; /////// // Static attributes /////// static int debug; // Run-time debugging level }; #endif htcheck-2.0.0~rc1.orig/htcommon/Makefile.am0000644000000000000000000000170411177570271015445 0ustar # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy include $(top_srcdir)/Makefile.config pkglib_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = AccessibilityCheck.cc \ HtDefaults.cc \ HtmlAttribute.cc \ HtmlStatement.cc \ Link.cc \ RunInfo.cc \ SchedulerEntry.cc \ Server.cc \ URL.cc \ URLRef.cc \ _Server.cc \ _Url.cc libcommon_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = AccessibilityCheck.h \ HtDefaults.h \ HtmlAttribute.h \ HtmlStatement.h \ Link.h \ RunInfo.h \ SchedulerEntry.h \ Server.h \ URL.h \ URLRef.h \ _Server.h \ _Url.h LOCAL_DEFINES= -DDB_NAME=\"$(DB_NAME)\" \ -DDB_NAME_PREPEND=\"$(DB_NAME_PREPEND)\" \ -DCOMMON_DIR=\"$(COMMON_DIR)\" \ -DCONFIG_DIR=\"$(CONFIG_DIR)\" htcheck-2.0.0~rc1.orig/htcommon/_Url.cc0000644000000000000000000003445711177570271014634 0ustar /////// // _Url.cc // _Url Class definitions // // Class to interface with Url table of mysql Database // This inherits from the Url class. // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: _Url.cc,v 1.26 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.07.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include #include "_Url.h" /////// // Static variables /////// unsigned int _Url::TotUrls = 0; /////// // Construction /////// _Url::_Url () : URL (), IDUrl(0), IDServer(0), HTTPContentType(), ContentType(), TransferEncoding(), LastModified(0), LastAccess(0), Size(0), StatusCode(0), ReasonPhrase(), Location(), pServer(0), Title(), ConnStatus(Url_OtherError), ContentLanguage(), Contents(0), HTTPCharset(), Charset(), DocType(Url_Undefined), DocTypeVersion(Url_Doctype_Undefined), DocTypeObsolete(true), Description(), Keywords(), #ifdef HTDIG_NOTIFICATION HtDigEmail(), HtDigEmailSubject(), HtDigNotificationDate(), #endif _HideLastModified(0) { } _Url::_Url (const std::string &url) : URL (url.c_str()), IDUrl(0), IDServer(0), HTTPContentType(), ContentType(), TransferEncoding(), LastModified(0), LastAccess(0), Size(0), StatusCode(0), ReasonPhrase(), Location(), pServer(0), Title(), ConnStatus(Url_OtherError), ContentLanguage(), Contents(0), HTTPCharset(), Charset(), DocType(Url_Undefined), DocTypeVersion(Url_Doctype_Undefined), DocTypeObsolete(true), Description(), Keywords(), #ifdef HTDIG_NOTIFICATION HtDigEmail(), HtDigEmailSubject(), HtDigNotificationDate(), #endif _HideLastModified(0) { } _Url::_Url (const _Url &rhs) : URL (rhs), IDUrl(rhs.IDUrl), IDServer(rhs.IDServer), HTTPContentType(rhs.HTTPContentType), ContentType(rhs.ContentType), TransferEncoding(rhs.TransferEncoding), LastModified(rhs.LastModified), LastAccess(rhs.LastAccess), Size(rhs.Size), StatusCode(rhs.StatusCode), ReasonPhrase(rhs.ReasonPhrase), Location(rhs.Location), pServer(rhs.pServer), Title(rhs.Title), ConnStatus(rhs.ConnStatus), ContentLanguage(rhs.ContentLanguage), Contents(0), HTTPCharset(rhs.HTTPCharset), Charset(rhs.Charset), DocType(rhs.DocType), Description(rhs.Description), Keywords(rhs.Keywords), #ifdef HTDIG_NOTIFICATION HtDigEmail(rhs.HtDigEmail), HtDigEmailSubject(rhs.HtDigEmailSubject), HtDigNotificationDate(rhs.HtDigNotificationDate), #endif _HideLastModified(rhs._HideLastModified) { if (rhs.Contents) { Contents = new std::string(*(rhs.Contents)); } } _Url::_Url (const std::string &ref, _Url &parent) : URL (ref.c_str(), parent), IDUrl(0), IDServer(0), HTTPContentType(), ContentType(), TransferEncoding(), LastModified(0), LastAccess(0), Size(0), StatusCode(0), ReasonPhrase(), Location(), pServer(0), Title(), ConnStatus(Url_OtherError), ContentLanguage(), Contents(0), HTTPCharset(), Charset(), DocType(Url_Undefined), DocTypeVersion(Url_Doctype_Undefined), DocTypeObsolete(true), Description(), Keywords(), #ifdef HTDIG_NOTIFICATION HtDigEmail(), HtDigEmailSubject(), HtDigNotificationDate(), #endif _HideLastModified(0) { } /////// // Destruction /////// _Url::~_Url () { if (Contents) delete Contents; } /////// // Reset /////// void _Url::Reset() { IDUrl = 0; IDServer = 0; HTTPContentType.clear(); ContentType.clear(); TransferEncoding.clear(); Size = 0; StatusCode = 0; ReasonPhrase.clear(); Location.clear(); pServer = 0; Title.clear(); ContentLanguage.clear(); Charset.clear(); if (LastModified) delete LastModified; if (LastAccess) delete LastAccess; ConnStatus = Url_OtherError; if (Contents) { delete Contents; Contents = 0; } _HideLastModified = false; } /////// // Managing the Connection Status of the Url /////// void _Url::SetLastModified (HtDateTime *d) { // If we had a previous value, let's delete it // if (LastModified) // delete LastModified; LastModified = d; // just change it } /////// // Gives back the last modified time value for a URL // depending also on the settings of the HideLastModified // variable (in some cases we don't wanna show a last modified // value - not found URLs, redirected ones, etc.) /////// const HtDateTime *_Url::GetLastModified () const { if (_HideLastModified) return 0; else return LastModified; } /////// // Managing the Connection Status of the Url /////// /////// // Converts the Url_ConnStatus value into the corresponding // std::string value /////// void _Url::RetrieveConnStatus(std::string &Status) const { switch(GetConnStatus()) { case (Url_OK): Status="OK"; break; case (Url_NoHeader): Status="NoHeader"; break; case (Url_NoHost): Status="NoHost"; break; case (Url_NoPort): Status="NoPort"; break; case (Url_ConnectionDown): Status="ConnectionDown"; break; case (Url_NoConnection): Status="NoConnection"; break; case (Url_ServiceNotValid): Status="ServiceNotValid"; break; case (Url_OtherError): Status="OtherError"; break; case (Url_ServerError): Status="ServerError"; break; } } /////// // Converts the Status string value // into the corresponding Schedule_Status value // Returns 0 if an error occurs, 1 if OK. /////// int _Url::SetConnStatus(const std::string &Status) { if (Status == "OK") SetConnStatus (Url_OK); else if (Status == "NoHeader") SetConnStatus (Url_NoHeader); else if (Status == "NoHost") SetConnStatus (Url_NoHost); else if (Status == "NoPort") SetConnStatus (Url_NoPort); else if (Status == "NoConnection") SetConnStatus (Url_NoConnection); else if (Status == "ConnectionDown") SetConnStatus (Url_ConnectionDown); else if (Status == "ServiceNotValid") SetConnStatus (Url_ServiceNotValid); else if (Status == "OtherError") SetConnStatus (Url_OtherError); else if (Status == "ServerError") SetConnStatus (Url_ServerError); else return 0; return 1; } /////// // Converts the Url_DocType value into the corresponding // std::string value /////// void _Url::RetrieveDocType(std::string &DocType) const { switch(GetDocType()) { case (Url_Undefined): DocType=""; break; case (Url_XHtml_11_Strict): DocType="xhtml-11"; break; case (Url_XHtml_10_Strict): DocType="xhtml-10"; break; case (Url_XHtml_10_Transitional): DocType="xhtml-10-transitional"; break; case (Url_XHtml_10_Frameset): DocType="xhtml-10-frameset"; break; case (Url_Html_401_Strict): DocType="html-401"; break; case (Url_Html_401_Transitional): DocType="html-401-transitional"; break; case (Url_Html_401_Frameset): DocType="html-401-frameset"; break; case (Url_Html_40_Strict): DocType="html-40"; break; case (Url_Html_40_Transitional): DocType="html-40-transitional"; break; case (Url_Html_40_Frameset): DocType="html-40-frameset"; break; case (Url_Html_ISO_IEC_15445_2000): DocType="html-iso-iec-15445-2000"; break; case (Url_Html_32): DocType="html-32"; break; case (Url_Html_20): DocType="html-20"; break; case (Url_Html_20_Level2): DocType="html-20-level2"; break; case (Url_Html_20_Level1): DocType="html-20-level1"; break; case (Url_Html_20_Strict): DocType="html-20-strict"; break; case (Url_Html_20_Strict_Level1): DocType="html-20-strict-level1"; break; case (Url_Not_Public): DocType="not-public"; break; case (Url_Not_Html): DocType="not-html"; break; case (Url_Unknown): DocType="unknown"; break; } } /////// // Set the content type (from the meta) /////// void _Url::SetContentType (const char* Ct) { ContentType = Ct; } /////// // Set the content type and, in case the charset is specified, // grabs it and puts it into the Charset field. // For instance: "text/html; iso-8859-1" now set the ContentType to text/html // and the charset to iso-8859-1. /////// void _Url::SetHTTPContentType (const std::string &Ct) { const char *p = Ct.c_str(); HTTPContentType.clear(); // Append the content-type while (p && *p && (*p != ';' && !isspace(*p))) { HTTPContentType.push_back(*p); ++p; } while (p && *p && (*p == ';' || isspace(*p))) ++p; if (!mystrncasecmp(p, "charset", 7)) { // Found charset (go after that) while (p && *p && *p != '=') ++p; while (p && *p && (*p == '=' || isspace(*p))) ++p; HTTPCharset.clear(); // Clean the charset while (p && *p && !isspace(*p)) { // Append the charset HTTPCharset.push_back(*p); ++p; } } } /////// // Converts the DocType string value // into the corresponding Url_DocType value // Returns 0 if an error occurs, 1 if OK. /////// int _Url::SetDocType(const std::string &DocType) { DocTypeObsolete = true; DocTypeVersion = Url_Doctype_Undefined; if (DocType.length() > 0 ) { const char *p = DocType.c_str(); if (!mystrncasecmp(p, "html", 4)) { for (p += 4; *p && isspace(*p); ++p); if (!mystrncasecmp(p, "public", 6)) { for (p += 6; *p && (isspace(*p) || *p != '"'); ++p); if (*p && *p == '"') { char doctype[128]; char *p2 = doctype; *p2 = '\0'; for (++p; *p && *p != '"'; ++p) { // Skip consecutive spaces or initial spaces if (isspace(*p)) { if (p2 > doctype && isspace(* (p2-1))) continue; // Skip a space if the preceding character is a '/' or a '-' if (p2 > doctype && (*(p2-1) == '/' || *(p2-1) == '-')) continue; // Skip a space if the following character is a '/' or a '-' if (*(p+1) && (*(p+1) == '/' || *(p+1) == '-')) continue; } *p2++ = *p; } *p2 = '\0'; // closes the string // Let's detect the DOCTYPE declaration if (!mystrcasecmp(doctype, "-//W3C//DTD XHTML 1.1//EN")) { SetDocType(Url_XHtml_11_Strict); DocTypeVersion = Url_Doctype_Strict; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD XHTML 1.0 Strict//EN")) { SetDocType(Url_XHtml_10_Strict); DocTypeVersion = Url_Doctype_Strict; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD XHTML 1.0 Transitional//EN")) { SetDocType(Url_XHtml_10_Transitional); DocTypeVersion = Url_Doctype_Transitional; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD XHTML 1.0 Frameset//EN")) { SetDocType(Url_XHtml_10_Frameset); DocTypeVersion = Url_Doctype_Frameset; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.01//EN")) { SetDocType(Url_Html_401_Strict); DocTypeVersion = Url_Doctype_Strict; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.01 Transitional//EN")) { SetDocType(Url_Html_401_Transitional); DocTypeVersion = Url_Doctype_Transitional; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.01 Frameset//EN")) { SetDocType(Url_Html_401_Frameset); DocTypeVersion = Url_Doctype_Frameset; DocTypeObsolete = false; } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.0//EN")) { SetDocType(Url_Html_40_Strict); DocTypeVersion = Url_Doctype_Strict; } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.0 Transitional//EN")) { DocTypeVersion = Url_Doctype_Transitional; SetDocType(Url_Html_40_Transitional); } else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 4.0 Frameset//EN")) { SetDocType(Url_Html_40_Frameset); DocTypeVersion = Url_Doctype_Frameset; } else if (!mystrcasecmp(doctype, "ISO/IEC 15445:2000//DTD HyperText Markup Language//EN") || !mystrcasecmp(doctype, "ISO/IEC 15445:2000//DTD HTML//EN")) SetDocType(Url_Html_ISO_IEC_15445_2000); else if (!mystrcasecmp(doctype, "-//W3C//DTD HTML 3.2//EN") || !mystrcasecmp(doctype, "-//W3C//DTD HTML 3.2 Final//EN")) SetDocType(Url_Html_32); else if (!mystrcasecmp(doctype, "-//IETF//DTD HTML//EN") || !mystrcasecmp(doctype, "-//IETF//DTD HTML 2.0//EN")) SetDocType(Url_Html_20); else if (!mystrcasecmp(doctype, "-//IETF//DTD HTML 2.0 Level 2//EN")) SetDocType(Url_Html_20_Level2); else if (!mystrcasecmp(doctype, "-//IETF//DTD HTML 2.0 Level 1//EN")) SetDocType(Url_Html_20_Level1); else if (!mystrcasecmp(doctype, "-//IETF//DTD HTML 2.0 Strict//EN")) SetDocType(Url_Html_20_Strict); else if (!mystrcasecmp(doctype, "-//IETF//DTD HTML 2.0 Strict Level 1//EN")) SetDocType(Url_Html_20_Strict_Level1); else SetDocType(Url_Unknown); } else SetDocType(Url_Unknown); } else SetDocType(Url_Not_Public); } else SetDocType(Url_Not_Html); } else SetDocType(Url_Undefined); return 1; } void _Url::SetContents (const char* const c) { ReleaseContents(); if (c) { Contents = new std::string(c); } } void _Url::ReleaseContents() { if (Contents) { delete Contents; Contents = 0; } } htcheck-2.0.0~rc1.orig/htcommon/HtmlAttribute.cc0000644000000000000000000000632711177570271016516 0ustar /////// // HtmlAttribute.cc // HtmlAttribute Class definitions // // Class for Html statements // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlAttribute.cc,v 1.8 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtmlAttribute.h" // Static variables initialization int HtmlAttribute::debug = 0; // Static map of tags HtmlAttribute::AttributesMap HtmlAttribute::AttrMap; /////// // Construction /////// HtmlAttribute::HtmlAttribute() : IDUrl(0), TagPosition(0), AttrPosition(0), Attribute(), LowercaseAttribute(), Content(), _attr_label(Attr_Unknown) { } /////// // Destruction /////// HtmlAttribute::~HtmlAttribute () { } /////// // Reset the schedule content /////// void HtmlAttribute::Reset() { IDUrl = 0; TagPosition = 0; AttrPosition = 0; Attribute.clear(); LowercaseAttribute.clear(); Content.clear(); _attr_label = Attr_Unknown; } /////// // Output HtmlAttribute object /////// std::ostream& operator<<(std::ostream& output, const HtmlAttribute& s) { output << s.IDUrl << " / " << s.TagPosition << " / " << s.AttrPosition; if (s.debug < 3) return output; // Only if debug level is greater than 2 output << " (Attribute : " << s.Attribute << " - Content <" << s.Content << ">)"; return output; } void HtmlAttribute::SetAttribute (const std::string &a) { Attribute = a; LowercaseAttribute.clear(); for (std::string::const_iterator c(a.begin()); c != a.end(); ++c) { LowercaseAttribute.push_back(tolower(*c)); } // Assign the tag label AttributesMap::const_iterator e(AttrMap.find(LowercaseAttribute)); if (e == AttrMap.end()) { _attr_label = Attr_Unknown; AttrMap.insert(std::make_pair(LowercaseAttribute, _attr_label)); // cache //std::cout << "Map " << LowercaseAttribute << " to UNKNOWN" << std::endl; } else { _attr_label = e->second; //std::cout << "Map " << LowercaseAttribute << " to " << e->second << std::endl; } } // Initialise the map of tags void HtmlAttribute::initAttributesMap() { if (AttrMap.empty()) { AttrMap.insert(std::make_pair("alt", Attr_ALT)); AttrMap.insert(std::make_pair("href", Attr_HREF)); AttrMap.insert(std::make_pair("id", Attr_ID)); AttrMap.insert(std::make_pair("name", Attr_NAME)); AttrMap.insert(std::make_pair("content", Attr_CONTENT)); AttrMap.insert(std::make_pair("lang", Attr_LANG)); AttrMap.insert(std::make_pair("xml:lang", Attr_XML_LANG)); AttrMap.insert(std::make_pair("src", Attr_SRC)); AttrMap.insert(std::make_pair("data", Attr_DATA)); AttrMap.insert(std::make_pair("lowsrc", Attr_LOWSRC)); AttrMap.insert(std::make_pair("type", Attr_TYPE)); AttrMap.insert(std::make_pair("background", Attr_BACKGROUND)); } } htcheck-2.0.0~rc1.orig/htcommon/URLRef.h0000644000000000000000000000221411177570271014656 0ustar // // URLRef.h // // URLRef: A definition of a URL/Referer pair with associated hopcount // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: URLRef.h,v 1.4 2008-11-16 18:28:52 angusgb Exp $ // // #ifndef _URLRef_h_ #define _URLRef_h_ #include "Object.h" #include "URL.h" class URLRef : public Object { public: // // Construction/Destruction // URLRef(); ~URLRef(); const URL &GetURL() const {return url;} int GetHopCount() const {return hopcount;} const URL &GetReferer() const {return referer;} void SetURL(const URL &u) {url = u;} void SetHopCount(int h) {hopcount = h;} void SetReferer(const URL &ref) {referer = ref;} int compare(const Object& to) const { return compare((const URLRef&) to); } int compare(const URLRef& to) const; private: URL url; URL referer; int hopcount; }; #endif htcheck-2.0.0~rc1.orig/htcommon/_Url.h0000644000000000000000000002130511177570271014462 0ustar /////// // _Url.h // _Url Class declaration // // Class to interface with Url table of mysql Database // This inherits from the Url class. // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: _Url.h,v 1.25 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.07.1999 /////// #ifndef __URL_H #define __URL_H #include #include "_Server.h" #include "URL.h" #include "HtDateTime.h" class _Url : public URL { public: // Construction / Destruction _Url(); _Url(const std::string &url); _Url(const _Url &url); _Url(const std::string &ref, _Url &parent); virtual ~_Url(); enum Url_ConnStatus { Url_OK, Url_NoHeader, Url_NoHost, Url_NoPort, Url_NoConnection, Url_ConnectionDown, Url_ServiceNotValid, Url_ServerError, Url_OtherError }; enum Url_DocType { Url_Undefined, Url_Not_Public, Url_Not_Html, Url_XHtml_11_Strict, Url_XHtml_10_Strict, Url_XHtml_10_Transitional, Url_XHtml_10_Frameset, Url_Html_401_Strict, Url_Html_401_Transitional, Url_Html_401_Frameset, Url_Html_40_Strict, Url_Html_40_Transitional, Url_Html_40_Frameset, Url_Html_ISO_IEC_15445_2000, Url_Html_32, Url_Html_20, Url_Html_20_Level2, Url_Html_20_Level1, Url_Html_20_Strict, Url_Html_20_Strict_Level1, Url_Unknown }; enum Url_DocTypeVersion { Url_Doctype_Undefined, Url_Doctype_Strict, Url_Doctype_Transitional, Url_Doctype_Frameset }; /////// // Public Interface /////// void Reset(); /////// // Interface with protected methods /////// void SetID (unsigned int ID) { IDUrl = ID; } void SetIDServer (unsigned int ID) { IDServer = ID; } void SetHTTPContentType (const std::string &Ct); void SetContentType (const char* Ct); void SetTransferEncoding (const std::string &Te) { TransferEncoding = Te; } void SetLastModified (HtDateTime *d); void SetLastAccess (HtDateTime *d) { LastAccess = d; } void SetSize (long s) { Size = s; } void SetStatusCode (unsigned int sc) { StatusCode = sc; } void SetReasonPhrase (const std::string &rp) { ReasonPhrase = rp; } void SetLocation (const std::string &l) { Location = l; } void SetContentLanguage (const std::string &cl) { ContentLanguage = cl; } void SetServer (_Server *s) { pServer = s; } void SetConnStatus (Url_ConnStatus s) { ConnStatus = s; } void RetrieveConnStatus (std::string &) const; // Insert into a string the value // for the ConnStatus // (converts a Url_ConnStatus // value into a std::string). void RetrieveDocType (std::string &) const; // Insert into a string the value // for the DocType // (converts a Url_DocType // value into a std::string). int SetConnStatus (const std::string &Status); // Set the Url_ConnStatus value // depending on the Status value int SetDocType (const std::string &DocType); // Set the Url_DocType value // depending on the DocType value // Info regarding the web page void SetTitle (const std::string &t) { Title = t; } void SetContents (const char* const c); void ReleaseContents(); void SetCharset (const std::string &c) { Charset = c; } void SetDocType (Url_DocType d) { DocType = d; } void SetDescription (const std::string &d) { Description = d; } void SetKeywords (const std::string &k) { Keywords = k; } #ifdef HTDIG_NOTIFICATION void SetHtDigEmail (const std::string &k) { HtDigEmail = k; } void SetHtDigEmailSubject (const std::string &k) { HtDigEmailSubject = k; } void SetHtDigNotificationDate (const std::string &k) { HtDigNotificationDate = k; } #endif unsigned int GetID () const { return IDUrl; } unsigned int GetIDServer () const { return IDServer; } const std::string &GetHTTPContentType () const { return HTTPContentType; } const std::string &GetHTTPCharset () const { return HTTPCharset; } const std::string &GetContentType () const { return ContentType; } const std::string &GetTransferEncoding () const { return TransferEncoding; } const HtDateTime *GetLastModified () const; const HtDateTime *GetLastAccess () const { return LastAccess; } long GetSize() const { return Size; } unsigned int GetStatusCode() const { return StatusCode; } const std::string &GetReasonPhrase() const { return ReasonPhrase; } const std::string &GetLocation() const { return Location; } const std::string &GetContentLanguage() const { return ContentLanguage; } const _Server *GetServer() const { return pServer; } const std::string &GetTitle() const { return Title; } const std::string* const GetContents() const { return Contents; } const std::string &GetCharset() const { return Charset; } Url_DocType GetDocType() const { return DocType; } Url_ConnStatus GetConnStatus() const { return ConnStatus; } void HideLastModified() { _HideLastModified = true; } const std::string &GetDescription() const { return Description; } const std::string &GetKeywords() const { return Keywords; } const bool isDocTypeStrict() const { return DocTypeVersion == Url_Doctype_Strict; } const bool isDocTypeTransitional() const { return DocTypeVersion == Url_Doctype_Transitional; } const bool isDocTypeFrameset() const { return DocTypeVersion == Url_Doctype_Frameset; } const bool isDocTypeObsolete() const { return DocTypeObsolete; } const bool isDocTypeValid() const { return DocType != Url_Undefined && DocType != Url_Unknown; } #ifdef HTDIG_NOTIFICATION const std::string &GetHtDigEmail() const { return HtDigEmail; } const std::string &GetHtDigEmailSubject() const { return HtDigEmailSubject; } const std::string &GetHtDigHtDigNotificationDate() const { return HtDigNotificationDate; } #endif /////// // Static Methods /////// static unsigned int GetTotUrls () { return TotUrls; } static unsigned int IncrementTotUrls () { return ++TotUrls; } protected: // It inherits every attribute from the Url class unsigned int IDUrl; unsigned int IDServer; std::string HTTPContentType; std::string ContentType; std::string TransferEncoding; HtDateTime *LastModified; HtDateTime *LastAccess; long Size; unsigned int StatusCode; std::string ReasonPhrase; std::string Location; _Server *pServer; std::string Title; // Web Page title Url_ConnStatus ConnStatus; std::string ContentLanguage; // Language code given by the server const std::string* Contents; // Contents of the retrieved URL std::string HTTPCharset; std::string Charset; Url_DocType DocType; Url_DocTypeVersion DocTypeVersion; bool DocTypeObsolete; std::string Description; std::string Keywords; #ifdef HTDIG_NOTIFICATION std::string HtDigEmail; std::string HtDigEmailSubject; std::string HtDigNotificationDate; #endif // In certain cases it is useful to hide the LastModified value // like for not found documents, etc ... bool _HideLastModified; /////// // Static variable storing the number of Url "crawled" // It's designed for assigning the IDUrl, in a incremental way /////// static unsigned int TotUrls; }; #endif htcheck-2.0.0~rc1.orig/htcommon/URL.h0000644000000000000000000000403111177570271014220 0ustar // // URL.h // // URL: A URL parsing class, implementing as closely as possible the standard // laid out in RFC2396 (e.g. http://www.faqs.org/rfcs/rfc2396.html) // including support for multiple schemes. // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: URL.h,v 1.10 2008-11-16 18:28:52 angusgb Exp $ // #ifndef _URL_h_ #define _URL_h_ #include "htString.h" #include "Configuration.h" class URL { public: URL(); URL(const char* url); URL(const URL &url); URL(const String &ref, const URL &parent); void parse(const char* url); const String &host() const {return _host;} void host(const String &h) {_host = h;} int port() const {return _port;} void port(const int p) {_port = p;} const String &service() const {return _service;} void service(const String &s) {_service = s;} const String &path() const {return _path;} void path(const String &p); int hopcount() const {return _hopcount;} void hopcount(int h) {_hopcount = h;} const String &user() const {return _user;} void user(const String &u) {_user = u;} const String &get() const {return _url;} void dump(); void normalize(); const String &signature(); int DefaultPort(); static void SetConfiguration(Configuration& c) { _config = &c; } private: String _url; String _path; String _service; String _host; int _port; int _normal; int _hopcount; String _signature; String _user; static Configuration* _config; void removeIndex(String &); void normalizePath(); void ServerAlias(); void constructURL(); }; #endif htcheck-2.0.0~rc1.orig/htcommon/Link.cc0000644000000000000000000001312011177570271014610 0ustar /////// // Link.cc // Link Class definitions // // Class for links // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: Link.cc,v 1.18 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Link.h" // Static variables initialization int Link::debug = 0; /////// // Construction /////// Link::Link() : IDUrlSrc(0), IDUrlDest(0), TagPosition(0), AttrPosition(0), Anchor(), LinkType(Link_Normal), LinkResult(Link_NotChecked), LinkDomain(Link_Unknown) { Reset(); } /////// // Destruction /////// Link::~Link () { } /////// // Reset the schedule content /////// void Link::Reset() { IDUrlSrc = 0; IDUrlDest = 0; TagPosition = 0; AttrPosition = 0; Anchor.clear(); LinkType = Link_Normal; LinkResult = Link_NotChecked; LinkDomain = Link_Unknown; } /////// // Output Link object /////// ostream &operator<<( ostream &output, const Link &s) { output << s.IDUrlSrc << " -> " << s.IDUrlDest; if (s.debug < 3) return output; // Only if debug level is greater than 2 output << " (Tag n.: " << s.TagPosition << " - Attribute n. " << s.AttrPosition << " - Anchor " << s.Anchor << ")"; return output; } /////// // Managing the Link Type of the Link /////// /////// // Converts the Link_Type value into the corresponding // std::string value /////// void Link::RetrieveLinkType(std::string &Type) const { switch(GetLinkType()) { case (Link_Normal): Type="Normal"; break; case (Link_Direct): Type="Direct"; break; case (Link_Redirection): Type="Redirection"; break; } } /////// // Converts the Type string value // into the corresponding Link_Type value // Returns 0 if an error occurs, 1 if OK. /////// int Link::SetLinkType(const std::string& Type) { if (Type == "Normal") SetLinkType (Link_Normal); else if (Type == "Direct") SetLinkType (Link_Direct); else if (Type == "Redirection") SetLinkType (Link_Redirection); else return 0; return 1; } /////// // Managing the result of the link /////// /////// // Converts the Link_Result value into the corresponding // std::string value /////// void Link::RetrieveLinkResult(std::string &Result) const { switch(GetLinkResult()) { case (Link_NotChecked): Result="NotChecked"; break; case (Link_NotRetrieved): Result="NotRetrieved"; break; case (Link_OK): Result="OK"; break; case (Link_Broken): Result="Broken"; break; case (Link_Redirected): Result="Redirected"; break; case (Link_AnchorNotFound): Result="AnchorNotFound"; break; case (Link_NotAuthorized): Result="NotAuthorized"; break; case (Link_EMail): Result="EMail"; break; case (Link_Javascript): Result="Javascript"; break; case (Link_BadEncoded): Result="BadEncoded"; break; } } /////// // Converts the Result string value // into the corresponding Link_Result value // Returns 0 if an error occurs, 1 if OK. /////// int Link::SetLinkResult(const std::string& Result) { if (Result == "NotChecked") SetLinkResult (Link_NotChecked); else if (Result == "NotRetrieved") SetLinkResult (Link_NotRetrieved); else if (Result == "OK") SetLinkResult (Link_OK); else if (Result == "Broken") SetLinkResult (Link_Broken); else if (Result == "Redirected") SetLinkResult (Link_Redirected); else if (Result == "AnchorNotFound") SetLinkResult (Link_AnchorNotFound); else if (Result == "NotAuthorized") SetLinkResult (Link_NotAuthorized); else if (Result == "EMail") SetLinkResult (Link_EMail); else if (Result == "Javascript") SetLinkResult (Link_Javascript); else if (Result == "BadEncoded") SetLinkResult (Link_BadEncoded); else return 0; return 1; } /////// // Managing the domain of the link /////// /////// // Converts the Link_Domain value into the corresponding // std::string value /////// void Link::RetrieveLinkDomain(std::string &Domain) const { switch(GetLinkDomain()) { case (Link_Unknown): Domain.clear(); break; case (Link_SameServer): Domain="SameServer"; break; case (Link_Internal): Domain="Internal"; break; case (Link_External): Domain="External"; break; } } /////// // Converts the Domain string value // into the corresponding Link_Domain value // Returns 0 if an error occurs, 1 if OK. /////// int Link::SetLinkDomain(const std::string& Domain) { if (Domain.length() == 0) SetLinkDomain (Link_Unknown); else if (Domain == "SameServer") SetLinkDomain (Link_Unknown); else if (Domain == "Internal") SetLinkDomain (Link_Internal); else if (Domain == "External") SetLinkDomain (Link_External); else return 0; return 1; } htcheck-2.0.0~rc1.orig/htcommon/SchedulerEntry.cc0000644000000000000000000001427111177570271016663 0ustar /////// // SchedulerEntry .cc // Scheduler Entry Class definitions // // Class for interfacing the Schedule table of the DB // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: SchedulerEntry.cc,v 1.24 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 14.09.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "_Server.h" #include "SchedulerEntry.h" // Static variables initialization int SchedulerEntry::debug = 0; /////// // Construction /////// // Default constructor SchedulerEntry::SchedulerEntry() : IDSchedule(0), IDServer(0), server(0), ScheduleUrl(), Status(Url_Empty), Domain(Url_Unknown), IDReferer(0), HopCount(0), is_malformed(0) { } // From a string containing an URL SchedulerEntry::SchedulerEntry(const std::string &u) : IDSchedule(0), IDServer(0), server(0), ScheduleUrl(), Status(Url_Empty), Domain(Url_Unknown), IDReferer(0), HopCount(0), is_malformed(0) { SetNewUrl(u); } /////// // Destruction /////// SchedulerEntry::~SchedulerEntry () { } /////// // Reset the schedule content /////// void SchedulerEntry::Reset() { ScheduleUrl.clear(); IDSchedule=0; IDServer=0; IDReferer=0; HopCount=0; server=0; Status=Url_Empty; Domain=Url_Unknown; is_malformed=false; } /////// // Set the new url to the schedule /////// void SchedulerEntry::SetNewUrl(const std::string &u) { Reset(); SetScheduleUrl(u); } /////// // Converts the Schedule_Status value into the corresponding // string value /////// void SchedulerEntry::RetrieveStatus(std::string &Status) const { switch(GetStatus()) { case (Url_Empty): Status.clear(); break; case (Url_ToBeRetrieved): Status="ToBeRetrieved"; break; case (Url_Retrieved): Status="Retrieved"; break; case (Url_CheckIfExists): Status="CheckIfExists"; break; case (Url_Checked): Status="Checked"; break; case (Url_BadQueryString): Status="BadQueryString"; break; case (Url_BadExtension): Status="BadExtension"; break; case (Url_MaxHopCount): Status="MaxHopCount"; break; case (Url_FileProtocol): Status="FileProtocol"; break; case (Url_EMail): Status="EMail"; break; case (Url_Javascript): Status="Javascript"; break; case (Url_NotValidService): Status="NotValidService"; break; case (Url_Malformed): Status="Malformed"; break; case (Url_MaxUrlsCount): Status="MaxUrlsCount"; break; } } /////// // Converts the Schedule_Domain value into the corresponding // string value /////// void SchedulerEntry::RetrieveDomain(std::string &Domain) const { switch(GetDomain()) { case (Url_Unknown): Domain.clear(); break; case (Url_Internal): Domain="Internal"; break; case (Url_External): Domain="External"; break; } } /////// // Set the server ID, given a server // if the server is null, ID is set to 0 /////// void SchedulerEntry::SetServer (_Server *s) { server = s; if (s) IDServer = s->GetID(); else IDServer = 0; } /////// // Converts the Status string value // into the corresponding Schedule_Status value // Returns 0 if an error occurs, 1 if OK. /////// int SchedulerEntry::SetStatus(const std::string &Status) { if (!Status.length()) SetStatus (Url_Empty); if (Status == "ToBeRetrieved") SetStatus (Url_ToBeRetrieved); else if (Status == ("Retrieved")) SetStatus (Url_Retrieved); else if (Status == ("CheckIfExists")) SetStatus (Url_CheckIfExists); else if (Status == ("Checked")) SetStatus (Url_Checked); else if (Status == ("BadQueryString")) SetStatus (Url_BadQueryString); else if (Status == ("BadExtension")) SetStatus (Url_BadExtension); else if (Status == ("MaxHopCount")) SetStatus (Url_MaxHopCount); else if (Status == ("FileProtocol")) SetStatus (Url_FileProtocol); else if (Status == ("EMail")) SetStatus (Url_EMail); else if (Status == ("Javascript")) SetStatus (Url_Javascript); else if (Status == ("NotValidService")) SetStatus (Url_NotValidService); else if (Status == ("Malformed")) SetStatus (Url_Malformed); else if (Status == ("MaxUrlsCount")) SetStatus (Url_MaxUrlsCount); else return 0; return 1; } /////// // Converts the Domain string value // into the corresponding Schedule_Domain value // Returns 0 if an error occurs, 1 if OK. /////// int SchedulerEntry::SetDomain(const std::string &Domain) { if (!Domain.length()) SetDomain (Url_Unknown); if (Domain == "Internal") SetDomain (Url_Internal); else if (Domain == "External") SetDomain (Url_External); else return 0; return 1; } /////// // Output SchedulerEntry object /////// ostream& operator<<( ostream &output, const SchedulerEntry &s) { output << s.ScheduleUrl; if (s.debug < 3) return output; // Only if debug level is greater than 2 output << " (ID: " << s.IDSchedule << " / " << "IDServer: " << s.IDServer << " / "; std::string Status(""); s.RetrieveStatus(Status); if (!Status.length()) Status = "Not yet assigned"; std::string Domain(""); s.RetrieveDomain(Domain); if (!Domain.length()) Domain = "Not yet assigned"; output << (int) s.Status << " - " << Status << " / " << (int) s.Domain << " - " << Domain << " )"; if (s.server) output << " Server: " << s.server->host() << ":" << s.server->port(); return output; } htcheck-2.0.0~rc1.orig/htcommon/SchedulerEntry.h0000644000000000000000000001176111177570271016526 0ustar /////// // SchedulerEntry.h // Scheduler Entry Class declaration // // Class for interfacing the Schedule table of the DB // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: SchedulerEntry.h,v 1.23 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 14.09.1999 /////// #ifndef _SCHEDULERENTRY_H #define _SCHEDULERENTRY_H #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ #include #include "_Server.h" class SchedulerEntry : public Object { // Write the object to the output friend ostream& operator <<( ostream&, const SchedulerEntry& ); public: // Construction / Destruction SchedulerEntry(); SchedulerEntry(const std::string &u); virtual ~SchedulerEntry(); enum Schedule_Status { Url_Empty, // Not yet assigned Url_ToBeRetrieved, Url_Retrieved, Url_CheckIfExists, Url_Checked, Url_BadQueryString, Url_BadExtension, Url_MaxHopCount, Url_FileProtocol, Url_EMail, Url_Javascript, Url_NotValidService, Url_Malformed, Url_MaxUrlsCount }; // According to our limits, is this URL internal or external (or unknown) enum Schedule_Domain { Url_Unknown, // Unknown domain for the URL Url_Internal, // Internal URL Url_External // External URL }; /////// // Public Interface /////// void Reset(); void SetScheduleUrl(const std::string &u) { ScheduleUrl = u; } void SetIDSchedule (unsigned int id) { IDSchedule = id; } void SetIDServer (unsigned int id) { IDServer = id; } void SetIDReferer (unsigned int id) { IDReferer = id; } void SetHopCount (unsigned int hc) { HopCount = hc; } void SetServer (_Server *s); void SetMalformed (bool b) { is_malformed = b; } void SetStatus (Schedule_Status s) { Status = s; } void SetDomain (Schedule_Domain d) { Domain = d; } void SetNewUrl(const std::string &u); // New Url definition // Reset the schedule and assign the // status to "ToBeRetrieved" by default void RetrieveStatus (std::string &) const; // Insert into a string the value // for the Status (converts a Schedule_Status // value into a std::string). void RetrieveDomain (std::string &) const; // Insert into a string the value // for the Domain (converts a Schedule_Domain // value into a std::string). int SetStatus (const std::string &Status); // Set the Schedule_Status value // depending on the Status string value int SetDomain (const std::string &Domain); // Set the Schedule_Domain value // depending on the Domain string value const std::string &GetScheduleUrl() const { return ScheduleUrl; } unsigned int GetIDSchedule() const { return IDSchedule; } unsigned int GetIDServer() const { return IDServer; } Schedule_Status GetStatus() const { return Status; } Schedule_Domain GetDomain() const { return Domain; } const _Server *GetServer() const { return server; } unsigned int GetIDReferer() const { return IDReferer; } unsigned int GetHopCount() const { return HopCount; } bool IsMalformed() const { return is_malformed; } // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} /////// // Protected attributes /////// protected: unsigned int IDSchedule; unsigned int IDServer; _Server *server; // For accessing server information std::string ScheduleUrl; Schedule_Status Status; Schedule_Domain Domain; // ID of referring URL unsigned int IDReferer; // Hop count (number of clicks from the first accessed page) unsigned int HopCount; // Boolean flag for malformed url bool is_malformed; /////// // Static attributes /////// static int debug; // Run-time debugging level }; #endif htcheck-2.0.0~rc1.orig/htcommon/URL.cc0000644000000000000000000004345411177570271014372 0ustar // // URL.cc // // URL: A URL parsing class, implementing as closely as possible the standard // laid out in RFC2396 (e.g. http://www.faqs.org/rfcs/rfc2396.html) // including support for multiple services. (schemes in the RFC) // // Part of the ht://Dig package // Copyright (c) 1999 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // For copyright details, see the file COPYING in your distribution // or the GNU Public License version 2 or later // // // $Id: URL.cc,v 1.15 2008-11-16 18:28:52 angusgb Exp $ // #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include #include #include #include #include #include #include #include #include "URL.h" #include "Dictionary.h" #include "StringMatch.h" #include "StringList.h" #define NNTP_DEFAULT_PORT 119 // Variabile statica Configuration* URL::_config = 0; //***************************************************************************** // URL::URL() // Default Constructor // URL::URL() : _url(0), _path(0), _service(0), _host(0), _port(0), _normal(0), _hopcount(0), _signature(0), _user(0) { } //***************************************************************************** // URL::URL(const URL& rhs) // Copy constructor // URL::URL(const URL& rhs) : _url(rhs._url), _path(rhs._path), _service(rhs._service), _host(rhs._host), _port(rhs._port), _normal(rhs._normal), _hopcount(rhs._hopcount), _signature(rhs._signature), _user(rhs._user) { } //***************************************************************************** // URL::URL(const String &nurl) // Construct a URL from a String (obviously parses the string passed in) // URL::URL(const char* nurl) : _url(0), _path(0), _service(0), _host(0), _port(0), _normal(0), _hopcount(0), _signature(0), _user(0) { parse(nurl); } //***************************************************************************** // URL::URL(const String &url, const URL &parent) // Parse a reference given a parent url. This is needed to resolve relative // references which do NOT have a full url. // URL::URL(const String &url, const URL &parent) : _url(0), _path(0), _service(parent._service), _host(parent._host), _port(parent._port), _normal(parent._normal), _hopcount(parent._hopcount + 1), // Since this is one hop *after* the parent, we should account for this _signature(parent._signature), _user(parent._user) { String temp(url); temp.remove(" \r\n\t"); char* ref = temp; // // Strip any optional anchor from the reference. If, however, the // reference contains CGI parameters after the anchor, the parameters // will be moved left to replace the anchor. The overall effect is that // the anchor is removed. // Thanks goes to David Filiatrault for suggesting // this removal process. // char *anchor = strchr(ref, '#'); char *params = strchr(ref, '?'); if (anchor) { *anchor = '\0'; if (params) { if (anchor < params) { while (*params) { *anchor++ = *params++; } *anchor = '\0'; } } } // // If, after the removal of a possible '#' we have nothing left, // we just want to use the base URL (we're on the same page but // different anchors) // if (!*ref) { // We've already copied much of the info _url = parent._url; _path = parent._path; // Since this is on the same page, we want the same hopcount _hopcount = parent._hopcount; return; } // OK, now we need to work out what type of child URL this is char *p = ref; while (isalpha(*p)) // Skip through the service portion p++; int hasService = (*p == ':'); if (hasService && ((strncmp(ref, "http://", 7) == 0) || (strncmp(ref, "http:", 5) != 0))) { // // No need to look at the parent url since this is a complete url... // parse(ref); } else if (strncmp(ref, "//", 2) == 0) { // look at the parent url's _service, to make this is a complete url... String fullref(parent._service); fullref << ':' << ref; parse((char*)fullref); } else { if (hasService) ref = p + 1; // Relative URL, skip "http:" // // Remove any leading "./" sequences which could get us into // recursive loops. // while (strncmp(ref, "./", 2) == 0) ref += 2; if (*ref == '/') { // // The reference is on the same server as the parent, but // an absolute path was given... // _path = ref; } else { // // The reference is relative to the parent // _path = parent._path; int i = _path.indexOf('?'); if (i >= 0) { _path.chop(_path.length() - i); } if (_path.last() == '/') { // // Parent was a directory. Easy enough: just append // the current ref to it // _path << ref; } else { // // Parent was a file. We need to strip the last part // of the path before we add the reference to it. // String temp = _path; p = strrchr((char *)temp, '/'); if (p) { p[1] = '\0'; _path = temp.get(); _path << ref; } else { // // Something must be wrong since there were no '/' // found in the parent url. // // We do nothing here. The new url is the parent. // } } // // Get rid of loop-causing constructs in the path // normalizePath(); } // // Build the url. (Note, the host name has NOT been normalized!) // No need for this if we have called URL::parse. // constructURL(); } } //***************************************************************************** // void URL::parse(const String &u) // Given a URL string, extract the service, host, port, and path from it. // void URL::parse(const char* u) { String temp(u); temp.remove(" \t\r\n"); char *nurl = temp; // By default the url field contains the source string _url = temp; // // Ignore any part of the URL that follows the '#' since this is just // an index into a document. // char *p = strchr(nurl, '#'); if (p) *p = '\0'; // Some members need to be reset. If not, the caller would // have used URL::URL(char *ref, URL &parent) // (which may call us, if the URL is found to be absolute). _normal = 0; _signature = 0; _user = 0; // // Extract the service // p = strchr(nurl, ':'); if (p) { _service = strtok(nurl, ":"); p = strtok(0, "\n"); } else { _service = "http"; p = strtok(nurl, "\n"); } _service.lowercase(); // // Extract the host // We also have to pay attention to the // javascript pseudo-protocol, which we just ignore // if (!p || strncmp(_service, "javascript", 10) == 0 || strncmp(p, "//", 2) != 0) { // No host specified, it's all a path. _host = 0; _port = 0; // _url = 0; _path = p; } else { p += 2; // // p now points to the host // char *q = strchr(p, ':'); char *slash = strchr(p, '/'); _path = "/"; if (strcmp((char*)_service, "file") == 0) { // These should be of the form file:/// (i.e. no host) // if there is a file://host/path then strip the host if (strncmp(p, "/", 1) != 0) { p = strtok(p, "/"); _path << strtok(0, "\n"); } else _path << strtok(p, "\n"); _host = "localhost"; _port = 0; } else if (q && ((slash && slash > q) || !slash)) { _host = strtok(p, ":"); p = strtok(0, "/"); if (p) _port = atoi(p); if (!p || _port <= 0) _port = DefaultPort(); // // The rest of the input string is the path. // _path << strtok(0, "\n"); } else { _host = strtok(p, "/"); _host.chop(" \t"); _port = DefaultPort(); // // The rest of the input string is the path. // _path << strtok(0, "\n"); } // Check to see if host contains a user@ portion int atMark = _host.indexOf('@'); if (atMark != -1) { _user = _host.sub(0, atMark); _host = _host.sub(atMark + 1); } } // // Get rid of loop-causing constructs in the path // normalizePath(); // // Build the url. (Note, the host name has NOT been normalized!) // if (_host.length()) constructURL(); } //***************************************************************************** // void URL::normalizePath() // void URL::normalizePath() { // // We now need to take care of situations where the URL contains // relative parts ("/../") // We will rewrite the path to be the minimal. // int i, limit; int leadingdotdot = 0; String newPath; int pathend = _path.indexOf('?'); // Don't mess up query strings. if (pathend < 0) pathend = _path.length(); while ((i = _path.indexOf("/../")) >= 0 && i < pathend) { if ((limit = _path.lastIndexOf('/', i - 1)) >= 0) { newPath = _path.sub(0, limit).get(); newPath << _path.sub(i + 3).get(); _path = newPath; } else { _path = _path.sub(i + 3).get(); leadingdotdot++; } pathend = _path.indexOf('?'); if (pathend < 0) pathend = _path.length(); } if ((i = _path.indexOf("/..")) >= 0 && i == pathend-3) { if ((limit = _path.lastIndexOf('/', i - 1)) >= 0) newPath = _path.sub(0, limit+1).get(); // keep trailing slash else { newPath = '/'; leadingdotdot++; } newPath << _path.sub(i + 3).get(); _path = newPath; pathend = _path.indexOf('?'); if (pathend < 0) pathend = _path.length(); } // The RFC gives us a choice of what to do when we have .. left and // we're at the top level. By principle of least surprise, we'll just // toss any "leftovers" Otherwise, we'd have a loop here to add them. // // Also get rid of redundant "/./". This could cause infinite // loops. // while ((i = _path.indexOf("/./")) >= 0 && i < pathend) { newPath = _path.sub(0, i).get(); newPath << _path.sub(i + 2).get(); _path = newPath; pathend = _path.indexOf('?'); if (pathend < 0) pathend = _path.length(); } if ((i = _path.indexOf("/.")) >= 0 && i == pathend-2) { newPath = _path.sub(0, i+1).get(); // keep trailing slash newPath << _path.sub(i + 2).get(); _path = newPath; pathend--; } // // Furthermore, get rid of "//". This could also cause loops // while ((i = _path.indexOf("//")) >= 0 && i < pathend) { newPath = _path.sub(0, i).get(); newPath << _path.sub(i + 1).get(); _path = newPath; pathend = _path.indexOf('?'); if (pathend < 0) pathend = _path.length(); } // Finally change all "%7E" to "~" for sanity while ((i = _path.indexOf("%7E")) >= 0 && i < pathend) { newPath = _path.sub(0, i).get(); newPath << "~"; newPath << _path.sub(i + 3).get(); _path = newPath; pathend = _path.indexOf('?'); if (pathend < 0) pathend = _path.length(); } // If the server *isn't* case sensitive, we want to lowercase the path if (_config && !(*_config).Boolean("case_sensitive", 1)) _path.lowercase(); // And don't forget to remove index.html or similar file. if (strcmp((char*)_service, "file") != 0) removeIndex(_path); } //***************************************************************************** // void URL::dump() // void URL::dump() { cout << "service = " << _service.get() << endl; cout << "user = " << _user.get() << endl; cout << "host = " << _host.get() << endl; cout << "port = " << _port << endl; cout << "path = " << _path << endl; cout << "url = " << _url << endl; } //***************************************************************************** // void URL::path(const String &newpath) // void URL::path(const String &newpath) { _path = newpath; if (_config && !(*_config).Boolean("case_sensitive",1)) _path.lowercase(); constructURL(); } //***************************************************************************** // void URL::removeIndex(String &path) // Attempt to remove the remove_default_doc from the end of a URL path. // This needs to be done to normalize the paths and make .../ the // same as .../index.html // void URL::removeIndex(String &path) { static StringMatch *defaultdoc = 0; if (path.length() == 0 || strchr((char*)path, '?')) return; int filename = path.lastIndexOf('/') + 1; if (filename == 0) return; if (_config && ! defaultdoc) { StringList l((*_config)["remove_default_doc"], " \t"); defaultdoc = new StringMatch(); defaultdoc->IgnoreCase(); defaultdoc->Pattern(l.Join('|')); } if (defaultdoc->hasPattern() && defaultdoc->CompareWord((char*)path.sub(filename))) path.chop(path.length() - filename); } //***************************************************************************** // void URL::normalize() // Make sure that URLs are always in the same format. // void URL::normalize() { static int hits = 0, misses = 0; if (_service.length() == 0 || _normal) return; if (strcmp((char*)_service, "http") != 0) return; removeIndex(_path); // // Convert a hostname to an IP address // _host.lowercase(); if (_config && !(*_config).Boolean("allow_virtual_hosts", 1)) { static Dictionary hostbyname; unsigned long addr; struct hostent *hp; String *ip = (String *) hostbyname[_host]; if (ip) { memcpy((char *) &addr, ip->get(), ip->length()); hits++; } else { addr = inet_addr(_host.get()); if (addr == 0xffffffff) { hp = gethostbyname(_host.get()); if (hp == NULL) { return; } memcpy((char *)&addr, (char *)hp->h_addr, hp->h_length); ip = new String((char *) &addr, hp->h_length); hostbyname.Add(_host, ip); misses++; } } static Dictionary machines; String key; key << int(addr); String *realname = (String *) machines[key]; if (realname) _host = realname->get(); else machines.Add(key, new String(_host)); } ServerAlias(); // // Reconstruct the url // constructURL(); _normal = 1; _signature = 0; } //***************************************************************************** // const String &URL::signature() // Return a string which uniquely identifies the server the current // URL is refering to. // This is the first portion of a url: service://user@host:port/ // (in short this is the URL pointing to the root of this server) // const String &URL::signature() { if (_signature.length()) return _signature; if (!_normal) normalize(); _signature = _service; _signature << "://"; if (_user.length()) _signature << _user << '@'; _signature << _host; _signature << ':' << _port << '/'; return _signature; } //***************************************************************************** // void URL::ServerAlias() // Takes care of the server aliases, which attempt to simplify virtual // host problems // void URL::ServerAlias() { static Dictionary *serveraliases= 0; if (_config && ! serveraliases) { String l= (*_config)["server_aliases"]; String from, *to; serveraliases = new Dictionary(); char *p = strtok(l, " \t"); char *salias= NULL; while (p) { salias = strchr(p, '='); if (! salias) { p = strtok(0, " \t"); continue; } *salias++= '\0'; from = p; if (from.indexOf(':') == -1) from.append(":80"); to= new String(salias); if (to->indexOf(':') == -1) to->append(":80"); serveraliases->Add(from.get(), to); // fprintf (stderr, "Alias: %s->%s\n", from.get(), to->get()); p = strtok(0, " \t"); } } String *al= 0; int newport; int delim; _signature = _host; _signature << ':' << _port; if ((al= (String *) serveraliases->Find(_signature))) { delim= al->indexOf(':'); // fprintf(stderr, "\nOld URL: %s->%s\n", (char *) _signature, (char *) *al); _host= al->sub(0,delim).get(); sscanf((char*)al->sub(delim+1), "%d", &newport); _port= newport; // fprintf(stderr, "New URL: %s:%d\n", (char *) _host, _port); } } //***************************************************************************** // void URL::constructURL() // Constructs the _url member from everything else // Also ensures the port number is correct for the service // void URL::constructURL() { _url = _service; _url << ":"; if (!(strcmp((char*)_service, "news") == 0 || strcmp((char*)_service, "mailto") == 0 )) _url << "//"; if (strcmp((char*)_service, "file") != 0) { if (_user.length()) _url << _user << '@'; _url << _host; } if (_port != DefaultPort() && _port != 0) // Different to the default port _url << ':' << _port; _url << _path; } /////// // Get the default port for the recognised service /////// int URL::DefaultPort() { if (strcmp((char*)_service, "http") == 0) return 80; else if (strcmp((char*)_service, "https") == 0) return 443; else if (strcmp((char*)_service, "ftp") == 0) return 21; else if (strcmp((char*)_service, "gopher") == 0) return 70; else if (strcmp((char*)_service, "file") == 0) return 0; else if (strcmp((char*)_service, "news") == 0) return NNTP_DEFAULT_PORT; else return 80; } htcheck-2.0.0~rc1.orig/htcommon/HtmlAttribute.h0000644000000000000000000000602511177570271016353 0ustar /////// // HtmlAttribute.h // HtmlAttribute Class declaration // // Class for HtmlAttribute storage // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlAttribute.h,v 1.10 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifndef _HTMLATTRIBUTE_H #define _HTMLATTRIBUTE_H #include #ifdef HAVE_STD #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #include #endif /* HAVE_STD */ class HtmlAttribute : public Object { // Write the object to the output friend std::ostream& operator<<( std::ostream&, const HtmlAttribute& ); public: // Useful predefined attributes enum AttributeLabel { Attr_Unknown, Attr_ALT, Attr_HREF, Attr_ID, Attr_NAME, Attr_CONTENT, Attr_LANG, Attr_XML_LANG, Attr_SRC, Attr_DATA, Attr_LOWSRC, Attr_TYPE, Attr_BACKGROUND }; // Construction / Destruction HtmlAttribute(); virtual ~HtmlAttribute(); /////// // Public Interface /////// void Reset(); void SetIDUrl (unsigned int id) { IDUrl = id; } void SetTagPosition (unsigned int tp) { TagPosition = tp; } void SetAttrPosition (unsigned int ap) { AttrPosition = ap; } void SetAttribute (const std::string &a); void SetContent (const std::string &c) { Content = c; } unsigned int GetIDUrl() const { return IDUrl; } unsigned int GetTagPosition() const { return TagPosition; } unsigned int GetAttrPosition() const { return AttrPosition; } const std::string &GetAttribute() const { return Attribute; } const std::string &GetLowercaseAttribute() const { return LowercaseAttribute; } const std::string &GetContent() const { return Content; } const AttributeLabel GetAttributeLabel() const { return _attr_label; } // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} // Initialise the map of attributes static void initAttributesMap(); /////// // Protected attributes /////// protected: unsigned int IDUrl; unsigned int TagPosition; unsigned int AttrPosition; std::string Attribute; std::string LowercaseAttribute; std::string Content; AttributeLabel _attr_label; /////// // Static attributes /////// static int debug; // Run-time debugging level typedef std::map AttributesMap; static AttributesMap AttrMap; }; #endif htcheck-2.0.0~rc1.orig/htcommon/AccessibilityCheck.h0000644000000000000000000000473111177570271017312 0ustar /////// // AccessibilityCheck.h // AccessibilityCheck Class declaration // // Class for AccessibilityCheck storage // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: AccessibilityCheck.h,v 1.2 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 29.03.2004 /////// #ifndef _ACCESSIBILITYCHECK_H #define _ACCESSIBILITYCHECK_H #ifdef HAVE_STD #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #endif /* HAVE_STD */ #include class AccessibilityCheck : public Object { // Write the object to the output friend ostream& operator<<( ostream&, const AccessibilityCheck& ); public: // Construction / Destruction AccessibilityCheck(); virtual ~AccessibilityCheck(); /////// // Public Interface /////// void Reset(); void SetIDCheck(unsigned int id) { IDCheck = id; } void SetIDUrl (unsigned int id) { IDUrl = id; } void SetTagPosition (unsigned int tp) { TagPosition = tp; } void SetAttrPosition (unsigned int ap) { AttrPosition = ap; } void SetCode (unsigned int c) { Code = c; } unsigned int GetIDCheck() const { return IDCheck; } unsigned int GetIDUrl() const { return IDUrl; } unsigned int GetTagPosition() const { return TagPosition; } unsigned int GetAttrPosition() const { return AttrPosition; } unsigned int GetCode() const { return Code; } // Static methods for managing debug level static void SetDebugLevel (int d) { debug=d;} static void SetLastID (unsigned int d) { last_id=d; } static unsigned int GetLastID () { return last_id;} /////// // Protected attributes /////// protected: unsigned int IDCheck; unsigned int IDUrl; unsigned int TagPosition; unsigned int AttrPosition; unsigned int Code; /////// // Static attributes /////// static int debug; // Run-time debugging level static unsigned int last_id; // last id for the accessibility check }; #endif htcheck-2.0.0~rc1.orig/htcommon/_Server.cc0000644000000000000000000000310111177570271015316 0ustar /////// // _Server.cc // _Server Class definitions // // Class to interface with Server table of mysql Database // This inherits from the Server class. // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: _Server.cc,v 1.10 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 02.07.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "_Server.h" #ifdef HAVE_STD #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif #else #include #include #endif /* HAVE_STD */ /////// // Static variables /////// unsigned int _Server::TotServers = 0; /////// // Construction /////// _Server::_Server (const std::string &host, int port ) : Server (host.c_str(), port), IDServer(0), IPAddress(), HttpServer(), HttpVersion(), Requests(0) { } _Server::_Server (const _Server& rhs) : Server (rhs), IDServer(rhs.IDServer), IPAddress(rhs.IPAddress), HttpServer(rhs.HttpServer), HttpVersion(rhs.HttpVersion), Requests(rhs.Requests) { } /////// // Destruction /////// _Server::~_Server () { } htcheck-2.0.0~rc1.orig/htcommon/Makefile.in0000644000000000000000000003766311245527335015472 0ustar # Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1999-2004 Comune di Prato - Prato - Italy # Some Portions Copyright (c) 1995-2003 The ht://Dig Group # Author: Gabriele Bartolini - Prato - Italy VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/Makefile.config subdir = htcommon ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkglibdir)" pkglibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(pkglib_LTLIBRARIES) libcommon_la_LIBADD = am_libcommon_la_OBJECTS = AccessibilityCheck.lo HtDefaults.lo \ HtmlAttribute.lo HtmlStatement.lo Link.lo RunInfo.lo \ SchedulerEntry.lo Server.lo URL.lo URLRef.lo _Server.lo \ _Url.lo libcommon_la_OBJECTS = $(am_libcommon_la_OBJECTS) libcommon_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libcommon_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = am__depfiles_maybe = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libcommon_la_SOURCES) DIST_SOURCES = $(libcommon_la_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFIG_DIR = @CONFIG_DIR@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DB_NAME = @DB_NAME@ DB_NAME_PREPEND = @DB_NAME_PREPEND@ DEFAULT_CONFIG_FILE = @DEFAULT_CONFIG_FILE@ DEFAULT_DB_CHARSET = @DEFAULT_DB_CHARSET@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOC_DIR = @DOC_DIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_LIBS = @EXTRA_LIBS@ F77 = @F77@ FFLAGS = @FFLAGS@ GREP = @GREP@ HTCHECK_MAJOR_VERSION = @HTCHECK_MAJOR_VERSION@ HTCHECK_MICRO_VERSION = @HTCHECK_MICRO_VERSION@ HTCHECK_MINOR_VERSION = @HTCHECK_MINOR_VERSION@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MYSQL_CFLAGS = @MYSQL_CFLAGS@ MYSQL_CONFIG = @MYSQL_CONFIG@ MYSQL_LDFLAGS = @MYSQL_LDFLAGS@ MYSQL_VERSION = @MYSQL_VERSION@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ URL_DB_SIZE = @URL_DB_SIZE@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign no-dependencies @HTNOTIFY_TRUE@HTDIGNS = -DHTDIG_NOTIFICATION INCLUDES = \ -DURL_DB_SIZE=$(URL_DB_SIZE) \ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ -I$(top_srcdir) -I$(top_srcdir)/include \ -I$(top_srcdir)/htlib -I$(top_srcdir)/htcommon \ -I$(top_srcdir)/htmysql -I$(top_srcdir)/htnet \ -I$(top_srcdir)/htparsing \ -I$(top_srcdir)/htcheck \ $(LOCAL_DEFINES) \ $(HTDIGNS) \ -Wall HTLIBS = $(top_builddir)/htmysql/libhtmysql.la \ $(top_builddir)/htcommon/libcommon.la \ $(top_builddir)/htlib/libht.la \ $(top_builddir)/htnet/libhtnet.la \ $(top_builddir)/htparsing/libhtparsing.la @DEBUG_TRUE@AM_CXXFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline @DEBUG_TRUE@AM_CPPFLAGS = -DHTCHECK_DEBUG -g -Wall -fno-inline pkglib_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = AccessibilityCheck.cc \ HtDefaults.cc \ HtmlAttribute.cc \ HtmlStatement.cc \ Link.cc \ RunInfo.cc \ SchedulerEntry.cc \ Server.cc \ URL.cc \ URLRef.cc \ _Server.cc \ _Url.cc libcommon_la_LDFLAGS = -release $(HTCHECK_MAJOR_VERSION).$(HTCHECK_MINOR_VERSION).$(HTCHECK_MICRO_VERSION) noinst_HEADERS = AccessibilityCheck.h \ HtDefaults.h \ HtmlAttribute.h \ HtmlStatement.h \ Link.h \ RunInfo.h \ SchedulerEntry.h \ Server.h \ URL.h \ URLRef.h \ _Server.h \ _Url.h LOCAL_DEFINES = -DDB_NAME=\"$(DB_NAME)\" \ -DDB_NAME_PREPEND=\"$(DB_NAME_PREPEND)\" \ -DCOMMON_DIR=\"$(COMMON_DIR)\" \ -DCONFIG_DIR=\"$(CONFIG_DIR)\" all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.config $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign htcommon/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign htcommon/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @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 install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \ else :; fi; \ done uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libcommon.la: $(libcommon_la_OBJECTS) $(libcommon_la_DEPENDENCIES) $(libcommon_la_LINK) -rpath $(pkglibdir) $(libcommon_la_OBJECTS) $(libcommon_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .cc.o: $(CXXCOMPILE) -c -o $@ $< .cc.obj: $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: 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-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags 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-pkglibLTLIBRARIES \ 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 uninstall uninstall-am uninstall-pkglibLTLIBRARIES # 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: htcheck-2.0.0~rc1.orig/htcommon/_Server.h0000644000000000000000000000466111177570271015174 0ustar /////// // _Server.h // _Server Class declaration // // Class to interface with Server table of mysql Database // This inherits from the Server class. // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: _Server.h,v 1.10 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 02.07.1999 /////// #ifndef __SERVER_H #define __SERVER_H #include "Server.h" class _Server : public Server { public: // Construction / Destruction _Server (const std::string &host, int port ); _Server (const _Server& rhs); virtual ~_Server(); /////// // Interface with protected methods /////// void SetID (unsigned int ID) { IDServer = ID; } void SetIPAddress (const std::string &IP) { IPAddress = IP; } void SetHttpVersion (const std::string &V) { HttpVersion = V; } void SetHttpServer (const std::string &S) { HttpServer = S; } void SetRequests (unsigned int R) { Requests = R; } unsigned int IncrementRequests () { return ++Requests; } unsigned int GetID () const { return IDServer; } const std::string &GetIPAddress () const { return IPAddress; } const std::string &GetHttpVersion () const { return HttpVersion; } const std::string &GetHttpServer () const { return HttpServer; } unsigned int GetRequests () const { return Requests; } /////// // Static Methods /////// static unsigned int GetTotServers () { return TotServers; } static unsigned int IncrementTotServers () { return ++TotServers; } protected: _Server() {}; // not accessible! // It inherits every attribute from the Server class unsigned int IDServer; std::string IPAddress; std::string HttpServer; std::string HttpVersion; unsigned int Requests; /////// // Static variable storing the number of server "crawled" // It's designed for assigning the IDServer, in a incremental way /////// static unsigned int TotServers; }; #endif htcheck-2.0.0~rc1.orig/htcommon/Server.cc0000644000000000000000000001444711177570271015176 0ustar // // Server.cc // // Implementation of Server // // Part of the ht://Check package // // Copyright (c) 1999-2004 Gabriele Bartolini - Prato - Italy // Some portions Copyright (c) 1995-2000 The ht://Dig Group // Some Portions Copyright (c) 2008 Devise.IT srl // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // $Id: Server.cc,v 1.12 2008-11-16 18:28:52 angusgb Exp $ // #if RELEASE static char RCSid[] = "$Id: Server.cc,v 1.12 2008-11-16 18:28:52 angusgb Exp $"; #endif #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "htcheck.h" #include "Server.h" #include #include #include #include //#include "Document.h" #include "URLRef.h" //***************************************************************************** // Server::Server(char *host, int port) // Server::Server(const String &host, int port) : _host(host), _port(port), _bad_server(0), _connection_space(config.Value("server_wait_time", 0)), _last_connection(time(0)), _documents(0), _max_documents(config.Value("server_max_docs", -1)), _persistent_connections(1) { if (debug > 0) cout << endl << "New server: " << host << ", " << port << endl; } //***************************************************************************** // Server::Server(const Server& rhs) // Server::Server(const Server& rhs) : _host(rhs._host), _port(rhs._port), _bad_server(rhs._bad_server), _connection_space(rhs._connection_space), _last_connection(rhs._last_connection), _paths(rhs._paths), _disallow(rhs._disallow), _documents(rhs._documents), _max_documents(rhs._max_documents), _persistent_connections(rhs._persistent_connections) { } //***************************************************************************** // Server::~Server() // Server::~Server() { } //***************************************************************************** // void Server::robotstxt(Document &doc) // This will parse the robots.txt file which is contained in the document. // /* void Server::robotstxt(Document &doc) { String contents = doc.Contents(); int length; int pay_attention = 0; String pattern; String myname = config["robotstxt_name"]; int seen_myname = 0; char *name, *rest; if (debug > 1) cout << "Parsing robots.txt file using myname = " << myname << "\n"; // // Go through the lines in the file and determine if we need to // pay attention to them // for (char *line = strtok(contents, "\r\n"); line; line = strtok(0, "\r\n")) { if (debug > 2) cout << "Robots.txt line: " << line << endl; // // Strip comments // if (strchr(line, '#')) { *(strchr(line, '#')) = '\0'; } name = good_strtok(line, ':'); if (!name) continue; while (name && isspace(*name)) name++; rest = good_strtok(NULL, '\r'); if (!rest) rest = ""; while (rest && isspace(*rest)) rest++; length = strlen(rest); if (length > 0) { while (length > 0 && isspace(rest[length - 1])) length--; rest[length] = '\0'; } if (mystrcasecmp(name, "user-agent") == 0) { if (debug > 1) cout << "Found 'user-agent' line: " << rest << endl; if (*rest == '*' && !seen_myname) { // // This matches all search engines... // pay_attention = 1; } else if (mystrncasecmp(rest, myname, myname.length()) == 0) { // // This is for us! This will override any previous patterns // that may have been set. // seen_myname = 1; pay_attention = 1; pattern = 0; } else { // // This doesn't concern us // pay_attention = 0; } } else if (pay_attention && mystrcasecmp(name, "disallow") == 0) { if (debug > 1) cout << "Found 'disallow' line: " << rest << endl; // // Add this path to our list to ignore // if (*rest) { if (pattern.length()) pattern << '|' << rest; else pattern = rest; } } // // Ignore anything else (comments) // } // // Compile the pattern (if any...) // if (debug > 1) cout << "Pattern: " << pattern << endl; _disallow.Pattern(pattern); } */ //***************************************************************************** // void Server::push(const String &path, int hopcount, const String &referer) // void Server::push(String &path, int hopcount, const String &referer) { if (_bad_server) return; // // Make sure that the path is allowed on this server // int which, length; char *serverPath = strchr((char *)path + 7, '/'); if (!serverPath) serverPath = (char *) path; if (_disallow.Compare(serverPath, which, length)) { if (debug > 1) cout << "robots.txt: discarding '" << path << "', which = " << which << ", length = " << length << endl; return; } // We use -1 as no limit if (_max_documents != -1 && _documents >= _max_documents) // Hey! we only want to get max_docs return; URLRef *ref = new URLRef(); ref->SetURL(path.get()); ref->SetHopCount(hopcount); ref->SetReferer(referer.get()); _paths.push(ref); _documents++; // cout << "***** pushing '" << path << "' with '" << referer << "'\n"; } //***************************************************************************** // URLRef *Server::pop() // URLRef *Server::pop() { URLRef *ref = (URLRef *) _paths.pop(); if (!ref) return 0; return ref; } //***************************************************************************** // void Server::delay() // // Keeps track of how long it's been since we've seen this server // and call sleep if necessary // void Server::delay() { time_t now = time(0); time_t how_long = _connection_space + _last_connection - now; _last_connection = now; // Reset the clock for the next delay! if (how_long > 0) sleep(how_long); return; } //***************************************************************************** // void Server::reportStatistics(String &out, const String &name) // void Server::reportStatistics(String &out, const String &name) { out << name << " " << _host << ":" << _port; out << " " << _documents << " document"; if (_documents != 1) out << "s"; } htcheck-2.0.0~rc1.orig/htcommon/HtDefaults.cc0000644000000000000000000000460211177570271015763 0ustar /////// // // HtDefault.cc // // default values for ht://Check // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtDefaults.cc,v 1.33 2008-11-16 18:28:52 angusgb Exp $ // /////// #if RELEASE static char RCSid[] = "$Id: HtDefaults.cc,v 1.33 2008-11-16 18:28:52 angusgb Exp $"; #endif #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "Configuration.h" ConfigDefaults defaults[] = { { "accept_language", "" }, { "accessibility_checks", "true" }, { "authorization", "" }, { "available_charsets", "windows-1250 iso-8859-1 iso-8859-10 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9 koi8-r koi8-u utf-8 windows-1251 windows-1252 windows-1253 windows-1254 windows-1255 windows-1256 windows-1257 windows-1258 windows-874" }, { "bad_extensions", "" }, { "bad_querystr", "" }, { "check_external", "true" }, { "cookies_input_file", "" }, { "db_name", DB_NAME}, { "db_name_prepend", DB_NAME_PREPEND}, { "disable_cookies", "false" }, { "exclude_urls", "" }, { "head_before_get", "false" }, { "http_proxy", "" }, { "http_proxy_authorization", "" }, { "http_proxy_exclude", "" }, { "limit_normalized", "" }, { "limit_urls_to", "${start_url}" }, { "max_doc_size", "100000" }, { "max_hop_count", "999999" }, { "max_urls_count", "-1" }, { "max_retries", "3" }, { "mysql_client_charset", "default" }, { "mysql_conf_file_prefix", "my" }, { "mysql_conf_group", "client" }, { "mysql_db_charset", "default" }, { "optimize_db", "false" }, { "persistent_connections", "true" }, { "remove_default_doc", "" }, { "sql_big_table_option", "true" }, { "start_url", "http://htcheck.sourceforge.net/" }, { "store_link_info", "true" }, { "store_only_links", "true" }, { "store_url_contents", "false" }, { "summary_anchor_not_found", "true" }, { "tcp_max_retries", "1" }, { "tcp_wait_time", "5" }, { "timeout", "30" }, { "url_index_length", "64" }, { "url_reserved_chars", ";/?:@&=+$,._%-#x~" }, { "user_agent", "ht://check" }, {0, 0} // The last one }; Configuration config; htcheck-2.0.0~rc1.orig/htcommon/AccessibilityCheck.cc0000644000000000000000000000317111177570271017445 0ustar /////// // AccessibilityCheck.cc // AccessibilityCheck Class definitions // // Class for Html statements // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: AccessibilityCheck.cc,v 1.1 2004-03-30 11:07:35 angusgb Exp $ // // G.Bartolini // started: 29.03.2004 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "AccessibilityCheck.h" // Static variables initialization int AccessibilityCheck::debug = 0; unsigned int AccessibilityCheck::last_id = 0; /////// // Construction /////// AccessibilityCheck::AccessibilityCheck() : IDCheck(0), IDUrl(0), TagPosition(0), AttrPosition(0), Code(0) { } /////// // Destruction /////// AccessibilityCheck::~AccessibilityCheck () { } /////// // Reset the schedule content /////// void AccessibilityCheck::Reset() { IDCheck = 0; IDUrl = 0; TagPosition = 0; AttrPosition = 0; Code = 0; } /////// // Output AccessibilityCheck object /////// ostream& operator<<(ostream& output, const AccessibilityCheck& s) { output << s.IDCheck << " / " << s.IDUrl << " / " << s.TagPosition << " / " << s.AttrPosition; if (s.debug < 3) return output; // Only if debug level is greater than 2 output << " (Code : " << s.Code << ")"; return output; } htcheck-2.0.0~rc1.orig/htcommon/Server.h0000644000000000000000000000434011177570271015027 0ustar // // Server.h // // A class to keep track of server specific information. // // $Id: Server.h,v 1.5 2002-01-03 17:31:13 angusgb Exp $ // #ifndef _Server_h_ #define _Server_h_ #include #include #include #include #include #include #include "URLRef.h" class Document; class Server : public Object { public: // // Construction/Destruction // Server(const String &host, int port); Server(const Server& rhs); ~Server(); // // This needs to be called with a document containing the // robots.txt file for this server // void robotstxt(Document &doc); // // Provide some way of getting at the host and port for this server // int port() const {return _port;} const String &host() const {return _host;} // // Add a path to the queue for this server. This will check to // see if the path in the path is allowed. If it isn't allowed, // it simply won't be added. // void push(String &path, int hopcount, const String &referer); // // Return the next URL from the queue for this server. // URLRef *pop(); // // Delays the server if necessary. If the time between requests // is long enough, the request can occur immediately. // void delay(); // // Produce statistics for this server. // void reportStatistics(String &out, const String &name); // Methods for managing persistent connections void AllowPersistentConnection() { _persistent_connections = 1; } void AvoidPersistentConnection() { _persistent_connections = 0; } int IsPersistentConnectionAllowed() const { return _persistent_connections; } protected: String _host; int _port; int _bad_server; // TRUE if we shouldn't use this one int _connection_space; // Seconds between connections time_t _last_connection; // Time of last connection to this server Queue _paths; StringMatch _disallow; // This pattern will be used to test paths int _documents; // Number of documents visited int _max_documents; // Maximum number of documents from this server int _persistent_connections; // Are pcs allowed Server() {}; // Not accessible anyway! }; #endif htcheck-2.0.0~rc1.orig/htcommon/RunInfo.h0000644000000000000000000000332011177570271015136 0ustar /////// // RunInfo.h // RunInfo Class declaration // // Class to that contains all the general info about the run // They will be stored into the 'htCheck' table of the database // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: RunInfo.h,v 1.8 2006-08-25 10:17:45 angusgb Exp $ // // G.Bartolini // started: 18.08.2000 /////// #ifndef __RUN_INFO_H #define __RUN_INFO_H #include "HtDateTime.h" class RunInfo { public: // Construction / Destruction RunInfo(); virtual ~RunInfo(); HtDateTime StartTime; // Start time of scheduling HtDateTime FinishTime; // Finish time of scheduling int RetrievedUrls; // Number of Urls that have been retrieved int TotUrls; // Total Urls to retrieve int ScheduledUrls; // Total Urls "seen" int HTTPSeconds; // Seconds of HTTP connections int HTTPRequests; // Number of HTTP requests int HTTPBytes; // Number of bytes retrieved by // HTTP connections int TCPConnections; // Number of TCP connections int ServerChanges; // Number of Server changes int AccessibilityChecks; // Accessibility checks enabled or not int HtDigNotification; // ht://Dig notification enabled or not }; #endif htcheck-2.0.0~rc1.orig/htcommon/HtmlStatement.cc0000644000000000000000000000761511177570271016520 0ustar /////// // HtmlStatement.cc // HtmlStatement Class definitions // // Class for Html statements // // Copyright (c) 1999-2004 Comune di Prato - Prato - Italy // Some Portions Copyright (c) 2008 Devise.IT srl // Author: Gabriele Bartolini - Prato - Italy // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: HtmlStatement.cc,v 1.11 2008-11-16 18:28:52 angusgb Exp $ // // G.Bartolini // started: 05.10.1999 /////// #ifdef HAVE_CONFIG_H #include "htconfig.h" #endif /* HAVE_CONFIG_H */ #include "HtmlStatement.h" // Static variables initialization int HtmlStatement::debug = 0; // Static map of tags HtmlStatement::ElementsMap HtmlStatement::TagMap; /////// // Construction /////// HtmlStatement::HtmlStatement() : IDUrl(0), TagPosition(0), Tag(), LowercaseTag(), Statement(), Row(1), Col(1), LinkTagPosition(0), _tag_label(Tag_Unknown), _closing_tag(false), _empty_tag(false) { } /////// // Destruction /////// HtmlStatement::~HtmlStatement () { } /////// // Reset the schedule content /////// void HtmlStatement::Reset() { IDUrl = 0; TagPosition = 0; Tag.clear(); Statement.clear(); Row = 1; Col = 1; LinkTagPosition = 0; _tag_label = Tag_Unknown; _closing_tag = false; _empty_tag = false; } /////// // Output HtmlStatement object /////// ostream& operator<<(ostream& output, const HtmlStatement& s) { output << s.IDUrl << " / " << s.TagPosition; if (s.debug < 3) return output; // Only if debug level is greater than 2 output << " (Tag : " << s.Tag << " Row: " << s.Row << " Col: " << s.Col << " - Statement <" << s.Statement << ">)"; return output; } void HtmlStatement::SetTag (const std::string &t) { Tag = t; LowercaseTag.clear(); for (std::string::const_iterator c(t.begin()); c != t.end(); ++c) { if (*c == '/') { // Found a closing tag character _closing_tag = true; continue; } LowercaseTag.push_back(tolower(*c)); } // Assign the tag label ElementsMap::const_iterator e(TagMap.find(LowercaseTag)); if (e == TagMap.end()) { _tag_label = Tag_Unknown; TagMap.insert(std::make_pair(LowercaseTag, _tag_label)); // cache //std::cout << "Map " << LowercaseTag << " to UNKNOWN" << std::endl; } else { _tag_label = e->second; //std::cout << "Map " << LowercaseTag << " to " << e->second << std::endl; } } // Initialise the map of tags void HtmlStatement::initElementsMap() { if (TagMap.empty()) { TagMap.insert(std::make_pair("a", Tag_A)); TagMap.insert(std::make_pair("area", Tag_AREA)); TagMap.insert(std::make_pair("meta", Tag_META)); TagMap.insert(std::make_pair("html", Tag_HTML)); TagMap.insert(std::make_pair("frame", Tag_FRAME)); TagMap.insert(std::make_pair("embed", Tag_EMBED)); TagMap.insert(std::make_pair("object", Tag_OBJECT)); TagMap.insert(std::make_pair("img", Tag_IMG)); TagMap.insert(std::make_pair("link", Tag_LINK)); TagMap.insert(std::make_pair("input", Tag_INPUT)); TagMap.insert(std::make_pair("base", Tag_BASE)); TagMap.insert(std::make_pair("head", Tag_HEAD)); TagMap.insert(std::make_pair("script", Tag_SCRIPT)); TagMap.insert(std::make_pair("title", Tag_TITLE)); TagMap.insert(std::make_pair("h1", Tag_H1)); TagMap.insert(std::make_pair("h2", Tag_H2)); TagMap.insert(std::make_pair("h3", Tag_H3)); TagMap.insert(std::make_pair("h4", Tag_H4)); TagMap.insert(std::make_pair("h5", Tag_H5)); TagMap.insert(std::make_pair("h6", Tag_H6)); TagMap.insert(std::make_pair("b", Tag_B)); TagMap.insert(std::make_pair("i", Tag_I)); TagMap.insert(std::make_pair("blink", Tag_BLINK)); TagMap.insert(std::make_pair("marquee", Tag_MARQUEE)); } } htcheck-2.0.0~rc1.orig/acinclude.m40000644000000000000000000001303611245241617013752 0ustar dnl dnl Copyright (c) 1999-2001 Comune di Prato - Prato - Italy dnl Some Portions Copyright (c) 1995-2001 The ht://Dig Group dnl Author: Gabriele Bartolini - Prato - Italy dnl $Id: acinclude.m4,v 1.6 2008-12-23 16:41:04 angusgb Exp $ dnl dnl Part of the ht://Check package dnl For copyright details, see the file COPYING in your distribution dnl or the GNU General Public License version 2 or later dnl dnl dnl dnl AC_HTCHECK_ONCE(namespace, variable, code) dnl dnl execute code, if variable is not set in namespace dnl AC_DEFUN(AC_HTCHECK_ONCE,[ unique=`echo $ac_n "$2$ac_c" | tr -c -d a-zA-Z0-9` cmd="echo $ac_n \"\$$1$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "$1$unique=set" $3 fi ]) dnl dnl AC_EXPAND_PATH(path, variable) dnl dnl expands path to an absolute path and assigns it to variable dnl AC_DEFUN(AC_EXPAND_PATH,[ if test -z "$1" || echo "$1" | grep '^/' >/dev/null ; then $2="$1" else $2="`pwd`/$1" fi ]) dnl dnl AC_ADD_LIBPATH(path) dnl dnl add a library to linkpath/runpath dnl AC_DEFUN(AC_ADD_LIBPATH,[ if test "$1" != "/usr/lib"; then AC_EXPAND_PATH($1, ai_p) AC_HTCHECK_ONCE(LIBPATH, $ai_p, [ EXTRA_LIBS="$EXTRA_LIBS -L$ai_p" if test -n "$APXS" ; then RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'" else RPATHS="$RPATHS ${ld_runpath_switch}$ai_p" fi ]) fi ]) dnl dnl AC_ADD_INCLUDE(path) dnl dnl add a include path dnl AC_DEFUN(AC_ADD_INCLUDE,[ if test "$1" != "/usr/include"; then AC_EXPAND_PATH($1, ai_p) AC_HTCHECK_ONCE(INCLUDEPATH, $ai_p, [ INCLUDES="$INCLUDES -I$ai_p" ]) fi ]) dnl dnl AC_ADD_LIBRARY(library) dnl dnl add a library to the link line dnl AC_DEFUN(AC_ADD_LIBRARY,[ AC_HTCHECK_ONCE(LIBRARY, $1, [ EXTRA_LIBS="$EXTRA_LIBS -l$1" ]) ]) dnl dnl AC_ADD_LIBRARY_WITH_PATH(library, path) dnl dnl add a library to the link line and path to linkpath/runpath dnl AC_DEFUN(AC_ADD_LIBRARY_WITH_PATH,[ AC_ADD_LIBPATH($2) AC_ADD_LIBRARY($1) ]) AC_DEFUN(AC_TEMP_LDFLAGS,[ old_LDFLAGS="$LDFLAGS" LDFLAGS="$1 $LDFLAGS" $2 LDFLAGS="$old_LDFLAGS" ]) dnl dnl Prevent accidental use of Run Time Type Information g++ builtin dnl functions. dnl AC_DEFUN(NO_RTTI, [AC_MSG_CHECKING(adding -fno-rtti to g++) if test -n "$CXX" then if test "$GXX" = "yes" then CXXFLAGS_save="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fno-rtti" AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_COMPILE(,,,CXXFLAGS="$CXXFLAGS_save") AC_LANG_RESTORE fi fi AC_MSG_RESULT(ok) ]) dnl @synopsis AC_COMPILE_WARNINGS dnl dnl Set the maximum warning verbosity according to compiler used. dnl Currently supports g++ and gcc. dnl This macro must be put after AC_PROG_CC and AC_PROG_CXX in dnl configure.in dnl dnl @version $Id: acinclude.m4,v 1.6 2008-12-23 16:41:04 angusgb Exp $ dnl @author Loic Dachary dnl AC_DEFUN(AC_COMPILE_WARNINGS, [AC_MSG_CHECKING(maximum warning verbosity option) if test -n "$CXX" then if test "$GXX" = "yes" then ac_compile_warnings_opt='-Wall' fi CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" fi if test -n "$CC" then if test "$GCC" = "yes" then ac_compile_warnings_opt='-Wall' fi CFLAGS="$CFLAGS $ac_compile_warnings_opt" ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" fi AC_MSG_RESULT($ac_compile_warnings_msg) unset ac_compile_warnings_msg unset ac_compile_warnings_opt ]) dnl dnl This macro checks that the function strptime exists and that dnl it is declared in the time.h header. dnl dnl Here is an example of its use: dnl dnl strptime.c replacement: dnl dnl #ifndef HAVE_STRPTIME dnl .... dnl #endif /* HAVE_STRPTIME */ dnl dnl In sources using strptime dnl dnl #ifndef HAVE_STRPTIME_DECL dnl extern char *strptime(const char *__s, const char *__fmt, struct tm *__tp); dnl #endif /* HAVE_STRPTIME_DECL */ dnl dnl @author Loic Dachary dnl @version 1.0 dnl AC_DEFUN(AC_FUNC_STRPTIME, [ AC_CHECK_FUNCS(strptime) AC_MSG_CHECKING(for strptime declaration in time.h) AC_EGREP_HEADER(strptime, time.h, [ AC_DEFINE([HAVE_STRPTIME_DECL],,[Define if the function strptime is declared in ]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) ]) dnl If the compiler supports ISO C++ standard library (i.e., can include the dnl files iostream, map, iomanip and cmath), define HAVE_STD. AC_DEFUN([AC_CXX_HAVE_STD], [AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library, ac_cv_cxx_have_std, [AC_REQUIRE([AC_CXX_NAMESPACES]) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_COMPILE([#include #include #include #include #ifdef HAVE_NAMESPACES using namespace std; #endif],[return 0;], ac_cv_cxx_have_std=yes, ac_cv_cxx_have_std=no) AC_LANG_RESTORE ]) if test "$ac_cv_cxx_have_std" = yes; then AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard library]) fi ]) dnl If the compiler can prevent names clashes using namespaces, define dnl HAVE_NAMESPACES. AC_DEFUN([AC_CXX_NAMESPACES], [AC_CACHE_CHECK(whether the compiler implements namespaces, ac_cv_cxx_namespaces, [AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}], [using namespace Outer::Inner; return i;], ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no) AC_LANG_RESTORE ]) if test "$ac_cv_cxx_namespaces" = yes; then AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces]) fi ]) htcheck-2.0.0~rc1.orig/config.sub0000755000000000000000000010175611245527335013557 0ustar #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-09-08' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: htcheck-2.0.0~rc1.orig/.version0000644000000000000000000000001211245527263013241 0ustar 2.0.0-rc1