Skip to content

Commit

Permalink
CONFIGURE: Extend Linux CD check and run it on Linux only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Mar 21, 2016
1 parent 99bb62f commit be0d133
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions configure
Expand Up @@ -4261,15 +4261,24 @@ define_in_config_if_yes "$_opengles" "USE_GLES"
#
# Check for Linux CD-ROM support
#
echocheck "Linux CD-ROM"
linuxcd=no
cat > $TMPC << EOF
case $_host_os in
*linux*)
echocheck "Linux CD-ROM"
linuxcd=no
cat > $TMPC << EOF
#include <linux/cdrom.h>
int main(void) { int x = CDROMREADAUDIO; return 0; }
#include <sys/types.h>
int main(void) {
int x = CDROMREADAUDIO;
dev_t dev;
return major(dev) + x;
}
EOF
cc_check && linuxcd=yes
define_in_config_if_yes "$linuxcd" 'USE_LINUXCD'
echo "$linuxcd"
cc_check && linuxcd=yes
define_in_config_if_yes "$linuxcd" 'USE_LINUXCD'
echo "$linuxcd"
;;
esac


#
Expand Down

0 comments on commit be0d133

Please sign in to comment.