Commits
Thibaut Paumard authored 3e11a5f93f7
1 + | Index: fftw-2.1.5/configure.in |
2 + | =================================================================== |
3 + | --- fftw-2.1.5.orig/configure.in 2003-03-24 08:01:13.000000000 +0100 |
4 + | +++ fftw-2.1.5/configure.in 2011-11-29 02:16:51.531836400 +0100 |
5 + | |
6 + | |
7 + | AC_ARG_ENABLE(float, [ --enable-float compile fftw for single precision], enable_float=$enableval, enable_float=no) |
8 + | if test "$enable_float" = "yes"; then |
9 + | - AC_DEFINE(FFTW_ENABLE_FLOAT) |
10 + | + AC_DEFINE([FFTW_ENABLE_FLOAT],[],[desc]) |
11 + | fi |
12 + | |
13 + | FFTW_PREFIX="" |
14 + | |
15 + | |
16 + | AC_ARG_ENABLE(i386-hacks, [ --enable-i386-hacks enable gcc/x86 specific performance hacks], ok=$enableval, ok=no) |
17 + | if test "$ok" = "yes"; then |
18 + | - AC_DEFINE(FFTW_ENABLE_I386_HACKS) |
19 + | + AC_DEFINE([FFTW_ENABLE_I386_HACKS],[],[desc]) |
20 + | fi |
21 + | |
22 + | AC_ARG_ENABLE(pentium-timer, [ --enable-pentium-timer enable high resolution Pentium timer], ok=$enableval, ok=no) |
23 + | if test "$ok" = "yes"; then |
24 + | - AC_DEFINE(FFTW_ENABLE_PENTIUM_TIMER) |
25 + | + AC_DEFINE([FFTW_ENABLE_PENTIUM_TIMER],[],[desc]) |
26 + | fi |
27 + | |
28 + | AC_ARG_ENABLE(debug, [ --enable-debug compile fftw with extra runtime checks for debugging], ok=$enableval, ok=no) |
29 + | if test "$ok" = "yes"; then |
30 + | - AC_DEFINE(FFTW_DEBUG) |
31 + | + AC_DEFINE([FFTW_DEBUG],[],[desc]) |
32 + | fi |
33 + | |
34 + | AC_ARG_ENABLE(debug-alignment, [ --enable-debug-alignment enable runtime checks for alignment on x86], ok=$enableval, ok=no) |
35 + | if test "$ok" = "yes"; then |
36 + | - AC_DEFINE(FFTW_DEBUG_ALIGNMENT) |
37 + | + AC_DEFINE([FFTW_DEBUG_ALIGNMENT],[],[desc]) |
38 + | fi |
39 + | |
40 + | AC_ARG_ENABLE(vec-recurse, [ --enable-vec-recurse enable experimental performance hack], ok=$enableval, ok=no) |
41 + | if test "$ok" = "yes"; then |
42 + | - AC_DEFINE(FFTW_ENABLE_VECTOR_RECURSE) |
43 + | + AC_DEFINE([FFTW_ENABLE_VECTOR_RECURSE],[],[desc]) |
44 + | fi |
45 + | |
46 + | dnl ----------------------------------------------------------------------- |
47 + | |
48 + | dnl ----------------------------------------------------------------------- |
49 + | |
50 + | AC_SUBST(SHARED_VERSION_INFO) |
51 + | -AC_DEFINE_UNQUOTED(FFTW_VERSION, "$VERSION") |
52 + | +AC_DEFINE_UNQUOTED([FFTW_VERSION], "$VERSION",[Version]) |
53 + | |
54 + | # Get the version number that will be appended to shared libraries: |
55 + | SHARED_VERSION=`echo $SHARED_VERSION_INFO | awk -F':' '{ print $1 "." $3 "." $2 }'` |
56 + | |
57 + | |
58 + | ACX_PROG_CC_MAXOPT |
59 + | |
60 + | -ACX_GCC_ALIGNS_STACK(AC_DEFINE(FFTW_GCC_ALIGNS_STACK), [ |
61 + | +ACX_GCC_ALIGNS_STACK(AC_DEFINE([FFTW_GCC_ALIGNS_STACK],[],[desc]), [ |
62 + | if test "$enable_i386_hacks" = yes; then |
63 + | if test "${acx_gcc_stack_align_bug-no}" = yes; then |
64 + | # we are using a gcc with a stack alignment bug, and we should |
65 + | |
66 + | AC_TRY_LINK([#include <math.h> |
67 + | ], if (!isnan(3.14159)) isnan(2.7183);, ok=yes, ok=no) |
68 + | if test "$ok" = "yes"; then |
69 + | - AC_DEFINE(HAVE_ISNAN) |
70 + | + AC_DEFINE([HAVE_ISNAN],[],[desc]) |
71 + | fi |
72 + | AC_MSG_RESULT(${ok}) |
73 + | |
74 + | |
75 + | #endif |
76 + | ], [hrtime_t foobar;], ok=yes, ok=no) |
77 + | if test "$ok" = "yes"; then |
78 + | - AC_DEFINE(HAVE_HRTIME_T) |
79 + | + AC_DEFINE([HAVE_HRTIME_T],[],[desc]) |
80 + | fi |
81 + | AC_MSG_RESULT(${ok}) |
82 + | |
83 + | |
84 + | |
85 + | AC_ARG_ENABLE(unsafe-mulmod, [ --enable-unsafe-mulmod risk overflow for large prime sizes], enable_unsafe_mulmod=$enableval, enable_unsafe_mulmod=no) |
86 + | if test "$enable_unsafe_mulmod" = "yes"; then |
87 + | - AC_DEFINE(FFTW_ENABLE_UNSAFE_MULMOD) |
88 + | + AC_DEFINE([FFTW_ENABLE_UNSAFE_MULMOD],[],[desc]) |
89 + | fi |
90 + | |
91 + | |
92 + | |
93 + | if test -z "$THREADLIBS"; then |
94 + | AC_MSG_ERROR([don't know how to enable OpenMP]) |
95 + | fi |
96 + | - AC_DEFINE(FFTW_USING_OPENMP_THREADS) |
97 + | + AC_DEFINE([FFTW_USING_OPENMP_THREADS],[],[desc]) |
98 + | fi |
99 + | if test "$with_sgimp"x != nox; then |
100 + | AC_MSG_CHECKING(how to enable SGI MP) |
101 + | |
102 + | if test -z "$THREADLIBS"; then |
103 + | AC_MSG_ERROR([don't know how to enable SGI MP]) |
104 + | fi |
105 + | - AC_DEFINE(FFTW_USING_SGIMP_THREADS) |
106 + | + AC_DEFINE([FFTW_USING_SGIMP_THREADS],[],[desc]) |
107 + | fi |
108 + | |
109 + | # POSIX threads, the default choice: |
110 + | |
111 + | ACX_PTHREAD([THREADLIBS="$PTHREAD_LIBS " |
112 + | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
113 + | CC="$PTHREAD_CC" |
114 + | - AC_DEFINE(FFTW_USING_POSIX_THREADS)]) |
115 + | + AC_DEFINE([FFTW_USING_POSIX_THREADS],[],[desc])]) |
116 + | fi |
117 + | # Solaris threads: |
118 + | if test -z "$THREADLIBS"; then |
119 + | AC_CHECK_LIB(thread, thr_create, |
120 + | [THREADLIBS="-lthread" |
121 + | - AC_DEFINE(FFTW_USING_SOLARIS_THREADS)]) |
122 + | + AC_DEFINE([FFTW_USING_SOLARIS_THREADS],[],[desc])]) |
123 + | fi |
124 + | # Mach C threads: |
125 + | if test -z "$THREADLIBS"; then |
126 + | AC_CHECK_FUNC(cthread_fork, |
127 + | [THREADLIBS=" " |
128 + | - AC_DEFINE(FFTW_USING_MACH_THREADS)]) |
129 + | + AC_DEFINE([FFTW_USING_MACH_THREADS],[],[desc])]) |
130 + | AC_CHECK_HEADERS(mach/cthreads.h cthreads.h cthread.h) |
131 + | fi |
132 + | if test -z "$THREADLIBS"; then |
133 + | AC_CHECK_LIB(cthread, cthread_fork, |
134 + | [THREADLIBS="-lcthread" |
135 + | - AC_DEFINE(FFTW_USING_MACH_THREADS)]) |
136 + | + AC_DEFINE([FFTW_USING_MACH_THREADS],[],[desc])]) |
137 + | AC_CHECK_HEADERS(mach/cthreads.h cthreads.h cthread.h) |
138 + | fi |
139 + | if test -z "$THREADLIBS"; then |
140 + | AC_CHECK_LIB(cthreads, cthread_fork, |
141 + | [THREADLIBS="-lcthreads" |
142 + | - AC_DEFINE(FFTW_USING_MACH_THREADS)]) |
143 + | + AC_DEFINE([FFTW_USING_MACH_THREADS],[],[desc])]) |
144 + | AC_CHECK_HEADERS(mach/cthreads.h cthreads.h cthread.h) |
145 + | fi |
146 + | # BeOS threads: |
147 + | if test -z "$THREADLIBS"; then |
148 + | AC_CHECK_FUNC(spawn_thread, |
149 + | [THREADLIBS=" " |
150 + | - AC_DEFINE(FFTW_USING_BEOS_THREADS)]) |
151 + | + AC_DEFINE([FFTW_USING_BEOS_THREADS],[],[desc])]) |
152 + | fi |
153 + | if test -z "$THREADLIBS"; then |
154 + | AC_MSG_ERROR(couldn't find threads library for --enable-threads) |
155 + | |
156 + | CC="$MPICC" |
157 + | ok=yes |
158 + | AC_TRY_LINK([#include <mpi.h> |
159 + | - ], [MPI_Comm_f2c(0);], [AC_DEFINE(HAVE_MPI_COMM_F2C)], [ok=no]) |
160 + | + ], [MPI_Comm_f2c(0);], [AC_DEFINE([HAVE_MPI_COMM_F2C],[],[desc])], [ok=no]) |
161 + | AC_MSG_RESULT($ok) |
162 + | CC="$save_CC" |
163 + | else |