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