comparison configure @ 17245:44c24de55f9d

- move our setenv() fallback implementation to osdep - assert that the override param is nonzero (zero is not implemented) - correct return value type to int based on a patch by Diego fixes bugzilla bug #342
author al
date Mon, 26 Dec 2005 03:16:48 +0000
parents 8c150c1db839
children b62c2fdbcde9
comparison
equal deleted inserted replaced
17244:70120627f0b9 17245:44c24de55f9d
3302 _def_glob='#undef HAVE_GLOB' 3302 _def_glob='#undef HAVE_GLOB'
3303 fi 3303 fi
3304 echores "$_glob" 3304 echores "$_glob"
3305 3305
3306 3306
3307 echocheck "setenv()"
3308 cat > $TMPC << EOF
3309 #include <stdlib.h>
3310 int main (void){ setenv("","",0); return 0; }
3311 EOF
3312 _setenv=no
3313 cc_check && _setenv=yes
3314 if test "$_setenv" = yes ; then
3315 _def_setenv='#define HAVE_SETENV 1'
3316 else
3317 _def_setenv='#undef HAVE_SETENV'
3318 fi
3319 echores "$_setenv"
3320
3321
3307 echocheck "sys/sysinfo.h" 3322 echocheck "sys/sysinfo.h"
3308 cat > $TMPC << EOF 3323 cat > $TMPC << EOF
3309 #include <sys/sysinfo.h> 3324 #include <sys/sysinfo.h>
3310 int main(void) { 3325 int main(void) {
3311 struct sysinfo s_info; 3326 struct sysinfo s_info;
7478 $_def_gettimeofday 7493 $_def_gettimeofday
7479 7494
7480 /* Define this if your system has glob */ 7495 /* Define this if your system has glob */
7481 $_def_glob 7496 $_def_glob
7482 7497
7498 /* Define this if your system has setenv */
7499 $_def_setenv
7500 #ifndef HAVE_SETENV
7501 int setenv(const char *name, const char *val, int overwrite);
7502 #endif
7503
7483 /* Define this if your system has pthreads */ 7504 /* Define this if your system has pthreads */
7484 $_def_pthreads 7505 $_def_pthreads
7485 7506
7486 /* Define this if you enabled thread support for libavcodec */ 7507 /* Define this if you enabled thread support for libavcodec */
7487 $_def_threads 7508 $_def_threads