configure.ac 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. dnl Copyright (C) 2000-2003, 2005-2009 Free Software Foundation, Inc.
  2. dnl This file is part of the GNU CHARSET Library.
  3. dnl
  4. dnl The GNU CHARSET Library is free software; you can redistribute it and/or
  5. dnl modify it under the terms of the GNU Library General Public License as
  6. dnl published by the Free Software Foundation; either version 2 of the
  7. dnl License, or (at your option) any later version.
  8. dnl
  9. dnl The GNU CHARSET Library is distributed in the hope that it will be useful,
  10. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. dnl Library General Public License for more details.
  13. dnl
  14. dnl You should have received a copy of the GNU Library General Public License
  15. dnl along with the GNU CHARSET Library; see the file COPYING.LIB. If not,
  16. dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
  17. dnl Fifth Floor, Boston, MA 02110-1301, USA.
  18. AC_PREREQ([2.13])
  19. PACKAGE=libcharset
  20. VERSION=1.4
  21. AC_INIT([lib/localcharset.c])
  22. AC_CONFIG_AUX_DIR([build-aux])
  23. AC_CONFIG_HEADER([config.h])
  24. AC_PROG_MAKE_SET
  25. AC_SUBST([PACKAGE])
  26. AC_SUBST([VERSION])
  27. dnl checks for basic programs
  28. AC_PROG_CC
  29. AC_PROG_CPP
  30. AC_PROG_INSTALL
  31. dnl check for host type
  32. AC_CANONICAL_HOST
  33. dnl checks for installer options
  34. gl_RELOCATABLE_LIBRARY
  35. dnl checks for programs
  36. dnl checks for UNIX variants that set DEFS
  37. AC_USE_SYSTEM_EXTENSIONS
  38. dnl checks for compiler output filename suffixes
  39. AC_OBJEXT
  40. AC_EXEEXT
  41. dnl check for build configuration
  42. LT_INIT([win32-dll])
  43. gl_VISIBILITY
  44. dnl checks for header files and functions
  45. AM_LANGINFO_CODESET
  46. gl_GLIBC21
  47. AC_CHECK_FUNCS([setlocale])
  48. AC_CONFIG_FILES([Makefile])
  49. AC_CONFIG_FILES([lib/Makefile])
  50. AC_CONFIG_FILES([include/localcharset.h:include/localcharset.h.build.in])
  51. AC_CONFIG_FILES([include/localcharset.h.inst:include/localcharset.h.in])
  52. AC_OUTPUT