configure.ac 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. dnl Copyright 2005 Red Hat, Inc.
  2. dnl
  3. dnl Permission to use, copy, modify, distribute, and sell this software and its
  4. dnl documentation for any purpose is hereby granted without fee, provided that
  5. dnl the above copyright notice appear in all copies and that both that
  6. dnl copyright notice and this permission notice appear in supporting
  7. dnl documentation, and that the name of Red Hat not be used in
  8. dnl advertising or publicity pertaining to distribution of the software without
  9. dnl specific, written prior permission. Red Hat makes no
  10. dnl representations about the suitability of this software for any purpose. It
  11. dnl is provided "as is" without express or implied warranty.
  12. dnl
  13. dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  14. dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  15. dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  16. dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  17. dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18. dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. dnl PERFORMANCE OF THIS SOFTWARE.
  20. dnl
  21. dnl Process this file with autoconf to create configure.
  22. AC_PREREQ([2.60])
  23. AC_INIT([xclipboard], [1.1.3],
  24. [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xclipboard])
  25. AC_CONFIG_SRCDIR([Makefile.am])
  26. AC_CONFIG_HEADERS([config.h])
  27. # Initialize Automake
  28. AM_INIT_AUTOMAKE([foreign dist-bzip2])
  29. AM_MAINTAINER_MODE
  30. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  31. m4_ifndef([XORG_MACROS_VERSION],
  32. [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
  33. XORG_MACROS_VERSION(1.8)
  34. XORG_DEFAULT_OPTIONS
  35. # Checks for pkg-config packages
  36. PKG_CHECK_EXISTS([xkbfile], [XKBPKG="xkbfile"], [XKBPKG=""])
  37. if test x$XKBPKG = xxkbfile ; then
  38. AC_DEFINE([XKB], [1], [Define to use libxkbfile calls like XKBStdBell()])
  39. fi
  40. PKG_CHECK_MODULES(XCLIPBOARD, [xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17])
  41. PKG_CHECK_MODULES(APPDEFS, xt)
  42. xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
  43. AC_ARG_WITH(appdefaultdir,
  44. AS_HELP_STRING([--with-appdefaultdir=<pathname>],
  45. [specify directory for app-defaults files (default is autodetected)]),
  46. [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
  47. AC_SUBST(appdefaultdir)
  48. AC_CONFIG_FILES([
  49. Makefile
  50. man/Makefile])
  51. AC_OUTPUT