2011-11-22 21:28:15 +00:00
|
|
|
dnl =====================================================
|
|
|
|
dnl utils
|
|
|
|
dnl =====================================================
|
|
|
|
|
2011-12-06 18:20:15 +00:00
|
|
|
define(`forloop',
|
2011-11-22 21:28:15 +00:00
|
|
|
`pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
|
|
|
|
define(`_forloop',
|
|
|
|
`$4`'ifelse($1, `$3', ,
|
|
|
|
`define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
|
2011-12-06 18:20:15 +00:00
|
|
|
|
2011-11-22 21:28:15 +00:00
|
|
|
dnl =====================================================
|
|
|
|
dnl the gl wgl glX definitions
|
|
|
|
dnl =====================================================
|
|
|
|
include(../gllog/gl_def.m4)
|
|
|
|
|
|
|
|
dnl =====================================================
|
|
|
|
dnl issue the defines to lock out gl usage
|
|
|
|
dnl =====================================================
|
|
|
|
define(`define_out', `#define gl$1 use_qgl$1')
|
|
|
|
forloop(`i', gl_start, gl_end, `define_out(indir(`f'i`_name'))
|
|
|
|
')
|
|
|
|
forloop(`i', glX_start, glX_end, `define_out(indir(`f'i`_name'))
|
|
|
|
')
|