~drgeo-developers/drgeo/trunk

« back to all changes in this revision

Viewing changes to VMs/iPad/source/unix/vm-display-Quartz/acinclude.m4

  • Committer: Hilaire Fernandes
  • Date: 2012-01-27 21:15:40 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20120127211540-912spf97bhpx6mve
Initial additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- sh -*-
 
2
 
 
3
AC_ARG_WITH(quartz,
 
4
[  --without-quartz        disable MacOSX Window System support [default=enabled]],
 
5
  [have_quartz="$withval"],
 
6
  [have_quartz="yes"])
 
7
 
 
8
case $host_os in
 
9
  darwin*) ;;
 
10
  *)       have_quartz="no";;
 
11
esac
 
12
 
 
13
if test "$have_quartz" = "yes"; then
 
14
  AC_DEFINE(USE_QUARTZ, [1])
 
15
  if test "$have_gl" = ""; then have_gl="no"; fi
 
16
  AC_CHECK_HEADERS(OpenGL/gl.h, [
 
17
    have_gl=yes
 
18
    AC_DEFINE(USE_QUARTZ_CGL, [1])
 
19
  ])
 
20
else
 
21
  AC_PLUGIN_DISABLE
 
22
fi