summaryrefslogtreecommitdiffstats
path: root/configure.ac
AgeCommit message (Collapse)Author
2024-03-20Remove non-standard pow10 filter in favor of exp10 (#3059)itchyny
The pow10 function was a glibc extension removed in 2.27. Use exp10 filter instead.
2023-12-11shtest+configure: remove uses of non-portable/non-standard commandsEmanuele Torre
Replace deprecated test(1) parentheses and -a logical operator with two tests command. Replace deprecated tail -1 with tail -n1. Replace non-standard egrep(1) command with grep -E ; this also prevents obsolescence warnings on GNU systems.
2023-10-21Remove unused mkstemp()Klemens Nanni
b82c231 "Remove -i option (#704)" removed its last usage in 2015. Spotted while looking for code could potentially write/create/modify files.
2023-09-06Add setlocale() call (fix #1740)jq-1.7Nicolas Williams
2023-07-24Make maintainer-mode default to disabledMattias Wadman
This makes the standard build instructions a bit easier, just ./configure, and also requires less tools installed (bison). Also i think few people probably want to generate the lexer and paser code.
2023-07-18Split man.test to make tests pass without oniguruma (#2722)itchyny
2023-07-16Fix autoreconf warningsitchyny
2023-06-14C99 compatibility enhancements for the configure script (#2519)Florian Weimer
* configure.ac: Enable system extensions Use AC_USE_SYSTEM_EXTENSIONS to build with _GNU_SOURCE (and similar macros on non-GNU systems), to avoid an implicit declaration of the strptime function. This improves compatibility with future compilers which do not support implicit function declarations. * configure.ac: gettimeofday lives in <sys/time.h> The gettimeofday function is declared in <sys/time.h>, not <time.h>, according to POSIX and actual systems. This avoids a configure probe failure with compilers which do not support implicit function declarations.
2023-06-14Fix version scripts for some shallow clone situations (fix #1549) (#2608)itchyny
2023-06-13Fix misspellings (#2609)Josh Soref
2023-05-28Update URLs from stedolan to jqlangStephen Dolan
2021-05-01Add large file support for 32-bit systems to fix issue 2167Ciaran McNamara
2020-12-19Clean up compile warnings on macOSWilliam Langford
2020-12-19Use AX_PTHREAD to properly detect pthread and flagsWilliam Langford
2020-03-02Rework pipenv requirement to be more relaxedWilliam Langford
Keep a cached copy of the man tests that we can use when no manpage changes are made. This allows automated systems that might not have easy access to a pipenv to build and run tests.
2020-01-14fix typosAlanscut
2019-12-29Differentiate WIN32 / Cygwin in configure scriptRichard H Lee
shlwapi.h is present on both systems
2019-10-22Add configure guards around literal jv_numbersWilliam Langford
Allow building jq in a mode that doesn't use decnumber for benchmarking purposes. decnumber support is enabled by default, and this option is meant to be removed once we're happy with the performance.
2019-10-22Save literal value of the parsed number to preserve it for the outputLeonid S. Usov
Extend jv_number to use decNumber for storing number literals. Any math operations on the numbers will truncate them to double precision. Comparisons when both numbers are literal numbers will compare them without truncation. Delay conversion of numbers to doubles until a math operation is performed, to preserve precision. A literal jv_number will only need conversion to double once, and will reuse the resultant double on subsequent conversions. Outputting literal jv_numbers preserves the original precision. Add strong pthread requirement to manage contexts/allocations for converting numbers between their decNumber, string, and double formats.
2019-03-29Add pkg-config file for libjqMattias Hansson
pkg-config is a common interface to resolve build details. It will become easier to incorporate libjq in other projects by providing this interface.
2019-03-24Disable docs by default; don't mantest if no docsNicolas Williams
2019-02-26Remove ruby dependency from website buildWilliam Langford
2018-12-19Mingw-w64 on windows doesn't have `setenv`, fix that.HE, Tao
Signed-off-by: HE, Tao <sighingnow@gmail.com>
2018-10-12Bugfix: Math function checkingAlex Ozdemir
We had config machinery that determined which math functions are available in libc. If a c math function was missing on the host system, then the corresponding jq function would be removed from the source, enabling the build to proceed anyway. The detection machinery was broken in a subtle way, as was shown after glibc updated to 2.27, dropping the `pow10` function. This caused compilation to fail. The essential problem was that we detected whether a math function was available by compiling and linking a small program evaluating that function on constants. However, since gcc's optimization machinery has special knowledge of some math functions (e.g. `pow10`), it can optimize them away, even if they don't exist in the library and are not linkable. That is, the following example compiles and links against glibc 2.27, even though `pow10` has been removed: ``` int main () { printf("%f", pow10(0.5)); return 0; } ``` What?! On the other hand, this program does not link: ``` int main () { double f; printf("%f", &f); printf("%f", pow10(f)); return 0; } ``` In the first program the call to `pow10` can be optimized away as a constant expression. This requires GCC to know about `pow10` (which it does!), but it does not require `pow10` to be in the library (and actually linkable). The solution is to use autoconf's machinery for detecting function presence, instead of our own (buggy) machinery. This has the added benefit of simplifying the code. The bug was reported in issue #1659
2017-05-21Use AC_CHECK_MATH_FUNC() for all math functionsNicolas Williams
2017-03-30Also fix `jn/2` and `yn/2`Nicolas Williams
2017-03-29Fix frexp, modf, lgamma_r (fix #1374)Nicolas Williams
2017-03-04Make configure.ac work for shallow clonesNicolas Williams
2017-02-26Fix --without-oniguruma buildNicolas Williams
2017-02-25Preserve precious vars in configure.ac (fix #795)Nicolas Williams
2017-02-25Improve Appveyor buildNicolas Williams
Among other things, make TESTS=... breaks when using modules/oniguruma, so set SUBDIRS= then.
2017-02-25When using builtin Oniguruma, set flags correctlyNicolas Williams
This should fix the Travis-CI build.
2017-02-23Add `localtime` and `strflocaltime` (fix #1349)Nicolas Williams
2017-02-23Allow ./configure --with-oniguruma=builtinNicolas Williams
This allows one to force the use of jq's builtin copy of Oniguruma (builtin as a git submodule). We still need to fix make dist to include that copy of Oniguruma.
2017-02-18Add local oniguruma submoduleErik Brinkman
Configure should still allow use of prebuilt onigurumas (whether system-installed or in a special prefix). If these are not found, and configure was not called with `--without-oniguruma`, then use the vendored oniguruma module. If configure was called with `--without-oniguruma`, then we do not build regex functionality into jq.
2017-02-04Add more missing math functionsNicolas Williams
2016-01-17Add --enable-ubsan (undefined behavior sanitizer)Nicolas Williams
2016-01-16Fix Windows build (fix #911)Nicolas Williams
2015-11-21Support --without-onigurumaDavid Tolnay
2015-10-27Add address sanitizer (ASAN) support (fix #1002)Nicolas Williams
2015-08-23Move source files to src/David Tolnay
2015-08-22Sort libm functionsDavid Tolnay
2015-08-15Use https where possibleDavid Tolnay
2015-08-13Remove all trailing whitespaceDavid Tolnay
2015-07-24Change homepage .com -> .ioDavid Tolnay
The .com redirects to .io, but might as well have the correct one to begin with.
2015-07-24Change AC bug-report parameter to point to GitHubDavid Tolnay
This affects where `make check` tells you to report failures.
2015-07-18Use =, not ==, for shell testsNicolas Williams
2015-07-03Remove `pow10` for now; CHECK_MATH_FUNC needs workNicolas Williams
The CHECK_MATH_FUNC() m4 macro needs work. It should use AC_RUN_IFELSE(), not just AC_LINK_IFELSE(), and it should #define _GNU_SOURCE and/or other such feature macros in the prologue to get non-standard math functions (alternatvely jq should only support standard math functions).
2015-06-27Add `pow`, better libm detection (fix #443)Nicolas Williams
2015-06-27flag to enable gcov and coverallsDavid Tolnay