home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / txtut122.zip / textutil / configure.in < prev    next >
Text File  |  1997-01-26  |  2KB  |  81 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(src/fold.c)
  3. AM_CONFIG_HEADER(config.h)
  4. AC_PREREQ(2.12)dnl               dnl Minimum Autoconf version required.
  5.  
  6. AM_INIT_AUTOMAKE([textutils], [1.22])
  7. GNU_PACKAGE="GNU $PACKAGE"
  8. AC_DEFINE_UNQUOTED(GNU_PACKAGE, "$GNU_PACKAGE")
  9.  
  10. AM_MAINTAINER_MODE
  11.  
  12. ALL_LINGUAS="de es fr ko nl pl"
  13.  
  14. dnl Checks for programs.
  15. AC_PATH_PROG(PERL, perl)
  16. AC_PROG_CC
  17. AC_PROG_CPP
  18. AC_PROG_GCC_TRADITIONAL
  19. AC_PROG_RANLIB
  20. AC_AIX
  21. AC_MINIX
  22.  
  23. AM_WITH_REGEX
  24.  
  25. dnl Checks for header files.
  26. AC_CHECK_HEADERS(limits.h string.h memory.h fcntl.h float.h unistd.h values.h)
  27. AC_HEADER_STAT
  28. AC_HEADER_STDC
  29.  
  30. dnl This test must precede tests of compiler characteristics like
  31. dnl that for the inline keyword, since it may change the degree to
  32. dnl which the compiler supports such features.
  33. AM_C_PROTOTYPES
  34.  
  35. dnl Checks for typedefs, structures, and compiler characteristics.
  36. AC_C_BIGENDIAN
  37. AC_C_CONST
  38. AC_C_INLINE
  39. AC_C_LONG_DOUBLE
  40.  
  41. AC_HEADER_DIRENT
  42. AC_STRUCT_ST_BLKSIZE
  43. AC_TYPE_OFF_T
  44. AC_TYPE_SIGNAL
  45. AC_TYPE_SIZE_T
  46.  
  47. dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
  48. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
  49.  
  50. dnl Checks for library functions.
  51. AC_CHECK_FUNCS(strerror isascii strchr strrchr)
  52. AC_FUNC_ALLOCA
  53. jm_FUNC_MEMCMP
  54. AC_FUNC_VPRINTF
  55. AC_REPLACE_FUNCS(memcpy memmove memset stpcpy strpbrk strtol strtoul)
  56.  
  57. AM_FUNC_STRTOD
  58. AC_SUBST(POW_LIBM)
  59. test $am_cv_func_strtod_needs_libm = yes && POW_LIBM=-lm
  60.  
  61. AM_FUNC_ERROR_AT_LINE
  62.  
  63. AC_REPLACE_FUNCS(getline)
  64. if test $ac_cv_func_getline != yes; then
  65.   AC_CHECK_FUNCS(getdelim)
  66. fi
  67.  
  68. AM_GNU_GETTEXT
  69. AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
  70.  
  71. AC_OUTPUT([Makefile doc/Makefile intl/Makefile lib/Makefile \
  72. man/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile \
  73. tests/cut-test/Makefile
  74. tests/join-test/Makefile
  75. tests/md5sum-test/Makefile
  76. tests/pr-test/Makefile
  77. tests/sort-test/Makefile
  78. tests/tail/Makefile
  79. tests/tr-test/Makefile],
  80. [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
  81.