comparison configure @ 9828:c5fd755db576

add checks for gettimeofday() select() and glob()
author faust3
date Fri, 04 Apr 2003 19:15:24 +0000
parents ed72c158215d
children 5e5e2d4dcdbe
comparison
equal deleted inserted replaced
9827:d179dbc45935 9828:c5fd755db576
2287 else 2287 else
2288 _def_vsscanf='#undef HAVE_VSSCANF' 2288 _def_vsscanf='#undef HAVE_VSSCANF'
2289 fi 2289 fi
2290 echores "$_vsscanf" 2290 echores "$_vsscanf"
2291 2291
2292
2293 echocheck "posix select()"
2294 cat > $TMPC << EOF
2295 #include <sys/select.h>
2296 #include <sys/time.h>
2297 #include <sys/types.h>
2298 #include <unistd.h>
2299 int main(void) {int nfds = 1; fd_set readfds; struct timeval timeout; select(nfds,&readfds,NULL,NULL,&timeout); return 0; }
2300 EOF
2301 _posix_select=no
2302 cc_check && _posix_select=yes
2303 if test "$_posix_select" = no ; then
2304 _def_no_posix_select='#define HAVE_NO_POSIX_SELECT 1'
2305 else
2306 _def_no_posix_select='#undef HAVE_NO_POSIX_SELECT'
2307 fi
2308 echores "$_posix_select"
2309
2310
2311 echocheck "gettimeofday()"
2312 cat > $TMPC << EOF
2313 #include <stdio.h>
2314 #include <sys/time.h>
2315 int main(void) {struct timeval tv_start; gettimeofday(&tv_start, NULL); return 0; }
2316 EOF
2317 _gettimeofday=no
2318 cc_check && _gettimeofday=yes
2319 if test "$_gettimeofday" = yes ; then
2320 _def_gettimeofday='#define HAVE_GETTIMEOFDAY 1'
2321 else
2322 _def_gettimeofday='#undef HAVE_GETTIMEOFDAY'
2323 fi
2324 echores "$_gettimeofday"
2325
2326
2327 echocheck "glob()"
2328 cat > $TMPC << EOF
2329 #include <stdio.h>
2330 #include <glob.h>
2331 int main(void) { glob_t gg; glob("filename",0,NULL,&gg); return 0; }
2332 EOF
2333 _glob=no
2334 cc_check && _glob=yes
2335 if test "$_glob" = yes ; then
2336 _def_glob='#define HAVE_GLOB 1'
2337 else
2338 _def_glob='#undef HAVE_GLOB'
2339 fi
2340 echores "$_glob"
2341
2342
2292 echocheck "sys/sysinfo.h" 2343 echocheck "sys/sysinfo.h"
2293 cat > $TMPC << EOF 2344 cat > $TMPC << EOF
2294 #include <sys/sysinfo.h> 2345 #include <sys/sysinfo.h>
2295 int main(void) { 2346 int main(void) {
2296 struct sysinfo s_info; 2347 struct sysinfo s_info;
5351 $_def_strsep 5402 $_def_strsep
5352 5403
5353 /* Define this if your system has vsscanf */ 5404 /* Define this if your system has vsscanf */
5354 $_def_vsscanf 5405 $_def_vsscanf
5355 5406
5407 /* Define this if your system has no posix select */
5408 $_def_no_posix_select
5409
5410 /* Define this if your system has gettimeofday */
5411 $_def_gettimeofday
5412
5413 /* Define this if your system has glob */
5414 $_def_glob
5415
5356 /* LIRC (remote control, see www.lirc.org) support: */ 5416 /* LIRC (remote control, see www.lirc.org) support: */
5357 $_def_lirc 5417 $_def_lirc
5358 5418
5359 /* DeCSS support using libcss */ 5419 /* DeCSS support using libcss */
5360 $_def_css 5420 $_def_css