8147
8148
dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
8149
8150
dnl Permission is hereby granted, free of charge, to any person obtaining a
8150
dnl copy of this software and associated documentation files (the
8151
dnl "Software"), to deal in the Software without restriction, including
8152
dnl without limitation the rights to use, copy, modify, merge, publish,
8153
dnl distribute, and/or sell copies of the Software, and to permit persons
8154
dnl to whom the Software is furnished to do so, provided that the above
8155
dnl copyright notice(s) and this permission notice appear in all copies of
8156
dnl the Software and that both the above copyright notice(s) and this
8157
dnl permission notice appear in supporting documentation.
8159
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8160
dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8161
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8162
dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8163
dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8164
dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8165
dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8166
dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8167
dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8169
dnl Except as contained in this notice, the name of a copyright holder
8170
dnl shall not be used in advertising or otherwise to promote the sale, use
8171
dnl or other dealings in this Software without prior written authorization
8172
dnl of the copyright holder.
8151
dnl copy of this software and associated documentation files (the "Software"),
8152
dnl to deal in the Software without restriction, including without limitation
8153
dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
8154
dnl and/or sell copies of the Software, and to permit persons to whom the
8155
dnl Software is furnished to do so, subject to the following conditions:
8157
dnl The above copyright notice and this permission notice (including the next
8158
dnl paragraph) shall be included in all copies or substantial portions of the
8161
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8162
dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8163
dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8164
dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8165
dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
8166
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
8167
dnl DEALINGS IN THE SOFTWARE.
8174
8169
# XORG_MACROS_VERSION(required-version)
8175
8170
# -------------------------------------
8454
8449
AC_SUBST(MAKE_HTML)
8455
8450
]) # XORG_CHECK_DOCBOOK
8454
# Minimum version: 1.5.0
8456
# Documentation tools are not always available on all platforms and sometimes
8457
# not at the appropriate level. This macro enables a module to test for the
8458
# presence of the tool and obtain it's path in separate variables. Coupled with
8459
# the --with-xmlto option, it allows maximum flexibilty in making decisions
8460
# as whether or not to use the xmlto package.
8462
# Interface to module:
8463
# HAVE_XMLTO: used in makefiles to conditionally generate documentation
8464
# XMLTO: returns the path of the xmlto program found
8465
# returns the path set by the user in the environment
8466
# --with-xmlto: 'yes' user instructs the module to use xmlto
8467
# 'no' user instructs the module not to use xmlto
8469
# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
8471
AC_DEFUN([XORG_WITH_XMLTO],[
8472
AC_ARG_VAR([XMLTO], [Path to xmlto command])
8474
AS_HELP_STRING([--with-xmlto],
8475
[Use xmlto to regenerate documentation (default: yes, if installed)]),
8476
[use_xmlto=$withval], [use_xmlto=auto])
8478
if test "x$use_xmlto" = x"auto"; then
8479
AC_PATH_PROG([XMLTO], [xmlto])
8480
if test "x$XMLTO" = "x"; then
8481
AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
8486
elif test "x$use_xmlto" = x"yes" ; then
8487
AC_PATH_PROG([XMLTO], [xmlto])
8488
if test "x$XMLTO" = "x"; then
8489
AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
8492
elif test "x$use_xmlto" = x"no" ; then
8493
if test "x$XMLTO" != "x"; then
8494
AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
8498
AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
8500
AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
8501
]) # XORG_CHECK_XMLTO
8503
# XORG_WITH_ASCIIDOC
8505
# Minimum version: 1.5.0
8507
# Documentation tools are not always available on all platforms and sometimes
8508
# not at the appropriate level. This macro enables a module to test for the
8509
# presence of the tool and obtain it's path in separate variables. Coupled with
8510
# the --with-asciidoc option, it allows maximum flexibilty in making decisions
8511
# as whether or not to use the asciidoc package.
8513
# Interface to module:
8514
# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
8515
# ASCIIDOC: returns the path of the asciidoc program found
8516
# returns the path set by the user in the environment
8517
# --with-asciidoc: 'yes' user instructs the module to use asciidoc
8518
# 'no' user instructs the module not to use asciidoc
8520
# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
8522
AC_DEFUN([XORG_WITH_ASCIIDOC],[
8523
AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
8524
AC_ARG_WITH(asciidoc,
8525
AS_HELP_STRING([--with-asciidoc],
8526
[Use asciidoc to regenerate documentation (default: yes, if installed)]),
8527
[use_asciidoc=$withval], [use_asciidoc=auto])
8529
if test "x$use_asciidoc" = x"auto"; then
8530
AC_PATH_PROG([ASCIIDOC], [asciidoc])
8531
if test "x$ASCIIDOC" = "x"; then
8532
AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
8537
elif test "x$use_asciidoc" = x"yes" ; then
8538
AC_PATH_PROG([ASCIIDOC], [asciidoc])
8539
if test "x$ASCIIDOC" = "x"; then
8540
AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
8543
elif test "x$use_asciidoc" = x"no" ; then
8544
if test "x$ASCIIDOC" != "x"; then
8545
AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
8549
AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
8551
AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
8552
]) # XORG_CHECK_ASCIIDOC
8556
# Minimum version: 1.5.0
8558
# Documentation tools are not always available on all platforms and sometimes
8559
# not at the appropriate level. This macro enables a module to test for the
8560
# presence of the tool and obtain it's path in separate variables. Coupled with
8561
# the --with-doxygen option, it allows maximum flexibilty in making decisions
8562
# as whether or not to use the doxygen package.
8564
# Interface to module:
8565
# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
8566
# DOXYGEN: returns the path of the doxygen program found
8567
# returns the path set by the user in the environment
8568
# --with-doxygen: 'yes' user instructs the module to use doxygen
8569
# 'no' user instructs the module not to use doxygen
8571
# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
8573
AC_DEFUN([XORG_WITH_DOXYGEN],[
8574
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
8575
AC_ARG_WITH(doxygen,
8576
AS_HELP_STRING([--with-doxygen],
8577
[Use doxygen to regenerate documentation (default: yes, if installed)]),
8578
[use_doxygen=$withval], [use_doxygen=auto])
8580
if test "x$use_doxygen" = x"auto"; then
8581
AC_PATH_PROG([DOXYGEN], [doxygen])
8582
if test "x$DOXYGEN" = "x"; then
8583
AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
8588
elif test "x$use_doxygen" = x"yes" ; then
8589
AC_PATH_PROG([DOXYGEN], [doxygen])
8590
if test "x$DOXYGEN" = "x"; then
8591
AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
8594
elif test "x$use_doxygen" = x"no" ; then
8595
if test "x$DOXYGEN" != "x"; then
8596
AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
8600
AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
8602
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
8603
]) # XORG_CHECK_DOXYGEN
8457
8605
# XORG_CHECK_MALLOC_ZERO
8458
8606
# ----------------------
8459
8607
# Minimum version: 1.0.0