2004-06-24 14:18:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2013-06-20 16:03:31 +00:00
|
|
|
set -e
|
|
|
|
|
2004-06-24 14:18:37 +00:00
|
|
|
srcdir=`dirname $0`
|
2013-06-20 16:03:31 +00:00
|
|
|
if test -z "$srcdir"; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
2013-06-14 23:01:29 +00:00
|
|
|
|
|
|
|
olddir=`pwd`
|
|
|
|
|
2008-08-18 15:29:21 +00:00
|
|
|
REQUIRED_AUTOMAKE_VERSION=1.9
|
2004-08-26 19:14:26 +00:00
|
|
|
PKG_NAME=NetworkManager
|
|
|
|
|
2009-04-20 23:17:07 +00:00
|
|
|
(test -f $srcdir/configure.ac \
|
all: move "src/" directory to "src/core/"
Currently "src/" mostly contains the source code of the daemon.
I say mostly, because that is not true, there are also the device,
settings, wwan, ppp plugins, the initrd generator, the pppd and dhcp
helper, and probably more.
Also we have source code under libnm-core/, libnm/, clients/, and
shared/ directories. That is all confusing.
We should have one "src" directory, that contains subdirectories. Those
subdirectories should contain individual parts (libraries or
applications), that possibly have dependencies on other subdirectories.
There should be a flat hierarchy of directories under src/, which
contains individual modules.
As the name "src/" is already taken, that prevents any sensible
restructuring of the code.
As a first step, move "src/" to "src/core/". This gives space to
reorganize the code better by moving individual components into "src/".
For inspiration, look at systemd's "src/" directory.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/743
2021-02-03 14:25:56 +00:00
|
|
|
&& test -f $srcdir/src/core/main.c) || {
|
2015-06-18 23:25:27 +00:00
|
|
|
printf "**Error**: Directory "\`$srcdir\'" does not look like the" >&2
|
|
|
|
echo " top-level $PKG_NAME directory" >&2
|
2004-08-26 19:14:26 +00:00
|
|
|
exit 1
|
2004-06-24 14:18:37 +00:00
|
|
|
}
|
|
|
|
|
2013-06-14 23:01:29 +00:00
|
|
|
cd $srcdir
|
|
|
|
|
2016-06-06 11:52:46 +00:00
|
|
|
gtkdocize
|
build: stop relying on intltool for i18n
Recent gettext version can extract and merge back strings from and to
various file formats, no need for intltool anymore.
https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/133
https://github.com/NetworkManager/NetworkManager/pull/303
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/96
Clarification about the use of AM_GNU_GETTEXT_REQUIRE_VERSION:
In configure.ac, specify the minimum gettext version we require, rather
than the exact one. This fixes a situation where the autoconf macros
used for gettext will be the latest available on the system (for
example, 0.20); but the copied-in Makefile.in.in will be for the exact
version specified in configure.ac (in this case, 0.19).
In that situation, the gettext build rules will error out at `make` time
with the message:
*** error: gettext infrastructure mismatch: using a Makefile.in.in
from gettext version 0.19 but the autoconf macros are from gettext
version 0.20
Avoid that by specifying a minimum version dependency rather than an
exact one. This should not cause problems as we haven’t committed any
generated or external gettext files into git, so each developer will end
up regenerating the build system for their system’s version of gettext,
as expected.
See the subsection of
https://www.gnu.org/software/gettext/manual/html_node/Version-Control-Issues.html
for more information.
Note that autoreconf currently doesn’t recognise
AM_GNU_GETTEXT_REQUIRE_VERSION, so we must continue also using
AM_GNU_GETTEXT_VERSION. autopoint will ignore the latter if the former
is present. See
https://lists.gnu.org/archive/html/autoconf-patches/2015-10/msg00000.html.
[lkundrak@v3.sk: Fixed the meson build, adjusted autogen.sh:
droped "|| exit 1", dropped call to aclocal,
dropped --copy from gtkdocize.]
2021-03-31 08:52:03 +00:00
|
|
|
autoreconf --verbose --force --install
|
2004-06-24 14:18:37 +00:00
|
|
|
|
2013-06-14 23:01:29 +00:00
|
|
|
cd $olddir
|
2012-11-13 20:11:50 +00:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
2020-09-29 07:18:43 +00:00
|
|
|
exec $srcdir/configure --enable-maintainer-mode --enable-more-warnings=error --enable-gtk-doc --enable-introspection "$@"
|
2012-11-13 20:11:50 +00:00
|
|
|
fi
|