diff options
author | Sean Davis <smd.seandavis@gmail.com> | 2017-09-22 06:23:39 -0400 |
---|---|---|
committer | Sean Davis <smd.seandavis@gmail.com> | 2017-09-22 06:23:39 -0400 |
commit | 5e7001c6e6266c35f4ad492167b76beb7bb3fcc2 (patch) | |
tree | cb6577bad160f98444da72b3b874a3383d6299aa | |
parent | 3d5ce93f5afb733c50c3f866afdc3652085d0f9b (diff) | |
download | lightdm-gtk-greeter-git-5e7001c6e6266c35f4ad492167b76beb7bb3fcc2.tar.gz |
Replace usage of deprecated gnome-common macros/variables (LP: #1599486, Debian: #829931)
This change drops the gnome-common requirement and currently requires "--disable-Werror" for successful build.
-rwxr-xr-x | autogen.sh | 43 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 30 insertions, 15 deletions
@@ -1,21 +1,36 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +test -n "$srcdir" || srcdir=$(dirname "$0") +test -n "$srcdir" || srcdir=. -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +olddir=$(pwd) -PKG_NAME="lightdm-gtk-greeter" -REQUIRED_AUTOMAKE_VERSION=1.7 +cd $srcdir -(test -f $srcdir/configure.ac \ - && test -d $srcdir/src) || { - echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level lightdm-gtk-greeter directory" - exit 1 +(test -f configure.ac) || { + echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***" + exit 1 } -which gnome-autogen.sh || { - echo "You need to install gnome-common from the GNOME CVS" - exit 1 -} -USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh +# shellcheck disable=SC2016 +PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac) + +if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then + echo "*** WARNING: I am going to run 'configure' with no arguments." >&2 + echo "*** If you wish to pass any to it, please specify them on the" >&2 + echo "*** '$0' command line." >&2 + echo "" >&2 +fi + +autoreconf --verbose --force --install || exit 1 + +cd "$olddir" +if [ "$NOCONFIGURE" = "" ]; then + $srcdir/configure "$@" || exit 1 + + if [ "$1" = "--help" ]; then exit 0 else + echo "Now type 'make' to compile $PKG_NAME" || exit 1 + fi +else + echo "Skipping configure process." +fi diff --git a/configure.ac b/configure.ac index df5bc0b..75f3d51 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) GOBJECT_INTROSPECTION_CHECK(0.9.5) -GNOME_COMPILE_WARNINGS(maximum) +AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS]) dnl ########################################################################### dnl Standard headers |