PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/ncftp-3.2.5/sio/configure.in

#
Autoconf | 150 lines | 82 code | 28 blank | 40 comment | 3 complexity | 80ee0e749144dc6f7062659beff67e7b MD5 | raw file
Possible License(s): AGPL-3.0
  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl
  3. AC_INIT(SWrite.c)
  4. AC_PREREQ(2.13)
  5. AC_CONFIG_HEADER(config.h)
  6. wi_ARG_ENABLE_DEBUG
  7. wi_ARG_DISABLE_PRECOMP
  8. wi_ARG_WITH_SOCKS5
  9. want_unix_domain_sockets=yes
  10. AC_ARG_ENABLE([unix-sockets],[ --enable-unix-sockets enable support for UNIX domain sockets],[want_unix_domain_sockets="$enableval"],[want_unix_domain_sockets=yes])
  11. wi_ARG_DISABLE_MACOSX_UNIVERSAL
  12. dnl ---------------------------------------------------------------------------
  13. dnl Environment and compiler settings.
  14. dnl ---------------------------------------------------------------------------
  15. dnl
  16. wi_ENV_VAR_MESSAGES
  17. wi_OS_VAR
  18. AC_PROG_CC
  19. wi_CC_PRECOMP
  20. wi_CFLAGS
  21. wi_CFLAGS_REENTRANT
  22. wi_MACOSX_UNIVERSAL_CFLAGS
  23. wi_SFLAG
  24. AC_OBJEXT
  25. AC_EXEEXT
  26. dnl ---------------------------------------------------------------------------
  27. dnl Checks for header files.
  28. dnl ---------------------------------------------------------------------------
  29. dnl
  30. AC_HEADER_STDC
  31. dnl strings.h for AIX FD_ZERO which uses bzero
  32. AC_CHECK_HEADERS(arpa/nameser.h net/errno.h nserve.h resolv.h strings.h sys/socket.h sys/time.h time.h unistd.h)
  33. AC_TIME_WITH_SYS_TIME
  34. wi_UNIX_DOMAIN_SOCKETS
  35. SIO_OBJS_U=''
  36. SIO_SOBJS_U=''
  37. if test "$wi_cv_unix_domain_sockets" = yes ; then
  38. SIO_OBJS_U='$(OBJS_U) '
  39. SIO_SOBJS_U='$(SOBJS_U) '
  40. fi
  41. AC_SUBST(SIO_OBJS_U)
  42. AC_SUBST(SIO_SOBJS_U)
  43. dnl ---------------------------------------------------------------------------
  44. dnl Checks for libraries.
  45. dnl Needed to build the samples.
  46. dnl ---------------------------------------------------------------------------
  47. dnl
  48. wi_NET_LIBS
  49. wi_LIB_SOCKS5
  50. dnl ---------------------------------------------------------------------------
  51. dnl Checks for typedefs, structures, and compiler characteristics.
  52. dnl ---------------------------------------------------------------------------
  53. dnl
  54. AC_C_CONST
  55. AC_TYPE_SIZE_T
  56. wi__RES_DEFDNAME
  57. wi_STRUCT_TIMEVAL_FIELD_TYPES
  58. wi_VOID_MAIN_RETURN_TYPE
  59. wi_UNISTD_FUNC_PARAM_TYPES
  60. wi_HEADER_SYS_SELECT_H
  61. wi_FUNC_SELECT_ARGTYPES
  62. wi_TYPE_SIG_ATOMIC_T
  63. wi_STRUCT_CMSGHDR
  64. wi_MSGHDR_CONTROL
  65. wi_MSGHDR_ACCRIGHTS
  66. dnl ---------------------------------------------------------------------------
  67. dnl Checks for library functions.
  68. dnl ---------------------------------------------------------------------------
  69. dnl
  70. AC_CHECK_FUNCS(gethostbyaddr_r gethostbyname_r gethostname getdomainname getservbyname_r getservbyport_r inet_ntop recvmsg sigaction sigsetjmp strerror)
  71. AC_FUNC_ALLOCA dnl Only needed for Linux
  72. wi_FUNC_SIGSETJMP
  73. dnl ---------------------------------------------------------------------------
  74. dnl Checks for system characteristics.
  75. dnl ---------------------------------------------------------------------------
  76. dnl
  77. AC_PROG_MAKE_SET
  78. wi_PROG_TAR
  79. wi_CREATE_TAR_FILES
  80. wi_PROG_RANLIB
  81. wi_PROG_AR
  82. wi_PROG_CCDV
  83. CPPFLAGS="-I. $CPPFLAGS"
  84. wi_BEAUTIFY_ENVIRONMENT_VARIABLES
  85. dnl ---------------------------------------------------------------------------
  86. dnl Extra steps to work with precompiled headers.
  87. dnl ---------------------------------------------------------------------------
  88. dnl
  89. SIO_PRECOMP="pch.mk.none"
  90. if test "${wi_cv_cc_precomp}_${wi_cv_cc_precomp_type}" = "yes_gcc_gch_files" ; then
  91. SIO_PRECOMP="pch.mk.gcc-gch"
  92. elif test "${wi_cv_cc_precomp}_${SYS}" = "yes_macosx" ; then
  93. SIO_PRECOMP="pch.mk.$SYS"
  94. fi
  95. AC_SUBST_FILE(SIO_PRECOMP)
  96. dnl ---------------------------------------------------------------------------
  97. dnl Version lookups for Makefile variables.
  98. dnl ---------------------------------------------------------------------------
  99. dnl
  100. changequote(<<, >>)dnl
  101. SIO_VERSION=`sed -n '/kSioVersion/{
  102. s/^[^0-9]*//
  103. s/\ .*$//
  104. p
  105. q
  106. }' sio.h`
  107. changequote([, ])dnl
  108. dnl ---------------------------------------------------------------------------
  109. dnl Create Makefiles and config.h files.
  110. dnl ---------------------------------------------------------------------------
  111. dnl
  112. wi_SUMMARIZE_COMPILER_FLAGS
  113. AC_SUBST(CC)
  114. AC_SUBST(CFLAGS)
  115. AC_SUBST(CPPFLAGS)
  116. AC_SUBST(LDFLAGS)
  117. AC_SUBST(LIBS)
  118. AC_SUBST(DEFS)
  119. AC_SUBST(SFLAG)
  120. AC_SUBST(SIO_VERSION)
  121. AC_SUBST(MAKE)
  122. AC_OUTPUT([Makefile ucase_c/Makefile ucase_s/Makefile time_c/Makefile time_s/Makefile srltest/Makefile sendmessage/Makefile])