comparison configure @ 31784:be181a23c432

Use header_check_broken to simplify cdio.h check.
author reimar
date Thu, 29 Jul 2010 09:15:32 +0000
parents 1d5af4fbd107
children 53145096892e
comparison
equal deleted inserted replaced
31783:1d5af4fbd107 31784:be181a23c432
3775 echores "$_dvdio" 3775 echores "$_dvdio"
3776 3776
3777 3777
3778 echocheck "sys/cdio.h" 3778 echocheck "sys/cdio.h"
3779 _cdio=no 3779 _cdio=no
3780 cat > $TMPC << EOF 3780 # at least OpenSolaris has a broken cdio.h
3781 // types.h needed to workaround broken headers 3781 header_check_broken sys/types.h sys/cdio.h && _cdio=yes
3782 // on e.g. OpenSolaris
3783 #include <sys/types.h>
3784 #include <sys/cdio.h>
3785 int main(void) { return 0; }
3786 EOF
3787 compile_check $TMPC && _cdio=yes
3788 if test "$_cdio" = yes ; then 3782 if test "$_cdio" = yes ; then
3789 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' 3783 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1'
3790 else 3784 else
3791 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' 3785 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H'
3792 fi 3786 fi