Mercurial > mplayer.hg
comparison configure @ 32659:07549885dad7
configure: Simplify *BSD ioctl_meteor.h check.
author | diego |
---|---|
date | Sun, 02 Jan 2011 12:10:51 +0000 |
parents | 7246ea769aef |
children | 426e6c6a36d2 |
comparison
equal
deleted
inserted
replaced
32658:7246ea769aef | 32659:07549885dad7 |
---|---|
7295 fi | 7295 fi |
7296 echores "$_ioctl_bt848_h" | 7296 echores "$_ioctl_bt848_h" |
7297 | 7297 |
7298 echocheck "*BSD ioctl_meteor.h" | 7298 echocheck "*BSD ioctl_meteor.h" |
7299 _ioctl_meteor_h=no | 7299 _ioctl_meteor_h=no |
7300 for file in "machine/ioctl_meteor.h" \ | 7300 for ioctl_meteor_h_path in "machine/ioctl_meteor.h" "dev/bktr/ioctl_meteor.h" "dev/video/bktr/ioctl_meteor.h" ; do |
7301 "dev/bktr/ioctl_meteor.h" \ | 7301 statement_check_broken "sys/types.h" "$ioctl_meteor_h_path" 'ioctl(0, METEORSINPUT, 0)' && |
7302 "dev/video/bktr/ioctl_meteor.h" ; do | 7302 _ioctl_meteor_h=yes && break |
7303 cat > $TMPC <<EOF | |
7304 #include <sys/types.h> | |
7305 #include <$file> | |
7306 int main(void) { ioctl(0, METEORSINPUT, 0); return 0; } | |
7307 EOF | |
7308 if cc_check ; then | |
7309 _ioctl_meteor_h=yes | |
7310 _ioctl_meteor_h_name="$file" | |
7311 break; | |
7312 fi | |
7313 done | 7303 done |
7314 if test "$_ioctl_meteor_h" = yes ; then | 7304 if test "$_ioctl_meteor_h" = yes ; then |
7315 def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$_ioctl_meteor_h_name>" | 7305 def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$ioctl_meteor_h_path>" |
7316 res_comment="using $_ioctl_meteor_h_name" | 7306 res_comment="using $ioctl_meteor_h_path" |
7317 else | 7307 else |
7318 def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME" | 7308 def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME" |
7319 fi | 7309 fi |
7320 echores "$_ioctl_meteor_h" | 7310 echores "$_ioctl_meteor_h" |
7321 | 7311 |