Update procedures
[shapes.git] / source / version.cc
blobcad4a934c6d1d31fb9aaba31589f69844a48acac
1 /* This file is part of Shapes.
3 * Shapes is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * any later version.
8 * Shapes is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with Shapes. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright 2008, 2010, 2014 Henrik Tidefelt
19 #include "config.h"
20 #include "consts.h"
22 #include <stdio.h>
24 using namespace Shapes;
26 /* This file uses the c functions to make it compile as fast as possible,
27 * so that this solution will never be considered a waste of time.
30 void
31 printVersion( )
33 printf( "Version: " VERSION_NUMBER "\n" );
34 printf( "Build date: " VERSION_DATE "\n" );
35 printf( "Options: " );
36 #ifdef HAVE_LIBPNG
37 printf( " %s", Interaction::BUILD_REQ_LIBJPEG );
38 #endif
39 #ifdef HAVE_LIBJPEG
40 printf( " %s", Interaction::BUILD_REQ_LIBPNG );
41 #endif
42 #ifdef HAVE_FT2
43 printf( " %s", Interaction::BUILD_REQ_FREETYPE );
44 #endif
45 #ifdef HAVE_FONTCONFIG
46 printf( " %s", Interaction::BUILD_REQ_FONTCONFIG );
47 #endif
48 #ifdef HAVE_OPENSSL
49 printf( " %s", Interaction::BUILD_REQ_OPENSSL );
50 #endif
51 printf( "\n" );