Mercurial > mplayer.hg
comparison configure @ 21855:936209c39ed1
Move #ifdef directives around complete files into the build system.
author | diego |
---|---|
date | Wed, 10 Jan 2007 19:07:42 +0000 |
parents | 3ff1eade91f9 |
children | e268886eb13d |
comparison
equal
deleted
inserted
replaced
21854:752d1c70aa67 | 21855:936209c39ed1 |
---|---|
3376 EOF | 3376 EOF |
3377 _scandir=no | 3377 _scandir=no |
3378 cc_check && _scandir=yes | 3378 cc_check && _scandir=yes |
3379 if test "$_scandir" = yes ; then | 3379 if test "$_scandir" = yes ; then |
3380 _def_scandir='#define HAVE_SCANDIR 1' | 3380 _def_scandir='#define HAVE_SCANDIR 1' |
3381 _need_scandir=no | |
3381 else | 3382 else |
3382 _def_scandir='#undef HAVE_SCANDIR' | 3383 _def_scandir='#undef HAVE_SCANDIR' |
3384 _need_scandir=yes | |
3383 fi | 3385 fi |
3384 echores "$_scandir" | 3386 echores "$_scandir" |
3385 | 3387 |
3386 | 3388 |
3387 echocheck "strsep()" | 3389 echocheck "strsep()" |
3391 EOF | 3393 EOF |
3392 _strsep=no | 3394 _strsep=no |
3393 cc_check && _strsep=yes | 3395 cc_check && _strsep=yes |
3394 if test "$_strsep" = yes ; then | 3396 if test "$_strsep" = yes ; then |
3395 _def_strsep='#define HAVE_STRSEP 1' | 3397 _def_strsep='#define HAVE_STRSEP 1' |
3398 _need_strsep=no | |
3396 else | 3399 else |
3397 _def_strsep='#undef HAVE_STRSEP' | 3400 _def_strsep='#undef HAVE_STRSEP' |
3401 _need_strsep=yes | |
3398 fi | 3402 fi |
3399 echores "$_strsep" | 3403 echores "$_strsep" |
3400 | 3404 |
3401 echocheck "strlcpy()" | 3405 echocheck "strlcpy()" |
3402 cat > $TMPC << EOF | 3406 cat > $TMPC << EOF |
3461 EOF | 3465 EOF |
3462 _vsscanf=no | 3466 _vsscanf=no |
3463 cc_check && _vsscanf=yes | 3467 cc_check && _vsscanf=yes |
3464 if test "$_vsscanf" = yes ; then | 3468 if test "$_vsscanf" = yes ; then |
3465 _def_vsscanf='#define HAVE_VSSCANF 1' | 3469 _def_vsscanf='#define HAVE_VSSCANF 1' |
3470 _need_vsscanf=no | |
3466 else | 3471 else |
3467 _def_vsscanf='#undef HAVE_VSSCANF' | 3472 _def_vsscanf='#undef HAVE_VSSCANF' |
3473 _need_vsscanf=yes | |
3468 fi | 3474 fi |
3469 echores "$_vsscanf" | 3475 echores "$_vsscanf" |
3470 | 3476 |
3471 | 3477 |
3472 echocheck "swab()" | 3478 echocheck "swab()" |
3476 EOF | 3482 EOF |
3477 _swab=no | 3483 _swab=no |
3478 cc_check && _swab=yes | 3484 cc_check && _swab=yes |
3479 if test "$_swab" = yes ; then | 3485 if test "$_swab" = yes ; then |
3480 _def_swab='#define HAVE_SWAB 1' | 3486 _def_swab='#define HAVE_SWAB 1' |
3487 _need_swab=no | |
3481 else | 3488 else |
3482 _def_swab='#undef HAVE_SWAB' | 3489 _def_swab='#undef HAVE_SWAB' |
3490 _need_swab=yes | |
3483 fi | 3491 fi |
3484 echores "$_swab" | 3492 echores "$_swab" |
3485 | 3493 |
3486 echocheck "POSIX select()" | 3494 echocheck "POSIX select()" |
3487 cat > $TMPC << EOF | 3495 cat > $TMPC << EOF |
3527 EOF | 3535 EOF |
3528 _glob=no | 3536 _glob=no |
3529 cc_check && _glob=yes | 3537 cc_check && _glob=yes |
3530 if test "$_glob" = yes ; then | 3538 if test "$_glob" = yes ; then |
3531 _def_glob='#define HAVE_GLOB 1' | 3539 _def_glob='#define HAVE_GLOB 1' |
3540 _need_glob=no | |
3532 else | 3541 else |
3533 _def_glob='#undef HAVE_GLOB' | 3542 _def_glob='#undef HAVE_GLOB' |
3543 _need_glob=yes | |
3534 fi | 3544 fi |
3535 echores "$_glob" | 3545 echores "$_glob" |
3536 | 3546 |
3537 | 3547 |
3538 echocheck "setenv()" | 3548 echocheck "setenv()" |
3542 EOF | 3552 EOF |
3543 _setenv=no | 3553 _setenv=no |
3544 cc_check && _setenv=yes | 3554 cc_check && _setenv=yes |
3545 if test "$_setenv" = yes ; then | 3555 if test "$_setenv" = yes ; then |
3546 _def_setenv='#define HAVE_SETENV 1' | 3556 _def_setenv='#define HAVE_SETENV 1' |
3557 _need_setenv=no | |
3547 else | 3558 else |
3548 _def_setenv='#undef HAVE_SETENV' | 3559 _def_setenv='#undef HAVE_SETENV' |
3560 _need_setenv=yes | |
3549 fi | 3561 fi |
3550 echores "$_setenv" | 3562 echores "$_setenv" |
3551 | 3563 |
3552 | 3564 |
3553 if sunos; then | 3565 if sunos; then |
7462 | 7474 |
7463 HAVE_MLIB = $_mlib | 7475 HAVE_MLIB = $_mlib |
7464 HAVE_PTHREADS = $_pthreads | 7476 HAVE_PTHREADS = $_pthreads |
7465 | 7477 |
7466 HAVE_XVMC_ACCEL = $_xvmc | 7478 HAVE_XVMC_ACCEL = $_xvmc |
7479 | |
7480 HAVE_SYS_MMAN_H = _mman | |
7481 | |
7482 NEED_GLOB = $_need_glob | |
7483 NEED_SCANDIR = $_need_scandir | |
7484 NEED_SETENV = $_need_setenv | |
7485 NEED_STRSEP = $_need_strsep | |
7486 NEED_SWAB = $_need_swab | |
7487 NEED_VSSCANF = $_need_vsscanf | |
7467 | 7488 |
7468 # for FFmpeg | 7489 # for FFmpeg |
7469 SRC_PATH=.. | 7490 SRC_PATH=.. |
7470 BUILD_ROOT=.. | 7491 BUILD_ROOT=.. |
7471 LIBPREF=lib | 7492 LIBPREF=lib |