Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
libqb.11717
libqb-configure-package-version.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libqb-configure-package-version.patch of Package libqb.11717
diff --git a/configure.ac b/configure.ac index a4dc7c0..e0a5c92 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,19 @@ AC_CANONICAL_HOST AC_PROG_LIBTOOL AC_LANG([C]) + +if test $PACKAGE_VERSION = "UNKNOWN"; then + # The current directory name make a reasonable default + # Most generated archives will include the hash or tag + BASE=`basename $PWD` + PACKAGE_VERSION=`echo $BASE | sed s:.*[[Ll]]ibqb-::` + AC_MSG_RESULT(directory based hash: $PACKAGE_VERSION) + + AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION) + AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "$PACKAGE_VERSION", Current libqb version) + AC_SUBST(PACKAGE_VERSION) +fi + dnl Fix default variables - "prefix" variable if not specified if test "$prefix" = "NONE"; then prefix="/usr"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor