diff options
author | Jens Georg <mail@jensge.org> | 2019-10-20 06:27:42 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2019-10-20 06:27:42 +0200 |
commit | 11f4abbb214938d5cae56a57a5c7de8efe048ac9 (patch) | |
tree | 5ecdd201dc8a83b750812bd827ee299625caeb7d /m4 | |
parent | da9a56b0d4549078fb07124cd874ada18b6508c2 (diff) | |
download | rygel-11f4abbb214938d5cae56a57a5c7de8efe048ac9.tar.gz |
build: Drop Autotools
Diffstat (limited to 'm4')
-rw-r--r-- | m4/rygel.m4 | 125 | ||||
-rw-r--r-- | m4/vala.m4 | 72 |
2 files changed, 0 insertions, 197 deletions
diff --git a/m4/rygel.m4 b/m4/rygel.m4 deleted file mode 100644 index 3152ba27..00000000 --- a/m4/rygel.m4 +++ /dev/null @@ -1,125 +0,0 @@ -dnl rygel.m4 -dnl -dnl Copyright 2011 Jens Georg -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -AC_DEFUN([RYGEL_ADD_STAMP], -[ - rygel_stamp_files="$rygel_stamp_files $srcdir/$1" -]) - -AC_DEFUN([RYGEL_ADD_VALAFLAGS], -[ - VALAFLAGS="${VALAFLAGS:+$VALAFLAGS }$1" -]) - -# RYGEL_CHECK_PACKAGES(LIST-OF-PACKAGES, -# ACTION-IF-FOUND) -# --------------------------------------- -# Version of VALA_CHECK_PACKAGES that will only run if vala support is -# enabled. Otherwise ACTION-IF-FOUND will be run. -AC_DEFUN([RYGEL_CHECK_PACKAGES], -[ - AS_IF([test "x$enable_vala" = "xyes"], - [ - VALA_CHECK_PACKAGES([$1],[$2]) - ], - [ - $2 - ]) -]) - -# _RYGEL_ADD_PLUGIN_INTERNAL(NAME-OF-PLUGIN, -# NAME-OF-PLUGIN-WITH-UNDERSCORES, -# NAME-OF-PLUGIN-FOR-HELP, -# DEFAULT-FOR-ENABLE) -# -------------------------------------- -# Add an --enable-plugin option, add its Makefile to AC_OUTPUT and set the -# conditional -AC_DEFUN([_RYGEL_ADD_PLUGIN_INTERNAL], -[ - AC_ARG_ENABLE([$1-plugin], - AS_HELP_STRING([--enable-$1-plugin],[enable $3 plugin]),, - enable_$2_plugin=$4) - AC_CONFIG_FILES([src/plugins/$1/Makefile]) - AM_CONDITIONAL(m4_toupper(build_$2_plugin), test "x$[]enable_$2_plugin" = "xyes") - RYGEL_ADD_STAMP([src/plugins/$1/librygel_$2_la_vala.stamp]) - AC_CONFIG_FILES([src/plugins/$1/$1.plugin]) -]) - -# _RYGEL_ADD_PLUGIN_INTERNAL(NAME-OF-PLUGIN, -# NAME-OF-PLUGIN-FOR-HELP, -# DEFAULT-FOR-ENABLE) -# -------------------------------------- -# Add an --enable-plugin option, add its Makefile to AC_OUTPUT and set the -# conditional -AC_DEFUN([RYGEL_ADD_PLUGIN], -[ - _RYGEL_ADD_PLUGIN_INTERNAL([$1], - m4_translit([$1],[-],[_]), - [$2], - [$3]) -]) - -AC_DEFUN([_RYGEL_DISABLE_PLUGIN_INTERNAL], -[ - AM_CONDITIONAL(m4_toupper(build_$1_plugin), false) - enable_$1_plugin="n/a" -]) - -AC_DEFUN([RYGEL_DISABLE_PLUGIN], -[ - _RYGEL_DISABLE_PLUGIN_INTERNAL(m4_translit([$1],[-],[_])) -]) - -AC_DEFUN([RYGEL_CHECK_VALA], -[ - AC_ARG_ENABLE([vala], - [AS_HELP_STRING([--enable-vala],[enable checks for vala])],, - [enable_vala=no]) - AC_ARG_ENABLE([strict-valac], - [AS_HELP_STRING([--enable-strict-valac],[enable strict Vala compiler])],, - [enable_strict_valac=no]) - AS_IF([test "x$enable_strict_valac" = "xyes"], - [RYGEL_ADD_VALAFLAGS([--fatal-warnings])]) - AC_SUBST([VALAFLAGS]) - - dnl Enable check for Vala even if not asked to do so if stamp files are absent. - for stamp in $rygel_stamp_files - do - AS_IF([test ! -e "$stamp"], - [AC_MSG_WARN([Missing stamp file $[]stamp. Forcing vala mode]) - enable_vala=yes - ]) - done - - dnl Vala - AS_IF([test x$enable_vala = xyes], - [dnl check for vala - AM_PROG_VALAC([$1]) - - AS_IF([test x$VALAC = "x"], - [AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])], - [ - VALA_CHECK_PACKAGES([$2]) - ]) - ], - [] - ) - - VAPIDIR="${datadir}/vala/vapi" - AC_SUBST(VAPIDIR) -]) diff --git a/m4/vala.m4 b/m4/vala.m4 deleted file mode 100644 index a9a826a9..00000000 --- a/m4/vala.m4 +++ /dev/null @@ -1,72 +0,0 @@ -dnl vala.m4 -dnl -dnl Copyright 2010 Marc-Andre Lureau -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -# _VALA_CHECK_COMPILE_WITH_ARGS(ARGS, [ACTION-IF-TRUE], -# [ACTION-IF-FALSE]) -# -------------------------------------- -# Check that Vala compile with ARGS. -# -AC_DEFUN([_VALA_CHECK_COMPILE_WITH_ARGS], -[AC_REQUIRE([AM_PROG_VALAC])[]dnl - - cat <<_ACEOF >conftest.vala -void main(){} -_ACEOF - - AS_IF([vala_error=`$VALAC $1 -C -q -o conftest$ac_exeext conftest.vala 2>&1`], - [$2], [$3]) -]) - -])# _VALA_CHECK_COMPILE_WITH_ARGS - -# VALA_CHECK_PACKAGES(PKGS, [ACTION-IF-FOUND], -# [ACTION-IF-NOT-FOUND]) -# -------------------------------------- -# Check that PKGS Vala bindings are installed and usable. -# -AC_DEFUN([VALA_CHECK_PACKAGES], -[ - unset vala_pkgs - unset vala_bindings - ac_save_ifs="$IFS"; unset IFS - for vala_pkg in $(echo "$1"); do - vala_pkgs="${vala_pkgs:+$vala_pkgs }--pkg $vala_pkg" - vala_bindings="${vala_bindings:+$vala_bindings }$vala_pkg" - done - IFS="$ac_save_ifs" - AC_MSG_CHECKING([for $vala_bindings vala bindings]) - _VALA_CHECK_COMPILE_WITH_ARGS([$vala_pkgs], - [vala_pkg_exists=yes], - [vala_pkg_exists=no]) - -AS_IF([test x${vala_pkg_exists} = xno],[ - ifelse([$3], , [AC_MSG_ERROR([]dnl -[Package requirements were not met: $1 - -$vala_error - -Consider adjusting the XDG_DATA_DIRS environment variable if you -installed bindings in a non-standard prefix. -])], - [AC_MSG_RESULT([no]) -$3])],[ - AC_MSG_RESULT([yes]) - ifelse([$2], , :, [$2])[]dnl -]) - -])# VALA_CHECK_PACKAGES |