comparison configure @ 18362:29b2221982b3

Add a check for sysi86() on Solaris systems, solving a build failure on Solaris 10 x86 to avoid using a local declaration that is no longer compatible. patch by "Derek E. Lewis", dlewis $$@$$ solnetworks %%.%% net
author diego
date Sun, 30 Apr 2006 21:17:30 +0000
parents 0ebc285b31a2
children e68027956822
comparison
equal deleted inserted replaced
18361:e20114911d05 18362:29b2221982b3
3378 _def_setenv='#undef HAVE_SETENV' 3378 _def_setenv='#undef HAVE_SETENV'
3379 fi 3379 fi
3380 echores "$_setenv" 3380 echores "$_setenv"
3381 3381
3382 3382
3383 if sunos; then
3384 echocheck "sysi86()"
3385 cat > $TMPC << EOF
3386 #include <sys/sysi86.h>
3387 int main (void) { sysi86(0); return 0; }
3388 EOF
3389 _sysi86=no
3390 cc_check && _sysi86=yes
3391 if test "$_sysi86" = yes ; then
3392 _def_sysi86='#define HAVE_SYSI86 1'
3393 else
3394 _def_sysi86='#undef HAVE_SYSI86'
3395 fi
3396 echores "$_sysi86"
3397 fi
3398
3399
3383 echocheck "sys/sysinfo.h" 3400 echocheck "sys/sysinfo.h"
3384 cat > $TMPC << EOF 3401 cat > $TMPC << EOF
3385 #include <sys/sysinfo.h> 3402 #include <sys/sysinfo.h>
3386 int main(void) { 3403 int main(void) {
3387 struct sysinfo s_info; 3404 struct sysinfo s_info;
7699 $_def_setenv 7716 $_def_setenv
7700 #ifndef HAVE_SETENV 7717 #ifndef HAVE_SETENV
7701 int setenv(const char *name, const char *val, int overwrite); 7718 int setenv(const char *name, const char *val, int overwrite);
7702 #endif 7719 #endif
7703 7720
7721 /* Define this if your system has sysi86 */
7722 $_def_sysi86
7723
7704 /* Define this if your system has pthreads */ 7724 /* Define this if your system has pthreads */
7705 $_def_pthreads 7725 $_def_pthreads
7706 7726
7707 /* Define this if you enabled thread support for libavcodec */ 7727 /* Define this if you enabled thread support for libavcodec */
7708 $_def_threads 7728 $_def_threads