aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Add --without-libtirpcSamuel Thibault2023-01-311-1/+8
| | | | To facilitate cross-build without tinkering with pkg-config.
* Add --without-rump configure optionSamuel Thibault2022-10-311-21/+26
| | | | To allow cross-builds which cannot use AC_LINK_IFELSE at all.
* Add --without-acpica configure optionSamuel Thibault2022-10-311-5/+9
| | | | To allow cross-builds which cannot use AC_CHECK_LIB at all.
* acpi: Link translator to libacpica and provide RPCsDamien Zammit2022-09-121-0/+9
| | | | | | | | | Provides two new acpi RPCs to sleep the machine and to get the irq of any pci device. ACPI mode is enabled by default when the translator is started. NB: Merging this commit means libacpica is a build dep. Message-Id: <20220912103837.556815-2-damien@zamaudio.com>
* configure.ac: Drop unneeded backquote escapingSamuel Thibault2022-02-121-2/+2
|
* Replace AC_TRY_COMPILE with AC_COMPILE_IFELSESamuel Thibault2022-02-121-5/+6
| | | | | | The former is obsolete. configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE.
* rumpdisk: Link with rumpvfs_nofifofs if presentDamien Zammit2021-12-281-3/+26
| | | | Message-Id: <20211228055114.173039-1-damien@zamaudio.com>
* configure: Allow libtirpc to be missingSamuel Thibault2021-08-241-1/+1
| | | | | | | The dependency on libtirpc is already optional in the Makefiles, we do not need to fail configure when it is missing. * configure.ac: Do not fail when libtirpc is not available.
* nfs/nfsd: Use libtirpcSamuel Thibault2021-08-221-2/+3
| | | | | | | | | | | | | Sun RPC is being phased out from glibc. * configure.ac: Detect libtirpc.pc, subst libtirpc_CFLAGS and libtirpc_LIBS. * config.make.in: Subst libtirpc_CFLAGS and libtirpc_LIBS. * nfs/Makefile, nfsd/Makefile: Include libtirpc_CFLAGS and libtirpc_LIBS * nfs/mount.c: Include <rpc/xdr.h> * nfsd/main.c: Likewise. * nfsd/ops.c: Likewise. * nfsd/cache.c: Undef TRUE/FALSE after including rpc/ headers. * nfsd/loop.c: Likewise.
* Call _hurd_libc_proc_init when availableSamuel Thibault2021-04-111-0/+1
| | | | | | | | | | | glibc 2.33 separated out _hurd_libc_proc_init from _hurd_init, so we have to additionally call it. * configure.ac (_hurd_libc_proc_init): Detect function. * libdiskfs/boot-start.c (diskfs_S_fsys_init): Call _hurd_libc_proc_init. * libmachdev/trivfs_server.c (trivfs_S_fsys_init): Call _hurd_libc_proc_init.
* Do not hardcode /libexec libexecdirSamuel Thibault2021-03-161-1/+1
| | | | | | | | | | | | | | | | So that distributions can use the --libexecdir configure parameter. * configure.ac (AC_CONFIG_FILES): Add daemons/runsystem.hurd.sh. * config/ttys: Rename to ttys.in, replace /libexec with @libexecdir@. * config/Makefile (ttys): Generate from ttys.in * daemons/runsystem.hurd.sh.in (prefix): Define to @prefix@. (exec_prefix): Define to @exec_prefix@. (RUNCOM, RUNTTYS): Replace /libexec with @libexecdir@. * init/Makefile (init-CPPFLAGS): Define LIBEXECDIR. * init/init.c (main): Use LIBEXECDIR instead of hardcoding /libexec. * startup/Makefile (startup-CPPFLAGS): Define LIBEXECDIR. * startup/startup.c (start_child, launch_something): Use LIBEXECDIR instead of hardcoding /libexec.
* libthreads: Finish emovingSamuel Thibault2020-11-111-11/+0
| | | | | * config.make.in (VERSIONING): Remove. * configure.ac: Do not set VERSIONING.
* libthreads: RemoveSamuel Thibault2020-11-111-1/+1
| | | | | | | | | | | | | | | libthreads is most probably completely broken, and not the long-term road anyway. * config.make.in (VERSIONING): Remove. * configure.ac: Test for pfinet assembly compatibility instead of libthreads assembly compatibility. Do not set VERSIONING. * libthreads: Remove directory. * Makefile (lib-subdirs): Remove libthreads. * doc/hurd.texi (Threads Library): Rename references to libthreads into libpthread. * release/rfloppy.copy: Do not objcopy lib/libthreads.so. * release/tool-Makefile (rfloppy-solib): Remove libthreads.
* rump: do not build if rump/rump.h can't be foundSamuel Thibault2020-04-111-2/+3
| | | | * configure.ac: Combine tests for rump/rump.h and librump.
* rumpdisk: Add userspace disk support via librumpDamien Zammit2020-04-111-0/+4
|
* Make libcrypt really optionalSamuel Thibault2019-11-171-4/+8
| | | | | | | * configure.ac (--without-libcrypt): Add option. Only test for libcrypt if it is not set. * utils/Makefile (login-LDLIBS, addauth-LDLIBS, setauth-LDLIBS): Only add -lcrypt when libcrypt is available.
* pciaccess: properly detect and useSamuel Thibault2019-11-031-0/+5
| | | | | | | | | | | * configure.ac: Detect pciaccess pkg module. Define HAVE_LIBPCIACCESS, libpciaccess_CFLAGS, libpciaccess_LIBS variables. * config.make.in (HAVE_LIBPCIACCESS, libpciaccess_CFLAGS, libpciaccess_LIBS): Add variables. * Makefile (prog-subdirs) [!HAVE_LIBPCIACCESS]: Do not add pci-arbiter. * pci-arbiter/Makefile (LDLIBS): Use $(libpciaccess_LIBS) instead of -lpciaccess. (CFLAGS): Use $(libpciaccess_CFLAGS).
* Fix typoAlmudena Garcia2019-10-311-1/+1
| | | | configure.ac: Fix including <mach/thread_info.h>.
* proc: add support for last_processorAlmudena Garcia2019-10-311-0/+4
| | | | | | | | | | | | | | | Read last_processor (new member) from thread_info structures, and fill stat structure with this. * configure.ac: Check whether thread_sched_info structure includes `last_processor' member. * proc/info.c (S_proc_getprocinfo) [HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR]: Set `last_processor' field. * procfs/process.c (process_file_gc_stat) [HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR]: Set last processor proc field to `thsi->last_processor'. [!HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR]: Set last processor proc field to 0.
* Fix password checking with as-needed linkingSamuel Thibault2019-09-011-0/+5
| | | | | | | | | | | | | | | Newer gcc toolchains tend to enable as-needed by default, so runtime detection of libcrypt will fail. We can just explicitly link against libcrypt anyway. * configure.ac: Check for `crypt()' in libcrypt. * config.make.in: Substitute HAVE_LIBCRYPT. * libshouldbeinlibc/idvec-verify.c: Include <crypt.h> only when libcrypt is available. Replace weak reference with explicit call and fallback macro. * utils/x.c: Likewise. * libshouldbeinlibc/Makefile (LDLIBS): Add -lcrypt when libcrypt is available.
* Add file_utimens RPC to use a struct timespecFlávio Cruz2018-03-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and update the servers to use UTIME_NOW and UTIME_OMIT. * console-client/trans.c (netfs_attempt_utimes): Do not set current time ourself. * console/console.c (netfs_attempt_utimes): Likewise. * ftpfs/netfs.c (netfs_attempt_utimes): Likewise. * hostmux/node.c (netfs_attempt_utimes): Likewise. * usermux/node.c (netfs_attempt_utimes): Likewise. * nfs/ops.c (netfs_attempt_utimes): Likewise. * doc/hurd.texi (file_utimens): Add documentation. * hurd/fs.defs (file_utimens): Add RPC. * libdiskfs/file-utimes.c (diskfs_S_file_utimes): Move implementation and replace with translation layer with... (diskfs_S_file_utimens): ... new function. * libnetfs/file-utimes.c (netfs_S_file_utimes): Likewise with... (netfs_S_file_utimens): ... new function. * libnetfs/init-init.c: Include <error.h>. (netfs_mtime): New variable. (netfs_init): New function. * libnetfs/netfs.h (netfs_attempt_utimes): Update documentation. * libnetfs/priv.h (netfs_mtime): Declare variable. * libtreefs/s-file.c (treefs_S_file_utimes): Convert time values and call treefs_s_file_utimens instead of treefs_s_file_utimes. * libtreefs/treefs-hooks.h: Replace TREEFS_HOOK_S_FILE_UTIMES with TREEFS_HOOK_S_FILE_UTIMENS. * libtreefs/treefs-s-hooks.h: Replace s_file_utimes with s_file_utimens. * libtrivfs/file-utimes.c (trivfs_S_file_utimens): New function. * libtrivfs/times.c (trivfs_set_atime): Try to use file_utimens before using file_utimes. (trivfs_set_mtime): Likewise. * nfsd/ops.c (complete_setattr): Likewise. * trans/fakeroot.c (netfs_attempt_utimes): Likewise. * nfs/nfs.c (xdr_encode_sattr_times): Do not set atime or mtime when they are NULL. * configure.ac: Look for file_futimens, and define UTIME_NOW/OMIT, for compatibility with old glibcs.
* Use the new _hurd_exec_file_name functionEmilio Pozuelo Monfort2018-01-081-1/+1
| | | | | | | | | * configure.in: Check for _hurd_exec_paths. * utils/fakeauth.c: Call _hurd_exec_paths instead of _hurd_exec if it's available. * utils/shd.c: Likewise. * utils/rpctrace.c: Get prefixed_name from file_name_path_lookup and pass it to _hurd_exec_paths instead of calling _hurd_exec.
* Add a file_exec_file_name RPCEmilio Pozuelo Monfort2018-01-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | * hurd/fs.defs (file_exec): Deprecate in favor of... (file_exec_paths): ...this new RPC. * TODO: Update. * doc/hurd.texi: Update RPC name. * hurd/hurd_types.h: Update RPC name. * libdiskfs/boot-start.c: Update RPC name. * configure.ac: Check for presence of RPC stubs file_exec_paths exec_exec_paths. * exec/hashexec.c (check_hashbang): When file_exec_paths is available, use it instead of file_exec. * startup/startup.c (run, run_for_real, start_child): Likewise. * utils/login.c (main): Likewise. * libfshelp/start-translator-long.c (fshelp_start_translator_long): Likewise. * libdiskfs/file-exec.c (diskfs_S_file_exec): Move code to new function diskfs_S_file_exec_paths and call it. (diskfs_S_file_exec_paths): New function, use exec_exec_paths when available instead of exec_exec * libnetfs/file-exec.c (netfs_S_file_exec, netfs_S_file_exec_paths): Likewise. * trans/fakeroot.c (netfs_S_file_exec, netfs_S_file_exec_paths): Likewise. * libtrivfs/file-exec.c (trivfs_S_file_exec_paths): New function.
* lwip: Add LwIP-based TCP/IP translatorJoan Lledó2017-12-181-0/+5
| | | | | | | | * Makefile (prog-subdirs): Add lwip. * config.make.in (HAVE_LIBLWIP, liblwip_CFLAGS, liblwip_LIBS): Define variables. * configure.ac: Check for liblwip. * lwip/: New directory.
* trans: Conditionally build the random translator.Justus Winter2017-06-041-0/+3
| | | | | | | | | | | | Only build the random translator if we find a suitable version of libgcrypt. This helps to reduce the build dependencies to bootstrap the Hurd. * aclocal.m4: Include 'libgcrypt.m4'. * config.make.in (HAVE_LIBGCRYPT): New variable. * configure.ac: Check for a suitable libgcrypt. * m4/libgcrypt.m4: New file. * trans/Makefile: Conditionally build the random translator.
* Fix mig URLSamuel Thibault2017-02-141-3/+3
| | | | | | Thanks deathsbreed for the report. configure.ac: Fix mig URL
* GNU Hurd 0.9Thomas Schwinge2016-12-181-1/+1
| | | | | * configure.ac (AC_INIT): Set version to 0.9. * NEWS: Finalize for 0.9.
* GNU Hurd 0.8Thomas Schwinge2016-05-181-1/+1
| | | | | * configure.ac (AC_INIT): Set version to 0.8. * NEWS: Finalize for 0.8.
* GNU Hurd 0.7Thomas Schwinge2015-10-311-1/+1
| | | | | * configure.ac (AC_INIT): Set version to 0.7. * NEWS: Finalize for 0.7.
* Check AWK usability when XKB is enabledDiego Nieto Cid2015-06-051-0/+8
| | | | * configure.ac: test whether AWK provides strtonum function.
* GNU Hurd 0.6.Thomas Schwinge2015-04-101-1/+1
| | | | | * configure.ac (AC_INIT): Set version to 0.6. * NEWS: Finalize for 0.6.
* aclocal.m4, configure.ac: Fix typos and grammar in comment (found by codespell)Stefan Weil2015-01-031-2/+2
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* build: Remove checks for 'getgrouplist' and 'uselocale'.Ludovic Courtès2014-05-301-3/+0
| | | | | | | | | | GNU libc has had them for a long time. * configure.ac: Remove checks for 'getgrouplist' and 'uselocale'. * libshouldbeinlibc/idvec-impgids.c (_merge_implied_gids): Remove #ifdef HAVE_GETGROUPLIST and remove #else arm. * libthreads/cthreads.c: Remove #ifdef HAVE_USELOCALE, keeping its bodies.
* Disable linking when cross-compilingLudovic Courtès2014-05-291-0/+7
| | | | * configure.ac: Call AC_NO_EXECUTABLES when cross-compiling.
* build: Remove configure check for libcrypt.Ludovic Courtès2014-04-221-4/+0
| | | | | | | | | | | GNU libc has provided the 'crypt' function in libcrypt for a long time, making this check unnecessary. * configure.ac: Remove libcrypt check and 'LIBCRYPT' substitution. * config.make.in (LIBCRYPT): Remove. * trans/Makefile (password-LDLIBS): Change $(LIBCRYPT) to -lcrypt. * utils/Makefile (login-LDLIBS, addauth-LDLIBS, setauth-LDLIBS): Likewise.
* Make bz2 and gz support optionalGabriele Giacone2014-03-201-4/+19
| | | | | | | | | | | | * config.make.in (HAVE_LIBBZ2, HAVE_LIBZ): New variables. * configure.ac (--without-libbz2, --without-libz): New options. * ext2fs/Makefile (OTHERLIBS): Make -lbz2 and -lz optional. * fatfs/Makefile (OTHERLIBS): Likewise. * isofs/Makefile (OTHERLIBS): Likewise. * libstore/Makefile (maybe_part): Remove variable. (store-types): Add part, bunzip2 and gunzip support conditionnally. (LDLIBS): Make -lbz2 and -lz optional. (OBJS): Add GUNZIP_OBJS and BUNZIP2_OBJS optional.
* libstore: replaced gz decompression code with libzIgnazio Sgalmuzzo2014-02-181-0/+1
| | | | | | | | | | | | | | | | | Note: dropped .zip support configure.ac: added check for libz ext2fs/Makefile: linked libz fatfs/Makefile: linked libz isofs/Makefile: linked libz libstore/Makefile: linked libz libstore/do-gunzip.c: new decompression function using libz calls. libstore/gunzip.c: removed no longer needed code replaced by do_gunzip() libstore/gzip.h: deleted, no longer needed libstore/inflate.c: deleted: no longer needed libstore/tailor.h: deleted: no longer needed libstore/unzip.c: deleted: no longer needed libstore/util.c: removed no longer needed code.
* Replaced bz2 decompression code with libbz2Ignazio Sgalmuzzo2014-02-091-0/+2
| | | | | | | configure.ac: added check for libbz2 libstore/Makefile: linked libbz2 ext2fs/Makefile: linked libbz2 do-bunzip2.c: rewritten do_bunzip2 using libbz2 calls. Removed no longer needed functions.
* configure.ac: properly escape the test for X11/keysymdef.hJustus Winter2013-10-311-1/+1
| | | | | * configure.ac: Properly escape the test for X11/keysymdef.h using AC_LANG_SOURCE.
* GNU Hurd 0.5.Thomas Schwinge2013-09-271-2/+1
| | | | | | | | | | * configure.ac (AC_INIT): Set version to 0.5. (AC_REVISION): Remove. * NEWS: Finalize changes for 0.5. * INSTALL: Update. * INSTALL-cross: Likewise. * README.CVS: Delete, but move some content... * README: ... here. Update.
* Add --without-daemon option to configureSamuel Thibault2013-09-241-3/+10
| | | | | * configure.ac (--without-daemon): Add option to disable libdaemon pkgconfig test.
* Remove UFS supportSamuel Thibault2013-09-171-1/+1
| | | | | | | | | | | | | It has been unused/untested/unmaintained for a decade now, and its 4-clause BSD licence poses problem. * configure.ac (default_static): Remove ufs. * Makefile (prog-subdirs): Remove ufs, ufs-fsck and ufs-utils. * NEWS, TODO: doc/hurd.texi, doc/navigating: Remove UFS notes. * ufs: Remove directory * ufs-fsck: Remove directory * ufs-utils: Remove directory * bsdfsck: Remove directory
* mount: handle -t autoJustus Winter2013-09-091-0/+6
| | | | | | | | | | | | | | | Use libblkid to detect the filesystem type if "auto" is given as type. Remove the translator localization from main, this is also done in do_mount and any errors are propagated properly. This way "auto" is handled correctly if given on the command line or used as filesystem type in the fstab. * configure.ac: Add check for libblkid. * config.make.in: Make libblkid specific values available. * utils/Makefile: Use libblkid specific values. * utils/mount.c (DEFAULT_FSTYPE): Use "auto" as default type. (do_mount): Detect type using libblkid. (main): Drop translator localization.
* Add configure checks for libdaemonJustus Winter2013-08-281-0/+6
| | | | | * configure.ac: Add check for libdaemon. * config.make.in: Make the libdaemon specific variables available.
* config.make: Use more configure settings when building xkb-dataDavid Michael2013-08-161-1/+2
| | | | | | * config.make.in (datarootdir,LEX,YACC): New variables. * configure.ac (XKB_BASE): Drop extraneous "/share" from path. * configure.ac: Reset pkg-config status between tests.
* Rename configure.in to configure.acPino Toscano2013-02-261-0/+307
Newer autoconf versions will not support the "configure.in" naming anymore, only "configure.ac". * configure.in: Move file... * configure.ac: ... here.