[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [autoconf] check g++ version



On Thu, 6 Nov 2008, Kristian Nørgaard wrote:

Sidder lige med noget autoconf ( som jeg absolut hverken er god til eller fan af ).

Hvordan kan jeg checke for g++ version?

Indtil nogen kommer med et bedre forslag, så noget med AC_RUN_IFELSE eller AC_COMPILE_IFELSE

Start her:
http://www.gnu.org/software/autoconf/manual/html_node/Writing-Tests.html
og kig dig omkring.

Smukt bliver det nok ikke, men det burde virke på alle platforme, hvis du altså har testet inden at gcc er til stede:
AC_PROG_CC([gcc])

/hans
--
Horsebakken 78, DK-2400 København NV, Phone: +45 2264 8020
-------------------------------------------------------------
$ mkdir klager
mkdir: cannot create directory `klager': File exists
					-- Vibeke Schou


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-12-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *