home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / libncftp / older_versions / libncftp-3.1.5-src.tar.gz / libncftp-3.1.5-src.tar / libncftp-3.1.5 / Strn / configure.in < prev    next >
Text File  |  2002-07-01  |  2KB  |  90 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(Strn.h)
  3. AC_CONFIG_HEADER(config.h)
  4. wi_ARG_ENABLE_DEBUG
  5.  
  6.  
  7.  
  8. dnl ---------------------------------------------------------------------------
  9. dnl Environment and compiler settings.
  10. dnl ---------------------------------------------------------------------------
  11. dnl
  12. wi_ENV_VAR_MESSAGES
  13. wi_OS_VAR
  14. AC_PROG_CC
  15. AC_PROG_LN_S
  16. wi_CFLAGS
  17. AC_OBJEXT
  18. AC_EXEEXT
  19.  
  20.  
  21.  
  22. dnl ---------------------------------------------------------------------------
  23. dnl Checks for header files.
  24. dnl ---------------------------------------------------------------------------
  25. dnl
  26. AC_HEADER_STDC
  27. dnl Needs strings.h for AIX
  28. AC_CHECK_HEADERS(string.h strings.h sys/types.h unistd.h)
  29.  
  30.  
  31.  
  32. dnl ---------------------------------------------------------------------------
  33. dnl Checks for typedefs, structures, and compiler characteristics.
  34. dnl ---------------------------------------------------------------------------
  35. dnl
  36. AC_C_CONST
  37. AC_TYPE_SIZE_T
  38.  
  39.  
  40.  
  41. dnl ---------------------------------------------------------------------------
  42. dnl Checks for library functions.
  43. dnl ---------------------------------------------------------------------------
  44. dnl
  45. AC_CHECK_FUNCS(strdup)
  46. wi_SNPRINTF
  47.  
  48.  
  49.  
  50. dnl ---------------------------------------------------------------------------
  51. dnl Checks for system characteristics.
  52. dnl ---------------------------------------------------------------------------
  53. dnl
  54. AC_PROG_RANLIB
  55. wi_PROG_CCDV_NO_CREATE
  56. CPPFLAGS="-I. $CPPFLAGS"
  57. wi_BEAUTIFY_ENVIRONMENT_VARIABLES
  58.  
  59.  
  60.  
  61. dnl ---------------------------------------------------------------------------
  62. dnl Version lookups for Makefile variables.
  63. dnl ---------------------------------------------------------------------------
  64. dnl
  65. changequote(<<, >>)dnl
  66. STRN_VERSION=`sed -n '/gStrnLibVersion\[\]/{
  67.     s/^[^0-9]*//
  68.     s/\".*$//
  69.     p
  70.     q
  71. }' Strncpy.c`
  72. changequote([, ])dnl
  73.  
  74.  
  75.  
  76. dnl ---------------------------------------------------------------------------
  77. dnl Create Makefiles and config.h files.
  78. dnl ---------------------------------------------------------------------------
  79. dnl
  80. AC_SUBST(CC)
  81. AC_SUBST(CFLAGS)
  82. AC_SUBST(CPPFLAGS)
  83. AC_SUBST(LDFLAGS)
  84. AC_SUBST(LIBS)
  85. AC_SUBST(SFLAG)
  86. AC_SUBST(DEFS)
  87. AC_SUBST(MAKE)
  88. AC_SUBST(STRN_VERSION)
  89. AC_OUTPUT(Makefile)
  90.