diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | macros2/gnome-autogen.sh | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -13,8 +13,6 @@ script in your module that looks something like this: srcdir=`dirname $0` [ -z "$srcdir" ] && srcdir=. -PKG_NAME=mypackage - if [ ! -f "$srcdir/configure.ac" ]; then echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2 exit 1 diff --git a/macros2/gnome-autogen.sh b/macros2/gnome-autogen.sh index be49462..8195dfb 100644 --- a/macros2/gnome-autogen.sh +++ b/macros2/gnome-autogen.sh @@ -1,8 +1,6 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -#name of package -test "$PKG_NAME" || PKG_NAME=Package test "$srcdir" || srcdir=. # default version requirements ... @@ -47,6 +45,8 @@ printerr() { echo "$@" >&2 } +PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"` + # Usage: # compare_versions MIN_VERSION ACTUAL_VERSION # returns true if ACTUAL_VERSION >= MIN_VERSION |