File: CustomMacros.m4

package info (click to toggle)
webkitgtk 2.4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 121,252 kB
  • sloc: cpp: 1,033,835; ansic: 19,244; sh: 11,153; perl: 10,719; ruby: 8,592; asm: 4,378; python: 4,126; yacc: 2,072; lex: 350; makefile: 215; xml: 63
file content (26 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
dnl AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS
dnl
dnl Usage:
dnl AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([BUILD_TARGET], [OUTPUT_TARGET_VARIABLE], [BUILD_TARGETS])
AC_DEFUN([AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS], [
  AC_MSG_CHECKING([whether to enable the $1 target])
  AS_IF([echo "$$3" | grep -qE "$1=yes"; test $? -eq 0], [$2=yes],
    [echo "$$3" | grep -qE "$1=no"; test $? -eq 0], [$2=no],
    [echo "$$3" | grep -qE "$1="; test $? -eq 0], [$2=auto],
    [$2=no])
  AC_MSG_RESULT([$$2])
]) dnl AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS

dnl AM_APPEND_TO_DESCRIPTION
dnl Appends the given string to the description variable,
dnl using a separator if the description variable is not empty.
dnl
dnl Usage:
dnl AM_APPEND_TO_DESCRIPTION([DESCRIPTION], [STRING])
AC_DEFUN([AM_APPEND_TO_DESCRIPTION], [
  if test "$$1" != ""; then
    $1="${$1}, "
  fi

  $1="${$1}$2"
]) dnl AM_APPEND_TO_DESCRIPTION