summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)Author
2020-06-28configure: Use $CC and $CXX as default compilers if setBart Van Assche
This change causes .travis.yml to use the compilers configured in the $CC and $CXX variables. Additionally, make the configure script show the compiler names. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-06-28configure: test for presence of C++ compilerJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-29fix build on musl libcMilan P. Stanić
Trying to build liburing on musl yields an error: make[1]: Entering directory '/work/devel/liburing/src' CC setup.ol CC queue.ol CC syscall.ol In file included from syscall.c:9: include/liburing/compat.h:6:2: error: unknown type name 'int64_t' 6 | int64_t tv_sec; | ^~~~~~~ make[1]: *** [Makefile:43: syscall.ol] Error 1 make[1]: Leaving directory '/work/devel/liburing/src' make: *** [Makefile:12: all] Error 2 Ensure that compat.h includes stdint.h. Signed-off-by: Milan P. Stanić <mps@arvanta.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-09configure: check for struct statxJens Axboe
If not there, don't build the test program test/statx Fixes: https://github.com/axboe/liburing/issues/101 Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-24configure: sync struct open_how with kernel APIJens Axboe
This got changed and I missed it, now corrected... Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-20configure: fix mis-generation of compat.h for no __kernel_rwf_tJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-12Auto-generate compat.hJens Axboe
The previous fix for __kernel_timespec only works within the liburing repo, as that's the only place we have the defines we need. Instead of relying on that, auto-generate compat.h so it suits the given build environment. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-12Correctly handle if __kernel_timespec is definedJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-07Fix liburing.so symlink source if libdir != libdevdirStefan Metzmacher
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06configure/Makefile: introduce libdevdir defaults to $(libdir)Stefan Metzmacher
This makes it possible to install runtime libraries to /lib/* and developement libraries to /usr/lib/* Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-08Add support for IORING_OP_OPENAT2Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-12-23configure: allow to set host CCJens Axboe
Use ./configure --cc=whatever to set the compiler. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-28liburing: create an installation target for testsJohannes Thumshirn
Create an installation target for liburing's regression test suite. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-10-01Switch to 32/64-bit agnostic timeout formatJens Axboe
We made a kernel change to support timeouts properly on 32-bit archs, update liburing to use __kernel_timespec instead of the differently sized timespec. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-08-28liburing: specifying --prefix to configure script was ineffective, fix.Kevin Vigor
The configure script used the default value of the prefix variable (/usr) to determine the includedir etc. *before* parsing the command line to determine if the user specified a prefix. This made configure --prefix ineffective. Fix. Tested with configure --help, configure --prefix, configure --prefix --includedir Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-25configure: move directory options to ./configureStefan Hajnoczi
libdir is hardcoded to ${prefix}/lib in Makefile. Fedora x86_64 uses /usr/lib64 and this means libaries will be installed in the wrong place. This patch moves prefix, includedir, libdir, and mandir into ./configure for easier customization. To build and install on Fedora x86_64: # ./configure --libdir=/usr/lib64 # make && make install Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-01-15Add configure scriptJens Axboe
Some older installs don't have __kernel_rwf_t in linux/fs.h, so add a check for that. Signed-off-by: Jens Axboe <axboe@kernel.dk>