3
if test "x$1" = "x--help" || test "x$1" = "x-h"; then
5
Usage: fftw-wisdom-to-conf [OPTIONS] [< INPUT] [> OUTPUT]
6
Convert wisdom (stdin) to C configuration routine (stdout).
9
-h, --help: print this help
10
-V, --version: print version/copyright info
15
if test "x$1" = "x--version" || test "x$1" = "x-V"; then
17
fftw-wisdom-to-conf from FFTW version @VERSION@
19
Copyright (c) 2003, 2006 Matteo Frigo
20
Copyright (c) 2003, 2006 Massachusetts Institute of Technology
22
This program is free software; you can redistribute it and/or modify
23
it under the terms of the GNU General Public License as published by
24
the Free Software Foundation; either version 2 of the License, or
25
(at your option) any later version.
27
This program is distributed in the hope that it will be useful,
28
but WITHOUT ANY WARRANTY; without even the implied warranty of
29
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
GNU General Public License for more details.
32
You should have received a copy of the GNU General Public License
33
along with this program; if not, write to the Free Software
34
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39
read preamble fftw_wisdom
41
case "$preamble $fftw_wisdom" in
42
\(@PACKAGE@-@VERSION@\ *_wisdom)
43
prefix=`echo $fftw_wisdom | cut -d_ -f1`_
46
echo "fftw-wisdom-to-conf: invalid wisdom" 1>&2
52
/* Automatically generated by fftw-wisdom-to-conf from @PACKAGE@ @VERSION@.
53
DO NOT EDIT! (Unless you really, really want to. Then it's okay.) */
54
void ${prefix}configure_planner(void *plnr)
56
struct solvtab_s { void (*reg)(void *); const char *reg_nam; };
57
extern void ${prefix}solvtab_exec(const struct solvtab_s s[], void *);
59
#define DECLARE(name) extern void name(void *);
60
#define STRINGIZEx(x) #x
61
#define STRINGIZE(x) STRINGIZEx(x)
62
#define SOLVTAB(s) { s, STRINGIZE(s) },
66
sed 's/ *(//' | cut -d" " -f1 | grep -v -- - | egrep -v '^ *\)*$' | sort | uniq | while read reg_nam; do
75
const struct solvtab_s s[] = {
80
${prefix}solvtab_exec(s, plnr);