FLTK logo

STR #868

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | SVN ⇄ GIT ]

STR #868

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Config Files
Summary:enhance fltk-config to report on compiler chosen and install path
Version:2.0-feature
Created By:ianmacarthur
Assigned To:dejan
Fix Version:2.0-current (SVN: v4521)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 ianmacarthur
13:34 May 17, 2005
fltk-config.patch
1k
 
 
#2 ianmacarthur
10:53 May 18, 2005
fltk-config.in
8k
 
 
#3 ianmacarthur
10:53 May 18, 2005
fltk-config.in.patch
2k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 ianmacarthur
10:58 May 17, 2005
It would be handy if fltk-config could have a few extra options added, to help with cross platform makefiles.

fltk-config --cxx-name # reports the c++ compiler used to build the lib, e.g. g++, bcc, cc, etc. depending on platform

fltk-config --cc-name # as above for c compiler

fltk-config --fltk-root # reports the install path of the fltk files, if multiple versions of the lib are installed in non-standard places for dev or testing.
 
 
#2 ianmacarthur
13:34 May 17, 2005
I've cobbled together a patch to do this (against a working fltk-config, not against fltk-config.in, sorry..)

Works as described above, but I decided at the last minute to make --fltk-root  be --fltk-path instead.

Note that I have also included my patch for STR #869 in this code.

--
Ian
 
 
#3 ianmacarthur
03:54 May 18, 2005
Actually, now it occurs to me that my patch can return the wrong thing for --fltk-path, if you invoke fltk-config in a "local" directory (rather than an installed directory).

I'll try and post something better later today...
 
 
#4 ianmacarthur
10:58 May 18, 2005
OK, I have posted a patch for fltk-config.in that *should* do the right thing now. I've changed the names as Mike suggested, and added some tests to make sure that --prefix returns the "right thing" if invoked from a non-installed location - even if via a symlink.

There's a slightly untidy looking dance going on with that, to do with resolving symlinks - I had to dodge that a bit for platforms (mingw) where symlinks don't really exist - and neither do "readlink" or "which"... urgh. But I need that so...

Anyway, seems to work for me - others could test?

Also, please ignore the fltk-config.in I posted, that was finger trouble trying to post the patch!
--
Ian
 
 
#5 dejan
06:15 Aug 17, 2005
Fixed in Subversion repository.

This has been fixed long ago.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.