configure.ac 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.57])
  23. AC_INIT(fonttosfnt,[1.0.4], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],fonttosfnt)
  24. AM_INIT_AUTOMAKE([dist-bzip2])
  25. AM_MAINTAINER_MODE
  26. AM_CONFIG_HEADER(config.h)
  27. AC_PROG_CC
  28. AC_PROG_INSTALL
  29. AC_CHECK_FUNC(setenv, have_setenv=yes, have_setenv=no)
  30. AC_CHECK_FUNCS([vasprintf])
  31. AC_CHECK_DECLS([va_copy], [], [], [
  32. AC_INCLUDES_DEFAULT
  33. #include <stdarg.h>
  34. ])
  35. AM_CONDITIONAL(NEED_SETENV, [test x$have_setenv = xno])
  36. # Checks for pkg-config packages
  37. PKG_CHECK_MODULES(FONTTOSFNT, xproto freetype2 fontenc)
  38. AC_SUBST(FONTTOSFNT_CFLAGS)
  39. AC_SUBST(FONTTOSFNT_LIBS)
  40. XORG_MANPAGE_SECTIONS
  41. XORG_RELEASE_VERSION
  42. AC_OUTPUT([Makefile])