1 /* tget_version -- Test file for mpc_get_version
3 Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 INRIA
5 This file is part of GNU MPC.
7 GNU MPC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU Lesser General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
12 GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
17 You should have received a copy of the GNU Lesser General Public License
18 along with this program. If not, see http://www.gnu.org/licenses/ .
23 #include "mpc-tests.h"
29 printf ("MPIR: include %d.%d.%d, lib %s\n",
30 __MPIR_VERSION, __MPIR_VERSION_MINOR, __MPIR_VERSION_PATCHLEVEL,
33 printf ("GMP: include %d.%d.%d, lib %s\n",
34 __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL,
37 printf ("MPFR: include %s, lib %s\n",
40 printf ("MPC: include %s, lib %s\n", MPC_VERSION_STRING,
43 if (strcmp (mpc_get_version (), MPC_VERSION_STRING) != 0)
45 printf ("Error: header and library do not match\n"
46 "mpc_get_version: \"%s\"\nMPC_VERSION_STRING: \"%s\"\n",
47 mpc_get_version(), MPC_VERSION_STRING);
52 printf ("C compiler: %s\n", MPC_CC);
55 printf ("GCC: %s\n", MPC_GCC);
57 #ifdef MPC_GCC_VERSION
58 printf ("GCC version: %s\n", MPC_GCC_VERSION);