# HG changeset patch
# User Jean-Pierre Flori <jean-pierre.flor@ssi.gouv.fr>
# Date 1338913552 -7200
# Node ID 27bac2c9cacfd406c6db7a9006465bce6acba3b4
# Parent ae931d3897bf6b247b32884b951ed5f7611a8099
#12173: Replace FLINT by flint for headers' inclusion
diff --git a/module_list.py b/module_list.py
a
|
b
|
|
53 | 53 | # timestamp of the numpy build. |
54 | 54 | numpy_depends = [SAGE_LOCAL + '/lib/python/site-packages/numpy/core/include/numpy/_numpyconfig.h'] |
55 | 55 | |
56 | | flint_depends = [SAGE_INC + 'FLINT/flint.h'] |
| 56 | flint_depends = [SAGE_INC + 'flint/flint.h'] |
57 | 57 | singular_depends = [SAGE_INC + 'libsingular.h', SAGE_INC + 'givaro/givconfig.h'] |
58 | 58 | ginac_depends = [SAGE_INC + 'pynac/ginac.h'] |
59 | 59 | |
… |
… |
|
111 | 111 | sources = ['sage/algebras/quatalg/quaternion_algebra_element.pyx'], |
112 | 112 | language='c++', |
113 | 113 | libraries = ["csage", "flint", "gmp", "gmpxx", "m", "stdc++", "ntl"], |
114 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 114 | include_dirs = [SAGE_INC + 'flint/'], |
115 | 115 | depends = flint_depends), |
116 | 116 | |
117 | 117 | Extension('sage.algebras.quatalg.quaternion_algebra_cython', |
… |
… |
|
365 | 365 | Extension('sage.graphs.matchpoly', |
366 | 366 | sources = ['sage/graphs/matchpoly.pyx'], |
367 | 367 | libraries = ['gmp', 'flint'], |
368 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 368 | include_dirs = [SAGE_INC + 'flint/'], |
369 | 369 | extra_compile_args = ['-std=c99'], |
370 | 370 | depends = flint_depends), |
371 | 371 | |
… |
… |
|
466 | 466 | Extension('sage.groups.perm_gps.partn_ref.automorphism_group_canonical_label', |
467 | 467 | sources = ['sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx'], |
468 | 468 | libraries = ['gmp', 'flint'], |
469 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 469 | include_dirs = [SAGE_INC + 'flint/'], |
470 | 470 | extra_compile_args = ['-std=c99'], |
471 | 471 | depends = flint_depends), |
472 | 472 | |
473 | 473 | Extension('sage.groups.perm_gps.partn_ref.double_coset', |
474 | 474 | sources = ['sage/groups/perm_gps/partn_ref/double_coset.pyx'], |
475 | 475 | libraries = ['gmp', 'flint'], |
476 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 476 | include_dirs = [SAGE_INC + 'flint/'], |
477 | 477 | extra_compile_args = ['-std=c99'], |
478 | 478 | depends = flint_depends), |
479 | 479 | |
480 | 480 | Extension('sage.groups.perm_gps.partn_ref.refinement_binary', |
481 | 481 | sources = ['sage/groups/perm_gps/partn_ref/refinement_binary.pyx'], |
482 | 482 | libraries = ['gmp', 'flint'], |
483 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 483 | include_dirs = [SAGE_INC + 'flint/'], |
484 | 484 | extra_compile_args = ['-std=c99'], |
485 | 485 | depends = flint_depends), |
486 | 486 | |
487 | 487 | Extension('sage.groups.perm_gps.partn_ref.refinement_graphs', |
488 | 488 | sources = ['sage/groups/perm_gps/partn_ref/refinement_graphs.pyx'], |
489 | 489 | libraries = ['gmp', 'flint'], |
490 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 490 | include_dirs = [SAGE_INC + 'flint/'], |
491 | 491 | extra_compile_args = ['-std=c99'], |
492 | 492 | depends = flint_depends), |
493 | 493 | |
494 | 494 | Extension('sage.groups.perm_gps.partn_ref.refinement_lists', |
495 | 495 | sources = ['sage/groups/perm_gps/partn_ref/refinement_lists.pyx'], |
496 | 496 | libraries = ['gmp', 'flint'], |
497 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 497 | include_dirs = [SAGE_INC + 'flint/'], |
498 | 498 | extra_compile_args = ['-std=c99'], |
499 | 499 | depends = flint_depends), |
500 | 500 | |
501 | 501 | Extension('sage.groups.perm_gps.partn_ref.refinement_matrices', |
502 | 502 | sources = ['sage/groups/perm_gps/partn_ref/refinement_matrices.pyx'], |
503 | 503 | libraries = ['gmp', 'flint'], |
504 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 504 | include_dirs = [SAGE_INC + 'flint/'], |
505 | 505 | extra_compile_args = ['-std=c99'], |
506 | 506 | depends = flint_depends), |
507 | 507 | |
508 | 508 | Extension('sage.groups.perm_gps.partn_ref.refinement_python', |
509 | 509 | sources = ['sage/groups/perm_gps/partn_ref/refinement_python.pyx'], |
510 | 510 | libraries = ['gmp', 'flint'], |
511 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 511 | include_dirs = [SAGE_INC + 'flint/'], |
512 | 512 | extra_compile_args = ['-std=c99'], |
513 | 513 | depends = flint_depends), |
514 | 514 | |
… |
… |
|
583 | 583 | Extension('sage.libs.flint.flint', |
584 | 584 | sources = ["sage/libs/flint/flint.pyx"], |
585 | 585 | libraries = ["csage", "flint", "gmp", "gmpxx", "m", "stdc++"], |
586 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 586 | include_dirs = [SAGE_INC + 'flint/'], |
587 | 587 | extra_compile_args=["-std=c99", "-D_XPG6"], |
588 | 588 | depends = flint_depends), |
589 | 589 | |
590 | 590 | Extension('sage.libs.flint.fmpz_poly', |
591 | 591 | sources = ["sage/libs/flint/fmpz_poly.pyx"], |
592 | 592 | libraries = ["csage", "flint", "gmp", "gmpxx", "m", "stdc++"], |
593 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 593 | include_dirs = [SAGE_INC + 'flint/'], |
594 | 594 | extra_compile_args=["-std=c99", "-D_XPG6"], |
595 | 595 | depends = flint_depends), |
596 | 596 | |
… |
… |
|
1139 | 1139 | Extension('sage.modular.modform.eis_series_cython', |
1140 | 1140 | sources = ['sage/modular/modform/eis_series_cython.pyx'], |
1141 | 1141 | libraries = ["gmp", "flint"], |
1142 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1142 | include_dirs = [SAGE_INC + 'flint/'], |
1143 | 1143 | extra_compile_args = ['-std=c99'], |
1144 | 1144 | depends = flint_depends), |
1145 | 1145 | |
1146 | 1146 | Extension('sage.modular.modsym.apply', |
1147 | 1147 | sources = ['sage/modular/modsym/apply.pyx'], |
1148 | 1148 | libraries = ["csage", "flint", "gmp", "gmpxx", "m", "stdc++"], |
1149 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1149 | include_dirs = [SAGE_INC + 'flint/'], |
1150 | 1150 | extra_compile_args=["-std=c99", "-D_XPG6"], |
1151 | 1151 | depends = flint_depends), |
1152 | 1152 | |
… |
… |
|
1156 | 1156 | Extension('sage.modular.modsym.heilbronn', |
1157 | 1157 | sources = ['sage/modular/modsym/heilbronn.pyx'], |
1158 | 1158 | libraries = ["csage", "flint", "gmp", "gmpxx", "m", "stdc++"], |
1159 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1159 | include_dirs = [SAGE_INC + 'flint/'], |
1160 | 1160 | extra_compile_args=["-std=c99", "-D_XPG6"], |
1161 | 1161 | depends = flint_depends), |
1162 | 1162 | |
… |
… |
|
1331 | 1331 | Extension('sage.rings.integer', |
1332 | 1332 | sources = ['sage/rings/integer.pyx'], |
1333 | 1333 | libraries=['ntl', 'pari', 'flint', 'gmp'], |
1334 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1334 | include_dirs = [SAGE_INC + 'flint/'], |
1335 | 1335 | depends = numpy_depends + flint_depends), |
1336 | 1336 | |
1337 | 1337 | Extension('sage.rings.integer_ring', |
… |
… |
|
1353 | 1353 | sources = ['sage/rings/fraction_field_FpT.pyx'], |
1354 | 1354 | libraries = ["csage", "flint", "gmp", "gmpxx", "ntl", "zn_poly"], |
1355 | 1355 | extra_compile_args=["-std=c99", "-D_XPG6"], |
1356 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1356 | include_dirs = [SAGE_INC + 'flint/'], |
1357 | 1357 | depends = flint_depends), |
1358 | 1358 | |
1359 | 1359 | Extension('sage.rings.laurent_series_ring_element', |
… |
… |
|
1623 | 1623 | sources = ['sage/rings/polynomial/polynomial_zmod_flint.pyx'], |
1624 | 1624 | libraries = ["csage", "flint", "gmp", "gmpxx", "ntl", "zn_poly"], |
1625 | 1625 | extra_compile_args=["-std=c99", "-D_XPG6"], |
1626 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1626 | include_dirs = [SAGE_INC + 'flint/'], |
1627 | 1627 | depends = flint_depends), |
1628 | 1628 | |
1629 | 1629 | Extension('sage.rings.polynomial.polynomial_integer_dense_flint', |
1630 | 1630 | sources = ['sage/rings/polynomial/polynomial_integer_dense_flint.pyx'], |
1631 | 1631 | language = 'c++', |
1632 | 1632 | libraries = ["csage", "flint", "ntl", "gmpxx", "gmp"], |
1633 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1633 | include_dirs = [SAGE_INC + 'flint/'], |
1634 | 1634 | depends = flint_depends), |
1635 | 1635 | |
1636 | 1636 | Extension('sage.rings.polynomial.polynomial_integer_dense_ntl', |
… |
… |
|
1644 | 1644 | language = 'c++', |
1645 | 1645 | extra_compile_args=["-std=c99"] + uname_specific('SunOS', [], ['-D_XPG6']), |
1646 | 1646 | libraries = ["csage", "flint", "ntl", "gmpxx", "gmp"], |
1647 | | include_dirs = [SAGE_INC + 'FLINT/', 'sage/libs/flint/'], |
| 1647 | include_dirs = [SAGE_INC + 'flint/', 'sage/libs/flint/'], |
1648 | 1648 | depends = flint_depends), |
1649 | 1649 | |
1650 | 1650 | Extension('sage.rings.polynomial.polynomial_modn_dense_ntl', |
… |
… |
|
1687 | 1687 | depends = [SAGE_INC + 'ratpoints.h', |
1688 | 1688 | SAGE_INC + 'gmp.h'] + |
1689 | 1689 | flint_depends, |
1690 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1690 | include_dirs = [SAGE_INC + 'flint/'], |
1691 | 1691 | libraries = ['flint', 'gmp', 'ratpoints']), |
1692 | 1692 | |
1693 | 1693 | Extension('sage.schemes.hyperelliptic_curves.hypellfrob', |
… |
… |
|
1716 | 1716 | Extension('sage.sets.disjoint_set', |
1717 | 1717 | sources = ['sage/sets/disjoint_set.pyx'], |
1718 | 1718 | libraries = ['gmp', 'flint'], |
1719 | | include_dirs = [SAGE_INC + 'FLINT/'], |
| 1719 | include_dirs = [SAGE_INC + 'flint/'], |
1720 | 1720 | extra_compile_args = ['-std=c99'], |
1721 | 1721 | depends = flint_depends), |
1722 | 1722 | |
diff --git a/sage/groups/perm_gps/partn_ref/data_structures_pxd.pxi b/sage/groups/perm_gps/partn_ref/data_structures_pxd.pxi
a
|
b
|
|
13 | 13 | cdef extern from "stdlib.h": |
14 | 14 | int rand() |
15 | 15 | |
16 | | cdef extern from "FLINT/ulong_extras.h": |
| 16 | cdef extern from "flint/ulong_extras.h": |
17 | 17 | int n_is_prime(unsigned long n) |
18 | 18 | |
19 | 19 | cdef struct OrbitPartition: |
diff --git a/sage/libs/flint/flint.pxd b/sage/libs/flint/flint.pxd
a
|
b
|
|
1 | | cdef extern from "FLINT/flint.h": |
| 1 | cdef extern from "flint/flint.h": |
2 | 2 | |
3 | 3 | cdef long FLINT_BITS |
4 | 4 | cdef long FLINT_D_BITS |
diff --git a/sage/libs/flint/fmpz.pxi b/sage/libs/flint/fmpz.pxi
a
|
b
|
|
1 | 1 | include "../ntl/decl.pxi" |
2 | 2 | |
3 | | cdef extern from "FLINT/fmpz.h": |
| 3 | cdef extern from "flint/fmpz.h": |
4 | 4 | |
5 | 5 | ctypedef long fmpz |
6 | 6 | ctypedef long * fmpz_t |
diff --git a/sage/libs/flint/fmpz_poly.pxd b/sage/libs/flint/fmpz_poly.pxd
a
|
b
|
|
9 | 9 | cdef class Fmpz_poly(SageObject): |
10 | 10 | cdef fmpz_poly_t poly |
11 | 11 | |
12 | | cdef extern from "FLINT/fmpz_poly.h": |
| 12 | cdef extern from "flint/fmpz_poly.h": |
13 | 13 | cdef void fmpz_poly_reverse(fmpz_poly_t output, fmpz_poly_t input, |
14 | 14 | unsigned long length) |
diff --git a/sage/libs/flint/fmpz_poly.pxi b/sage/libs/flint/fmpz_poly.pxi
a
|
b
|
|
1 | 1 | include "fmpz.pxi" |
2 | 2 | include "../ntl/decl.pxi" |
3 | 3 | |
4 | | cdef extern from "FLINT/fmpz_poly.h": |
| 4 | cdef extern from "flint/fmpz_poly.h": |
5 | 5 | |
6 | 6 | ctypedef void* fmpz_poly_t |
7 | 7 | |
diff --git a/sage/libs/flint/ntl_interface.pxd b/sage/libs/flint/ntl_interface.pxd
a
|
b
|
|
5 | 5 | from sage.libs.ntl.ntl_ZZ_decl cimport ZZ_c |
6 | 6 | from sage.libs.ntl.ntl_ZZX_decl cimport ZZX_c |
7 | 7 | |
8 | | cdef extern from "FLINT/NTL-interface.h": |
| 8 | cdef extern from "flint/NTL-interface.h": |
9 | 9 | |
10 | 10 | void fmpz_poly_get_ZZX(ZZX_c output, fmpz_poly_t poly) |
11 | 11 | void fmpz_poly_set_ZZX(fmpz_poly_t output, ZZX_c poly) |
diff --git a/sage/libs/flint/ulong_extras.pxd b/sage/libs/flint/ulong_extras.pxd
a
|
b
|
|
4 | 4 | from sage.libs.flint.flint cimport * |
5 | 5 | |
6 | 6 | |
7 | | cdef extern from "FLINT/ulong_extras.h": |
| 7 | cdef extern from "flint/ulong_extras.h": |
8 | 8 | |
9 | 9 | ctypedef struct n_factor_t: |
10 | 10 | int num |
diff --git a/sage/libs/flint/zmod_poly.pxd b/sage/libs/flint/zmod_poly.pxd
a
|
b
|
|
5 | 5 | |
6 | 6 | from flint import * |
7 | 7 | |
8 | | cdef extern from "FLINT/nmod_poly.h": |
| 8 | cdef extern from "flint/nmod_poly.h": |
9 | 9 | |
10 | 10 | ctypedef unsigned long mp_bitcnt_t |
11 | 11 | ctypedef void * mp_srcptr |
diff --git a/sage/rings/polynomial/polynomial_integer_dense_flint.pyx b/sage/rings/polynomial/polynomial_integer_dense_flint.pyx
a
|
b
|
|
48 | 48 | cdef extern from "limits.h": |
49 | 49 | long LONG_MAX |
50 | 50 | |
51 | | cdef extern from "FLINT/flint.h": |
| 51 | cdef extern from "flint/flint.h": |
52 | 52 | int FLINT_BITS |
53 | 53 | |
54 | 54 | cdef class Polynomial_integer_dense_flint(Polynomial): |