|
|
|
@ -167,12 +167,6 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
|
AM_CPPFLAGS+=" '-DMAKE_STRING(X)=\#X' '-DNAMESPACE=${PACKAGE_TARNAME//[^a-zA-Z0-9]/_}'" |
|
|
|
|
AX_SUBST(NUMBERS) |
|
|
|
|
AX_SUBST(HOME) |
|
|
|
|
DEB_DEPEND_IFEXISTS= |
|
|
|
|
DEB_BUILD_DEPEND= |
|
|
|
|
DEB_DEPEND= |
|
|
|
|
AC_SUBST(DEB_DEPEND_IFEXISTS) |
|
|
|
|
AC_SUBST(DEB_BUILD_DEPEND) |
|
|
|
|
AC_SUBST(DEB_DEPEND) |
|
|
|
|
if test -f README.md; then |
|
|
|
|
README=$(tail -n +3 README.md) |
|
|
|
|
DESCRIPTION=$(head -1 README.md) |
|
|
|
@ -974,36 +968,40 @@ AC_DEFUN([AX_CHECK_VALID_LD_FLAG], [ |
|
|
|
|
# - parameter: |
|
|
|
|
# $1 = package name |
|
|
|
|
AC_DEFUN([AX_DEB_DEPEND_IFEXISTS], [ |
|
|
|
|
pkg=$1 |
|
|
|
|
pkg="$1" |
|
|
|
|
if test -n "$(apt-cache policy -q ${pkg} 2> /dev/null)"; then |
|
|
|
|
DEB_DEPEND_IFEXISTS+=", ${pkg}" |
|
|
|
|
DEB_DEPEND_IFEXISTS="${DEB_DEPEND_IFEXISTS}, ${pkg}" |
|
|
|
|
fi |
|
|
|
|
AC_SUBST(DEB_DEPEND_IFEXISTS) |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# require package in debian/control.in append @DEB_BUILD_DEPEND@ to Build-Depends |
|
|
|
|
# - parameter: |
|
|
|
|
# $1 = package name |
|
|
|
|
AC_DEFUN([AX_DEB_BUILD_DEPEND], [ |
|
|
|
|
pkg=$1 |
|
|
|
|
DEB_BUILD_DEPEND+=", ${pkg}" |
|
|
|
|
AC_SUBST(DEB_BUILD_DEPEND) |
|
|
|
|
pkg="$1" |
|
|
|
|
DEB_BUILD_DEPEND="${DEB_BUILD_DEPEND}, ${pkg}" |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# require package in debian/control.in append @DEB_DEPEND@ to Depends |
|
|
|
|
# - parameter: |
|
|
|
|
# $1 = package name |
|
|
|
|
AC_DEFUN([AX_DEB_DEPEND], [ |
|
|
|
|
pkg=$1 |
|
|
|
|
DEB_DEPEND+=", ${pkg}" |
|
|
|
|
AC_SUBST(DEB_DEPEND) |
|
|
|
|
pkg="$1" |
|
|
|
|
DEB_DEPEND="${DEB_DEPEND}, ${pkg}" |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# require package in debian/control.in append @DEB_DEPEND@ to Depends |
|
|
|
|
# - parameter: |
|
|
|
|
# $1 = package name |
|
|
|
|
AC_DEFUN([AX_DEB_SECTION], [ |
|
|
|
|
pkg=$1 |
|
|
|
|
pkg="$1" |
|
|
|
|
DEB_SECTION="${pkg}" |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
# call after setting debian dependencies |
|
|
|
|
AC_DEFUN([AX_DEB_RESOLVE], [ |
|
|
|
|
AC_SUBST(DEB_BUILD_DEPEND) |
|
|
|
|
AC_SUBST(DEB_DEPEND) |
|
|
|
|
AC_SUBST(DEB_SECTION) |
|
|
|
|
AC_SUBST(DEB_DEPEND_IFEXISTS) |
|
|
|
|
]) |
|
|
|
|