summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: use git-version-gen to distinct git and release versionsSami Kerola2011-04-051-1/+3
| | | | | | | | | | | The script is copied as is from gnulib. [kzak@redhat.com: - generate .tarball-version and .version files in top level Makefile.am - delete autom4te.cache in autogen.sh] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: clean up partx MakefileKarel Zak2011-03-161-7/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't support external (e2fsprogs) libblkidKarel Zak2011-03-161-31/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't support external (e2fsprogs) libuuidKarel Zak2011-03-161-22/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: build on non-LinuxSamuel Thibault2011-03-111-0/+3
| | | | | | | | Thanks to the direct ISA method and by disabling the RTC get/set epoch functionality, hwclock can work fine on non-Linux systems which provide ioperm or iopl. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* build-sys: print helpful error when pkg.m4 is missingSami Kerola2011-03-081-0/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: Enable automake's -Wno-portability option.Sami Kerola2011-03-081-1/+1
| | | | | | | | | The util-linux depends on GNU make. shlibs/blkid/src/Makefile.am:58: warning: `%'-style pattern rules are a GNU make extension shlibs/mount/src/Makefile.am:62: warning: `%'-style pattern rules are a GNU make extension Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: introduce AM_PROG_CC_C_O macroSami Kerola2011-03-081-1/+1
| | | | | | | | | | | | Fix to warning which will appear when using fairly new automake (automake commit id fd22dca). disk-utils/Makefile.am:31: warning: compiling `mkswap.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac' Reference documentation http://www.gnu.org/software/hello/manual/automake/Public-Macros.html#index-AM_005fPROG_005fCC_005fC_005fO-296 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add term-utils/Karel Zak2011-03-021-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* kill: add -q sigval to use sigqueue(2)Karel Zak2011-02-281-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: provide alternatives for err, errx, warn and warnxFabian Groffen2011-02-141-0/+4
| | | | | | | | Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build-sys: don't build lsblk on Linux without openat()Karel Zak2011-02-111-0/+9
| | | | | Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.19)Karel Zak2011-02-101-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* provide a workaround if program_invocation_short_name is missingFabian Groffen2011-01-311-0/+16
| | | | | | | | | | | | Try some replacements, such as getexecname() on Solaris and __progname on BSDs and Darwin. When not found, base program_invocation_short_name on the source filename it is used in, as not to require argv[0] to be passed along. This latter approach is not dynamic, but doesn't require code changes for all places where program_invocation_short_name is used now. Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: enable lsblk and libmount for Linux onlyKarel Zak2011-01-311-4/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.19-rc3)Karel Zak2011-01-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.19-rc2)Karel Zak2011-01-251-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: emulate dirfd when necessaryFabian Groffen2011-01-231-0/+24
| | | | | | | | | | | | dirfd is not available on Solaris 10, it is available on latest OpenSolaris releases though. Do some autoconf trickery to determine if providing an alternative dirfd function is necessary and possible. shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will lose it's dd_fd member again. Rearrange defines and includes to make sense per comments, and not conflict on Solaris. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libmount: rename mount.h to libmount.hKarel Zak2011-01-221-1/+1
| | | | | | The mount.h file name is too generic. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: check for paths.hFabian Groffen2011-01-201-0/+1
| | | | | | paths.h doesn't exist on Solaris Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* make _IO macros available on SolarisFabian Groffen2011-01-201-0/+1
| | | | | | | | The _IO macro is defined in sys/ioccom.h on various platforms. However, on Solaris it isn't included by ioctl.h, so include it explicitly if available. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build-sys: link with socketlibs when necessaryFabian Groffen2011-01-201-0/+11
| | | | | | | To link an object which references socket functions, you need to link with -lsocket -lnsl on Solaris. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build-sys: check for loff_t, it may not existFabian Groffen2011-01-201-0/+1
| | | | | | | On some systems, loff_t does not exist. Define it as int64_t in that case. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build-sys: improve check for cryptFabian Groffen2011-01-171-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Check for crypt.h existence, and use it if available over using unistd.h for which a certain feature level has to be set to export a definition for crypt. On Solaris this set causes a standards conflict in the headers, because at the time of this check C99 mode is already enabled, which implies certain standards non-compatible with _XOPEN_SOURCE. 92 #define _XOPEN_SOURCE 93 #include <unistd.h> configure:16259: gcc -std=gnu99 -c -g -O2 conftest.c >&5 In file included from /usr/include/unistd.h:18, from conftest.c:93: /prefix/gentoo/usr/lib/gcc/i386-pc-solaris2.10/4.4.5/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" configure.ac: improve crypt check login-utils/my_crypt.h: replace old GNU_LIBRARY check with autoconf define for crypt.h [kzak@redhat.com: - remove my_crypt.h] Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mount(8) sampleKarel Zak2011-01-101-0/+1
| | | | | | | | This code is going to be used as mount(8) replacement in the next major release (2.20). For now this mount(8) implementation does not support loopdevs initialization. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.19-rc1)Karel Zak2011-01-051-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-libmount-mountKarel Zak2011-01-031-0/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* simpleinit: move old init stuff to separate directoryKarel Zak2010-12-101-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add fallback for nl_langinfo()Karel Zak2010-11-151-1/+6
| | | | | | | | The fallback ignores locales and returns hardcoded static strings. It should be enough to include "nls.h" to work with nl_langinfo() on all systems. Signed-off-by: Karel Zak <kzak@redhat.com>
* man: add russian translation of ddate.1Karel Zak2010-10-211-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: drop shlibs/Makefile.am that only adds SUBDIRSDiego Elio 'Flameeyes' Pettenò2010-07-291-1/+0Star
| | | | | The same effect is gotten by changing SUBDIRS in the top-level Makefile.am.
* build-sys: require automake 1.10 as gtk-doc requires it anywayDiego Elio 'Flameeyes' Pettenò2010-07-291-1/+1
| | | | | | | There's no point into requiring 1.9 if the gtk-doc makefiles only work with 1.10. Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
* cfdisk: search for ncursesw/ncurses.hMike Frysinger2010-07-071-0/+1
| | | | | | | | Some distros install the wide version of ncurses side by side with the non-wide version and place the wide headers in an ncursesw/ subdir. So detect that behavior and include the right header with cfdisk. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build-sys: explicitly check for slang.hKarel Zak2010-07-011-1/+9
| | | | | | | | | | | | | | | The slang/slcurses.h contains #includes <slang.h> but we don't use -I/usr/include/slang (and this is also missing in slang.pc), it means that we have manually include the slang.h file in our configure script. Note this is Fedora-12, maybe some others distros have more usable slang headers... Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.18)Karel Zak2010-06-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.18-rc2)Karel Zak2010-06-181-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.18-rc1)Karel Zak2010-06-081-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup lib{mount,blkid} buildingKarel Zak2010-06-081-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add docsKarel Zak2010-06-031-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add basic utilsKarel Zak2010-06-031-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add version.cKarel Zak2010-06-031-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add basic dirsKarel Zak2010-06-031-0/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add fallback for libc (uClibc) without CPU_ALLOCKarel Zak2010-06-011-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rdev: remove this deprecated commandKarel Zak2010-05-181-7/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* script: optionally compile with libutempter to update utmpKarel Zak2010-04-291-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use --with-utempter to enable utempter support. The libutempter calls /usr/libexec/utempter/utempter suid helper to update utmp and wtmp files. Old version: $ script Script started, file is typescript $ who i am $ exit Script done, file is typescript New version: $ script Script started, file is typescript $ who i am kzak pts/6 2010-04-29 12:30 $ exit Script done, file is typescript Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=477753 Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: avoid probing CDs for RAIDM.S.Colclough2010-03-311-0/+1
| | | | | | | | | | | | | | RAID probing of CD/DVD can yield errors because of well-known problem in reading the end of the disk with some disk/drive combinations. Borrow CD detection method from udev and skip the RAID tests for these devices. [kzak@redhat.com: - check for linux/cdrom.h in ./configure - add #ifdef around the ioctl call - call the ioctl for block devices only] Signed-off-by: Mark Colclough <m.s.colclough@bham.ac.uk> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improved check for fallocate()Yann Droneaud2010-03-311-1/+36
| | | | | | | | | | | | | With glibc 2.10 on a 32bits system, fallocate64() function is not exported. This a problem, since _FILE_OFFSET_BITS is set to 64 and fallocate() is redirected to fallocate64(). Sadly, AC_CHECK_FUNC() doesn't catch such problem, since it's overriding the function prototype. See this for references: http://sources.redhat.com/ml/libc-hacker/2009-05/msg00003.html Signed-off-by: Yann Droneaud <yann@droneaud.fr>
* libblkid: add microsecond resolution for cache entriesKarel Zak2010-03-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libblkid library uses stat.st_mtine to detect changes on the device. The last update time of of the device in the cache is stored as TIME= tag in the /etc/blkid.tab file. Linux since 2.5.48 supports nanosecond resolution and more precise time is available in the stat.st_mtim timespec struct. This patch add microsecond precision to TIME= tag in the cache file, old format: TIME="<sec>" the new format: TIME="<sec>.<usec>" This change is backwardly compatible. Now, the blkid_verify() function checks stat.st_mtime and stat.st_mtim.tv_nsec/1000. Test: # e2label /dev/sdb1 AAAA old version: # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1 /dev/sdb1: LABEL="AAAA" /dev/sdb1: LABEL="AAAA" new version: # blkid -s LABEL /dev/sdb1; e2label /dev/sdb1 BBBB; blkid -s LABEL /dev/sdb1 /dev/sdb1: LABEL="AAAA" /dev/sdb1: LABEL="BBBB" Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add missing tests for libuuid and libblkidKarel Zak2010-02-121-0/+17
| | | | | | | | | | | | | | $ make checkconfig misc-utils/blkid.c : HAVE_TERMIO_H misc-utils/blkid.c : HAVE_TERMIOS_H shlibs/blkid/src/getsize.c : HAVE_FSTAT64 shlibs/blkid/src/llseek.c : HAVE_LLSEEK_PROTOTYPE shlibs/blkid/src/llseek.c : HAVE_LSEEK64_PROTOTYPE shlibs/uuid/src/gen_uuid.c : HAVE_SA_LEN*/ shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SOCKET_H shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SYSCALL_H Signed-off-by: Karel Zak <kzak@redhat.com>