Advertisement
Guest User

config.log

a guest
May 3rd, 2012
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.13 KB | None | 0 0
  1. This file contains any messages produced by compilers while
  2. running configure, to aid debugging if configure makes a mistake.
  3.  
  4. It was created by graph-tool configure 2.2.15, which was
  5. generated by GNU Autoconf 2.68. Invocation command line was
  6.  
  7. $ ./configure --with-boost=C:/boost LDFLAGS=-LC:/python27/libs
  8.  
  9. ## --------- ##
  10. ## Platform. ##
  11. ## --------- ##
  12.  
  13. hostname = p3trus-PC
  14. uname -m = i686
  15. uname -r = 1.0.17(0.48/3/2)
  16. uname -s = MINGW32_NT-6.1
  17. uname -v = 2011-04-24 23:39
  18.  
  19. /usr/bin/uname -p = unknown
  20. /bin/uname -X = unknown
  21.  
  22. /bin/arch = unknown
  23. /usr/bin/arch -k = unknown
  24. /usr/convex/getsysinfo = unknown
  25. /usr/bin/hostinfo = unknown
  26. /bin/machine = unknown
  27. /usr/bin/oslevel = unknown
  28. /bin/universe = unknown
  29.  
  30. PATH: .
  31. PATH: /usr/local/bin
  32. PATH: /mingw/bin
  33. PATH: /bin
  34. PATH: /c/Program Files (x86)/NVIDIA Corporation/PhysX/Common
  35. PATH: /c/Windows/system32
  36. PATH: /c/Windows
  37. PATH: /c/Windows/System32/Wbem
  38. PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
  39. PATH: /c/Program Files (x86)/CMake 2.8/bin
  40. PATH: /c/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn/
  41. PATH: /c/Program Files/Microsoft SQL Server/110/Tools/Binn/
  42. PATH: /c/Program Files/Microsoft SQL Server/110/DTS/Binn/
  43. PATH: /c/python27
  44. PATH: /c/python27/Scripts
  45. PATH: /c/python27/dlls
  46. PATH: /c/python27/lib
  47. PATH: /c/python27/libs
  48. PATH: /c/python27/tcl
  49. PATH: /c/python27/include
  50. PATH: /c/Program Files (x86)/gnuplot/bin
  51. PATH: /c/dev/bin
  52. PATH: /c/Program Files/doxygen/bin
  53. PATH: /c/Program Files (x86)/Graphviz 2.28/bin
  54. PATH: /mingw/bin
  55. PATH: /c/Program Files (x86)/CGAL-4.0/auxiliary/gmp/lib
  56.  
  57.  
  58. ## ----------- ##
  59. ## Core tests. ##
  60. ## ----------- ##
  61.  
  62. configure:2622: checking for a BSD-compatible install
  63. configure:2690: result: /bin/install -c
  64. configure:2701: checking whether build environment is sane
  65. configure:2751: result: yes
  66. configure:2892: checking for a thread-safe mkdir -p
  67. configure:2931: result: /bin/mkdir -p
  68. configure:2944: checking for gawk
  69. configure:2960: found /bin/gawk
  70. configure:2971: result: gawk
  71. configure:2982: checking whether make sets $(MAKE)
  72. configure:3004: result: yes
  73. configure:3108: checking for style of include used by make
  74. configure:3136: result: GNU
  75. configure:3206: checking for gcc
  76. configure:3222: found /mingw/bin/gcc
  77. configure:3233: result: gcc
  78. configure:3462: checking for C compiler version
  79. configure:3471: gcc --version >&5
  80. gcc.exe (GCC) 4.6.2
  81. Copyright (C) 2011 Free Software Foundation, Inc.
  82. This is free software; see the source for copying conditions. There is NO
  83. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  84.  
  85. configure:3482: $? = 0
  86. configure:3471: gcc -v >&5
  87. Using built-in specs.
  88. COLLECT_GCC=C:\dev\MinGW\bin\gcc.exe
  89. COLLECT_LTO_WRAPPER=c:/dev/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
  90. Target: mingw32
  91. Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
  92. Thread model: win32
  93. gcc version 4.6.2 (GCC)
  94. configure:3482: $? = 0
  95. configure:3471: gcc -V >&5
  96. gcc.exe: error: unrecognized option '-V'
  97. gcc.exe: fatal error: no input files
  98. compilation terminated.
  99. configure:3482: $? = 1
  100. configure:3471: gcc -qversion >&5
  101. gcc.exe: error: unrecognized option '-qversion'
  102. gcc.exe: fatal error: no input files
  103. compilation terminated.
  104. configure:3482: $? = 1
  105. configure:3502: checking whether the C compiler works
  106. configure:3524: gcc -LC:/python27/libs conftest.c >&5
  107. configure:3528: $? = 0
  108. configure:3576: result: yes
  109. configure:3579: checking for C compiler default output file name
  110. configure:3581: result: a.exe
  111. configure:3587: checking for suffix of executables
  112. configure:3594: gcc -o conftest.exe -LC:/python27/libs conftest.c >&5
  113. configure:3598: $? = 0
  114. configure:3620: result: .exe
  115. configure:3642: checking whether we are cross compiling
  116. configure:3650: gcc -o conftest.exe -LC:/python27/libs conftest.c >&5
  117. configure:3654: $? = 0
  118. configure:3661: ./conftest.exe
  119. configure:3665: $? = 0
  120. configure:3680: result: no
  121. configure:3685: checking for suffix of object files
  122. configure:3707: gcc -c conftest.c >&5
  123. configure:3711: $? = 0
  124. configure:3732: result: o
  125. configure:3736: checking whether we are using the GNU C compiler
  126. configure:3755: gcc -c conftest.c >&5
  127. configure:3755: $? = 0
  128. configure:3764: result: yes
  129. configure:3773: checking whether gcc accepts -g
  130. configure:3793: gcc -c -g conftest.c >&5
  131. configure:3793: $? = 0
  132. configure:3834: result: yes
  133. configure:3851: checking for gcc option to accept ISO C89
  134. configure:3915: gcc -c -g -O2 conftest.c >&5
  135. configure:3915: $? = 0
  136. configure:3928: result: none needed
  137. configure:3950: checking dependency style of gcc
  138. configure:4060: result: gcc3
  139. configure:4076: checking whether gcc and cc understand -c and -o together
  140. configure:4107: gcc -c conftest.c -o conftest2.o >&5
  141. configure:4111: $? = 0
  142. configure:4117: gcc -c conftest.c -o conftest2.o >&5
  143. configure:4121: $? = 0
  144. configure:4132: cc -c conftest.c >&5
  145. configure:4136: $? = 0
  146. configure:4144: cc -c conftest.c -o conftest2.o >&5
  147. configure:4148: $? = 0
  148. configure:4154: cc -c conftest.c -o conftest2.o >&5
  149. configure:4158: $? = 0
  150. configure:4176: result: yes
  151. configure:4206: checking for library containing strerror
  152. configure:4237: gcc -o conftest.exe -g -O2 -LC:/python27/libs conftest.c >&5
  153. configure:4237: $? = 0
  154. configure:4254: result: none required
  155. configure:4269: checking how to run the C preprocessor
  156. configure:4300: gcc -E conftest.c
  157. configure:4300: $? = 0
  158. configure:4314: gcc -E conftest.c
  159. conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
  160. compilation terminated.
  161. configure:4314: $? = 1
  162. configure: failed program was:
  163. | /* confdefs.h */
  164. | #define PACKAGE_NAME "graph-tool"
  165. | #define PACKAGE_TARNAME "graph-tool"
  166. | #define PACKAGE_VERSION "2.2.15"
  167. | #define PACKAGE_STRING "graph-tool 2.2.15"
  168. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  169. | #define PACKAGE_URL ""
  170. | #define PACKAGE "graph-tool"
  171. | #define VERSION "2.2.15"
  172. | /* end confdefs.h. */
  173. | #include <ac_nonexistent.h>
  174. configure:4339: result: gcc -E
  175. configure:4359: gcc -E conftest.c
  176. configure:4359: $? = 0
  177. configure:4373: gcc -E conftest.c
  178. conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
  179. compilation terminated.
  180. configure:4373: $? = 1
  181. configure: failed program was:
  182. | /* confdefs.h */
  183. | #define PACKAGE_NAME "graph-tool"
  184. | #define PACKAGE_TARNAME "graph-tool"
  185. | #define PACKAGE_VERSION "2.2.15"
  186. | #define PACKAGE_STRING "graph-tool 2.2.15"
  187. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  188. | #define PACKAGE_URL ""
  189. | #define PACKAGE "graph-tool"
  190. | #define VERSION "2.2.15"
  191. | /* end confdefs.h. */
  192. | #include <ac_nonexistent.h>
  193. configure:4402: checking for grep that handles long lines and -e
  194. configure:4460: result: /bin/grep
  195. configure:4465: checking for egrep
  196. configure:4527: result: /bin/grep -E
  197. configure:4532: checking for ANSI C header files
  198. configure:4552: gcc -c -g -O2 conftest.c >&5
  199. configure:4552: $? = 0
  200. configure:4625: gcc -o conftest.exe -g -O2 -LC:/python27/libs conftest.c >&5
  201. configure:4625: $? = 0
  202. configure:4625: ./conftest.exe
  203. configure:4625: $? = 0
  204. configure:4636: result: yes
  205. configure:4649: checking for sys/types.h
  206. configure:4649: gcc -c -g -O2 conftest.c >&5
  207. configure:4649: $? = 0
  208. configure:4649: result: yes
  209. configure:4649: checking for sys/stat.h
  210. configure:4649: gcc -c -g -O2 conftest.c >&5
  211. configure:4649: $? = 0
  212. configure:4649: result: yes
  213. configure:4649: checking for stdlib.h
  214. configure:4649: gcc -c -g -O2 conftest.c >&5
  215. configure:4649: $? = 0
  216. configure:4649: result: yes
  217. configure:4649: checking for string.h
  218. configure:4649: gcc -c -g -O2 conftest.c >&5
  219. configure:4649: $? = 0
  220. configure:4649: result: yes
  221. configure:4649: checking for memory.h
  222. configure:4649: gcc -c -g -O2 conftest.c >&5
  223. configure:4649: $? = 0
  224. configure:4649: result: yes
  225. configure:4649: checking for strings.h
  226. configure:4649: gcc -c -g -O2 conftest.c >&5
  227. configure:4649: $? = 0
  228. configure:4649: result: yes
  229. configure:4649: checking for inttypes.h
  230. configure:4649: gcc -c -g -O2 conftest.c >&5
  231. configure:4649: $? = 0
  232. configure:4649: result: yes
  233. configure:4649: checking for stdint.h
  234. configure:4649: gcc -c -g -O2 conftest.c >&5
  235. configure:4649: $? = 0
  236. configure:4649: result: yes
  237. configure:4649: checking for unistd.h
  238. configure:4649: gcc -c -g -O2 conftest.c >&5
  239. configure:4649: $? = 0
  240. configure:4649: result: yes
  241. configure:4662: checking minix/config.h usability
  242. configure:4662: gcc -c -g -O2 conftest.c >&5
  243. conftest.c:54:26: fatal error: minix/config.h: No such file or directory
  244. compilation terminated.
  245. configure:4662: $? = 1
  246. configure: failed program was:
  247. | /* confdefs.h */
  248. | #define PACKAGE_NAME "graph-tool"
  249. | #define PACKAGE_TARNAME "graph-tool"
  250. | #define PACKAGE_VERSION "2.2.15"
  251. | #define PACKAGE_STRING "graph-tool 2.2.15"
  252. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  253. | #define PACKAGE_URL ""
  254. | #define PACKAGE "graph-tool"
  255. | #define VERSION "2.2.15"
  256. | #define STDC_HEADERS 1
  257. | #define HAVE_SYS_TYPES_H 1
  258. | #define HAVE_SYS_STAT_H 1
  259. | #define HAVE_STDLIB_H 1
  260. | #define HAVE_STRING_H 1
  261. | #define HAVE_MEMORY_H 1
  262. | #define HAVE_STRINGS_H 1
  263. | #define HAVE_INTTYPES_H 1
  264. | #define HAVE_STDINT_H 1
  265. | #define HAVE_UNISTD_H 1
  266. | /* end confdefs.h. */
  267. | #include <stdio.h>
  268. | #ifdef HAVE_SYS_TYPES_H
  269. | # include <sys/types.h>
  270. | #endif
  271. | #ifdef HAVE_SYS_STAT_H
  272. | # include <sys/stat.h>
  273. | #endif
  274. | #ifdef STDC_HEADERS
  275. | # include <stdlib.h>
  276. | # include <stddef.h>
  277. | #else
  278. | # ifdef HAVE_STDLIB_H
  279. | # include <stdlib.h>
  280. | # endif
  281. | #endif
  282. | #ifdef HAVE_STRING_H
  283. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  284. | # include <memory.h>
  285. | # endif
  286. | # include <string.h>
  287. | #endif
  288. | #ifdef HAVE_STRINGS_H
  289. | # include <strings.h>
  290. | #endif
  291. | #ifdef HAVE_INTTYPES_H
  292. | # include <inttypes.h>
  293. | #endif
  294. | #ifdef HAVE_STDINT_H
  295. | # include <stdint.h>
  296. | #endif
  297. | #ifdef HAVE_UNISTD_H
  298. | # include <unistd.h>
  299. | #endif
  300. | #include <minix/config.h>
  301. configure:4662: result: no
  302. configure:4662: checking minix/config.h presence
  303. configure:4662: gcc -E conftest.c
  304. conftest.c:21:26: fatal error: minix/config.h: No such file or directory
  305. compilation terminated.
  306. configure:4662: $? = 1
  307. configure: failed program was:
  308. | /* confdefs.h */
  309. | #define PACKAGE_NAME "graph-tool"
  310. | #define PACKAGE_TARNAME "graph-tool"
  311. | #define PACKAGE_VERSION "2.2.15"
  312. | #define PACKAGE_STRING "graph-tool 2.2.15"
  313. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  314. | #define PACKAGE_URL ""
  315. | #define PACKAGE "graph-tool"
  316. | #define VERSION "2.2.15"
  317. | #define STDC_HEADERS 1
  318. | #define HAVE_SYS_TYPES_H 1
  319. | #define HAVE_SYS_STAT_H 1
  320. | #define HAVE_STDLIB_H 1
  321. | #define HAVE_STRING_H 1
  322. | #define HAVE_MEMORY_H 1
  323. | #define HAVE_STRINGS_H 1
  324. | #define HAVE_INTTYPES_H 1
  325. | #define HAVE_STDINT_H 1
  326. | #define HAVE_UNISTD_H 1
  327. | /* end confdefs.h. */
  328. | #include <minix/config.h>
  329. configure:4662: result: no
  330. configure:4662: checking for minix/config.h
  331. configure:4662: result: no
  332. configure:4683: checking whether it is safe to define __EXTENSIONS__
  333. configure:4701: gcc -c -g -O2 conftest.c >&5
  334. configure:4701: $? = 0
  335. configure:4708: result: yes
  336. configure:4780: checking for g++
  337. configure:4796: found /mingw/bin/g++
  338. configure:4807: result: g++
  339. configure:4834: checking for C++ compiler version
  340. configure:4843: g++ --version >&5
  341. g++.exe (GCC) 4.6.2
  342. Copyright (C) 2011 Free Software Foundation, Inc.
  343. This is free software; see the source for copying conditions. There is NO
  344. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  345.  
  346. configure:4854: $? = 0
  347. configure:4843: g++ -v >&5
  348. Using built-in specs.
  349. COLLECT_GCC=C:\dev\MinGW\bin\g++.exe
  350. COLLECT_LTO_WRAPPER=c:/dev/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
  351. Target: mingw32
  352. Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
  353. Thread model: win32
  354. gcc version 4.6.2 (GCC)
  355. configure:4854: $? = 0
  356. configure:4843: g++ -V >&5
  357. g++.exe: error: unrecognized option '-V'
  358. g++.exe: fatal error: no input files
  359. compilation terminated.
  360. configure:4854: $? = 1
  361. configure:4843: g++ -qversion >&5
  362. g++.exe: error: unrecognized option '-qversion'
  363. g++.exe: fatal error: no input files
  364. compilation terminated.
  365. configure:4854: $? = 1
  366. configure:4858: checking whether we are using the GNU C++ compiler
  367. configure:4877: g++ -c conftest.cpp >&5
  368. configure:4877: $? = 0
  369. configure:4886: result: yes
  370. configure:4895: checking whether g++ accepts -g
  371. configure:4915: g++ -c -g conftest.cpp >&5
  372. configure:4915: $? = 0
  373. configure:4956: result: yes
  374. configure:4981: checking dependency style of g++
  375. configure:5091: result: gcc3
  376. configure:5116: checking for gcc option to accept ISO C99
  377. configure:5265: g++ -c conftest.cpp >&5
  378. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  379. conftest.cpp: In function 'int test_restrict(ccp)':
  380. conftest.cpp:81:30: error: 'text' was not declared in this scope
  381. conftest.cpp: In function 'int main()':
  382. conftest.cpp:130:18: error: expected initializer before 'newvar'
  383. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  384. conftest.cpp:145:5: error: expected primary-expression before '.' token
  385. conftest.cpp:146:5: error: expected primary-expression before '.' token
  386. conftest.cpp:147:5: error: expected primary-expression before '.' token
  387. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  388. configure:5265: $? = 1
  389. configure: failed program was:
  390. | /* confdefs.h */
  391. | #define PACKAGE_NAME "graph-tool"
  392. | #define PACKAGE_TARNAME "graph-tool"
  393. | #define PACKAGE_VERSION "2.2.15"
  394. | #define PACKAGE_STRING "graph-tool 2.2.15"
  395. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  396. | #define PACKAGE_URL ""
  397. | #define PACKAGE "graph-tool"
  398. | #define VERSION "2.2.15"
  399. | #define STDC_HEADERS 1
  400. | #define HAVE_SYS_TYPES_H 1
  401. | #define HAVE_SYS_STAT_H 1
  402. | #define HAVE_STDLIB_H 1
  403. | #define HAVE_STRING_H 1
  404. | #define HAVE_MEMORY_H 1
  405. | #define HAVE_STRINGS_H 1
  406. | #define HAVE_INTTYPES_H 1
  407. | #define HAVE_STDINT_H 1
  408. | #define HAVE_UNISTD_H 1
  409. | #define __EXTENSIONS__ 1
  410. | #define _ALL_SOURCE 1
  411. | #define _GNU_SOURCE 1
  412. | #define _POSIX_PTHREAD_SEMANTICS 1
  413. | #define _TANDEM_SOURCE 1
  414. | /* end confdefs.h. */
  415. | #include <stdarg.h>
  416. | #include <stdbool.h>
  417. | #include <stdlib.h>
  418. | #include <wchar.h>
  419. | #include <stdio.h>
  420. |
  421. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  422. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  423. | #define showlist(...) puts (#__VA_ARGS__)
  424. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  425. | static void
  426. | test_varargs_macros (void)
  427. | {
  428. | int x = 1234;
  429. | int y = 5678;
  430. | debug ("Flag");
  431. | debug ("X = %d\n", x);
  432. | showlist (The first, second, and third items.);
  433. | report (x>y, "x is %d but y is %d", x, y);
  434. | }
  435. |
  436. | // Check long long types.
  437. | #define BIG64 18446744073709551615ull
  438. | #define BIG32 4294967295ul
  439. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  440. | #if !BIG_OK
  441. | your preprocessor is broken;
  442. | #endif
  443. | #if BIG_OK
  444. | #else
  445. | your preprocessor is broken;
  446. | #endif
  447. | static long long int bignum = -9223372036854775807LL;
  448. | static unsigned long long int ubignum = BIG64;
  449. |
  450. | struct incomplete_array
  451. | {
  452. | int datasize;
  453. | double data[];
  454. | };
  455. |
  456. | struct named_init {
  457. | int number;
  458. | const wchar_t *name;
  459. | double average;
  460. | };
  461. |
  462. | typedef const char *ccp;
  463. |
  464. | static inline int
  465. | test_restrict (ccp restrict text)
  466. | {
  467. | // See if C++-style comments work.
  468. | // Iterate through items via the restricted pointer.
  469. | // Also check for declarations in for loops.
  470. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  471. | continue;
  472. | return 0;
  473. | }
  474. |
  475. | // Check varargs and va_copy.
  476. | static void
  477. | test_varargs (const char *format, ...)
  478. | {
  479. | va_list args;
  480. | va_start (args, format);
  481. | va_list args_copy;
  482. | va_copy (args_copy, args);
  483. |
  484. | const char *str;
  485. | int number;
  486. | float fnumber;
  487. |
  488. | while (*format)
  489. | {
  490. | switch (*format++)
  491. | {
  492. | case 's': // string
  493. | str = va_arg (args_copy, const char *);
  494. | break;
  495. | case 'd': // int
  496. | number = va_arg (args_copy, int);
  497. | break;
  498. | case 'f': // float
  499. | fnumber = va_arg (args_copy, double);
  500. | break;
  501. | default:
  502. | break;
  503. | }
  504. | }
  505. | va_end (args_copy);
  506. | va_end (args);
  507. | }
  508. |
  509. | int
  510. | main ()
  511. | {
  512. |
  513. | // Check bool.
  514. | _Bool success = false;
  515. |
  516. | // Check restrict.
  517. | if (test_restrict ("String literal") == 0)
  518. | success = true;
  519. | char *restrict newvar = "Another string";
  520. |
  521. | // Check varargs.
  522. | test_varargs ("s, d' f .", "string", 65, 34.234);
  523. | test_varargs_macros ();
  524. |
  525. | // Check flexible array members.
  526. | struct incomplete_array *ia =
  527. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  528. | ia->datasize = 10;
  529. | for (int i = 0; i < ia->datasize; ++i)
  530. | ia->data[i] = i * 1.234;
  531. |
  532. | // Check named initializers.
  533. | struct named_init ni = {
  534. | .number = 34,
  535. | .name = L"Test wide string",
  536. | .average = 543.34343,
  537. | };
  538. |
  539. | ni.number = 58;
  540. |
  541. | int dynamic_array[ni.number];
  542. | dynamic_array[ni.number - 1] = 543;
  543. |
  544. | // work around unused variable warnings
  545. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  546. | || dynamic_array[ni.number - 1] != 543);
  547. |
  548. | ;
  549. | return 0;
  550. | }
  551. configure:5265: g++ -c conftest.cpp >&5
  552. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  553. conftest.cpp: In function 'int test_restrict(ccp)':
  554. conftest.cpp:81:30: error: 'text' was not declared in this scope
  555. conftest.cpp: In function 'int main()':
  556. conftest.cpp:130:18: error: expected initializer before 'newvar'
  557. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  558. conftest.cpp:145:5: error: expected primary-expression before '.' token
  559. conftest.cpp:146:5: error: expected primary-expression before '.' token
  560. conftest.cpp:147:5: error: expected primary-expression before '.' token
  561. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  562. configure:5265: $? = 1
  563. configure: failed program was:
  564. | /* confdefs.h */
  565. | #define PACKAGE_NAME "graph-tool"
  566. | #define PACKAGE_TARNAME "graph-tool"
  567. | #define PACKAGE_VERSION "2.2.15"
  568. | #define PACKAGE_STRING "graph-tool 2.2.15"
  569. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  570. | #define PACKAGE_URL ""
  571. | #define PACKAGE "graph-tool"
  572. | #define VERSION "2.2.15"
  573. | #define STDC_HEADERS 1
  574. | #define HAVE_SYS_TYPES_H 1
  575. | #define HAVE_SYS_STAT_H 1
  576. | #define HAVE_STDLIB_H 1
  577. | #define HAVE_STRING_H 1
  578. | #define HAVE_MEMORY_H 1
  579. | #define HAVE_STRINGS_H 1
  580. | #define HAVE_INTTYPES_H 1
  581. | #define HAVE_STDINT_H 1
  582. | #define HAVE_UNISTD_H 1
  583. | #define __EXTENSIONS__ 1
  584. | #define _ALL_SOURCE 1
  585. | #define _GNU_SOURCE 1
  586. | #define _POSIX_PTHREAD_SEMANTICS 1
  587. | #define _TANDEM_SOURCE 1
  588. | /* end confdefs.h. */
  589. | #include <stdarg.h>
  590. | #include <stdbool.h>
  591. | #include <stdlib.h>
  592. | #include <wchar.h>
  593. | #include <stdio.h>
  594. |
  595. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  596. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  597. | #define showlist(...) puts (#__VA_ARGS__)
  598. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  599. | static void
  600. | test_varargs_macros (void)
  601. | {
  602. | int x = 1234;
  603. | int y = 5678;
  604. | debug ("Flag");
  605. | debug ("X = %d\n", x);
  606. | showlist (The first, second, and third items.);
  607. | report (x>y, "x is %d but y is %d", x, y);
  608. | }
  609. |
  610. | // Check long long types.
  611. | #define BIG64 18446744073709551615ull
  612. | #define BIG32 4294967295ul
  613. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  614. | #if !BIG_OK
  615. | your preprocessor is broken;
  616. | #endif
  617. | #if BIG_OK
  618. | #else
  619. | your preprocessor is broken;
  620. | #endif
  621. | static long long int bignum = -9223372036854775807LL;
  622. | static unsigned long long int ubignum = BIG64;
  623. |
  624. | struct incomplete_array
  625. | {
  626. | int datasize;
  627. | double data[];
  628. | };
  629. |
  630. | struct named_init {
  631. | int number;
  632. | const wchar_t *name;
  633. | double average;
  634. | };
  635. |
  636. | typedef const char *ccp;
  637. |
  638. | static inline int
  639. | test_restrict (ccp restrict text)
  640. | {
  641. | // See if C++-style comments work.
  642. | // Iterate through items via the restricted pointer.
  643. | // Also check for declarations in for loops.
  644. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  645. | continue;
  646. | return 0;
  647. | }
  648. |
  649. | // Check varargs and va_copy.
  650. | static void
  651. | test_varargs (const char *format, ...)
  652. | {
  653. | va_list args;
  654. | va_start (args, format);
  655. | va_list args_copy;
  656. | va_copy (args_copy, args);
  657. |
  658. | const char *str;
  659. | int number;
  660. | float fnumber;
  661. |
  662. | while (*format)
  663. | {
  664. | switch (*format++)
  665. | {
  666. | case 's': // string
  667. | str = va_arg (args_copy, const char *);
  668. | break;
  669. | case 'd': // int
  670. | number = va_arg (args_copy, int);
  671. | break;
  672. | case 'f': // float
  673. | fnumber = va_arg (args_copy, double);
  674. | break;
  675. | default:
  676. | break;
  677. | }
  678. | }
  679. | va_end (args_copy);
  680. | va_end (args);
  681. | }
  682. |
  683. | int
  684. | main ()
  685. | {
  686. |
  687. | // Check bool.
  688. | _Bool success = false;
  689. |
  690. | // Check restrict.
  691. | if (test_restrict ("String literal") == 0)
  692. | success = true;
  693. | char *restrict newvar = "Another string";
  694. |
  695. | // Check varargs.
  696. | test_varargs ("s, d' f .", "string", 65, 34.234);
  697. | test_varargs_macros ();
  698. |
  699. | // Check flexible array members.
  700. | struct incomplete_array *ia =
  701. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  702. | ia->datasize = 10;
  703. | for (int i = 0; i < ia->datasize; ++i)
  704. | ia->data[i] = i * 1.234;
  705. |
  706. | // Check named initializers.
  707. | struct named_init ni = {
  708. | .number = 34,
  709. | .name = L"Test wide string",
  710. | .average = 543.34343,
  711. | };
  712. |
  713. | ni.number = 58;
  714. |
  715. | int dynamic_array[ni.number];
  716. | dynamic_array[ni.number - 1] = 543;
  717. |
  718. | // work around unused variable warnings
  719. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  720. | || dynamic_array[ni.number - 1] != 543);
  721. |
  722. | ;
  723. | return 0;
  724. | }
  725. configure:5265: g++ -c conftest.cpp >&5
  726. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  727. conftest.cpp: In function 'int test_restrict(ccp)':
  728. conftest.cpp:81:30: error: 'text' was not declared in this scope
  729. conftest.cpp: In function 'int main()':
  730. conftest.cpp:130:18: error: expected initializer before 'newvar'
  731. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  732. conftest.cpp:145:5: error: expected primary-expression before '.' token
  733. conftest.cpp:146:5: error: expected primary-expression before '.' token
  734. conftest.cpp:147:5: error: expected primary-expression before '.' token
  735. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  736. configure:5265: $? = 1
  737. configure: failed program was:
  738. | /* confdefs.h */
  739. | #define PACKAGE_NAME "graph-tool"
  740. | #define PACKAGE_TARNAME "graph-tool"
  741. | #define PACKAGE_VERSION "2.2.15"
  742. | #define PACKAGE_STRING "graph-tool 2.2.15"
  743. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  744. | #define PACKAGE_URL ""
  745. | #define PACKAGE "graph-tool"
  746. | #define VERSION "2.2.15"
  747. | #define STDC_HEADERS 1
  748. | #define HAVE_SYS_TYPES_H 1
  749. | #define HAVE_SYS_STAT_H 1
  750. | #define HAVE_STDLIB_H 1
  751. | #define HAVE_STRING_H 1
  752. | #define HAVE_MEMORY_H 1
  753. | #define HAVE_STRINGS_H 1
  754. | #define HAVE_INTTYPES_H 1
  755. | #define HAVE_STDINT_H 1
  756. | #define HAVE_UNISTD_H 1
  757. | #define __EXTENSIONS__ 1
  758. | #define _ALL_SOURCE 1
  759. | #define _GNU_SOURCE 1
  760. | #define _POSIX_PTHREAD_SEMANTICS 1
  761. | #define _TANDEM_SOURCE 1
  762. | /* end confdefs.h. */
  763. | #include <stdarg.h>
  764. | #include <stdbool.h>
  765. | #include <stdlib.h>
  766. | #include <wchar.h>
  767. | #include <stdio.h>
  768. |
  769. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  770. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  771. | #define showlist(...) puts (#__VA_ARGS__)
  772. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  773. | static void
  774. | test_varargs_macros (void)
  775. | {
  776. | int x = 1234;
  777. | int y = 5678;
  778. | debug ("Flag");
  779. | debug ("X = %d\n", x);
  780. | showlist (The first, second, and third items.);
  781. | report (x>y, "x is %d but y is %d", x, y);
  782. | }
  783. |
  784. | // Check long long types.
  785. | #define BIG64 18446744073709551615ull
  786. | #define BIG32 4294967295ul
  787. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  788. | #if !BIG_OK
  789. | your preprocessor is broken;
  790. | #endif
  791. | #if BIG_OK
  792. | #else
  793. | your preprocessor is broken;
  794. | #endif
  795. | static long long int bignum = -9223372036854775807LL;
  796. | static unsigned long long int ubignum = BIG64;
  797. |
  798. | struct incomplete_array
  799. | {
  800. | int datasize;
  801. | double data[];
  802. | };
  803. |
  804. | struct named_init {
  805. | int number;
  806. | const wchar_t *name;
  807. | double average;
  808. | };
  809. |
  810. | typedef const char *ccp;
  811. |
  812. | static inline int
  813. | test_restrict (ccp restrict text)
  814. | {
  815. | // See if C++-style comments work.
  816. | // Iterate through items via the restricted pointer.
  817. | // Also check for declarations in for loops.
  818. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  819. | continue;
  820. | return 0;
  821. | }
  822. |
  823. | // Check varargs and va_copy.
  824. | static void
  825. | test_varargs (const char *format, ...)
  826. | {
  827. | va_list args;
  828. | va_start (args, format);
  829. | va_list args_copy;
  830. | va_copy (args_copy, args);
  831. |
  832. | const char *str;
  833. | int number;
  834. | float fnumber;
  835. |
  836. | while (*format)
  837. | {
  838. | switch (*format++)
  839. | {
  840. | case 's': // string
  841. | str = va_arg (args_copy, const char *);
  842. | break;
  843. | case 'd': // int
  844. | number = va_arg (args_copy, int);
  845. | break;
  846. | case 'f': // float
  847. | fnumber = va_arg (args_copy, double);
  848. | break;
  849. | default:
  850. | break;
  851. | }
  852. | }
  853. | va_end (args_copy);
  854. | va_end (args);
  855. | }
  856. |
  857. | int
  858. | main ()
  859. | {
  860. |
  861. | // Check bool.
  862. | _Bool success = false;
  863. |
  864. | // Check restrict.
  865. | if (test_restrict ("String literal") == 0)
  866. | success = true;
  867. | char *restrict newvar = "Another string";
  868. |
  869. | // Check varargs.
  870. | test_varargs ("s, d' f .", "string", 65, 34.234);
  871. | test_varargs_macros ();
  872. |
  873. | // Check flexible array members.
  874. | struct incomplete_array *ia =
  875. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  876. | ia->datasize = 10;
  877. | for (int i = 0; i < ia->datasize; ++i)
  878. | ia->data[i] = i * 1.234;
  879. |
  880. | // Check named initializers.
  881. | struct named_init ni = {
  882. | .number = 34,
  883. | .name = L"Test wide string",
  884. | .average = 543.34343,
  885. | };
  886. |
  887. | ni.number = 58;
  888. |
  889. | int dynamic_array[ni.number];
  890. | dynamic_array[ni.number - 1] = 543;
  891. |
  892. | // work around unused variable warnings
  893. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  894. | || dynamic_array[ni.number - 1] != 543);
  895. |
  896. | ;
  897. | return 0;
  898. | }
  899. configure:5265: g++ -c conftest.cpp >&5
  900. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  901. conftest.cpp: In function 'int test_restrict(ccp)':
  902. conftest.cpp:81:30: error: 'text' was not declared in this scope
  903. conftest.cpp: In function 'int main()':
  904. conftest.cpp:130:18: error: expected initializer before 'newvar'
  905. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  906. conftest.cpp:145:5: error: expected primary-expression before '.' token
  907. conftest.cpp:146:5: error: expected primary-expression before '.' token
  908. conftest.cpp:147:5: error: expected primary-expression before '.' token
  909. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  910. configure:5265: $? = 1
  911. configure: failed program was:
  912. | /* confdefs.h */
  913. | #define PACKAGE_NAME "graph-tool"
  914. | #define PACKAGE_TARNAME "graph-tool"
  915. | #define PACKAGE_VERSION "2.2.15"
  916. | #define PACKAGE_STRING "graph-tool 2.2.15"
  917. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  918. | #define PACKAGE_URL ""
  919. | #define PACKAGE "graph-tool"
  920. | #define VERSION "2.2.15"
  921. | #define STDC_HEADERS 1
  922. | #define HAVE_SYS_TYPES_H 1
  923. | #define HAVE_SYS_STAT_H 1
  924. | #define HAVE_STDLIB_H 1
  925. | #define HAVE_STRING_H 1
  926. | #define HAVE_MEMORY_H 1
  927. | #define HAVE_STRINGS_H 1
  928. | #define HAVE_INTTYPES_H 1
  929. | #define HAVE_STDINT_H 1
  930. | #define HAVE_UNISTD_H 1
  931. | #define __EXTENSIONS__ 1
  932. | #define _ALL_SOURCE 1
  933. | #define _GNU_SOURCE 1
  934. | #define _POSIX_PTHREAD_SEMANTICS 1
  935. | #define _TANDEM_SOURCE 1
  936. | /* end confdefs.h. */
  937. | #include <stdarg.h>
  938. | #include <stdbool.h>
  939. | #include <stdlib.h>
  940. | #include <wchar.h>
  941. | #include <stdio.h>
  942. |
  943. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  944. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  945. | #define showlist(...) puts (#__VA_ARGS__)
  946. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  947. | static void
  948. | test_varargs_macros (void)
  949. | {
  950. | int x = 1234;
  951. | int y = 5678;
  952. | debug ("Flag");
  953. | debug ("X = %d\n", x);
  954. | showlist (The first, second, and third items.);
  955. | report (x>y, "x is %d but y is %d", x, y);
  956. | }
  957. |
  958. | // Check long long types.
  959. | #define BIG64 18446744073709551615ull
  960. | #define BIG32 4294967295ul
  961. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  962. | #if !BIG_OK
  963. | your preprocessor is broken;
  964. | #endif
  965. | #if BIG_OK
  966. | #else
  967. | your preprocessor is broken;
  968. | #endif
  969. | static long long int bignum = -9223372036854775807LL;
  970. | static unsigned long long int ubignum = BIG64;
  971. |
  972. | struct incomplete_array
  973. | {
  974. | int datasize;
  975. | double data[];
  976. | };
  977. |
  978. | struct named_init {
  979. | int number;
  980. | const wchar_t *name;
  981. | double average;
  982. | };
  983. |
  984. | typedef const char *ccp;
  985. |
  986. | static inline int
  987. | test_restrict (ccp restrict text)
  988. | {
  989. | // See if C++-style comments work.
  990. | // Iterate through items via the restricted pointer.
  991. | // Also check for declarations in for loops.
  992. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  993. | continue;
  994. | return 0;
  995. | }
  996. |
  997. | // Check varargs and va_copy.
  998. | static void
  999. | test_varargs (const char *format, ...)
  1000. | {
  1001. | va_list args;
  1002. | va_start (args, format);
  1003. | va_list args_copy;
  1004. | va_copy (args_copy, args);
  1005. |
  1006. | const char *str;
  1007. | int number;
  1008. | float fnumber;
  1009. |
  1010. | while (*format)
  1011. | {
  1012. | switch (*format++)
  1013. | {
  1014. | case 's': // string
  1015. | str = va_arg (args_copy, const char *);
  1016. | break;
  1017. | case 'd': // int
  1018. | number = va_arg (args_copy, int);
  1019. | break;
  1020. | case 'f': // float
  1021. | fnumber = va_arg (args_copy, double);
  1022. | break;
  1023. | default:
  1024. | break;
  1025. | }
  1026. | }
  1027. | va_end (args_copy);
  1028. | va_end (args);
  1029. | }
  1030. |
  1031. | int
  1032. | main ()
  1033. | {
  1034. |
  1035. | // Check bool.
  1036. | _Bool success = false;
  1037. |
  1038. | // Check restrict.
  1039. | if (test_restrict ("String literal") == 0)
  1040. | success = true;
  1041. | char *restrict newvar = "Another string";
  1042. |
  1043. | // Check varargs.
  1044. | test_varargs ("s, d' f .", "string", 65, 34.234);
  1045. | test_varargs_macros ();
  1046. |
  1047. | // Check flexible array members.
  1048. | struct incomplete_array *ia =
  1049. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1050. | ia->datasize = 10;
  1051. | for (int i = 0; i < ia->datasize; ++i)
  1052. | ia->data[i] = i * 1.234;
  1053. |
  1054. | // Check named initializers.
  1055. | struct named_init ni = {
  1056. | .number = 34,
  1057. | .name = L"Test wide string",
  1058. | .average = 543.34343,
  1059. | };
  1060. |
  1061. | ni.number = 58;
  1062. |
  1063. | int dynamic_array[ni.number];
  1064. | dynamic_array[ni.number - 1] = 543;
  1065. |
  1066. | // work around unused variable warnings
  1067. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  1068. | || dynamic_array[ni.number - 1] != 543);
  1069. |
  1070. | ;
  1071. | return 0;
  1072. | }
  1073. configure:5265: g++ -c conftest.cpp >&5
  1074. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  1075. conftest.cpp: In function 'int test_restrict(ccp)':
  1076. conftest.cpp:81:30: error: 'text' was not declared in this scope
  1077. conftest.cpp: In function 'int main()':
  1078. conftest.cpp:130:18: error: expected initializer before 'newvar'
  1079. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  1080. conftest.cpp:145:5: error: expected primary-expression before '.' token
  1081. conftest.cpp:146:5: error: expected primary-expression before '.' token
  1082. conftest.cpp:147:5: error: expected primary-expression before '.' token
  1083. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  1084. configure:5265: $? = 1
  1085. configure: failed program was:
  1086. | /* confdefs.h */
  1087. | #define PACKAGE_NAME "graph-tool"
  1088. | #define PACKAGE_TARNAME "graph-tool"
  1089. | #define PACKAGE_VERSION "2.2.15"
  1090. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1091. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1092. | #define PACKAGE_URL ""
  1093. | #define PACKAGE "graph-tool"
  1094. | #define VERSION "2.2.15"
  1095. | #define STDC_HEADERS 1
  1096. | #define HAVE_SYS_TYPES_H 1
  1097. | #define HAVE_SYS_STAT_H 1
  1098. | #define HAVE_STDLIB_H 1
  1099. | #define HAVE_STRING_H 1
  1100. | #define HAVE_MEMORY_H 1
  1101. | #define HAVE_STRINGS_H 1
  1102. | #define HAVE_INTTYPES_H 1
  1103. | #define HAVE_STDINT_H 1
  1104. | #define HAVE_UNISTD_H 1
  1105. | #define __EXTENSIONS__ 1
  1106. | #define _ALL_SOURCE 1
  1107. | #define _GNU_SOURCE 1
  1108. | #define _POSIX_PTHREAD_SEMANTICS 1
  1109. | #define _TANDEM_SOURCE 1
  1110. | /* end confdefs.h. */
  1111. | #include <stdarg.h>
  1112. | #include <stdbool.h>
  1113. | #include <stdlib.h>
  1114. | #include <wchar.h>
  1115. | #include <stdio.h>
  1116. |
  1117. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1118. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  1119. | #define showlist(...) puts (#__VA_ARGS__)
  1120. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1121. | static void
  1122. | test_varargs_macros (void)
  1123. | {
  1124. | int x = 1234;
  1125. | int y = 5678;
  1126. | debug ("Flag");
  1127. | debug ("X = %d\n", x);
  1128. | showlist (The first, second, and third items.);
  1129. | report (x>y, "x is %d but y is %d", x, y);
  1130. | }
  1131. |
  1132. | // Check long long types.
  1133. | #define BIG64 18446744073709551615ull
  1134. | #define BIG32 4294967295ul
  1135. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1136. | #if !BIG_OK
  1137. | your preprocessor is broken;
  1138. | #endif
  1139. | #if BIG_OK
  1140. | #else
  1141. | your preprocessor is broken;
  1142. | #endif
  1143. | static long long int bignum = -9223372036854775807LL;
  1144. | static unsigned long long int ubignum = BIG64;
  1145. |
  1146. | struct incomplete_array
  1147. | {
  1148. | int datasize;
  1149. | double data[];
  1150. | };
  1151. |
  1152. | struct named_init {
  1153. | int number;
  1154. | const wchar_t *name;
  1155. | double average;
  1156. | };
  1157. |
  1158. | typedef const char *ccp;
  1159. |
  1160. | static inline int
  1161. | test_restrict (ccp restrict text)
  1162. | {
  1163. | // See if C++-style comments work.
  1164. | // Iterate through items via the restricted pointer.
  1165. | // Also check for declarations in for loops.
  1166. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  1167. | continue;
  1168. | return 0;
  1169. | }
  1170. |
  1171. | // Check varargs and va_copy.
  1172. | static void
  1173. | test_varargs (const char *format, ...)
  1174. | {
  1175. | va_list args;
  1176. | va_start (args, format);
  1177. | va_list args_copy;
  1178. | va_copy (args_copy, args);
  1179. |
  1180. | const char *str;
  1181. | int number;
  1182. | float fnumber;
  1183. |
  1184. | while (*format)
  1185. | {
  1186. | switch (*format++)
  1187. | {
  1188. | case 's': // string
  1189. | str = va_arg (args_copy, const char *);
  1190. | break;
  1191. | case 'd': // int
  1192. | number = va_arg (args_copy, int);
  1193. | break;
  1194. | case 'f': // float
  1195. | fnumber = va_arg (args_copy, double);
  1196. | break;
  1197. | default:
  1198. | break;
  1199. | }
  1200. | }
  1201. | va_end (args_copy);
  1202. | va_end (args);
  1203. | }
  1204. |
  1205. | int
  1206. | main ()
  1207. | {
  1208. |
  1209. | // Check bool.
  1210. | _Bool success = false;
  1211. |
  1212. | // Check restrict.
  1213. | if (test_restrict ("String literal") == 0)
  1214. | success = true;
  1215. | char *restrict newvar = "Another string";
  1216. |
  1217. | // Check varargs.
  1218. | test_varargs ("s, d' f .", "string", 65, 34.234);
  1219. | test_varargs_macros ();
  1220. |
  1221. | // Check flexible array members.
  1222. | struct incomplete_array *ia =
  1223. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1224. | ia->datasize = 10;
  1225. | for (int i = 0; i < ia->datasize; ++i)
  1226. | ia->data[i] = i * 1.234;
  1227. |
  1228. | // Check named initializers.
  1229. | struct named_init ni = {
  1230. | .number = 34,
  1231. | .name = L"Test wide string",
  1232. | .average = 543.34343,
  1233. | };
  1234. |
  1235. | ni.number = 58;
  1236. |
  1237. | int dynamic_array[ni.number];
  1238. | dynamic_array[ni.number - 1] = 543;
  1239. |
  1240. | // work around unused variable warnings
  1241. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  1242. | || dynamic_array[ni.number - 1] != 543);
  1243. |
  1244. | ;
  1245. | return 0;
  1246. | }
  1247. configure:5265: g++ -c conftest.cpp >&5
  1248. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  1249. conftest.cpp: In function 'int test_restrict(ccp)':
  1250. conftest.cpp:81:30: error: 'text' was not declared in this scope
  1251. conftest.cpp: In function 'int main()':
  1252. conftest.cpp:130:18: error: expected initializer before 'newvar'
  1253. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  1254. conftest.cpp:145:5: error: expected primary-expression before '.' token
  1255. conftest.cpp:146:5: error: expected primary-expression before '.' token
  1256. conftest.cpp:147:5: error: expected primary-expression before '.' token
  1257. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  1258. configure:5265: $? = 1
  1259. configure: failed program was:
  1260. | /* confdefs.h */
  1261. | #define PACKAGE_NAME "graph-tool"
  1262. | #define PACKAGE_TARNAME "graph-tool"
  1263. | #define PACKAGE_VERSION "2.2.15"
  1264. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1265. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1266. | #define PACKAGE_URL ""
  1267. | #define PACKAGE "graph-tool"
  1268. | #define VERSION "2.2.15"
  1269. | #define STDC_HEADERS 1
  1270. | #define HAVE_SYS_TYPES_H 1
  1271. | #define HAVE_SYS_STAT_H 1
  1272. | #define HAVE_STDLIB_H 1
  1273. | #define HAVE_STRING_H 1
  1274. | #define HAVE_MEMORY_H 1
  1275. | #define HAVE_STRINGS_H 1
  1276. | #define HAVE_INTTYPES_H 1
  1277. | #define HAVE_STDINT_H 1
  1278. | #define HAVE_UNISTD_H 1
  1279. | #define __EXTENSIONS__ 1
  1280. | #define _ALL_SOURCE 1
  1281. | #define _GNU_SOURCE 1
  1282. | #define _POSIX_PTHREAD_SEMANTICS 1
  1283. | #define _TANDEM_SOURCE 1
  1284. | /* end confdefs.h. */
  1285. | #include <stdarg.h>
  1286. | #include <stdbool.h>
  1287. | #include <stdlib.h>
  1288. | #include <wchar.h>
  1289. | #include <stdio.h>
  1290. |
  1291. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1292. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  1293. | #define showlist(...) puts (#__VA_ARGS__)
  1294. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1295. | static void
  1296. | test_varargs_macros (void)
  1297. | {
  1298. | int x = 1234;
  1299. | int y = 5678;
  1300. | debug ("Flag");
  1301. | debug ("X = %d\n", x);
  1302. | showlist (The first, second, and third items.);
  1303. | report (x>y, "x is %d but y is %d", x, y);
  1304. | }
  1305. |
  1306. | // Check long long types.
  1307. | #define BIG64 18446744073709551615ull
  1308. | #define BIG32 4294967295ul
  1309. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1310. | #if !BIG_OK
  1311. | your preprocessor is broken;
  1312. | #endif
  1313. | #if BIG_OK
  1314. | #else
  1315. | your preprocessor is broken;
  1316. | #endif
  1317. | static long long int bignum = -9223372036854775807LL;
  1318. | static unsigned long long int ubignum = BIG64;
  1319. |
  1320. | struct incomplete_array
  1321. | {
  1322. | int datasize;
  1323. | double data[];
  1324. | };
  1325. |
  1326. | struct named_init {
  1327. | int number;
  1328. | const wchar_t *name;
  1329. | double average;
  1330. | };
  1331. |
  1332. | typedef const char *ccp;
  1333. |
  1334. | static inline int
  1335. | test_restrict (ccp restrict text)
  1336. | {
  1337. | // See if C++-style comments work.
  1338. | // Iterate through items via the restricted pointer.
  1339. | // Also check for declarations in for loops.
  1340. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  1341. | continue;
  1342. | return 0;
  1343. | }
  1344. |
  1345. | // Check varargs and va_copy.
  1346. | static void
  1347. | test_varargs (const char *format, ...)
  1348. | {
  1349. | va_list args;
  1350. | va_start (args, format);
  1351. | va_list args_copy;
  1352. | va_copy (args_copy, args);
  1353. |
  1354. | const char *str;
  1355. | int number;
  1356. | float fnumber;
  1357. |
  1358. | while (*format)
  1359. | {
  1360. | switch (*format++)
  1361. | {
  1362. | case 's': // string
  1363. | str = va_arg (args_copy, const char *);
  1364. | break;
  1365. | case 'd': // int
  1366. | number = va_arg (args_copy, int);
  1367. | break;
  1368. | case 'f': // float
  1369. | fnumber = va_arg (args_copy, double);
  1370. | break;
  1371. | default:
  1372. | break;
  1373. | }
  1374. | }
  1375. | va_end (args_copy);
  1376. | va_end (args);
  1377. | }
  1378. |
  1379. | int
  1380. | main ()
  1381. | {
  1382. |
  1383. | // Check bool.
  1384. | _Bool success = false;
  1385. |
  1386. | // Check restrict.
  1387. | if (test_restrict ("String literal") == 0)
  1388. | success = true;
  1389. | char *restrict newvar = "Another string";
  1390. |
  1391. | // Check varargs.
  1392. | test_varargs ("s, d' f .", "string", 65, 34.234);
  1393. | test_varargs_macros ();
  1394. |
  1395. | // Check flexible array members.
  1396. | struct incomplete_array *ia =
  1397. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1398. | ia->datasize = 10;
  1399. | for (int i = 0; i < ia->datasize; ++i)
  1400. | ia->data[i] = i * 1.234;
  1401. |
  1402. | // Check named initializers.
  1403. | struct named_init ni = {
  1404. | .number = 34,
  1405. | .name = L"Test wide string",
  1406. | .average = 543.34343,
  1407. | };
  1408. |
  1409. | ni.number = 58;
  1410. |
  1411. | int dynamic_array[ni.number];
  1412. | dynamic_array[ni.number - 1] = 543;
  1413. |
  1414. | // work around unused variable warnings
  1415. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  1416. | || dynamic_array[ni.number - 1] != 543);
  1417. |
  1418. | ;
  1419. | return 0;
  1420. | }
  1421. configure:5265: g++ -c conftest.cpp >&5
  1422. conftest.cpp:76:29: error: expected ',' or '...' before 'text'
  1423. conftest.cpp: In function 'int test_restrict(ccp)':
  1424. conftest.cpp:81:30: error: 'text' was not declared in this scope
  1425. conftest.cpp: In function 'int main()':
  1426. conftest.cpp:130:18: error: expected initializer before 'newvar'
  1427. conftest.cpp:138:70: error: invalid conversion from 'void*' to 'incomplete_array*' [-fpermissive]
  1428. conftest.cpp:145:5: error: expected primary-expression before '.' token
  1429. conftest.cpp:146:5: error: expected primary-expression before '.' token
  1430. conftest.cpp:147:5: error: expected primary-expression before '.' token
  1431. conftest.cpp:156:59: error: 'newvar' was not declared in this scope
  1432. configure:5265: $? = 1
  1433. configure: failed program was:
  1434. | /* confdefs.h */
  1435. | #define PACKAGE_NAME "graph-tool"
  1436. | #define PACKAGE_TARNAME "graph-tool"
  1437. | #define PACKAGE_VERSION "2.2.15"
  1438. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1439. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1440. | #define PACKAGE_URL ""
  1441. | #define PACKAGE "graph-tool"
  1442. | #define VERSION "2.2.15"
  1443. | #define STDC_HEADERS 1
  1444. | #define HAVE_SYS_TYPES_H 1
  1445. | #define HAVE_SYS_STAT_H 1
  1446. | #define HAVE_STDLIB_H 1
  1447. | #define HAVE_STRING_H 1
  1448. | #define HAVE_MEMORY_H 1
  1449. | #define HAVE_STRINGS_H 1
  1450. | #define HAVE_INTTYPES_H 1
  1451. | #define HAVE_STDINT_H 1
  1452. | #define HAVE_UNISTD_H 1
  1453. | #define __EXTENSIONS__ 1
  1454. | #define _ALL_SOURCE 1
  1455. | #define _GNU_SOURCE 1
  1456. | #define _POSIX_PTHREAD_SEMANTICS 1
  1457. | #define _TANDEM_SOURCE 1
  1458. | /* end confdefs.h. */
  1459. | #include <stdarg.h>
  1460. | #include <stdbool.h>
  1461. | #include <stdlib.h>
  1462. | #include <wchar.h>
  1463. | #include <stdio.h>
  1464. |
  1465. | // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1466. | #define debug(...) fprintf (stderr, __VA_ARGS__)
  1467. | #define showlist(...) puts (#__VA_ARGS__)
  1468. | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1469. | static void
  1470. | test_varargs_macros (void)
  1471. | {
  1472. | int x = 1234;
  1473. | int y = 5678;
  1474. | debug ("Flag");
  1475. | debug ("X = %d\n", x);
  1476. | showlist (The first, second, and third items.);
  1477. | report (x>y, "x is %d but y is %d", x, y);
  1478. | }
  1479. |
  1480. | // Check long long types.
  1481. | #define BIG64 18446744073709551615ull
  1482. | #define BIG32 4294967295ul
  1483. | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1484. | #if !BIG_OK
  1485. | your preprocessor is broken;
  1486. | #endif
  1487. | #if BIG_OK
  1488. | #else
  1489. | your preprocessor is broken;
  1490. | #endif
  1491. | static long long int bignum = -9223372036854775807LL;
  1492. | static unsigned long long int ubignum = BIG64;
  1493. |
  1494. | struct incomplete_array
  1495. | {
  1496. | int datasize;
  1497. | double data[];
  1498. | };
  1499. |
  1500. | struct named_init {
  1501. | int number;
  1502. | const wchar_t *name;
  1503. | double average;
  1504. | };
  1505. |
  1506. | typedef const char *ccp;
  1507. |
  1508. | static inline int
  1509. | test_restrict (ccp restrict text)
  1510. | {
  1511. | // See if C++-style comments work.
  1512. | // Iterate through items via the restricted pointer.
  1513. | // Also check for declarations in for loops.
  1514. | for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  1515. | continue;
  1516. | return 0;
  1517. | }
  1518. |
  1519. | // Check varargs and va_copy.
  1520. | static void
  1521. | test_varargs (const char *format, ...)
  1522. | {
  1523. | va_list args;
  1524. | va_start (args, format);
  1525. | va_list args_copy;
  1526. | va_copy (args_copy, args);
  1527. |
  1528. | const char *str;
  1529. | int number;
  1530. | float fnumber;
  1531. |
  1532. | while (*format)
  1533. | {
  1534. | switch (*format++)
  1535. | {
  1536. | case 's': // string
  1537. | str = va_arg (args_copy, const char *);
  1538. | break;
  1539. | case 'd': // int
  1540. | number = va_arg (args_copy, int);
  1541. | break;
  1542. | case 'f': // float
  1543. | fnumber = va_arg (args_copy, double);
  1544. | break;
  1545. | default:
  1546. | break;
  1547. | }
  1548. | }
  1549. | va_end (args_copy);
  1550. | va_end (args);
  1551. | }
  1552. |
  1553. | int
  1554. | main ()
  1555. | {
  1556. |
  1557. | // Check bool.
  1558. | _Bool success = false;
  1559. |
  1560. | // Check restrict.
  1561. | if (test_restrict ("String literal") == 0)
  1562. | success = true;
  1563. | char *restrict newvar = "Another string";
  1564. |
  1565. | // Check varargs.
  1566. | test_varargs ("s, d' f .", "string", 65, 34.234);
  1567. | test_varargs_macros ();
  1568. |
  1569. | // Check flexible array members.
  1570. | struct incomplete_array *ia =
  1571. | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1572. | ia->datasize = 10;
  1573. | for (int i = 0; i < ia->datasize; ++i)
  1574. | ia->data[i] = i * 1.234;
  1575. |
  1576. | // Check named initializers.
  1577. | struct named_init ni = {
  1578. | .number = 34,
  1579. | .name = L"Test wide string",
  1580. | .average = 543.34343,
  1581. | };
  1582. |
  1583. | ni.number = 58;
  1584. |
  1585. | int dynamic_array[ni.number];
  1586. | dynamic_array[ni.number - 1] = 543;
  1587. |
  1588. | // work around unused variable warnings
  1589. | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  1590. | || dynamic_array[ni.number - 1] != 543);
  1591. |
  1592. | ;
  1593. | return 0;
  1594. | }
  1595. configure:5281: result: unsupported
  1596. configure:5291: checking for gcc option to accept ISO C89
  1597. configure:5368: result: none needed
  1598. configure:5387: checking for gcc option to accept ISO Standard C
  1599. configure:5398: result: none needed
  1600. configure:5411: checking how to run the C++ preprocessor
  1601. configure:5438: g++ -E conftest.cpp
  1602. configure:5438: $? = 0
  1603. configure:5452: g++ -E conftest.cpp
  1604. conftest.cpp:26:28: fatal error: ac_nonexistent.h: No such file or directory
  1605. compilation terminated.
  1606. configure:5452: $? = 1
  1607. configure: failed program was:
  1608. | /* confdefs.h */
  1609. | #define PACKAGE_NAME "graph-tool"
  1610. | #define PACKAGE_TARNAME "graph-tool"
  1611. | #define PACKAGE_VERSION "2.2.15"
  1612. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1613. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1614. | #define PACKAGE_URL ""
  1615. | #define PACKAGE "graph-tool"
  1616. | #define VERSION "2.2.15"
  1617. | #define STDC_HEADERS 1
  1618. | #define HAVE_SYS_TYPES_H 1
  1619. | #define HAVE_SYS_STAT_H 1
  1620. | #define HAVE_STDLIB_H 1
  1621. | #define HAVE_STRING_H 1
  1622. | #define HAVE_MEMORY_H 1
  1623. | #define HAVE_STRINGS_H 1
  1624. | #define HAVE_INTTYPES_H 1
  1625. | #define HAVE_STDINT_H 1
  1626. | #define HAVE_UNISTD_H 1
  1627. | #define __EXTENSIONS__ 1
  1628. | #define _ALL_SOURCE 1
  1629. | #define _GNU_SOURCE 1
  1630. | #define _POSIX_PTHREAD_SEMANTICS 1
  1631. | #define _TANDEM_SOURCE 1
  1632. | /* end confdefs.h. */
  1633. | #include <ac_nonexistent.h>
  1634. configure:5477: result: g++ -E
  1635. configure:5497: g++ -E conftest.cpp
  1636. configure:5497: $? = 0
  1637. configure:5511: g++ -E conftest.cpp
  1638. conftest.cpp:26:28: fatal error: ac_nonexistent.h: No such file or directory
  1639. compilation terminated.
  1640. configure:5511: $? = 1
  1641. configure: failed program was:
  1642. | /* confdefs.h */
  1643. | #define PACKAGE_NAME "graph-tool"
  1644. | #define PACKAGE_TARNAME "graph-tool"
  1645. | #define PACKAGE_VERSION "2.2.15"
  1646. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1647. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1648. | #define PACKAGE_URL ""
  1649. | #define PACKAGE "graph-tool"
  1650. | #define VERSION "2.2.15"
  1651. | #define STDC_HEADERS 1
  1652. | #define HAVE_SYS_TYPES_H 1
  1653. | #define HAVE_SYS_STAT_H 1
  1654. | #define HAVE_STDLIB_H 1
  1655. | #define HAVE_STRING_H 1
  1656. | #define HAVE_MEMORY_H 1
  1657. | #define HAVE_STRINGS_H 1
  1658. | #define HAVE_INTTYPES_H 1
  1659. | #define HAVE_STDINT_H 1
  1660. | #define HAVE_UNISTD_H 1
  1661. | #define __EXTENSIONS__ 1
  1662. | #define _ALL_SOURCE 1
  1663. | #define _GNU_SOURCE 1
  1664. | #define _POSIX_PTHREAD_SEMANTICS 1
  1665. | #define _TANDEM_SOURCE 1
  1666. | /* end confdefs.h. */
  1667. | #include <ac_nonexistent.h>
  1668. configure:5540: checking for ANSI C header files
  1669. configure:5644: result: yes
  1670. configure:5712: checking build system type
  1671. configure:5726: result: i686-pc-mingw32
  1672. configure:5746: checking host system type
  1673. configure:5759: result: i686-pc-mingw32
  1674. configure:5800: checking how to print strings
  1675. configure:5827: result: printf
  1676. configure:5848: checking for a sed that does not truncate output
  1677. configure:5912: result: /bin/sed
  1678. configure:5930: checking for fgrep
  1679. configure:5992: result: /bin/grep -F
  1680. configure:6027: checking for ld used by gcc
  1681. configure:6094: result: c:/dev/mingw/mingw32/bin/ld.exe
  1682. configure:6101: checking if the linker (c:/dev/mingw/mingw32/bin/ld.exe) is GNU ld
  1683. configure:6116: result: yes
  1684. configure:6128: checking for BSD- or MS-compatible name lister (nm)
  1685. configure:6177: result: /mingw/bin/nm
  1686. configure:6307: checking the name lister (/mingw/bin/nm) interface
  1687. configure:6314: g++ -c conftest.cpp >&5
  1688. configure:6317: /mingw/bin/nm "conftest.o"
  1689. configure:6320: output
  1690. 00000000 b .bss
  1691. 00000000 d .data
  1692. 00000000 t .text
  1693. 00000000 B _some_variable
  1694. configure:6327: result: BSD nm
  1695. configure:6330: checking whether ln -s works
  1696. configure:6337: result: no, using cp -p
  1697. configure:6342: checking the maximum length of command line arguments
  1698. configure:6467: result: 8192
  1699. configure:6484: checking whether the shell understands some XSI constructs
  1700. configure:6494: result: yes
  1701. configure:6498: checking whether the shell understands "+="
  1702. configure:6504: result: yes
  1703. configure:6539: checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format
  1704. configure:6579: result: func_convert_file_msys_to_w32
  1705. configure:6586: checking how to convert i686-pc-mingw32 file names to toolchain format
  1706. configure:6606: result: func_convert_file_msys_to_w32
  1707. configure:6613: checking for c:/dev/mingw/mingw32/bin/ld.exe option to reload object files
  1708. configure:6620: result: -r
  1709. configure:6694: checking for objdump
  1710. configure:6710: found /mingw/bin/objdump
  1711. configure:6721: result: objdump
  1712. configure:6753: checking how to recognize dependent libraries
  1713. configure:6955: result: file_magic ^x86 archive import|^x86 DLL
  1714. configure:7040: checking for dlltool
  1715. configure:7056: found /mingw/bin/dlltool
  1716. configure:7067: result: dlltool
  1717. configure:7100: checking how to associate runtime and link libraries
  1718. configure:7127: result: func_cygming_dll_for_implib
  1719. configure:7187: checking for ar
  1720. configure:7203: found /mingw/bin/ar
  1721. configure:7214: result: ar
  1722. configure:7251: checking for archiver @FILE support
  1723. configure:7268: g++ -c conftest.cpp >&5
  1724. configure:7268: $? = 0
  1725. configure:7271: ar cru libconftest.a @conftest.lst >&5
  1726. configure:7274: $? = 0
  1727. configure:7279: ar cru libconftest.a @conftest.lst >&5
  1728. C:\dev\MinGW\bin\ar.exe: conftest.o: No such file or directory
  1729. configure:7282: $? = 1
  1730. configure:7294: result: @
  1731. configure:7352: checking for strip
  1732. configure:7368: found /mingw/bin/strip
  1733. configure:7379: result: strip
  1734. configure:7451: checking for ranlib
  1735. configure:7467: found /mingw/bin/ranlib
  1736. configure:7478: result: ranlib
  1737. configure:7580: checking command to parse /mingw/bin/nm output from gcc object
  1738. configure:7699: g++ -c conftest.cpp >&5
  1739. configure:7702: $? = 0
  1740. configure:7706: /mingw/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)\{0,1\}$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
  1741. configure:7709: $? = 0
  1742. cannot find nm_test_var in conftest.nm
  1743. configure:7699: g++ -c conftest.cpp >&5
  1744. configure:7702: $? = 0
  1745. configure:7706: /mingw/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)\{0,1\}$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
  1746. configure:7709: $? = 0
  1747. configure:7775: g++ -o conftest.exe -LC:/python27/libs conftest.cpp conftstm.o >&5
  1748. configure:7778: $? = 0
  1749. configure:7816: result: ok
  1750. configure:7853: checking for sysroot
  1751. configure:7883: result: no
  1752. configure:8126: checking for mt
  1753. configure:8156: result: no
  1754. configure:8176: checking if : is a manifest tool
  1755. configure:8182: : '-?'
  1756. configure:8190: result: no
  1757. configure:8819: checking for dlfcn.h
  1758. configure:8819: g++ -c conftest.cpp >&5
  1759. conftest.cpp:61:19: fatal error: dlfcn.h: No such file or directory
  1760. compilation terminated.
  1761. configure:8819: $? = 1
  1762. configure: failed program was:
  1763. | /* confdefs.h */
  1764. | #define PACKAGE_NAME "graph-tool"
  1765. | #define PACKAGE_TARNAME "graph-tool"
  1766. | #define PACKAGE_VERSION "2.2.15"
  1767. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1768. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1769. | #define PACKAGE_URL ""
  1770. | #define PACKAGE "graph-tool"
  1771. | #define VERSION "2.2.15"
  1772. | #define STDC_HEADERS 1
  1773. | #define HAVE_SYS_TYPES_H 1
  1774. | #define HAVE_SYS_STAT_H 1
  1775. | #define HAVE_STDLIB_H 1
  1776. | #define HAVE_STRING_H 1
  1777. | #define HAVE_MEMORY_H 1
  1778. | #define HAVE_STRINGS_H 1
  1779. | #define HAVE_INTTYPES_H 1
  1780. | #define HAVE_STDINT_H 1
  1781. | #define HAVE_UNISTD_H 1
  1782. | #define __EXTENSIONS__ 1
  1783. | #define _ALL_SOURCE 1
  1784. | #define _GNU_SOURCE 1
  1785. | #define _POSIX_PTHREAD_SEMANTICS 1
  1786. | #define _TANDEM_SOURCE 1
  1787. | #define STDC_HEADERS 1
  1788. | /* end confdefs.h. */
  1789. | #include <stdio.h>
  1790. | #ifdef HAVE_SYS_TYPES_H
  1791. | # include <sys/types.h>
  1792. | #endif
  1793. | #ifdef HAVE_SYS_STAT_H
  1794. | # include <sys/stat.h>
  1795. | #endif
  1796. | #ifdef STDC_HEADERS
  1797. | # include <stdlib.h>
  1798. | # include <stddef.h>
  1799. | #else
  1800. | # ifdef HAVE_STDLIB_H
  1801. | # include <stdlib.h>
  1802. | # endif
  1803. | #endif
  1804. | #ifdef HAVE_STRING_H
  1805. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  1806. | # include <memory.h>
  1807. | # endif
  1808. | # include <string.h>
  1809. | #endif
  1810. | #ifdef HAVE_STRINGS_H
  1811. | # include <strings.h>
  1812. | #endif
  1813. | #ifdef HAVE_INTTYPES_H
  1814. | # include <inttypes.h>
  1815. | #endif
  1816. | #ifdef HAVE_STDINT_H
  1817. | # include <stdint.h>
  1818. | #endif
  1819. | #ifdef HAVE_UNISTD_H
  1820. | # include <unistd.h>
  1821. | #endif
  1822. |
  1823. | #include <dlfcn.h>
  1824. configure:8819: result: no
  1825. configure:8986: checking for objdir
  1826. configure:9001: result: .libs
  1827. configure:9268: checking if gcc supports -fno-rtti -fno-exceptions
  1828. configure:9286: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
  1829. cc1.exe: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
  1830. configure:9290: $? = 0
  1831. configure:9303: result: no
  1832. configure:9613: checking for gcc option to produce PIC
  1833. configure:9620: result: -DDLL_EXPORT -DPIC
  1834. configure:9628: checking if gcc PIC flag -DDLL_EXPORT -DPIC works
  1835. configure:9646: gcc -c -g -O2 -DDLL_EXPORT -DPIC -DPIC conftest.c >&5
  1836. configure:9650: $? = 0
  1837. configure:9663: result: yes
  1838. configure:9692: checking if gcc static flag -static works
  1839. configure:9720: result: yes
  1840. configure:9735: checking if gcc supports -c -o file.o
  1841. configure:9756: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
  1842. configure:9760: $? = 0
  1843. configure:9782: result: yes
  1844. configure:9790: checking if gcc supports -c -o file.o
  1845. configure:9837: result: yes
  1846. configure:9870: checking whether the gcc linker (c:/dev/mingw/mingw32/bin/ld.exe) supports shared libraries
  1847. configure:11028: result: yes
  1848. configure:11065: checking whether -lc should be explicitly linked in
  1849. configure:11073: gcc -c -g -O2 conftest.c >&5
  1850. configure:11076: $? = 0
  1851. configure:11091: gcc -shared conftest.o -v -o ./conftest -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1
  1852. configure:11094: $? = 1
  1853. configure:11108: result: yes
  1854. configure:11273: checking dynamic linker characteristics
  1855. configure:12022: result: Win32 ld.exe
  1856. configure:12129: checking how to hardcode library paths into programs
  1857. configure:12154: result: immediate
  1858. configure:12694: checking whether stripping libraries is possible
  1859. configure:12699: result: yes
  1860. configure:12734: checking if libtool supports shared libraries
  1861. configure:12736: result: yes
  1862. configure:12739: checking whether to build shared libraries
  1863. configure:12760: result: yes
  1864. configure:12763: checking whether to build static libraries
  1865. configure:12767: result: no
  1866. configure:12790: checking how to run the C++ preprocessor
  1867. configure:12856: result: g++ -E
  1868. configure:12876: g++ -E conftest.cpp
  1869. configure:12876: $? = 0
  1870. configure:12890: g++ -E conftest.cpp
  1871. conftest.cpp:28:28: fatal error: ac_nonexistent.h: No such file or directory
  1872. compilation terminated.
  1873. configure:12890: $? = 1
  1874. configure: failed program was:
  1875. | /* confdefs.h */
  1876. | #define PACKAGE_NAME "graph-tool"
  1877. | #define PACKAGE_TARNAME "graph-tool"
  1878. | #define PACKAGE_VERSION "2.2.15"
  1879. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1880. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1881. | #define PACKAGE_URL ""
  1882. | #define PACKAGE "graph-tool"
  1883. | #define VERSION "2.2.15"
  1884. | #define STDC_HEADERS 1
  1885. | #define HAVE_SYS_TYPES_H 1
  1886. | #define HAVE_SYS_STAT_H 1
  1887. | #define HAVE_STDLIB_H 1
  1888. | #define HAVE_STRING_H 1
  1889. | #define HAVE_MEMORY_H 1
  1890. | #define HAVE_STRINGS_H 1
  1891. | #define HAVE_INTTYPES_H 1
  1892. | #define HAVE_STDINT_H 1
  1893. | #define HAVE_UNISTD_H 1
  1894. | #define __EXTENSIONS__ 1
  1895. | #define _ALL_SOURCE 1
  1896. | #define _GNU_SOURCE 1
  1897. | #define _POSIX_PTHREAD_SEMANTICS 1
  1898. | #define _TANDEM_SOURCE 1
  1899. | #define STDC_HEADERS 1
  1900. | #define LT_OBJDIR ".libs/"
  1901. | /* end confdefs.h. */
  1902. | #include <ac_nonexistent.h>
  1903. configure:13060: checking for ld used by g++
  1904. configure:13127: result: c:/dev/mingw/mingw32/bin/ld.exe
  1905. configure:13134: checking if the linker (c:/dev/mingw/mingw32/bin/ld.exe) is GNU ld
  1906. configure:13149: result: yes
  1907. configure:13204: checking whether the g++ linker (c:/dev/mingw/mingw32/bin/ld.exe) supports shared libraries
  1908. configure:14208: result: yes
  1909. configure:14243: g++ -c conftest.cpp >&5
  1910. configure:14246: $? = 0
  1911. configure:14766: checking for g++ option to produce PIC
  1912. configure:14773: result: -DDLL_EXPORT -DPIC
  1913. configure:14781: checking if g++ PIC flag -DDLL_EXPORT -DPIC works
  1914. configure:14799: g++ -c -DDLL_EXPORT -DPIC -DPIC conftest.cpp >&5
  1915. configure:14803: $? = 0
  1916. configure:14816: result: yes
  1917. configure:14839: checking if g++ static flag -static works
  1918. configure:14867: result: yes
  1919. configure:14879: checking if g++ supports -c -o file.o
  1920. configure:14900: g++ -c -o out/conftest2.o conftest.cpp >&5
  1921. configure:14904: $? = 0
  1922. configure:14926: result: yes
  1923. configure:14931: checking if g++ supports -c -o file.o
  1924. configure:14978: result: yes
  1925. configure:15008: checking whether the g++ linker (c:/dev/mingw/mingw32/bin/ld.exe) supports shared libraries
  1926. configure:15042: result: yes
  1927. configure:15185: checking dynamic linker characteristics
  1928. configure:15868: result: Win32 ld.exe
  1929. configure:15921: checking how to hardcode library paths into programs
  1930. configure:15946: result: immediate
  1931. configure:16006: checking target system type
  1932. configure:16019: result: i686-pc-mingw32
  1933. configure:16049: checking whether to enable debug info...
  1934. configure:16067: result: no
  1935. configure:16077: checking whether to enable function inlining...
  1936. configure:16097: result: yes
  1937. configure:16112: checking whether to enable optimizations...
  1938. configure:16128: result: yes
  1939. configure:16134: checking whether to enable symbol visibility manipulation...
  1940. configure:16150: result: yes
  1941. configure:16158: checking whether to enable graph filtering...
  1942. configure:16175: result: yes
  1943. configure:16183: checking whether to enable parallel algorithms with openmp...
  1944. configure:16204: result: no
  1945. configure:16217: checking for main in -lm
  1946. configure:16236: g++ -o conftest.exe -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -LC:/python27/libs conftest.cpp -lm >&5
  1947. configure:16236: $? = 0
  1948. configure:16245: result: yes
  1949. configure:16257: checking for main in -lbz2
  1950. configure:16276: g++ -o conftest.exe -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -LC:/python27/libs conftest.cpp -lbz2 -lm >&5
  1951. configure:16276: $? = 0
  1952. configure:16285: result: yes
  1953. configure:16297: checking for main in -lexpat
  1954. configure:16316: g++ -o conftest.exe -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -LC:/python27/libs conftest.cpp -lexpat -lbz2 -lm >&5
  1955. c:/dev/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lexpat
  1956. collect2: ld returned 1 exit status
  1957. configure:16316: $? = 1
  1958. configure: failed program was:
  1959. | /* confdefs.h */
  1960. | #define PACKAGE_NAME "graph-tool"
  1961. | #define PACKAGE_TARNAME "graph-tool"
  1962. | #define PACKAGE_VERSION "2.2.15"
  1963. | #define PACKAGE_STRING "graph-tool 2.2.15"
  1964. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  1965. | #define PACKAGE_URL ""
  1966. | #define PACKAGE "graph-tool"
  1967. | #define VERSION "2.2.15"
  1968. | #define STDC_HEADERS 1
  1969. | #define HAVE_SYS_TYPES_H 1
  1970. | #define HAVE_SYS_STAT_H 1
  1971. | #define HAVE_STDLIB_H 1
  1972. | #define HAVE_STRING_H 1
  1973. | #define HAVE_MEMORY_H 1
  1974. | #define HAVE_STRINGS_H 1
  1975. | #define HAVE_INTTYPES_H 1
  1976. | #define HAVE_STDINT_H 1
  1977. | #define HAVE_UNISTD_H 1
  1978. | #define __EXTENSIONS__ 1
  1979. | #define _ALL_SOURCE 1
  1980. | #define _GNU_SOURCE 1
  1981. | #define _POSIX_PTHREAD_SEMANTICS 1
  1982. | #define _TANDEM_SOURCE 1
  1983. | #define STDC_HEADERS 1
  1984. | #define LT_OBJDIR ".libs/"
  1985. | #define HAVE_LIBM 1
  1986. | #define HAVE_LIBBZ2 1
  1987. | /* end confdefs.h. */
  1988. |
  1989. |
  1990. | int
  1991. | main ()
  1992. | {
  1993. | return main ();
  1994. | ;
  1995. | return 0;
  1996. | }
  1997. configure:16325: result: no
  1998. configure:16346: checking for python
  1999. configure:16364: found /c/python27/python
  2000. configure:16376: result: /c/python27/python
  2001. configure:16392: checking for a version of Python >= '2.1.0'
  2002. configure:16418: result: yes
  2003. configure:16426: checking for a version of Python 2.5
  2004. configure:16432: result: yes
  2005. configure:16449: checking for the distutils Python package
  2006. configure:16453: result: yes
  2007. configure:16467: checking for Python include path
  2008. configure:16477: result: -Ic:\python27\include
  2009. configure:16484: checking for Python library path
  2010. configure:16506: result: -Lc:\python27\Lib -lpython27
  2011. configure:16513: checking for Python site-packages path
  2012. configure:16519: result: c:\python27\Lib\site-packages
  2013. configure:16526: checking python extra libraries
  2014. configure:16533: result: None None
  2015. configure:16540: checking python extra linking flags
  2016. configure:16547: result: None
  2017. configure:16554: checking consistency of all components of python development environment
  2018. configure:16580: gcc -o conftest.exe -g -O2 -Ic:\python27\include -LC:/python27/libs conftest.c -Lc:\python27\Lib -lpython27 >&5
  2019. configure:16580: $? = 0
  2020. configure:16588: result: yes
  2021. configure:16620: checking for python build information
  2022. configure:16622: result:
  2023. configure:16635: checking for python2.7
  2024. configure:16665: result: no
  2025. configure:16635: checking for python2.6
  2026. configure:16665: result: no
  2027. configure:16635: checking for python2.5
  2028. configure:16665: result: no
  2029. configure:16635: checking for python2.4
  2030. configure:16665: result: no
  2031. configure:16635: checking for python2.3
  2032. configure:16665: result: no
  2033. configure:16635: checking for python2.2
  2034. configure:16665: result: no
  2035. configure:16635: checking for python2.1
  2036. configure:16665: result: no
  2037. configure:16635: checking for python
  2038. configure:16651: found /c/python27/python
  2039. configure:16662: result: python
  2040. configure:16676: checking for main in -lpython
  2041. configure:16695: g++ -o conftest.exe -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -LC:/python27/libs conftest.cpp -lpython >&5
  2042. c:/dev/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lpython
  2043. collect2: ld returned 1 exit status
  2044. configure:16695: $? = 1
  2045. configure: failed program was:
  2046. | /* confdefs.h */
  2047. | #define PACKAGE_NAME "graph-tool"
  2048. | #define PACKAGE_TARNAME "graph-tool"
  2049. | #define PACKAGE_VERSION "2.2.15"
  2050. | #define PACKAGE_STRING "graph-tool 2.2.15"
  2051. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  2052. | #define PACKAGE_URL ""
  2053. | #define PACKAGE "graph-tool"
  2054. | #define VERSION "2.2.15"
  2055. | #define STDC_HEADERS 1
  2056. | #define HAVE_SYS_TYPES_H 1
  2057. | #define HAVE_SYS_STAT_H 1
  2058. | #define HAVE_STDLIB_H 1
  2059. | #define HAVE_STRING_H 1
  2060. | #define HAVE_MEMORY_H 1
  2061. | #define HAVE_STRINGS_H 1
  2062. | #define HAVE_INTTYPES_H 1
  2063. | #define HAVE_STDINT_H 1
  2064. | #define HAVE_UNISTD_H 1
  2065. | #define __EXTENSIONS__ 1
  2066. | #define _ALL_SOURCE 1
  2067. | #define _GNU_SOURCE 1
  2068. | #define _POSIX_PTHREAD_SEMANTICS 1
  2069. | #define _TANDEM_SOURCE 1
  2070. | #define STDC_HEADERS 1
  2071. | #define LT_OBJDIR ".libs/"
  2072. | #define HAVE_LIBM 1
  2073. | #define HAVE_LIBBZ2 1
  2074. | /* end confdefs.h. */
  2075. |
  2076. |
  2077. | int
  2078. | main ()
  2079. | {
  2080. | return main ();
  2081. | ;
  2082. | return 0;
  2083. | }
  2084. configure:16705: result: no
  2085. configure:16714: checking python/Python.h usability
  2086. configure:16714: g++ -c -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas conftest.cpp >&5
  2087. conftest.cpp:63:27: fatal error: python/Python.h: No such file or directory
  2088. compilation terminated.
  2089. configure:16714: $? = 1
  2090. configure: failed program was:
  2091. | /* confdefs.h */
  2092. | #define PACKAGE_NAME "graph-tool"
  2093. | #define PACKAGE_TARNAME "graph-tool"
  2094. | #define PACKAGE_VERSION "2.2.15"
  2095. | #define PACKAGE_STRING "graph-tool 2.2.15"
  2096. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  2097. | #define PACKAGE_URL ""
  2098. | #define PACKAGE "graph-tool"
  2099. | #define VERSION "2.2.15"
  2100. | #define STDC_HEADERS 1
  2101. | #define HAVE_SYS_TYPES_H 1
  2102. | #define HAVE_SYS_STAT_H 1
  2103. | #define HAVE_STDLIB_H 1
  2104. | #define HAVE_STRING_H 1
  2105. | #define HAVE_MEMORY_H 1
  2106. | #define HAVE_STRINGS_H 1
  2107. | #define HAVE_INTTYPES_H 1
  2108. | #define HAVE_STDINT_H 1
  2109. | #define HAVE_UNISTD_H 1
  2110. | #define __EXTENSIONS__ 1
  2111. | #define _ALL_SOURCE 1
  2112. | #define _GNU_SOURCE 1
  2113. | #define _POSIX_PTHREAD_SEMANTICS 1
  2114. | #define _TANDEM_SOURCE 1
  2115. | #define STDC_HEADERS 1
  2116. | #define LT_OBJDIR ".libs/"
  2117. | #define HAVE_LIBM 1
  2118. | #define HAVE_LIBBZ2 1
  2119. | /* end confdefs.h. */
  2120. | #include <stdio.h>
  2121. | #ifdef HAVE_SYS_TYPES_H
  2122. | # include <sys/types.h>
  2123. | #endif
  2124. | #ifdef HAVE_SYS_STAT_H
  2125. | # include <sys/stat.h>
  2126. | #endif
  2127. | #ifdef STDC_HEADERS
  2128. | # include <stdlib.h>
  2129. | # include <stddef.h>
  2130. | #else
  2131. | # ifdef HAVE_STDLIB_H
  2132. | # include <stdlib.h>
  2133. | # endif
  2134. | #endif
  2135. | #ifdef HAVE_STRING_H
  2136. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  2137. | # include <memory.h>
  2138. | # endif
  2139. | # include <string.h>
  2140. | #endif
  2141. | #ifdef HAVE_STRINGS_H
  2142. | # include <strings.h>
  2143. | #endif
  2144. | #ifdef HAVE_INTTYPES_H
  2145. | # include <inttypes.h>
  2146. | #endif
  2147. | #ifdef HAVE_STDINT_H
  2148. | # include <stdint.h>
  2149. | #endif
  2150. | #ifdef HAVE_UNISTD_H
  2151. | # include <unistd.h>
  2152. | #endif
  2153. | #include <python/Python.h>
  2154. configure:16714: result: no
  2155. configure:16714: checking python/Python.h presence
  2156. configure:16714: g++ -E conftest.cpp
  2157. conftest.cpp:30:27: fatal error: python/Python.h: No such file or directory
  2158. compilation terminated.
  2159. configure:16714: $? = 1
  2160. configure: failed program was:
  2161. | /* confdefs.h */
  2162. | #define PACKAGE_NAME "graph-tool"
  2163. | #define PACKAGE_TARNAME "graph-tool"
  2164. | #define PACKAGE_VERSION "2.2.15"
  2165. | #define PACKAGE_STRING "graph-tool 2.2.15"
  2166. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  2167. | #define PACKAGE_URL ""
  2168. | #define PACKAGE "graph-tool"
  2169. | #define VERSION "2.2.15"
  2170. | #define STDC_HEADERS 1
  2171. | #define HAVE_SYS_TYPES_H 1
  2172. | #define HAVE_SYS_STAT_H 1
  2173. | #define HAVE_STDLIB_H 1
  2174. | #define HAVE_STRING_H 1
  2175. | #define HAVE_MEMORY_H 1
  2176. | #define HAVE_STRINGS_H 1
  2177. | #define HAVE_INTTYPES_H 1
  2178. | #define HAVE_STDINT_H 1
  2179. | #define HAVE_UNISTD_H 1
  2180. | #define __EXTENSIONS__ 1
  2181. | #define _ALL_SOURCE 1
  2182. | #define _GNU_SOURCE 1
  2183. | #define _POSIX_PTHREAD_SEMANTICS 1
  2184. | #define _TANDEM_SOURCE 1
  2185. | #define STDC_HEADERS 1
  2186. | #define LT_OBJDIR ".libs/"
  2187. | #define HAVE_LIBM 1
  2188. | #define HAVE_LIBBZ2 1
  2189. | /* end confdefs.h. */
  2190. | #include <python/Python.h>
  2191. configure:16714: result: no
  2192. configure:16714: checking for python/Python.h
  2193. configure:16714: result: no
  2194. configure:16739: result: results of the Python check:
  2195. configure:16741: result: Binary: python
  2196. configure:16743: result: Library: no
  2197. configure:16745: result: Include Dir: no
  2198. configure:16763: checking whether python version >= 2.5
  2199. configure:16774: python -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
  2200. configure:16777: $? = 0
  2201. configure:16779: result: yes
  2202. configure:16870: checking for python version
  2203. configure:16877: result: 2.7
  2204. configure:16889: checking for python platform
  2205. configure:16896: result: win32
  2206. configure:16903: checking for python script directory
  2207. configure:16932: result: ${prefix}\Lib\site-packages
  2208. configure:16941: checking for python extension module directory
  2209. configure:16970: result: ${exec_prefix}\Lib\site-packages
  2210. configure:17034: checking for boostlib >= 1.38.0
  2211. configure:17088: g++ -c -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -Ic:\python27\include -IC:/boost/include conftest.cpp >&5
  2212. configure:17088: $? = 0
  2213. configure:17090: result: yes
  2214. configure:17224: checking whether the Boost::Python library is available
  2215. configure:17254: g++ -c -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -Ic:\python27\include conftest.cpp >&5
  2216. conftest.cpp:32:36: fatal error: boost/python/module.hpp: No such file or directory
  2217. compilation terminated.
  2218. configure:17254: $? = 1
  2219. configure: failed program was:
  2220. | /* confdefs.h */
  2221. | #define PACKAGE_NAME "graph-tool"
  2222. | #define PACKAGE_TARNAME "graph-tool"
  2223. | #define PACKAGE_VERSION "2.2.15"
  2224. | #define PACKAGE_STRING "graph-tool 2.2.15"
  2225. | #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  2226. | #define PACKAGE_URL ""
  2227. | #define PACKAGE "graph-tool"
  2228. | #define VERSION "2.2.15"
  2229. | #define STDC_HEADERS 1
  2230. | #define HAVE_SYS_TYPES_H 1
  2231. | #define HAVE_SYS_STAT_H 1
  2232. | #define HAVE_STDLIB_H 1
  2233. | #define HAVE_STRING_H 1
  2234. | #define HAVE_MEMORY_H 1
  2235. | #define HAVE_STRINGS_H 1
  2236. | #define HAVE_INTTYPES_H 1
  2237. | #define HAVE_STDINT_H 1
  2238. | #define HAVE_UNISTD_H 1
  2239. | #define __EXTENSIONS__ 1
  2240. | #define _ALL_SOURCE 1
  2241. | #define _GNU_SOURCE 1
  2242. | #define _POSIX_PTHREAD_SEMANTICS 1
  2243. | #define _TANDEM_SOURCE 1
  2244. | #define STDC_HEADERS 1
  2245. | #define LT_OBJDIR ".libs/"
  2246. | #define HAVE_LIBM 1
  2247. | #define HAVE_LIBBZ2 1
  2248. | #define HAVE_BOOST /**/
  2249. | /* end confdefs.h. */
  2250. |
  2251. | #include <boost/python/module.hpp>
  2252. | using namespace boost::python;
  2253. | BOOST_PYTHON_MODULE(test) { throw "Boost::Python test."; }
  2254. | int
  2255. | main ()
  2256. | {
  2257. | return 0;
  2258. | ;
  2259. | return 0;
  2260. | }
  2261. configure:17269: result: no
  2262. configure:17333: error: No usable boost::python found
  2263.  
  2264. ## ---------------- ##
  2265. ## Cache variables. ##
  2266. ## ---------------- ##
  2267.  
  2268. ac_cv_boost_python=no
  2269. ac_cv_build=i686-pc-mingw32
  2270. ac_cv_c_compiler_gnu=yes
  2271. ac_cv_cxx_compiler_gnu=yes
  2272. ac_cv_env_CCC_set=
  2273. ac_cv_env_CCC_value=
  2274. ac_cv_env_CC_set=
  2275. ac_cv_env_CC_value=
  2276. ac_cv_env_CFLAGS_set=
  2277. ac_cv_env_CFLAGS_value=
  2278. ac_cv_env_CPPFLAGS_set=
  2279. ac_cv_env_CPPFLAGS_value=
  2280. ac_cv_env_CPP_set=
  2281. ac_cv_env_CPP_value=
  2282. ac_cv_env_CXXCPP_set=
  2283. ac_cv_env_CXXCPP_value=
  2284. ac_cv_env_CXXFLAGS_set=
  2285. ac_cv_env_CXXFLAGS_value=
  2286. ac_cv_env_CXX_set=
  2287. ac_cv_env_CXX_value=
  2288. ac_cv_env_LDFLAGS_set=set
  2289. ac_cv_env_LDFLAGS_value=-LC:/python27/libs
  2290. ac_cv_env_LIBS_set=
  2291. ac_cv_env_LIBS_value=
  2292. ac_cv_env_PYTHON_VERSION_set=
  2293. ac_cv_env_PYTHON_VERSION_value=
  2294. ac_cv_env_build_alias_set=
  2295. ac_cv_env_build_alias_value=
  2296. ac_cv_env_host_alias_set=
  2297. ac_cv_env_host_alias_value=
  2298. ac_cv_env_target_alias_set=
  2299. ac_cv_env_target_alias_value=
  2300. ac_cv_exeext=.exe
  2301. ac_cv_header_dlfcn_h=no
  2302. ac_cv_header_inttypes_h=yes
  2303. ac_cv_header_memory_h=yes
  2304. ac_cv_header_minix_config_h=no
  2305. ac_cv_header_python_Python_h=no
  2306. ac_cv_header_stdc=yes
  2307. ac_cv_header_stdint_h=yes
  2308. ac_cv_header_stdlib_h=yes
  2309. ac_cv_header_string_h=yes
  2310. ac_cv_header_strings_h=yes
  2311. ac_cv_header_sys_stat_h=yes
  2312. ac_cv_header_sys_types_h=yes
  2313. ac_cv_header_unistd_h=yes
  2314. ac_cv_host=i686-pc-mingw32
  2315. ac_cv_lib_bz2_main=yes
  2316. ac_cv_lib_expat_main=no
  2317. ac_cv_lib_m_main=yes
  2318. ac_cv_lib_python___main=no
  2319. ac_cv_objext=o
  2320. ac_cv_path_EGREP='/bin/grep -E'
  2321. ac_cv_path_FGREP='/bin/grep -F'
  2322. ac_cv_path_GREP=/bin/grep
  2323. ac_cv_path_PYTHON=/c/python27/python
  2324. ac_cv_path_SED=/bin/sed
  2325. ac_cv_path_install='/bin/install -c'
  2326. ac_cv_path_mkdir=/bin/mkdir
  2327. ac_cv_prog_AWK=gawk
  2328. ac_cv_prog_CPP='gcc -E'
  2329. ac_cv_prog_CXXCPP='g++ -E'
  2330. ac_cv_prog_PYTHON_BIN=python
  2331. ac_cv_prog_ac_ct_AR=ar
  2332. ac_cv_prog_ac_ct_CC=gcc
  2333. ac_cv_prog_ac_ct_CXX=g++
  2334. ac_cv_prog_ac_ct_DLLTOOL=dlltool
  2335. ac_cv_prog_ac_ct_OBJDUMP=objdump
  2336. ac_cv_prog_ac_ct_RANLIB=ranlib
  2337. ac_cv_prog_ac_ct_STRIP=strip
  2338. ac_cv_prog_cc_c89=
  2339. ac_cv_prog_cc_c99=no
  2340. ac_cv_prog_cc_g=yes
  2341. ac_cv_prog_cc_gcc_c_o=yes
  2342. ac_cv_prog_cc_stdc=
  2343. ac_cv_prog_cxx_g=yes
  2344. ac_cv_prog_make_make_set=yes
  2345. ac_cv_safe_to_define___extensions__=yes
  2346. ac_cv_search_strerror='none required'
  2347. ac_cv_target=i686-pc-mingw32
  2348. am_cv_CC_dependencies_compiler_type=gcc3
  2349. am_cv_CXX_dependencies_compiler_type=gcc3
  2350. am_cv_python_platform=win32
  2351. am_cv_python_pyexecdir='${exec_prefix}\Lib\site-packages'
  2352. am_cv_python_pythondir='${prefix}\Lib\site-packages'
  2353. am_cv_python_version=2.7
  2354. lt_cv_ar_at_file=@
  2355. lt_cv_archive_cmds_need_lc=yes
  2356. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2357. lt_cv_file_magic_cmd=func_win32_libid
  2358. lt_cv_file_magic_test_file=
  2359. lt_cv_ld_reload_flag=-r
  2360. lt_cv_nm_interface='BSD nm'
  2361. lt_cv_objdir=.libs
  2362. lt_cv_path_LD=c:/dev/mingw/mingw32/bin/ld.exe
  2363. lt_cv_path_LDCXX=c:/dev/mingw/mingw32/bin/ld.exe
  2364. lt_cv_path_NM=/mingw/bin/nm
  2365. lt_cv_path_mainfest_tool=no
  2366. lt_cv_prog_compiler_c_o=yes
  2367. lt_cv_prog_compiler_c_o_CXX=yes
  2368. lt_cv_prog_compiler_pic='-DDLL_EXPORT -DPIC'
  2369. lt_cv_prog_compiler_pic_CXX='-DDLL_EXPORT -DPIC'
  2370. lt_cv_prog_compiler_pic_works=yes
  2371. lt_cv_prog_compiler_pic_works_CXX=yes
  2372. lt_cv_prog_compiler_rtti_exceptions=no
  2373. lt_cv_prog_compiler_static_works=yes
  2374. lt_cv_prog_compiler_static_works_CXX=yes
  2375. lt_cv_prog_gnu_ld=yes
  2376. lt_cv_prog_gnu_ldcxx=yes
  2377. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  2378. lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)
  2379. \{0,1\}$/\1 _\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
  2380. lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
  2381. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
  2382. lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
  2383. lt_cv_sys_max_cmd_len=8192
  2384. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  2385. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  2386.  
  2387. ## ----------------- ##
  2388. ## Output variables. ##
  2389. ## ----------------- ##
  2390.  
  2391. ACLOCAL='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run aclocal-1.11'
  2392. AMDEPBACKSLASH='\'
  2393. AMDEP_FALSE='#'
  2394. AMDEP_TRUE=''
  2395. AMTAR='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run tar'
  2396. AM_BACKSLASH='\'
  2397. AM_DEFAULT_VERBOSITY='0'
  2398. AR='ar'
  2399. AUTOCONF='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run autoconf'
  2400. AUTOHEADER='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run autoheader'
  2401. AUTOMAKE='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run automake-1.11'
  2402. AWK='gawk'
  2403. BOOST_CPPFLAGS='-IC:/boost/include'
  2404. BOOST_GRAPH_LIB=''
  2405. BOOST_IOSTREAMS_LIB=''
  2406. BOOST_LDFLAGS='-LC:/boost/lib'
  2407. BOOST_PYTHON_LIB=''
  2408. BOOST_REGEX_LIB=''
  2409. CC='gcc'
  2410. CCDEPMODE='depmode=gcc3'
  2411. CFLAGS='-g -O2'
  2412. CGAL_FLAGS=''
  2413. CGAL_LIBADD=''
  2414. CPP='gcc -E'
  2415. CPPFLAGS=' -Ic:\python27\include'
  2416. CXX='g++'
  2417. CXXCPP='g++ -E'
  2418. CXXDEPMODE='depmode=gcc3'
  2419. CXXFLAGS=' -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas'
  2420. CYGPATH_W='echo'
  2421. DEFS=''
  2422. DEPDIR='.deps'
  2423. DLLTOOL='dlltool'
  2424. DSYMUTIL=''
  2425. DUMPBIN=''
  2426. ECHO_C=''
  2427. ECHO_N='-n'
  2428. ECHO_T=''
  2429. EGREP='/bin/grep -E'
  2430. EXEEXT='.exe'
  2431. FGREP='/bin/grep -F'
  2432. GRAPH_TOOL_VERSION_MAJOR='2'
  2433. GRAPH_TOOL_VERSION_MICRO='15'
  2434. GRAPH_TOOL_VERSION_MINOR='2'
  2435. GREP='/bin/grep'
  2436. INSTALL_DATA='${INSTALL} -m 644'
  2437. INSTALL_PROGRAM='${INSTALL}'
  2438. INSTALL_SCRIPT='${INSTALL}'
  2439. INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
  2440. LD='c:/dev/mingw/mingw32/bin/ld.exe'
  2441. LDFLAGS='-LC:/python27/libs -Lc:\python27\Lib -lpython27'
  2442. LIBOBJS=''
  2443. LIBS=''
  2444. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  2445. LIPO=''
  2446. LN_S='cp -p'
  2447. LTLIBOBJS=''
  2448. MAKEINFO='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/missing --run makeinfo'
  2449. MANIFEST_TOOL=':'
  2450. MKDIR_P='/bin/mkdir -p'
  2451. MOD_CPPFLAGS=''
  2452. MOD_DIR=''
  2453. MOD_LDFLAGS=''
  2454. MOD_LIBADD=''
  2455. NM='/mingw/bin/nm'
  2456. NMEDIT=''
  2457. NO_INLINE_FALSE=''
  2458. NO_INLINE_TRUE='#'
  2459. NO_PREFIX_PACKAGE_DATA_DIR=''
  2460. NO_PREFIX_PACKAGE_DOC_DIR=''
  2461. OBJDUMP='objdump'
  2462. OBJEXT='o'
  2463. OPENMP_LDFLAGS=''
  2464. OTOOL64=''
  2465. OTOOL=''
  2466. PACKAGE='graph-tool'
  2467. PACKAGE_BUGREPORT='http://graph-tool.skewed.de'
  2468. PACKAGE_DATA_DIR=''
  2469. PACKAGE_DOC_DIR=''
  2470. PACKAGE_NAME='graph-tool'
  2471. PACKAGE_STRING='graph-tool 2.2.15'
  2472. PACKAGE_TARNAME='graph-tool'
  2473. PACKAGE_URL=''
  2474. PACKAGE_VERSION='2.2.15'
  2475. PATH_SEPARATOR=':'
  2476. PYTHON='python'
  2477. PYTHON_BIN='python'
  2478. PYTHON_CPPFLAGS='-Ic:\python27\include'
  2479. PYTHON_EXEC_PREFIX='${exec_prefix}'
  2480. PYTHON_EXTRA_LDFLAGS='None'
  2481. PYTHON_EXTRA_LIBS='None None'
  2482. PYTHON_INCLUDE_DIR=''
  2483. PYTHON_LDFLAGS='-Lc:\python27\Lib -lpython27'
  2484. PYTHON_LIB=''
  2485. PYTHON_PLATFORM='win32'
  2486. PYTHON_PREFIX='${prefix}'
  2487. PYTHON_SITE_PKG='c:\python27\Lib\site-packages'
  2488. PYTHON_VERSION='2.7'
  2489. RANLIB='ranlib'
  2490. SED='/bin/sed'
  2491. SET_MAKE=''
  2492. SHELL='/bin/sh'
  2493. STRIP='strip'
  2494. VERSION='2.2.15'
  2495. ac_ct_AR='ar'
  2496. ac_ct_CC='gcc'
  2497. ac_ct_CXX='g++'
  2498. ac_ct_DUMPBIN=''
  2499. am__EXEEXT_FALSE=''
  2500. am__EXEEXT_TRUE=''
  2501. am__fastdepCC_FALSE='#'
  2502. am__fastdepCC_TRUE=''
  2503. am__fastdepCXX_FALSE='#'
  2504. am__fastdepCXX_TRUE=''
  2505. am__include='include'
  2506. am__isrc=''
  2507. am__leading_dot='.'
  2508. am__quote=''
  2509. am__tar='${AMTAR} chof - "$$tardir"'
  2510. am__untar='${AMTAR} xf -'
  2511. bindir='${exec_prefix}/bin'
  2512. build='i686-pc-mingw32'
  2513. build_alias=''
  2514. build_cpu='i686'
  2515. build_os='mingw32'
  2516. build_vendor='pc'
  2517. datadir='${datarootdir}'
  2518. datarootdir='${prefix}/share'
  2519. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  2520. dvidir='${docdir}'
  2521. exec_prefix='NONE'
  2522. host='i686-pc-mingw32'
  2523. host_alias=''
  2524. host_cpu='i686'
  2525. host_os='mingw32'
  2526. host_vendor='pc'
  2527. htmldir='${docdir}'
  2528. includedir='${prefix}/include'
  2529. infodir='${datarootdir}/info'
  2530. install_sh='${SHELL} /c/Users/p3trus/Downloads/graph-tool-2.2.15/install-sh'
  2531. libdir='${exec_prefix}/lib'
  2532. libexecdir='${exec_prefix}/libexec'
  2533. localedir='${datarootdir}/locale'
  2534. localstatedir='${prefix}/var'
  2535. mandir='${datarootdir}/man'
  2536. mkdir_p='/bin/mkdir -p'
  2537. oldincludedir='/usr/include'
  2538. pdfdir='${docdir}'
  2539. pkgpyexecdir='${pyexecdir}/graph-tool'
  2540. pkgpythondir='${pythondir}/graph-tool'
  2541. prefix='/usr/local'
  2542. program_transform_name='s,x,x,'
  2543. psdir='${docdir}'
  2544. pyexecdir='${exec_prefix}\Lib\site-packages'
  2545. pythondir='${prefix}\Lib\site-packages'
  2546. sbindir='${exec_prefix}/sbin'
  2547. sharedstatedir='${prefix}/com'
  2548. sysconfdir='${prefix}/etc'
  2549. target='i686-pc-mingw32'
  2550. target_alias=''
  2551. target_cpu='i686'
  2552. target_os='mingw32'
  2553. target_vendor='pc'
  2554.  
  2555. ## ----------- ##
  2556. ## confdefs.h. ##
  2557. ## ----------- ##
  2558.  
  2559. /* confdefs.h */
  2560. #define PACKAGE_NAME "graph-tool"
  2561. #define PACKAGE_TARNAME "graph-tool"
  2562. #define PACKAGE_VERSION "2.2.15"
  2563. #define PACKAGE_STRING "graph-tool 2.2.15"
  2564. #define PACKAGE_BUGREPORT "http://graph-tool.skewed.de"
  2565. #define PACKAGE_URL ""
  2566. #define PACKAGE "graph-tool"
  2567. #define VERSION "2.2.15"
  2568. #define STDC_HEADERS 1
  2569. #define HAVE_SYS_TYPES_H 1
  2570. #define HAVE_SYS_STAT_H 1
  2571. #define HAVE_STDLIB_H 1
  2572. #define HAVE_STRING_H 1
  2573. #define HAVE_MEMORY_H 1
  2574. #define HAVE_STRINGS_H 1
  2575. #define HAVE_INTTYPES_H 1
  2576. #define HAVE_STDINT_H 1
  2577. #define HAVE_UNISTD_H 1
  2578. #define __EXTENSIONS__ 1
  2579. #define _ALL_SOURCE 1
  2580. #define _GNU_SOURCE 1
  2581. #define _POSIX_PTHREAD_SEMANTICS 1
  2582. #define _TANDEM_SOURCE 1
  2583. #define STDC_HEADERS 1
  2584. #define LT_OBJDIR ".libs/"
  2585. #define HAVE_LIBM 1
  2586. #define HAVE_LIBBZ2 1
  2587. #define HAVE_BOOST /**/
  2588.  
  2589. configure: exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement