aboutsummaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
8 daysExperiment with termbox2 for renderingHEADmasterMitchell Riedstra1-0/+4
2026-01-07support lua 5.5...Christian Hesse1-2/+2
... and replace the functions for unsigned integers with their signed equivalents, using a type cast where needed. Actually the functions for unsigned integers were deprecated since lua 5.3... https://www.lua.org/manual/5.3/manual.html#8.3 Also lua_newstate() requires a third argument since 5.5... https://www.lua.org/manual/5.5/manual.html#8.3 Finally the key in a for loop is now const, so use a temporary variable instead.
2025-12-22move all standard library includes into util.hRandy Palamar1-1/+1
2025-12-16make vis a single file buildRandy Palamar1-48/+16
2025-12-08util: replace memrchr with internal versionRandy Palamar1-20/+0
The amount of code we need to detect if this is present and handle the fallback is more than if we just provide it ourselves. Also we are passing in a difference of pointers so the argument type should be ptrdiff_t. This avoids a C brain damage of having unsigned size type which can wrap around if the caller is careful.
2025-11-24text-io: make TextSave visibleRandy Palamar1-0/+3
Having a failure case on allocing a TextSave is stupid. Ideally there would be no allocations in the file saving path but we have to replace the braindead dirname(3) with an internal implementation.
2024-05-12enable warnings in default CFLAGSRandy Palamar1-0/+1
2024-05-03configure: check for 'lua5.4-lpeg' tooMr Alin1-1/+1
2023-08-25configure: also check for lua-5.4Donald C. Allen1-1/+1
2023-08-16build: stop setting _POSIX_C_SOURCERandy Palamar1-1/+1
from feature_test_macros(7): > Defining _XOPEN_SOURCE with a value of 700 or greater produces the > same effects as defining _POSIX_C_SOURCE with a value of 200809L or > greater. Depending on the configuration and system pkg-conf files there can be redefinition warnings. Rather than patching with a -U_POSIX_C_SOURCE it can just be dropped instead.
2023-08-16build: support incremental rebuildsRandy Palamar1-1/+1
2023-03-19don't set _FORTIFY_SOURCE in configureRandy Palamar1-1/+1
distributions that want this flag set do so on a system wide level. for example Gentoo, Fedora, Debian, and OpenSUSE. since vis sets it when invoking cc via make it overwrites the system setting (and pollutes the output with redefinition warnings). For reference here is the related bug in Gentoo: https://bugs.gentoo.org/892960
2022-05-03Re-enabled tre by #including <stddef.h>.Peter Buxton1-0/+1
2021-03-15add lua5.4 in configure scriptxoich1-1/+1
2020-11-14build: fix curses library/pkg-config nameLeonardo Taccari1-1/+1
Gracefully fallback to curses(3) (no libcurses `.pc' file is present and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
2020-11-13build: use feature test macros for memrchr configure checkMarc André Tanner1-1/+1
Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage.
2020-11-12build: add -D_NETBSD_SOURCE for NetBSDSilas1-0/+1
memrchr() signature is not exposed by default for NetBSD. If one does not add -D_NETBSD_SOURCE, the compiler uses its own signature for memrchr() that returns a 32-bit integer, leading to misbehaviour in some situations. Defining _BSD_SOURCE doesn't work, so we define _NETBSD_SOURCE.
2020-06-30build: define LUA_COMPAT_5_3Christian Hesse1-1/+1
This is required to build with lua 5.4.x.
2020-05-12build: use -O2 by defaultMarc André Tanner1-1/+1
2020-04-29build: fix _XOPEN_SOURCE redefinition warningMarc André Tanner1-1/+1
Was also reported in #780.
2020-02-07build: improve debug flagsMarc André Tanner1-1/+1
Make macro definitions and enums available to debugger.
2018-11-17Fix configure on DragonFly BSDMichael Neumann1-1/+1
2018-03-14configure: Improve LPeg detectionTwoFinger1-23/+23
Try the possible library names regardless of .pc file availability.
2018-02-19configure: fix static lpeg detection messagesQuentin Rameau1-4/+5
2018-01-26build: abort configure scripts upon interruptsMarc André Tanner1-1/+2
Fix #607
2018-01-26build: use pkg-config to find lpegTwoFinger1-4/+18
2017-12-02build: remove erroneous libtermkey dependencyMarc André Tanner1-1/+1
Fix #636
2017-05-31build: cleanup self contained executableMarc André Tanner1-10/+1
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to simplify extraction logic, improve error handling.
2017-05-13build: fix warning in lua related configure checkMarc André Tanner1-0/+2
luaL_openlibs is actually declared in lualib.h.
2017-04-14build: install miscellaneous documentationDavid B. Lamkins1-1/+5
2017-04-09text: add mem{r,}chr(3) based byte search functionsMarc André Tanner1-0/+20
These are generally implemented efficiently in libc. While memrchr(3) is non-standard, it is a common extension. If it is not available, we use a simple C implementation from musl.
2017-03-27Prefer Lua 5.3Klemens Nanni1-1/+1
2017-03-15build: clarify lpeg related configure optionMarc André Tanner1-4/+4
2017-03-14Add experimental raw vt100 UI backendMarc André Tanner1-28/+37
The intention of this is not to slowly reimplement curses but to provide a minimal working terminal UI backend which can also be used for debugging, fuzzing and in environments where curses is not available. Currently no attempt is made to optimize terminal output. The amount of flickering will depend on the smartness of your terminal emulator.
2017-02-25build: try to enable compiler flags to minimize binary sizeMarc André Tanner1-3/+3
2017-02-24vis: make help texts optional to produce a smaller binaryMarc André Tanner1-0/+11
$ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system.
2017-02-23build: skip configure check for built-in lpeg if lua is not foundMarc André Tanner1-1/+1
$ ./configure --disable-lua will no longer look for liblpeg.
2017-01-19text-regex: add regex backend based on libtreMarc André Tanner1-0/+52
While memory consumption should be improved, backward searches will still be slow, because they are implemented in terms of repeated forward searches. It needs to be investigated whether the underlying automaton can have its transitions reversed and essentially run backwards, as is the case in sam.
2016-12-15build: move $CFLAGS_DEBUG into config.mkMarc André Tanner1-0/+1
This allows inclusion in other Makefiles (e.g. for C unit tests).
2016-12-14build: improve description of --enable-lpeg configure optionMarc André Tanner1-1/+1
It links lpeg statically into the vis binary, meaning it does not need to be dlopen(3)-ed at runtime. While this improves the portability of the resulting vis binary, it is not necessary to enable this option to get syntax highlighting support. Maybe the option should be renamed to avoid further confusion.
2016-12-13build: remove internal configure options from help textMarc André Tanner1-2/+0
These are used by `make standalone` but are not really appropriate for normal usage and just cause confusion as demonstrated by #373.
2016-12-13build: add configure options for built-in lpeg supportMarc André Tanner1-0/+52
2016-05-19build: check for Lua >= 5.2 in configure scriptMarc André Tanner1-1/+5
The generic lua pkg-config name also match for Lua 5.1 which then results in a linker error because the necessary functions are not available.
2016-05-05build: add -D__BSD_VISIBLE=1 to default CFLAGS for FreeBSDMarc André Tanner1-3/+4
SIGWINCH is not part of POSIX. In contrast to the other BSD variants, FreeBSD does not expose it when defining _BSD_SOURCE. This is probably not the 'correct' solution, but seems to work for now. Instead of defining it globally it might have been better to add the necessary #define to the only source file making use of SIGWINCH. Close #302
2016-04-26build: fix lua auto detection on OpenBSDMarc André Tanner1-1/+1
2016-04-26build: try to produce a statically linked position independent executableMarc André Tanner1-3/+7
In theory this should be as simple as: $ cc -fPIE -pie --static helloworld.c But unfortunately by default this will always add a PT_INTERP referencing the dynamic loader/linker. On latest binutils >=2.26 this can be worked around by supplying --no-dynamic-linker. Also tweak the musl-gcc wrapper to use rcrt1.o as startup file.
2016-04-26build: skip -pie for static buildChristian Hesse1-1/+5
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-04-25build: (re)enable pie buildChristian Hesse1-1/+3
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
2016-04-25build: remove redundant code from configure scriptMarc André Tanner1-3/+0
2016-04-25build: add more default flags to $CFLAGS instead of $CFLAGS_AUTOMarc André Tanner1-7/+7
This way we make sure the flags are in place when building dependencies.