Commit Graph

35 Commits

Author SHA1 Message Date
Karel Zak 366063645f build-sys: make autogen.sh output more user friendly
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-09 16:09:16 +02:00
Karel Zak 67735475db build-sys: be verbose about missing gettext
Reported-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-09 15:54:09 +02:00
Karel Zak 5ff48b5f36 build-sys: improve bison version detection
Addresses: https://github.com/karelzak/util-linux/issues/630
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-04-30 09:43:32 +02:00
Karel Zak 30d7f61f4f build-sys: add parse-date.y
* add lib/parse-date.y to build system
* add necessary autotools stuff to generate .c on the fly
  (autotools are smart enough to add generated file to tarball)
* check for bison version by ./autogen.sh
* add non-wanted junk to .gitignore

With some modification by J William Piggott with regard to
moving the parse-date API into timeutils.h

Signed-off-by: J William Piggott <elseifthen@gmx.com>
2017-03-04 11:01:56 -05:00
Ruediger Meier 6b5cad006f build-sys: fix [g]libtoolize version for OSX
follow-up 0024583c

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-02-18 12:53:48 +01:00
Ruediger Meier 0024583ca0 build-sys: fix libtoolize for OSX
autoreconf would also call glibtoolize on Darwin.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-02-12 14:10:59 +01:00
Kir Kolyshkin e46a7f8efe build-sys: allow gettext 0.17 to be used
The requirement for gettext 0.18 was introduced by commit e3e16717
to pass --no-wrap option to msgmerge tool, which I guess improves
the process of updating po files for translators. At the same time,
unfortunately, it makes building from git fail on a RHEL/CentOS 6
system, as it comes with gettext 0.17.

Use the existing hack in autogen.sh to allow building with gettext 0.17,
with an appropriate warning so that the user is aware:

 warning: forcing autopoint to use old gettext 0.17

The only negative side effect of this patch I am aware of is
if gettext-0.17 is used, then --no-wrap is not being passed
to msgmerge (although msgmerge 1.17 already supports it), because
Makefile.in.in that comes with gettext 0.17 doesn't have MSGMERGE_OPTIONS.
From my POV, this is way better than to not being able to build.

NOTE if gettext 0.18.3 is installed, it is used and this patch
doesn't change anything; it only allows gettext 1.17 to be used
if this is all we have.

Cc: Benno Schulenberg <bensberg@justemail.net>
Cc: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2015-09-02 18:42:24 -07:00
Karel Zak 9583461dea build-sys: make autogen.sh more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-06-29 12:03:43 +02:00
Benno Schulenberg a0aee0a9a9 build-sys: improve wording and punctuation of several messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Helmut Grohne e71b0aadaa build-sys: check for libtoolize rather than libtool
The system libtool program has architecture dependent behaviour. It is
therefore unavailable in cross build environments. The only place it was
used in util-linux is autogen.sh to determine the availability of
libtool. All other places correctly use libtoolize or
$(top_builddir)/libtool.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
2014-10-14 12:04:11 +02:00
Ruediger Meier f8d75a6647 build-sys: fix autopoint gettext version fun
We avoid or fix many portability issues.

The first more generic "sort --version-sort" solution was almost
useless anyway because autopoint itself can also only deal with
a few hardcoded versions.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-10 20:20:35 +02:00
Ruediger Meier 91c520bc9b build-sys: use gettext 0.18.3 if possible
We add a little hack for backward compatibility on systems with
older gettext installed

