[changeset] Missing ScreenSize & ScreenPixelsPerInch properties

Thomas Treichl Thomas.Treichl at gmx.net
Sun Jan 25 14:54:41 CST 2009


Thomas Treichl schrieb:
>> Build time option?
> 
> Good question, and my last question to John here before I prepare a 
> changeset tomorrow: Do we need a configure test to check for the LDFLAGS 
> '-framework Carbon' or can I just add this to the '*-*-darwin*)' flags 
> of the canonical_host_system in configure.in?

Hi,

I've adjusted display.cc and I'd like to introduce the m4 macro 
"OCTAVE_HAVE_FRAMEWORK". This script allows me to check for the compiler option 
"-framework NAME" and take further arguments $2 and $3 as file prologue and file 
body if some deeper tests should be performed. However, here is my output from 
the ./configure run

   checking whether ld accepts -framework Carbon... yes
   configure: adding -Wl,-framework -Wl,Carbon to LDFLAGS

Compilation is successful and I also checked if the part HAVE_FRAMEWORK_CARBON 
in display.cc is compiled (and not the X11 part). The output before was

   bash$ octave --quiet --eval 'get (0, "ScreenSize")'
   ans = 0   0   0   0

The correct new output is

   bash$ octave --quiet --eval 'get (0, "ScreenSize")'
   ans = 1      1   1680   1050

Ben can you please check if this works on your 10.5 system? If it works, can it 
be included into the sources? Thanks,

   Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: display.changeset
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090125/ecac0a54/attachment.ksh 


More information about the Octave-maintainers mailing list