File: ax_arg_enable.m4

package info (click to toggle)
povray 1%3A3.7.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 147,232 kB
  • sloc: cpp: 845,011; ansic: 122,118; sh: 34,204; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,389; cs: 879; awk: 590; perl: 245; xml: 95
file content (33 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
# SYNOPSIS
#
#   AX_ARG_ENABLE(FEATURE, HELP-STRING)
#
# DESCRIPTION
#
#   Basic replacement for AC_ARG_ENABLE().
#   FEATURE must include the '--enable' or '--disable' prefix.
#
# LAST MODIFICATION
#
#   2009-01-09
#
# COPYLEFT
#
#   Copyright (c) 2006 Nicolas Calimet
#
#   Copying and distribution of this file, with or without
#   modification, are permitted in any medium without royalty provided
#   the copyright notice and this notice are preserved.

AC_DEFUN([AX_ARG_ENABLE],
[
  AC_ARG_ENABLE(m4_bpatsubst([$1], [^--.*able-], []),
    [AS_HELP_STRING([$1], [$2])],
    [
      case "$enableval" in
        yes|no|"") ;;
        *)         AC_MSG_ERROR([incorrect value '$enableval' for $1]) ;;
      esac
    ]
  )
])