See 0576dbd3 and 81ed13ed.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-10 13:41:11 +02:00
Sami Kerola 54e6639071 build-sys: remove unnecessary environment variable
The addition to original removal done in commit 952f1d79.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-23 10:58:34 +02:00
Karel Zak d2feb47fb1 build-sys: convert mount/ to module, rename to mount-deprecated/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Sami Kerola 13ba1df87d build-sys: enhance error message for missing libtoolize
The commit will will use `You must have libtool version...' message
when libtoolize is missing.  Earlier the error message less helpful.

./autogen.sh: line 59: test: =: unary operator expected

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-10-10 13:56:53 +02:00
Sami Kerola 38c75b59e3 build-sys: use git-version-gen to distinct git and release versions
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>
2011-04-05 16:34:00 +02:00
Sami Kerola cc3c3fdd29 build-sys: do not ignore datarootdir
Fix to the ./configure warning which has been printed since
autotools version 2.59c (released at April 2006).

WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-03-22 10:17:50 +01:00
Sami Kerola aada54e028 build-sys: shell syntax fix in autogen.sh
Use of == as synonym of single = sign backfires on systems where
/bin/sh is dash, like with Ubuntu.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-01-31 17:22:30 +01:00
Karel Zak 4b2ede3ef2 build-sys: use generated libtool-2 stuff
The commit 60a4edd662 temporary disabled
libtool-2 in autogen.sh. It seems that libtool-2 in available in
many distributions now, so we don't have to manage the generated .m4
libtool files in git anymore.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-05 13:17:12 +01:00
Karel Zak 93e0319d30 build-sys: cleanup autogen.sh
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-05 12:49:05 +01:00
Karel Zak 7c2ee1d26c build-sys: remove generated po/POTFILES.in
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-29 20:51:58 +01:00
Karel Zak 601d12fb10 rename util-linux-ng back to util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30 11:41:59 +01:00
Karel Zak 952f1d791a build-sys: remove gtkdocize from autogen.sh
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-07 00:06:53 +01:00
Karel Zak a77bfc3a00 build-sys: clean up gtk-doc usage
Currently gtk-doc is optional. Unfortunately, the ./configure script
still depends on GTK_DOC_CHECK macro and shlibs/blkid/docs/Makefile.am
depends on gtk-doc.make.

It seems that the best solution is to add gtk-doc.[make,m4] files to
the repository.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-12 15:20:27 +02:00
Karel Zak 1e018c1571 libblkid: gtkdocize (API docs generated by gtk-docs)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 21:39:37 +02:00
Karel Zak 60a4edd662 build-sys: add temporary libtool *.m4 stuff
We require libtool-2 (because old 1.5.x is crap). Unfortunately,
libtool-2 is still not available in many Linux distributions  -- now I
see it in unstable distributions only. The painless way how to resolve
this problem is to __temporary__ commit generated libtool-2 stuff to
our repository.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-16 10:40:25 +01:00
Karel Zak b12991dd5c build-sys: libtoolize by libtool-2
We need an infrastructure for stared libraries. The latest libtool-2
seems useful and it's definitely better than the old 1.5 crap.

You need to install libtool-2 when you want to run ./autogen.sh script
after checkout from git repository.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 11:37:00 +01:00
Karel Zak 952a06cfa8 build-sys: autogen.sh reports versions of autotools now
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-09-02 13:43:31 +02:00
Karel Zak 1eca726f65 build-sys: add ${AC,AP,AM,AH}_OPTS to autogen.sh
With this patch, you can define autotool options when you
need to generate build-system. For example:

  $ AM_OPTS="--copy" ./autogen.sh

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-25 18:45:01 +02:00
Karel Zak db0aaaa6a8 build-sys: remove libtool
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-11 00:59:49 +02:00
Stepan Kasal e1bc6da937 build-sys: fix the final message of autogen.sh
The message shall not recommend calling ./configure when srcdir != "." .

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-08 00:39:13 +02:00
Stepan Kasal 5a2300248f build-sys: call automake after autoconf
"automake" calls "autoconf" internally, to trace the expansion of
configure.ac.  So it is more natural to call "autoconf" before
"automake".

Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-08 00:38:36 +02:00
Mike Frysinger f2c166ffdb check exit status of autotools
Make sure each autotool run in autogen.sh worked and if not, abort.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-04-11 10:58:12 +02:00
Karel Zak 82640b11ba tests: add library for LD_PRELOAD to manipulate with time() in tests
The cal command generates output that depends on time(). For reliable
regression tests we need to use still same time. It seems that LD_PRELOAD is
pretty simple way.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-03-14 14:10:18 +01:00
Karel Zak 8eeb575c0d build-sys: remove generated autotools stuff from git
The generated autotools stuff shouldn't be maintained by SCM. After check out
from git use ./autogen.sh. For more details see README.devel.

Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03 22:20:44 +01:00