summaryrefslogtreecommitdiffstats
path: root/daemon/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Don't warn about 'long long' usage.Richard Jones2010-09-061-0/+2
| | | | | This removes a fatal warning (-Werror) which stops compilation on 32 bit machines.
* daemon: Enable debug command by default.Richard Jones2010-09-011-7/+1
| | | | | | | The debug command is useful for internal testing, and so should be enabled by default in all builds. Note that it is still *not* part of the stable ABI.
* Make realpath call optional, disable it for Windows.Richard Jones2009-11-261-0/+1
|
* daemon/Win32: provide htonl, htons, ntohl, ntohs functions.Richard Jones2009-11-261-0/+4
| | | | These functions are not available on Windows.
* daemon/Win32: Implement statvfs using GetDiskFreeSpaceEx.Richard Jones2009-11-251-0/+2
| | | | | | | At the time of writing Gnulib didn't support Win32 for its fsusage API. Therefore this patch uses GetDiskFreeSpaceEx if it's available (on Windows) otherwise falls back to using Gnulib fsusage.
* daemon: Use gnulib futimens module.Richard Jones2009-11-251-1/+0
| | | | | | | | | Instead of checking for futimens support and falling back (incorrectly in one case) to using futimes, use gnulib's module. However the gnulib module does not yet support Win32, so this change is only really useful on platforms like RHEL 5.
* sync: Windows implementation of sync() call.Richard Jones2009-11-251-5/+7
| | | | | Replace calls to sync() with calls to sync_disks() which supports Win32 via FlushFileBuffers.
* daemon: Alternate implementation of posix_fallocate.Richard Jones2009-11-251-0/+1
| | | | | If the posix_fallocate function is not available [ie. Windows] use an alternate implementation that just loops and writes.
* daemon/Windows: Define _WIN32_WINNT when compiling on Windows.Richard Jones2009-11-251-0/+6
|
* availability: Add optional groups and implement guestfs_available call.Richard Jones2009-11-201-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current groups are defined very conservatively using the following criteria: (a) Would be impossible to implement on Windows because of sheer architectural differences (eg: mknod). (b) Already optional (augeas, inotify). (c) Not currently optional but not implemented on older RHEL and Debian releases (ntfs-3g.probe, scrub, zerofree). The optional groups I've defined according to these criteria are: . augeas . inotify . linuxfsuuid . linuxmodules . linuxxattrs . lvm2 . mknod . ntfs3g . scrub . selinux . zerofree (Note that these choices don't prevent us from adding more optional groups in future. On the other hand to avoid breaking ABIs we would not wish to change the above groups). The rest of this large commit is really just implementation: Each optional function is classified using Optional "group" flag in the generator. The daemon has to implement a function int optgroup_<name>_available (void); for each optional group. Some of these functions are fixed at compile time, and some do simple run-time tests. The do_available implementation in the daemon looks up the correct function in a table and runs it. We document the optional groups in the guestfs(3) man page. Also: I added a NOT_AVAILABLE macro in order to unify all the existing places where we had a message equivalent to "function __func__ is not available".
* daemon/Win32: Use gnulib modules for first porting to Win32.Richard Jones2009-11-201-3/+0
|
* daemon/Win32: make some functions and fields optional.Richard Jones2009-11-201-4/+30
| | | | | | | | | | | | inotify: Make this optional on platforms that don't have this interface. mknod, mkfifo etc.: Make these optional on non-Unix platforms. readdir: If d_type field is missing on the platform, set the corresponding field to 'u'. stat: st_blocks and st_blksize are missing on non-Unix platforms, so set these fields to -1 in the corresponding structures.
* daemon: Build daemon with AC_SYS_LARGEFILE.Richard Jones2009-11-041-0/+3
|
* daemon: Don't warn on -Wunsafe-loop-optimizations.Richard Jones2009-11-021-0/+2
| | | | | Ignore -Wunsafe-loop-optimizations, same as in the top level configure file.
* Fix verbose packet dumping functions.Richard Jones2009-09-171-0/+8
| | | | | | | | | | Add the configure parameter --enable-packet-dump so that this code can be enabled without editing the source. This code is normally commented out, because it is too verbose unless you happen to be debugging the underlying protocol. Because it is normally commented out, I found it had bit-rotted slightly. This commit also fixes the obvious problems.
* indent with spaces, not TABsJim Meyering2009-08-171-1/+1
|
* daemon: enable -Werror and many gcc warnings when --enable-gcc-warningsJim Meyering2009-08-171-0/+61
| | | | | | | | | | * daemon/m4/gnulib-cache.m4: Add two modules: manywarnings, warnings. * daemon/configure.ac: Implement --enable-gcc-warnings, and selectively disable a few warning options that are either not useful or that provoke too many warnings for now. Define and AC_SUBST WARN_CFLAGS and WERROR_CFLAGS. * daemon/Makefile.am (guestfsd_CFLAGS): Use $(WARN_CFLAGS) and $(WERROR_CFLAGS), rather than just -Wall.
* build: avoid "make sytnax-check" failureJim Meyering2009-08-141-1/+1
| | | | * daemon/configure.ac: Change a leading TAB to 8 spaces.
* Add 'setcon', 'getcon' commands to set and get the SELinux context.Richard Jones2009-08-131-0/+11
|
* build: enable automake's silent rules optionJim Meyering2009-08-101-0/+3
| | | | | | | * configure.ac: Use AM_SILENT_RULES([yes]). Those who want verbose build output may configure with --disable-silent-rules or use "make V=1". * daemon/configure.ac: Likewise.
* RHEL 5: inotify_init1 call did not exist on RHEL 5.Richard Jones2009-08-061-1/+1
|
* daemon: use gnulibJim Meyering2009-08-061-1/+5
| | | | | | | | | | | | | | | | | * daemon/Makefile.am (SUBDIRS): Define. (AM_CPPFLAGS): Define, to include from gnulib's lib/ (LDADD): Define, to link with gnulib's libgnu.a. * daemon/configure.ac: Use AC_CONFIG_AUX_DIR([build-aux]), gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add lib/Makefile and tests/Makefile * daemon/m4/gnulib-cache.m4: New file, generated by running ../.gnulib/gnulib-tool --import --with-tests hash * daemon/.gitignore: Ignore all of the imported files. build: tell bootstrap about daemon/ * bootstrap: Run gnulib-tool --update in daemon/. Remove bootstrap's --gnulib-srcdir option, because it probably didn't work, and even if it did, we've discovered that using a separate git repo like that can lead to subtle mix-ups.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-16/+16
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Replace shell_quote function with %Q and %R printf specifiers.Richard Jones2009-07-281-0/+16
| | | | | | | %Q => simple shell quoted string %R => path will be prefixed by /sysroot eg. snprintf (cmd, sizeof cmd, "cat %R", path); system (cmd);
* RHEL 5: header was called <sys/xattr.h>Richard W.M. Jones2009-07-141-1/+1
|
* Support for Linux extended attributes.Richard W.M. Jones2009-07-141-1/+4
| | | | | | | | | | | | | | | | This commit adds six calls to support Linux extended attributes. They are: getxattrs list all extended attributes for a file or directory setxattr add/replace an extended attribute removexattr remove an extended attribute lgetxattrs \ lsetxattr (same as above, but operate on symbolic links) lremovexattr / See attr(5) for more information. This also adds support for the FBuffer field type, which maps to an XDR opaque<> or a C (int, char *) pair.
* Make it possible to build in a separate directoryMatthew Booth2009-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* avoid automake failureJim Meyering2009-07-021-1/+1
| | | | * daemon/configure.ac: Use AM_PROG_CC_C_O, not AC_PROG_CC_C_O.
* Augeas is now completely optional.Richard Jones2009-05-071-7/+10
|
* Fix missing futimens bug.Richard Jones2009-05-061-0/+3
|
* AC_CHECK_FUNCS for multiple functions.Richard Jones2009-05-061-1/+1
|
* Use AC_GNU_SOURCE in daemon. Don't need _GNU_SOURCE in C files any more.Richard W.M. Jones2009-04-231-0/+3
|
* Add outline of 'debug' command.Richard W.M. Jones2009-04-231-0/+6
|
* Ruby bindings.Richard Jones2009-04-161-1/+1
|
* Old versions of augeas lack aug_load, aug_defvar, aug_node. Check for those ↵Richard Jones2009-04-131-1/+4
| | | | calls.
* Added Augeas support.Richard Jones2009-04-091-1/+6
|
* Various fixes to the build system, add 'make test-boot-image' target.Richard Jones2009-04-011-0/+2
|
* Now using febootstrap.rjones2009-03-241-11/+1
|
* Final fixes to build environment, and added autogen.sh.rjones2009-03-031-1/+1
|
* Build environment set up for libguestfs.rjones2009-03-031-0/+56