Changeset 294

Show
Ignore:
Timestamp:
02/08/05 22:07:35 (8 years ago)
Author:
ahu
Message:

make --version print out the gcc version used to compile, if gcc is used

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/receiver.cc

    r292 r294  
    482482 
    483483    if(arg().mustDo("version")) { 
    484       cerr<<"Version: "VERSION", compiled on "<<__DATE__", "__TIME__<<endl; 
     484      cerr<<"Version: "VERSION", compiled on "<<__DATE__", "__TIME__; 
     485#ifdef __GNUC__  
     486      cerr<<" with gcc version "<<__GNUC__<<"."<<__GNUC_MINOR__<<"."<<__GNUC_PATCHLEVEL__; 
     487#endif 
     488      cout<<endl; 
    485489      exit(99); 
    486490    }