summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* build: require autoconf-2.63 and automake-1.11Jim Meyering2009-06-171-2/+2
| | | | | * configure.ac (AC_PREREQ): Require 2.63, not 2.61. (AM_INIT_AUTOMAKE): Require 1.11, not 1.10c.
* configure.ac: fix PED_MINOR_VERSION sed expressionOtavio Salvador2009-05-231-1/+1
|
* build: enable device mapper support by defaultJoel Granados Moreno2009-05-151-5/+13
| | | | | * configure.ac: Device mapper is ubiquitous enough: enable by default. Adjust --help and diagnostics to reflect the new default.
* build: require 1.10c (get it by building from automake.git)Jim Meyering2009-05-151-1/+1
| | | | | | | * bootstrap.conf (buildreq): Require 1.10c (1.11 is coming soon) for our use of AM_SILENT_RULES. * configure.ac (AM_INIT_AUTOMAKE): Require 1.10c, for our use of AM_SILENT_RULES. Reported by Joel Granados.
* build: make automake's silent-rules option the defaultJim Meyering2009-04-261-1/+2
| | | | | | | * configure.ac (AM_INIT_AUTOMAKE): Remove silent-rules. Instead,... (AM_SILENT_RULES): Use this, with it's undocumented [yes] argument. Those who want verbose build output may configure with --disable-silent-rules or use "make V=1".
* build-from-git: depend on automake-1.10bJim Meyering2009-04-081-2/+2
| | | | | | * bootstrap.conf (buildreq): Note the automake-1.10b requirement. * configure.ac (AM_INIT_AUTOMAKE): Enable new automake options: dist-xz, color-tests, parallel-tests, silent-rules.
* better m4 quotingJim Meyering2009-01-261-63/+63
|
* * configure.ac: Remove useless 'exit's after AC_MSG_ERROR.Jim Meyering2008-06-241-10/+2
|
* skip device-mapper test if support is not enabledJim Meyering2008-06-061-17/+15
| | | | | | * configure.ac: Revamp test; also set ENABLE_DEVICE_MAPPER shell var. * tests/Makefile.am (ENABLE_DEVICE_MAPPER): Propagate to tests. * tests/t6000-dm.sh: Skip all tests w/o device-mapper support.
* Use host_cpu for s390 check.Bastian Blank2008-04-071-8/+1
|
* Make inter-release --version output more useful.Jim Meyering2007-12-181-10/+19
| | | | | | | | | | | | | | | | | | | | | | Now, each unofficial build has a version "number" like 1.8.8.1.19-58dd, which indicates that it is built using the 19th change set (in _some_ repository) following the "v1.8.8.1" tag, and that 58dd is a prefix of the commit SHA1. * configure.ac: Run it to set the version. (PED_MAJOR_VERSION): Derive from $PACKAGE_VERSION. (PED_MINOR_VERSION): Likewise. (PED_MICRO_VERSION): Likewise. Remove the test that would ensure $PACKAGE_VERSION != $PED_VERSION, now that the latter is derived from the former. * Makefile.am (dist-hook): Arrange so that .version appears only in distribution tarballs, never in a checked-out repository. * .gitignore: Add .version here, too. Just in case. * lib/.gitignore: Remove now-generated (by bootstrap) file. * build-aux/.gitignore: Likewise. Ensure that $(VERSION) is up to date for dist-related targets. * GNUmakefile: Arrange to rerun autoconf, if the version reported by git-version-gen doesn't match $(VERSION), but only for dist targets.
* Fix syntax error and LIBS problem in configure.acMichael Brennan2007-07-101-2/+3
| | | | | | | | Make sure LIBS doesn't contain libraries that will prevent successful compilations after libreadline has been tested. A trailing comma generated a syntax error in the configure script. Signed-off-by: Michael Brennan <brennan.brisad@gmail.com>
* Work around test failures caused by inadequate libreadline.Jim Meyering2007-06-221-3/+36
| | | | | | | | * configure.ac: Reject an inadequate libreadline5.0. * parted/ui.c (_readline) [!HAVE_LIBREADLINE]: Echo each just-read line, to be consistent with libreadline5.2. Signed-off-by: Jim Meyering <jim@meyering.net>
* Don't fail all tests when "." lacks O_DIRECT support.Jim Meyering2007-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I often build tools on a tmpfs file system (it's faster), and found that parted tests always failed there. That's because it tries to open the "device" (a file) with O_DIRECT, and at least the linux tmpfs driver always fails with EINVAL in that case. So here's a patch that makes it work. Since the test may require writing in a directory like /tmp, to which others typically have write access, it is particularly careful about security (see the mkdtemp script below), in case "make check" is run by e.g., root. Don't fail all tests when "." lacks O_DIRECT support. Before, running "make check" on a file system that doesn't support O_DIRECT (e.g. tmpfs), would always fail. Now, it works, as long as the test machinery can find a writable directory in which open with O_DIRECT *does* work. * m4/o-direct.m4: New file. Find a directory/FS with O_DIRECT support. * configure.ac: Use the new macro. * libparted/tests/t1000-label.sh: New file. Wrap the binary, so it can take advantage of the code that finds O_DIRECT supporting FS. * tests/mkdtemp: New file. Required, since when running tests as root, we may have to create a temporary directory in a directory like /tmp that's writable by others. * tests/Makefile.am (EXTRA_DIST): Add mkdtemp. * tests/test-lib.sh: When creating test subdir, and setting up "trap", use the directory specified in $PARTED_USABLE_TEST_DIR. Don't set PATH here. Now, that's done via the generated, and always- sourced, init.sh. As a result, invoke parted via its full file name.
* Preventing compilation of DASD code on GNU Hurd systems through the use of ↵Debarshi Ray2007-05-081-0/+9
| | | | AC_COMPILE_IFELSE and AM_CONDITIONAL, instead of #ifdef.
* On the edge branch, labeled the version as 1.9.0 so we can mark it more ↵David Cantrell2007-05-021-3/+3
| | | | correctly as the development tree.
* Reverted my patch to configure.ac to remove -Wl,--as-needed from LDFLAGS ↵David Cantrell2007-05-021-6/+0
| | | | when checking for libreadline.
* libreadline is a problematic library. Autoconf adds a block to the generated ↵David Cantrell2007-05-021-0/+12
| | | | | | | | configure script that checks to see if we should be passing the --as-needed flag to ld(1). There are portability reasons this code exists (best I can figure), but it presents a problem when we scan for libreadline. libreadline specifically has unresolved symbols on at least Fedora and RHEL. Why? Well, the developer can choose to provide libtermcap, libncurses, or libncursesw (wide-char support) at compile time which all satisfy the curses API dependency that libreadline has. When the parted configure script runs, it fails on readline because the --as-needed flag causes the linker to not include libncurses even though we already have that on the link line. My solution is to remove the --as-needed flag when we scan for libreadline and then later check for rl_completion_matches() in libreadline.
* More changes to set the version number to 1.8.3.David Cantrell2007-05-021-1/+1
|
* Set version to 1.8.3 for upcoming release.David Cantrell2007-05-021-4/+4
|
* Add integration tests, then adjust code so that they pass.Jim Meyering2007-04-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | These changes affect how --script (-s) works, and when diagnostics are displayed. * Makefile.am (SUBDIRS): Add tests. * configure.ac (AC_OUTPUT): Add tests/Makefile. * tests/Makefile.am: New file. * tests/part-01, tests/label-01: New files. * tests/part-02, tests/label-02: New files. * parted/parted.c (enum) [PRETEND_INPUT_TTY]: Define. Support a new, undocumented option: ---pretend-input-tty. It is intended solely for testing. The leading '---' ensures that it will never conflict with a "regular" long option. (do_mkpartfs): Prompt only when not in script mode. Call ped_exception_leave_all() to decrement global counter. Without this, the use of parted in tests/part-01 would still fail, but would not issue the diagnostic explaining why. * parted/ui.h (pretend_input_tty): Declare new global. * parted/ui.c (exception_handler): Let the new "pretend_input_tty" option override "!isatty (0)". (init_ui): Don't set opt_script_mode. * tests/lang-default, tests/priv-check: New files.
* Remove the COMPILE_FOR_S390 flag-setting stuff. It wasn't correct anyway. ↵David Cantrell2007-03-191-6/+0
| | | | Take a kernel-style approach and check uname -m to see if we are on s390. If so, we build for zSeries. Otherwise we do not.
* Check for tgetent() in libtinfo as well as ncurses, curses, termcap, and ↵David Cantrell2007-03-191-1/+1
| | | | termlib.
* Prevented DASD specific headers and sources from being compiled/installed on ↵Debarshi Ray2007-03-161-0/+6
| | | | non-s390 systems; and conditionally included fdasd.h in linux.h for s390 systems.
* * configure.ac: Fix a typo: s/have_scintilla/have_check/Jim Meyering2007-03-071-1/+1
|
* Normalize the way we handle a generated-and-distributed file, parted.spec.Jim Meyering2007-02-271-1/+0
| | | | | | | * Makefile.am (EXTRA_DIST): Add parted.spec. (parted.spec): New rule. (MAINTAINERCLEANFILES): Add parted.spec. * configure.ac (AC_OUTPUT): Remove parted.spec from the list.
* Update to use gnulib, and newer autoconf, automake conventions.Jim Meyering2007-02-251-21/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add build-from-checkout instructions. * README-hacking: New file. Mostly copied from coreutils' README-cvs. * bootstrap: Generate ChangeLog here, if needed/possible, before invoking tools that require its presence. * autogen.sh: Remove this file. It's superseded by bootstrap. Use gnulib, modernize some uses of autoconf, automake, etc. * bootstrap, bootstrap.conf: New files. * configure.ac: Modernize. Require the latest stable releases: autoconf-2.61, automake-1.10. Require gettext-0.15. Use more modern form of AC_INIT, etc. Now that the version string must be hard-coded in the AC_INIT line, add code to ensure it agrees with the PED_* and LT_* variables. Use AM_CPPFLAGS, not CFLAGS Remove obsolete setting of ALL_LINGUAS. Don't set CFLAGS=-D_GNU_SOURCE=1 explicitly , since that's already done via AC_GNU_SOURCE, which gnulib pulls in by default, through gl_EARLY. Use gl_INIT and gl_EARLY. * Makefile.am (SUBDIRS): Add lib. (EXTRA_DIST): Remove names that are automatically included. * lib/Makefile.am: New file.
* Fixed the copyright notices.Debarshi Ray2007-02-141-2/+2
|
* Don't define _GNU_SOURCE manually.Jim Meyering2007-02-131-0/+1
| | | | | | | | | | | | | | | | It's better not to define _GNU_SOURCE manually. By using AC_GNU_SOURCE, you get the definition in exactly one place: in config.h. I verified that each affected file also includes config.h. Don't define _GNU_SOURCE manually. * configure.ac: Use AC_GNU_SOURCE instead. * libparted/arch/gnu.c: Remove definition of _GNU_SOURCE. * libparted/arch/linux.c: Likewise. * libparted/device.c: Likewise. * parted/table.c: Likewise. * parted/table.h: Likewise. Signed-off-by: Jim Meyering <jim@meyering.net>
* Work with automake-1.10.Jim Meyering2007-02-131-4/+5
| | | | | | | | | | | | | | | | | | | I've just tried building parted from scratch (running ./autogen.sh after git-clone) and hit a couple of snags: Without aclocal's -I m4, ./autogen.sh produced this: configure.ac:192: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library configure.ac:193: warning: macro `AM_GNU_GETTEXT' not found in library configure.ac:192: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. With automake-1.10, I got this: parted/Makefile.am:5: compiling `command.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac' Here's a patch that fixes those and also removes some trailing blanks.
* configure.ac: Add LOCALEDIR definition to CFLAGS only once.Jim Meyering2007-02-131-1/+0
| | | | | | | | | | I noticed that there were two identical lines in configure.ac, adding the same LOCALEDIR definition to CFLAGS. This change removes the latter. * configure.ac: Add LOCALEDIR definition to CFLAGS only once. Signed-off-by: Jim Meyering <jim@meyering.net>
* Added a pkgconfig file for libparted, adjusted Makefile.am and configure.ac ↵Riccardo Setti2007-02-121-0/+1
| | | | | | | | for reflect the canges modified: Makefile.am modified: configure.ac new file: libparted.pc.in
* Loosen requirement for the 'check' library.Anant Narayanan2006-12-141-2/+5
|
* Add CHECK unittext library detection to Autoconf scriptOtavio Salvador2006-12-111-0/+5
|
* Revert "Add check unittest support and a initial test for a resizing bug."Otavio Salvador2006-12-051-5/+0
| | | | | | This code wasn't ready for commit yet. This reverts commit ba43cb6ff7bb1d945062e25b94efecb1b84c0c33.
* Add check unittest support and a initial test for a resizing bug.Otavio Salvador2006-12-041-0/+5
|
* Added the --enable-selinux switch to the configure script. If set, it adds ↵David Cantrell2006-12-031-4/+16
| | | | -lselinux and -lsepol to the list of libraries to link libparted with. Bumped the version number to 1.9.9 since this is the edge branch.
* Don't enforce libselinux and libsepol linking when using device-mapper supportOtavio Salvador2006-11-281-1/+1
|
* Rework backtrace supportOtavio Salvador2006-11-201-1/+2
| | | | | | | | While doing a deeply check about the backtrace support I found that -rdynamic is useless on CFLAGS and my previous change was wrong since it wasn't avoiding -rdynamic on LFLAGS if the running system missed the execinfo.h support. That would probably cause a build error on some systems.
* Final changes for parted-1.8.0v1.8.0David Cantrell2006-11-171-1/+1
| | | | git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@896 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Apply changes done on Darcs and suitable for release on 1.8 final:Otavio Salvador2006-11-111-1/+7
| | | | | | | | | | | | | | | | | | Sat Nov 11 18:09:17 BRST 2006 Otavio Salvador <otavio@debian.org> * Enable backtrace just if it's has support on libc. Sat Nov 11 17:41:12 BRST 2006 Otavio Salvador <otavio@debian.org> * Add -rdynamic to LDFLAGS. Sat Nov 11 17:40:19 BRST 2006 Otavio Salvador <otavio@debian.org> * Add -rdynamic to CFLAGS Sat Nov 11 17:38:11 BRST 2006 Otavio Salvador <otavio@debian.org> * Print backtrace stack when throwing an exception git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@895 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Updates for parted-1.8.0rc3David Cantrell2006-11-061-1/+1
| | | | git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@882 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Bump version.David Cantrell2006-10-111-1/+1
| | | | git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@849 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Added /dev/mapper device support (patch from Peter Jones).David Cantrell2006-10-111-1/+22
| | | | git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@847 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Updated for version 1.8.0rc1.David Cantrell2006-09-151-2/+2
| | | | git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@822 2d424fd7-7fe2-0310-af74-8bc65edeb173
* Fix ChangeLogAnant Narayanan2006-09-141-0/+462
git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@820 2d424fd7-7fe2-0310-af74-8bc65edeb173