2005-09-15 15:03:56 -04:00
|
|
|
# This is the automake's playground of our cool build system.
|
|
|
|
#
|
|
|
|
# TODO: Make part of it autogenerated based on AC_SUBST() or something.
|
|
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
|
2006-01-14 10:01:37 -05:00
|
|
|
TOPPATH = $(shell cd $(top_builddir) && pwd)
|
|
|
|
RELPATH = $(subst $(TOPPATH)/,,$(CURDIR)/)
|
|
|
|
PATHPREFIX = $(if $(patsubst /%,,@top_srcdir@),$(top_builddir)/)
|
2005-10-19 21:44:23 -04:00
|
|
|
top_srcdir = $(PATHPREFIX)@top_srcdir@
|
2005-12-29 18:49:01 -05:00
|
|
|
|
2006-01-14 10:01:37 -05:00
|
|
|
ifeq (@top_srcdir@,.)
|
2006-01-11 14:26:24 -05:00
|
|
|
srcdir =
|
2005-12-29 18:49:01 -05:00
|
|
|
else
|
2005-10-19 21:44:23 -04:00
|
|
|
srcdir = $(top_srcdir)/$(RELPATH)
|
2005-12-29 18:49:01 -05:00
|
|
|
endif
|
2006-01-14 10:01:37 -05:00
|
|
|
|
2005-09-15 15:03:56 -04:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
2006-09-17 10:55:53 -04:00
|
|
|
datarootdir = @datarootdir@
|
2005-09-15 15:03:56 -04:00
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
|
|
|
DESTDIR =
|
|
|
|
|
2010-03-22 04:35:15 -04:00
|
|
|
EXEEXT = @EXEEXT@
|
2005-09-15 15:03:56 -04:00
|
|
|
|
2005-10-02 19:31:21 -04:00
|
|
|
# Support for rebuilding configure and Makefile.config
|
2005-09-15 15:03:56 -04:00
|
|
|
ACLOCAL = @ACLOCAL@
|
|
|
|
AUTOCONF = @AUTOCONF@
|
|
|
|
AUTOHEADER = @AUTOHEADER@
|
|
|
|
|
2006-09-10 01:57:55 -04:00
|
|
|
# The INSTALL substituted by configure can be either absolute or
|
|
|
|
# relative to the top build directory. Adjust it so that it can
|
|
|
|
# be used in build subdirectories.
|
|
|
|
INSTALL = $(if $(patsubst /%,,$(firstword @INSTALL@)),$(top_builddir)/)@INSTALL@
|
2005-09-15 15:03:56 -04:00
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
|
2005-10-26 13:06:30 -04:00
|
|
|
host = @host@
|
|
|
|
|
2022-03-28 14:46:07 -04:00
|
|
|
ASCIIDOC = LANG=C LANGUAGE=en CONFIG_REPRODUCIBLE=@CONFIG_REPRODUCIBLE@ SOURCE_DATE_EPOCH=@SOURCE_DATE_EPOCH@ @PYTHON3@ $(top_srcdir)/doc/tools/asciidoc/asciidoc.py
|
2009-05-01 08:01:07 -04:00
|
|
|
ASCIIDOC_FLAGS = --unsafe
|
2005-09-15 15:03:56 -04:00
|
|
|
AWK = @AWK@
|
|
|
|
CATALOGS = @CATALOGS@
|
|
|
|
CC = @CC@
|
2010-12-13 07:08:46 -05:00
|
|
|
LD = @LD@
|
2008-01-22 07:21:29 -05:00
|
|
|
GIT = @GIT@
|
2005-09-15 15:03:56 -04:00
|
|
|
CONFDIR = @CONFDIR@
|
2007-08-08 08:23:21 -04:00
|
|
|
DOXYGEN = @DOXYGEN@
|
2011-10-08 06:07:02 -04:00
|
|
|
GETTEXT_CFLAGS = @GETTEXT_CFLAGS@
|
2005-09-15 15:03:56 -04:00
|
|
|
GLIBC21 = @GLIBC21@
|
|
|
|
GMOFILES = @GMOFILES@
|
|
|
|
GMSGFMT = @GMSGFMT@
|
|
|
|
GNUTLS_CFLAGS = @GNUTLS_CFLAGS@
|
|
|
|
GUILE_CFLAGS = @GUILE_CFLAGS@
|
|
|
|
INTLBISON = @INTLBISON@
|
|
|
|
INTLLIBS = @INTLLIBS@
|
|
|
|
INTLOBJS = @INTLOBJS@
|
|
|
|
INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
|
2020-09-03 12:44:43 -04:00
|
|
|
DBLATEX = @DBLATEX@
|
2023-03-12 12:29:59 -04:00
|
|
|
LIBCSS_CFLAGS = @LIBCSS_CFLAGS@
|
|
|
|
LIBCSS_LIBS = @LIBCSS_LIBS@
|
2005-09-15 15:03:56 -04:00
|
|
|
LIBDIR = @LIBDIR@
|
2023-03-12 12:29:59 -04:00
|
|
|
LIBDOM_CFLAGS = @LIBDOM_CFLAGS@
|
|
|
|
LIBDOM_LIBS = @LIBDOM_LIBS@
|
2011-04-28 12:02:00 -04:00
|
|
|
LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
|
2005-09-15 15:03:56 -04:00
|
|
|
LOCALEDIR = @LOCALEDIR@
|
|
|
|
LUA_CFLAGS = @LUA_CFLAGS@
|
|
|
|
LUA_LIBS = @LUA_LIBS@
|
2005-10-19 21:44:23 -04:00
|
|
|
MKINSTALLDIRS = $(PATHPREFIX)@MKINSTALLDIRS@
|
2005-09-15 15:03:56 -04:00
|
|
|
MSGFMT = @MSGFMT@
|
2022-08-21 15:33:13 -04:00
|
|
|
MUJS_CFLAGS = @MUJS_CFLAGS@
|
|
|
|
MUJS_LIBS = @MUJS_LIBS@
|
2005-09-15 15:03:56 -04:00
|
|
|
OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
PERL_CFLAGS = @PERL_CFLAGS@
|
|
|
|
PERL_LIBS = @PERL_LIBS@
|
|
|
|
POD2HTML = @POD2HTML@
|
|
|
|
PYTHON_CFLAGS = @PYTHON_CFLAGS@
|
|
|
|
PYTHON_LIBS = @PYTHON_LIBS@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
RUBY_CFLAGS = @RUBY_CFLAGS@
|
|
|
|
RUBY_LIBS = @RUBY_LIBS@
|
2005-11-24 07:24:19 -05:00
|
|
|
SPARSE = @SPARSE@
|
2005-09-15 15:03:56 -04:00
|
|
|
SPIDERMONKEY_CFLAGS = @SPIDERMONKEY_CFLAGS@
|
|
|
|
SPIDERMONKEY_LIBS = @SPIDERMONKEY_LIBS@
|
Bug 1060: Use libtre for regexp searches.
When the user tells ELinks to search for a regexp, ELinks 0.11.0
passes the regexp to regcomp() and the formatted document to
regexec(), both in the terminal charset. This works OK for unibyte
ASCII-compatible charsets because the regexp metacharacters are all in
the ASCII range. And ELinks 0.11.0 doesn't support multibyte or
ASCII-incompatible (e.g. EBCDIC) charsets in terminals, so it is no
big deal if regexp searches fail in such locales.
ELinks 0.12pre1 attempts to support UTF-8 as the terminal charset if
CONFIG_UTF8 is defined. Then, struct search contains unicode_val_T c
rather than unsigned char c, and get_srch() and add_srch_chr()
together save UTF-32 values there if the terminal charset is UTF-8.
In plain-text searches, is_in_range_plain() compares those values
directly if the search is case sensitive, or folds them to lower case
if the search is case insensitive: with towlower() if the terminal
charset is UTF-8, or with tolower() otherwise. In regexp searches
however, get_search_region_from_search_nodes() still truncates all
values to 8 bits in order to generate the string that
search_for_pattern() then passes to regexec(). In UTF-8 locales,
regexec() expects this string to be in UTF-8 and can't make sense of
the truncated characters. There is also a possible conflict in
regcomp() if the locale is UTF-8 but the terminal charset is not, or
vice versa.
Rejected ways of fixing the charset mismatches:
* When the terminal charset is UTF-8, recode the formatted document
from UTF-32 to UTF-8 for regexp searching. This would work if the
terminal and the locale both use UTF-8, or if both use unibyte
ASCII-compatible charsets, but not if only one of them uses UTF-8.
* Convert both the regexp and the formatted document to the charset of
the locale, as that is what regcomp() and regexec() expect. ELinks
would have to somehow keep track of which bytes in the converted
string correspond to which characters in the document; not entirely
trivial because convert_string() can replace a single unconvertible
character with a string of ASCII characters. If ELinks were
eventually changed to use iconv() for unrecognized charsets, such
tracking would become even harder.
* Temporarily switch to a locale that uses the charset of the
terminal. Unfortunately, it seems there is no portable way to
construct a name for such a locale. It is also possible that no
suitable locale is available; especially on Windows, whose C library
defines MB_LEN_MAX as 2 and thus cannot support UTF-8 locales.
Instead, this commit makes ELinks do the regexp matching with regwcomp
and regwexec from the TRE library. This way, ELinks can losslessly
recode both the pattern and the document to Unicode and rely on the
regexp code in TRE decoding them properly, regardless of locale.
There are some possible problems though:
1. ELinks stores strings as UTF-32 in arrays of unicode_val_T, but TRE
uses wchar_t instead. If wchar_t is UTF-16, as it is on Microsoft
Windows, then TRE will misdecode the strings. It wouldn't be too
hard to make ELinks convert to UTF-16 in this case, but (a) TRE
doesn't currently support UTF-16 either, and it seems possible that
wchar_t-independent UTF-32 interfaces will be added to TRE; and (b)
there seems to be little interest on using ELinks on Windows anyway.
2. The Citrus Project apparently wanted BSD to use a locale-dependent
wchar_t: e.g. UTF-32 in some locales and an ISO 2022 derivative in
others. Regexp searches in ELinks now do not support the latter.
[ Adapted to elinks-0.12 from bug 1060 attachment 506.
Commit message by me. --KON ]
2008-12-24 08:48:00 -05:00
|
|
|
TRE_CFLAGS = @TRE_CFLAGS@
|
|
|
|
TRE_LIBS = @TRE_LIBS@
|
2005-09-15 15:03:56 -04:00
|
|
|
VERSION = @VERSION@
|
|
|
|
XMLTO = @XMLTO@
|
|
|
|
X_CFLAGS = @X_CFLAGS@
|
2005-09-15 19:07:31 -04:00
|
|
|
XGETTEXT = @XGETTEXT@
|
2005-09-15 15:03:56 -04:00
|
|
|
|
2017-10-22 21:23:02 -04:00
|
|
|
#Warning: this one is not in configure.ac so following line will not generate it
|
2006-01-11 14:47:58 -05:00
|
|
|
CONFIG_NLS = @CONFIG_NLS@
|
|
|
|
|
2017-10-22 21:23:02 -04:00
|
|
|
# :r !grep '(CONFIG_[A-Z0-9_]\+[^A-Z0-9_]' configure.ac | sed 's/^.*(\(CONFIG_[A-Z0-9_]\+\)[^A-Z0-9_].*$/\1 = @\1@/' | sort | uniq
|
2006-01-11 14:26:24 -05:00
|
|
|
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_256_COLORS = @CONFIG_256_COLORS@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_88_COLORS = @CONFIG_88_COLORS@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_ASCIIDOC = @CONFIG_ASCIIDOC@
|
2007-08-08 08:23:21 -04:00
|
|
|
CONFIG_DOXYGEN = @CONFIG_DOXYGEN@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_BACKTRACE = @CONFIG_BACKTRACE@
|
|
|
|
CONFIG_BITTORRENT = @CONFIG_BITTORRENT@
|
|
|
|
CONFIG_BOOKMARKS = @CONFIG_BOOKMARKS@
|
2015-10-12 17:18:23 -04:00
|
|
|
CONFIG_BROTLI = @CONFIG_BROTLI@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_BZIP2 = @CONFIG_BZIP2@
|
|
|
|
CONFIG_CGI = @CONFIG_CGI@
|
|
|
|
CONFIG_COOKIES = @CONFIG_COOKIES@
|
|
|
|
CONFIG_CSS = @CONFIG_CSS@
|
|
|
|
CONFIG_DATA = @CONFIG_DATA@
|
|
|
|
CONFIG_DEBUG = @CONFIG_DEBUG@
|
2022-05-18 15:20:45 -04:00
|
|
|
CONFIG_DGI = @CONFIG_DGI@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_DOC = @CONFIG_DOC@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_DOM = @CONFIG_DOM@
|
|
|
|
CONFIG_ECMASCRIPT = @CONFIG_ECMASCRIPT@
|
2006-01-11 07:44:33 -05:00
|
|
|
CONFIG_ECMASCRIPT_SMJS = @CONFIG_ECMASCRIPT_SMJS@
|
2009-11-28 03:44:09 -05:00
|
|
|
CONFIG_ECMASCRIPT_SMJS_HEARTBEAT = @CONFIG_ECMASCRIPT_SMJS_HEARTBEAT@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_EXMODE = @CONFIG_EXMODE@
|
|
|
|
CONFIG_FASTMEM = @CONFIG_FASTMEM@
|
|
|
|
CONFIG_FINGER = @CONFIG_FINGER@
|
|
|
|
CONFIG_FORMHIST = @CONFIG_FORMHIST@
|
2006-01-16 05:40:13 -05:00
|
|
|
CONFIG_FSP = @CONFIG_FSP@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_FTP = @CONFIG_FTP@
|
|
|
|
CONFIG_GLOBHIST = @CONFIG_GLOBHIST@
|
|
|
|
CONFIG_GNUTLS = @CONFIG_GNUTLS@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_GNUTLS_OPENSSL_COMPAT = @CONFIG_GNUTLS_OPENSSL_COMPAT@
|
2021-07-02 15:28:48 -04:00
|
|
|
CONFIG_GEMINI = @CONFIG_GEMINI@
|
2021-08-08 16:04:52 -04:00
|
|
|
CONFIG_GETTEXT = @CONFIG_GETTEXT@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_GOPHER = @CONFIG_GOPHER@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_GPM = @CONFIG_GPM@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_GZIP = @CONFIG_GZIP@
|
|
|
|
CONFIG_HTML_HIGHLIGHT = @CONFIG_HTML_HIGHLIGHT@
|
2022-04-11 03:39:48 -04:00
|
|
|
CONFIG_IDN2 = @CONFIG_IDN2@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_INTERLINK = @CONFIG_INTERLINK@
|
|
|
|
CONFIG_IPV6 = @CONFIG_IPV6@
|
2020-09-03 12:44:43 -04:00
|
|
|
CONFIG_DBLATEX = @CONFIG_DBLATEX@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_LEDS = @CONFIG_LEDS@
|
2023-03-01 12:02:06 -05:00
|
|
|
CONFIG_LIBCSS = @CONFIG_LIBCSS@
|
2023-03-12 12:29:59 -04:00
|
|
|
CONFIG_LIBDOM = @CONFIG_LIBDOM@
|
2006-03-24 06:30:54 -05:00
|
|
|
CONFIG_LZMA = @CONFIG_LZMA@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_MAILCAP = @CONFIG_MAILCAP@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_MANUAL = @CONFIG_MANUAL@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_MARKS = @CONFIG_MARKS@
|
|
|
|
CONFIG_MIMETYPES = @CONFIG_MIMETYPES@
|
|
|
|
CONFIG_MOUSE = @CONFIG_MOUSE@
|
2022-08-21 15:33:13 -04:00
|
|
|
CONFIG_MUJS = @CONFIG_MUJS@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_NNTP = @CONFIG_NNTP@
|
|
|
|
CONFIG_NO_ROOT_EXEC = @CONFIG_NO_ROOT_EXEC@
|
|
|
|
CONFIG_OPENSSL = @CONFIG_OPENSSL@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_OS_BEOS = @CONFIG_OS_BEOS@
|
2022-05-09 12:53:36 -04:00
|
|
|
CONFIG_OS_DOS = @CONFIG_OS_DOS@
|
2006-01-11 14:10:26 -05:00
|
|
|
CONFIG_OS_OS2 = @CONFIG_OS_OS2@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_OS_RISCOS = @CONFIG_OS_RISCOS@
|
|
|
|
CONFIG_OS_UNIX = @CONFIG_OS_UNIX@
|
|
|
|
CONFIG_OS_WIN32 = @CONFIG_OS_WIN32@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_OWN_LIBC = @CONFIG_OWN_LIBC@
|
|
|
|
CONFIG_POD2HTML = @CONFIG_POD2HTML@
|
2021-11-24 11:15:56 -05:00
|
|
|
CONFIG_QUICKJS = @CONFIG_QUICKJS@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_SCRIPTING = @CONFIG_SCRIPTING@
|
2006-01-11 14:26:24 -05:00
|
|
|
CONFIG_SCRIPTING_GUILE = @CONFIG_SCRIPTING_GUILE@
|
|
|
|
CONFIG_SCRIPTING_LUA = @CONFIG_SCRIPTING_LUA@
|
|
|
|
CONFIG_SCRIPTING_PERL = @CONFIG_SCRIPTING_PERL@
|
|
|
|
CONFIG_SCRIPTING_PYTHON = @CONFIG_SCRIPTING_PYTHON@
|
|
|
|
CONFIG_SCRIPTING_RUBY = @CONFIG_SCRIPTING_RUBY@
|
|
|
|
CONFIG_SCRIPTING_SPIDERMONKEY = @CONFIG_SCRIPTING_SPIDERMONKEY@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_SMALL = @CONFIG_SMALL@
|
|
|
|
CONFIG_SMB = @CONFIG_SMB@
|
|
|
|
CONFIG_SPIDERMONKEY = @CONFIG_SPIDERMONKEY@
|
|
|
|
CONFIG_SSL = @CONFIG_SSL@
|
|
|
|
CONFIG_SYSMOUSE = @CONFIG_SYSMOUSE@
|
2017-11-19 12:29:38 -05:00
|
|
|
CONFIG_TERMINFO = @CONFIG_TERMINFO@
|
2006-08-19 17:39:40 -04:00
|
|
|
CONFIG_TRUE_COLOR = @CONFIG_TRUE_COLOR@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_URI_REWRITE = @CONFIG_URI_REWRITE@
|
2006-09-17 09:12:47 -04:00
|
|
|
CONFIG_UTF8 = @CONFIG_UTF8@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_XBEL_BOOKMARKS = @CONFIG_XBEL_BOOKMARKS@
|
2021-07-09 11:52:15 -04:00
|
|
|
CONFIG_XML = @CONFIG_XML@
|
2005-09-15 22:24:01 -04:00
|
|
|
CONFIG_XMLTO = @CONFIG_XMLTO@
|
2006-06-14 08:41:59 -04:00
|
|
|
CONFIG_GSSAPI = @CONFIG_GSSAPI@
|
2019-07-14 12:54:39 -04:00
|
|
|
CONFIG_ZSTD = @CONFIG_ZSTD@
|
2005-09-15 22:24:01 -04:00
|
|
|
|
2005-09-15 15:03:56 -04:00
|
|
|
DEFS = @DEFS@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
2022-08-16 11:36:13 -04:00
|
|
|
CXXFLAGS = @CXXFLAGS@
|
2005-09-15 15:03:56 -04:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDES = -I$(top_builddir) -I$(top_srcdir)/src
|
|
|
|
|
2019-04-21 06:27:40 -04:00
|
|
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
2005-09-15 17:28:56 -04:00
|
|
|
|
2022-08-16 11:36:13 -04:00
|
|
|
COMPILE_CXX = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS)
|
|
|
|
|
2005-12-15 02:44:15 -05:00
|
|
|
MAKE_COLOR = @MAKE_COLOR@
|
|
|
|
|
2006-01-12 13:06:50 -05:00
|
|
|
LIB_O_NAME = lib.o
|
2005-09-15 17:28:56 -04:00
|
|
|
|
|
|
|
### This is here because Makefile.config is usually the first thing
|
|
|
|
### we get and sometimes the all rule can be implicit, yet we want
|
|
|
|
### it always as the default one. So this should make sure it always
|
|
|
|
### comes first.
|
|
|
|
all:
|
|
|
|
|