Lines 146-218
Link Here
|
146 |
AC_FUNC_VPRINTF |
146 |
AC_FUNC_VPRINTF |
147 |
AC_CHECK_FUNCS([gettimeofday memset select socket strchr]) |
147 |
AC_CHECK_FUNCS([gettimeofday memset select socket strchr]) |
148 |
|
148 |
|
149 |
# Is this Solaris? |
149 |
case $host_os in |
150 |
AC_MSG_CHECKING(for Solaris) |
150 |
*-*-solaris*) |
151 |
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ |
151 |
AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?]) |
152 |
#if defined (__SVR4) && defined (__sun) |
152 |
HAVE_SOLARIS=yes |
153 |
exit(0); |
153 |
;; |
154 |
#else |
154 |
*-*-bsdi*) |
155 |
exit(-1); |
155 |
AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?]) |
156 |
#endif |
156 |
HAVE_BSDI=yes |
157 |
]) |
157 |
;; |
158 |
],[ |
158 |
*-*-netbsd*) |
159 |
AC_MSG_RESULT(yes) |
159 |
AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?]) |
160 |
AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?]) |
160 |
HAVE_NETBSD=yes |
161 |
HAVE_SOLARIS=yes |
161 |
;; |
162 |
],[ |
162 |
*-*-darwin*) |
163 |
AC_MSG_RESULT(no) |
163 |
AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?]) |
164 |
]) |
164 |
HAVE_MACOSX=yes |
165 |
|
165 |
;; |
166 |
# Is this BSDI? |
166 |
esac |
167 |
AC_MSG_CHECKING(for BSDI) |
|
|
168 |
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ |
169 |
#if defined (__bsdi__) |
170 |
exit(0); |
171 |
#else |
172 |
exit(-1); |
173 |
#endif |
174 |
]) |
175 |
],[ |
176 |
AC_MSG_RESULT(yes) |
177 |
AC_DEFINE([HAVE_BSDI], 1, [Is this a BSDI system?]) |
178 |
HAVE_BSDI=yes |
179 |
],[ |
180 |
AC_MSG_RESULT(no) |
181 |
]) |
182 |
|
183 |
# Is this NetBSD? |
184 |
AC_MSG_CHECKING(for NetBSD) |
185 |
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ |
186 |
#if defined (__NetBSD__) |
187 |
exit(0); |
188 |
#else |
189 |
exit(-1); |
190 |
#endif |
191 |
]) |
192 |
],[ |
193 |
AC_MSG_RESULT(yes) |
194 |
AC_DEFINE([HAVE_NETBSD], 1, [Is this a NetBSD system?]) |
195 |
HAVE_NETBSD=yes |
196 |
],[ |
197 |
AC_MSG_RESULT(no) |
198 |
]) |
199 |
|
200 |
# Is this MacOS X? |
201 |
AC_MSG_CHECKING(for MacOS X) |
202 |
AC_RUN_IFELSE([AC_LANG_PROGRAM( [], [ |
203 |
#if defined (__APPLE__) && defined (__MACH__) |
204 |
exit(0); |
205 |
#else |
206 |
exit(-1); |
207 |
#endif |
208 |
]) |
209 |
],[ |
210 |
AC_MSG_RESULT(yes) |
211 |
AC_DEFINE([HAVE_MACOSX], 1, [Is this a MacOS X system?]) |
212 |
HAVE_MACOSX=yes |
213 |
],[ |
214 |
AC_MSG_RESULT(no) |
215 |
]) |
216 |
|
167 |
|
217 |
# Handle --enable-noselect-default |
168 |
# Handle --enable-noselect-default |
218 |
AC_ARG_ENABLE(noselect-default, |
169 |
AC_ARG_ENABLE(noselect-default, |