aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-29 21:20:03 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-29 21:20:03 +0100
commit18f75db039a69f0e5df8cdb62da8b6aaec6a8dc4 (patch)
treed82ff0062d92b2ddcf2e32638d463f92d607a60e
downloadmerchant-18f75db039a69f0e5df8cdb62da8b6aaec6a8dc4.tar.gz
merchant-18f75db039a69f0e5df8cdb62da8b6aaec6a8dc4.zip
initial import of merchant logic (FTBFS)
-rw-r--r--AUTHORS4
-rw-r--r--COPYING510
-rw-r--r--ChangeLog0
-rw-r--r--Makefile.am3
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xbootstrap2
-rw-r--r--configure.ac154
-rw-r--r--doc/Makefile.am0
-rw-r--r--m4/ax_lib_postgresql.m4156
-rw-r--r--m4/libgnurl.m4250
-rw-r--r--src/.gitignore9
-rw-r--r--src/Makefile614
-rw-r--r--src/Makefile.am2
-rw-r--r--src/Makefile.in614
-rw-r--r--src/include/Makefile435
-rw-r--r--src/include/Makefile.am2
-rw-r--r--src/include/Makefile.in435
-rw-r--r--src/include/platform.h56
-rw-r--r--src/merchant/.gitignore1
-rw-r--r--src/merchant/Makefile731
-rw-r--r--src/merchant/Makefile.am52
-rw-r--r--src/merchant/Makefile.in731
-rw-r--r--src/merchant/merchant.c173
-rw-r--r--src/merchant/merchant.h110
-rw-r--r--src/merchant/merchant_db.c347
-rw-r--r--src/merchant/merchant_db.h98
-rw-r--r--src/merchant/taler_merchant_dbinit.c79
-rw-r--r--src/merchant/taler_merchant_serve.c1559
-rw-r--r--src/merchant/test_merchant.c96
-rw-r--r--src/merchant/test_merchant.conf36
-rw-r--r--src/merchant/test_merchant.ecc2
-rw-r--r--src/merchant/test_merchant_db.c147
33 files changed, 7408 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 00000000..b52c8ae5
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,4 @@
1Sree Harsha Totakura <sreeharsha@totakura.in>
2Florian Dold
3Christian Grothoff
4Benedikt Mueller
diff --git a/COPYING b/COPYING
new file mode 100644
index 00000000..9b3e553b
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,510 @@
1Some of this code is DUAL-LICENSED. If you use MHD without HTTPS/SSL
2support, you are free to choose between the LGPL and the eCos License
3(http://ecos.sourceware.org/license-overview.html). If you compile
4MHD with HTTPS support, you must obey the terms of the GNU LGPL.
5
6
7 GNU LESSER GENERAL PUBLIC LICENSE
8 Version 2.1, February 1999
9
10 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
11 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
12 Everyone is permitted to copy and distribute verbatim copies
13 of this license document, but changing it is not allowed.
14
15[This is the first released version of the Lesser GPL. It also counts
16 as the successor of the GNU Library Public License, version 2, hence
17 the version number 2.1.]
18
19 Preamble
20
21 The licenses for most software are designed to take away your
22freedom to share and change it. By contrast, the GNU General Public
23Licenses are intended to guarantee your freedom to share and change
24free software--to make sure the software is free for all its users.
25
26 This license, the Lesser General Public License, applies to some
27specially designated software packages--typically libraries--of the
28Free Software Foundation and other authors who decide to use it. You
29can use it too, but we suggest you first think carefully about whether
30this license or the ordinary General Public License is the better
31strategy to use in any particular case, based on the explanations below.
32
33 When we speak of free software, we are referring to freedom of use,
34not price. Our General Public Licenses are designed to make sure that
35you have the freedom to distribute copies of free software (and charge
36for this service if you wish); that you receive source code or can get
37it if you want it; that you can change the software and use pieces of
38it in new free programs; and that you are informed that you can do
39these things.
40
41 To protect your rights, we need to make restrictions that forbid
42distributors to deny you these rights or to ask you to surrender these
43rights. These restrictions translate to certain responsibilities for
44you if you distribute copies of the library or if you modify it.
45
46 For example, if you distribute copies of the library, whether gratis
47or for a fee, you must give the recipients all the rights that we gave
48you. You must make sure that they, too, receive or can get the source
49code. If you link other code with the library, you must provide
50complete object files to the recipients, so that they can relink them
51with the library after making changes to the library and recompiling
52it. And you must show them these terms so they know their rights.
53
54 We protect your rights with a two-step method: (1) we copyright the
55library, and (2) we offer you this license, which gives you legal
56permission to copy, distribute and/or modify the library.
57
58 To protect each distributor, we want to make it very clear that
59there is no warranty for the free library. Also, if the library is
60modified by someone else and passed on, the recipients should know
61that what they have is not the original version, so that the original
62author's reputation will not be affected by problems that might be
63introduced by others.
64
65 Finally, software patents pose a constant threat to the existence of
66any free program. We wish to make sure that a company cannot
67effectively restrict the users of a free program by obtaining a
68restrictive license from a patent holder. Therefore, we insist that
69any patent license obtained for a version of the library must be
70consistent with the full freedom of use specified in this license.
71
72 Most GNU software, including some libraries, is covered by the
73ordinary GNU General Public License. This license, the GNU Lesser
74General Public License, applies to certain designated libraries, and
75is quite different from the ordinary General Public License. We use
76this license for certain libraries in order to permit linking those
77libraries into non-free programs.
78
79 When a program is linked with a library, whether statically or using
80a shared library, the combination of the two is legally speaking a
81combined work, a derivative of the original library. The ordinary
82General Public License therefore permits such linking only if the
83entire combination fits its criteria of freedom. The Lesser General
84Public License permits more lax criteria for linking other code with
85the library.
86
87 We call this license the "Lesser" General Public License because it
88does Less to protect the user's freedom than the ordinary General
89Public License. It also provides other free software developers Less
90of an advantage over competing non-free programs. These disadvantages
91are the reason we use the ordinary General Public License for many
92libraries. However, the Lesser license provides advantages in certain
93special circumstances.
94
95 For example, on rare occasions, there may be a special need to
96encourage the widest possible use of a certain library, so that it becomes
97a de-facto standard. To achieve this, non-free programs must be
98allowed to use the library. A more frequent case is that a free
99library does the same job as widely used non-free libraries. In this
100case, there is little to gain by limiting the free library to free
101software only, so we use the Lesser General Public License.
102
103 In other cases, permission to use a particular library in non-free
104programs enables a greater number of people to use a large body of
105free software. For example, permission to use the GNU C Library in
106non-free programs enables many more people to use the whole GNU
107operating system, as well as its variant, the GNU/Linux operating
108system.
109
110 Although the Lesser General Public License is Less protective of the
111users' freedom, it does ensure that the user of a program that is
112linked with the Library has the freedom and the wherewithal to run
113that program using a modified version of the Library.
114
115 The precise terms and conditions for copying, distribution and
116modification follow. Pay close attention to the difference between a
117"work based on the library" and a "work that uses the library". The
118former contains code derived from the library, whereas the latter must
119be combined with the library in order to run.
120
121 GNU LESSER GENERAL PUBLIC LICENSE
122 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
123
124 0. This License Agreement applies to any software library or other
125program which contains a notice placed by the copyright holder or
126other authorized party saying it may be distributed under the terms of
127this Lesser General Public License (also called "this License").
128Each licensee is addressed as "you".
129
130 A "library" means a collection of software functions and/or data
131prepared so as to be conveniently linked with application programs
132(which use some of those functions and data) to form executables.
133
134 The "Library", below, refers to any such software library or work
135which has been distributed under these terms. A "work based on the
136Library" means either the Library or any derivative work under
137copyright law: that is to say, a work containing the Library or a
138portion of it, either verbatim or with modifications and/or translated
139straightforwardly into another language. (Hereinafter, translation is
140included without limitation in the term "modification".)
141
142 "Source code" for a work means the preferred form of the work for
143making modifications to it. For a library, complete source code means
144all the source code for all modules it contains, plus any associated
145interface definition files, plus the scripts used to control compilation
146and installation of the library.
147
148 Activities other than copying, distribution and modification are not
149covered by this License; they are outside its scope. The act of
150running a program using the Library is not restricted, and output from
151such a program is covered only if its contents constitute a work based
152on the Library (independent of the use of the Library in a tool for
153writing it). Whether that is true depends on what the Library does
154and what the program that uses the Library does.
155
156 1. You may copy and distribute verbatim copies of the Library's
157complete source code as you receive it, in any medium, provided that
158you conspicuously and appropriately publish on each copy an
159appropriate copyright notice and disclaimer of warranty; keep intact
160all the notices that refer to this License and to the absence of any
161warranty; and distribute a copy of this License along with the
162Library.
163
164 You may charge a fee for the physical act of transferring a copy,
165and you may at your option offer warranty protection in exchange for a
166fee.
167
168 2. You may modify your copy or copies of the Library or any portion
169of it, thus forming a work based on the Library, and copy and
170distribute such modifications or work under the terms of Section 1
171above, provided that you also meet all of these conditions:
172
173 a) The modified work must itself be a software library.
174
175 b) You must cause the files modified to carry prominent notices
176 stating that you changed the files and the date of any change.
177
178 c) You must cause the whole of the work to be licensed at no
179 charge to all third parties under the terms of this License.
180
181 d) If a facility in the modified Library refers to a function or a
182 table of data to be supplied by an application program that uses
183 the facility, other than as an argument passed when the facility
184 is invoked, then you must make a good faith effort to ensure that,
185 in the event an application does not supply such function or
186 table, the facility still operates, and performs whatever part of
187 its purpose remains meaningful.
188
189 (For example, a function in a library to compute square roots has
190 a purpose that is entirely well-defined independent of the
191 application. Therefore, Subsection 2d requires that any
192 application-supplied function or table used by this function must
193 be optional: if the application does not supply it, the square
194 root function must still compute square roots.)
195
196These requirements apply to the modified work as a whole. If
197identifiable sections of that work are not derived from the Library,
198and can be reasonably considered independent and separate works in
199themselves, then this License, and its terms, do not apply to those
200sections when you distribute them as separate works. But when you
201distribute the same sections as part of a whole which is a work based
202on the Library, the distribution of the whole must be on the terms of
203this License, whose permissions for other licensees extend to the
204entire whole, and thus to each and every part regardless of who wrote
205it.
206
207Thus, it is not the intent of this section to claim rights or contest
208your rights to work written entirely by you; rather, the intent is to
209exercise the right to control the distribution of derivative or
210collective works based on the Library.
211
212In addition, mere aggregation of another work not based on the Library
213with the Library (or with a work based on the Library) on a volume of
214a storage or distribution medium does not bring the other work under
215the scope of this License.
216
217 3. You may opt to apply the terms of the ordinary GNU General Public
218License instead of this License to a given copy of the Library. To do
219this, you must alter all the notices that refer to this License, so
220that they refer to the ordinary GNU General Public License, version 2,
221instead of to this License. (If a newer version than version 2 of the
222ordinary GNU General Public License has appeared, then you can specify
223that version instead if you wish.) Do not make any other change in
224these notices.
225
226 Once this change is made in a given copy, it is irreversible for
227that copy, so the ordinary GNU General Public License applies to all
228subsequent copies and derivative works made from that copy.
229
230 This option is useful when you wish to copy part of the code of
231the Library into a program that is not a library.
232
233 4. You may copy and distribute the Library (or a portion or
234derivative of it, under Section 2) in object code or executable form
235under the terms of Sections 1 and 2 above provided that you accompany
236it with the complete corresponding machine-readable source code, which
237must be distributed under the terms of Sections 1 and 2 above on a
238medium customarily used for software interchange.
239
240 If distribution of object code is made by offering access to copy
241from a designated place, then offering equivalent access to copy the
242source code from the same place satisfies the requirement to
243distribute the source code, even though third parties are not
244compelled to copy the source along with the object code.
245
246 5. A program that contains no derivative of any portion of the
247Library, but is designed to work with the Library by being compiled or
248linked with it, is called a "work that uses the Library". Such a
249work, in isolation, is not a derivative work of the Library, and
250therefore falls outside the scope of this License.
251
252 However, linking a "work that uses the Library" with the Library
253creates an executable that is a derivative of the Library (because it
254contains portions of the Library), rather than a "work that uses the
255library". The executable is therefore covered by this License.
256Section 6 states terms for distribution of such executables.
257
258 When a "work that uses the Library" uses material from a header file
259that is part of the Library, the object code for the work may be a
260derivative work of the Library even though the source code is not.
261Whether this is true is especially significant if the work can be
262linked without the Library, or if the work is itself a library. The
263threshold for this to be true is not precisely defined by law.
264
265 If such an object file uses only numerical parameters, data
266structure layouts and accessors, and small macros and small inline
267functions (ten lines or less in length), then the use of the object
268file is unrestricted, regardless of whether it is legally a derivative
269work. (Executables containing this object code plus portions of the
270Library will still fall under Section 6.)
271
272 Otherwise, if the work is a derivative of the Library, you may
273distribute the object code for the work under the terms of Section 6.
274Any executables containing that work also fall under Section 6,
275whether or not they are linked directly with the Library itself.
276
277 6. As an exception to the Sections above, you may also combine or
278link a "work that uses the Library" with the Library to produce a
279work containing portions of the Library, and distribute that work
280under terms of your choice, provided that the terms permit
281modification of the work for the customer's own use and reverse
282engineering for debugging such modifications.
283
284 You must give prominent notice with each copy of the work that the
285Library is used in it and that the Library and its use are covered by
286this License. You must supply a copy of this License. If the work
287during execution displays copyright notices, you must include the
288copyright notice for the Library among them, as well as a reference
289directing the user to the copy of this License. Also, you must do one
290of these things:
291
292 a) Accompany the work with the complete corresponding
293 machine-readable source code for the Library including whatever
294 changes were used in the work (which must be distributed under
295 Sections 1 and 2 above); and, if the work is an executable linked
296 with the Library, with the complete machine-readable "work that
297 uses the Library", as object code and/or source code, so that the
298 user can modify the Library and then relink to produce a modified
299 executable containing the modified Library. (It is understood
300 that the user who changes the contents of definitions files in the
301 Library will not necessarily be able to recompile the application
302 to use the modified definitions.)
303
304 b) Use a suitable shared library mechanism for linking with the
305 Library. A suitable mechanism is one that (1) uses at run time a
306 copy of the library already present on the user's computer system,
307 rather than copying library functions into the executable, and (2)
308 will operate properly with a modified version of the library, if
309 the user installs one, as long as the modified version is
310 interface-compatible with the version that the work was made with.
311
312 c) Accompany the work with a written offer, valid for at
313 least three years, to give the same user the materials
314 specified in Subsection 6a, above, for a charge no more
315 than the cost of performing this distribution.
316
317 d) If distribution of the work is made by offering access to copy
318 from a designated place, offer equivalent access to copy the above
319 specified materials from the same place.
320
321 e) Verify that the user has already received a copy of these
322 materials or that you have already sent this user a copy.
323
324 For an executable, the required form of the "work that uses the
325Library" must include any data and utility programs needed for
326reproducing the executable from it. However, as a special exception,
327the materials to be distributed need not include anything that is
328normally distributed (in either source or binary form) with the major
329components (compiler, kernel, and so on) of the operating system on
330which the executable runs, unless that component itself accompanies
331the executable.
332
333 It may happen that this requirement contradicts the license
334restrictions of other proprietary libraries that do not normally
335accompany the operating system. Such a contradiction means you cannot
336use both them and the Library together in an executable that you
337distribute.
338
339 7. You may place library facilities that are a work based on the
340Library side-by-side in a single library together with other library
341facilities not covered by this License, and distribute such a combined
342library, provided that the separate distribution of the work based on
343the Library and of the other library facilities is otherwise
344permitted, and provided that you do these two things:
345
346 a) Accompany the combined library with a copy of the same work
347 based on the Library, uncombined with any other library
348 facilities. This must be distributed under the terms of the
349 Sections above.
350
351 b) Give prominent notice with the combined library of the fact
352 that part of it is a work based on the Library, and explaining
353 where to find the accompanying uncombined form of the same work.
354
355 8. You may not copy, modify, sublicense, link with, or distribute
356the Library except as expressly provided under this License. Any
357attempt otherwise to copy, modify, sublicense, link with, or
358distribute the Library is void, and will automatically terminate your
359rights under this License. However, parties who have received copies,
360or rights, from you under this License will not have their licenses
361terminated so long as such parties remain in full compliance.
362
363 9. You are not required to accept this License, since you have not
364signed it. However, nothing else grants you permission to modify or
365distribute the Library or its derivative works. These actions are
366prohibited by law if you do not accept this License. Therefore, by
367modifying or distributing the Library (or any work based on the
368Library), you indicate your acceptance of this License to do so, and
369all its terms and conditions for copying, distributing or modifying
370the Library or works based on it.
371
372 10. Each time you redistribute the Library (or any work based on the
373Library), the recipient automatically receives a license from the
374original licensor to copy, distribute, link with or modify the Library
375subject to these terms and conditions. You may not impose any further
376restrictions on the recipients' exercise of the rights granted herein.
377You are not responsible for enforcing compliance by third parties with
378this License.
379
380 11. If, as a consequence of a court judgment or allegation of patent
381infringement or for any other reason (not limited to patent issues),
382conditions are imposed on you (whether by court order, agreement or
383otherwise) that contradict the conditions of this License, they do not
384excuse you from the conditions of this License. If you cannot
385distribute so as to satisfy simultaneously your obligations under this
386License and any other pertinent obligations, then as a consequence you
387may not distribute the Library at all. For example, if a patent
388license would not permit royalty-free redistribution of the Library by
389all those who receive copies directly or indirectly through you, then
390the only way you could satisfy both it and this License would be to
391refrain entirely from distribution of the Library.
392
393If any portion of this section is held invalid or unenforceable under any
394particular circumstance, the balance of the section is intended to apply,
395and the section as a whole is intended to apply in other circumstances.
396
397It is not the purpose of this section to induce you to infringe any
398patents or other property right claims or to contest validity of any
399such claims; this section has the sole purpose of protecting the
400integrity of the free software distribution system which is
401implemented by public license practices. Many people have made
402generous contributions to the wide range of software distributed
403through that system in reliance on consistent application of that
404system; it is up to the author/donor to decide if he or she is willing
405to distribute software through any other system and a licensee cannot
406impose that choice.
407
408This section is intended to make thoroughly clear what is believed to
409be a consequence of the rest of this License.
410
411 12. If the distribution and/or use of the Library is restricted in
412certain countries either by patents or by copyrighted interfaces, the
413original copyright holder who places the Library under this License may add
414an explicit geographical distribution limitation excluding those countries,
415so that distribution is permitted only in or among countries not thus
416excluded. In such case, this License incorporates the limitation as if
417written in the body of this License.
418
419 13. The Free Software Foundation may publish revised and/or new
420versions of the Lesser General Public License from time to time.
421Such new versions will be similar in spirit to the present version,
422but may differ in detail to address new problems or concerns.
423
424Each version is given a distinguishing version number. If the Library
425specifies a version number of this License which applies to it and
426"any later version", you have the option of following the terms and
427conditions either of that version or of any later version published by
428the Free Software Foundation. If the Library does not specify a
429license version number, you may choose any version ever published by
430the Free Software Foundation.
431
432 14. If you wish to incorporate parts of the Library into other free
433programs whose distribution conditions are incompatible with these,
434write to the author to ask for permission. For software which is
435copyrighted by the Free Software Foundation, write to the Free
436Software Foundation; we sometimes make exceptions for this. Our
437decision will be guided by the two goals of preserving the free status
438of all derivatives of our free software and of promoting the sharing
439and reuse of software generally.
440
441 NO WARRANTY
442
443 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
444WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
445EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
446OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
447KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
448IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
449PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
450LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
451THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
452
453 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
454WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
455AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
456FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
457CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
458LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
459RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
460FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
461SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
462DAMAGES.
463
464 END OF TERMS AND CONDITIONS
465
466 How to Apply These Terms to Your New Libraries
467
468 If you develop a new library, and you want it to be of the greatest
469possible use to the public, we recommend making it free software that
470everyone can redistribute and change. You can do so by permitting
471redistribution under these terms (or, alternatively, under the terms of the
472ordinary General Public License).
473
474 To apply these terms, attach the following notices to the library. It is
475safest to attach them to the start of each source file to most effectively
476convey the exclusion of warranty; and each file should have at least the
477"copyright" line and a pointer to where the full notice is found.
478
479 <one line to give the library's name and a brief idea of what it does.>
480 Copyright (C) <year> <name of author>
481
482 This library is free software; you can redistribute it and/or
483 modify it under the terms of the GNU Lesser General Public
484 License as published by the Free Software Foundation; either
485 version 2.1 of the License, or (at your option) any later version.
486
487 This library is distributed in the hope that it will be useful,
488 but WITHOUT ANY WARRANTY; without even the implied warranty of
489 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
490 Lesser General Public License for more details.
491
492 You should have received a copy of the GNU Lesser General Public
493 License along with this library; if not, write to the Free Software
494 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
495
496Also add information on how to contact you by electronic and paper mail.
497
498You should also get your employer (if you work as a programmer) or your
499school, if any, to sign a "copyright disclaimer" for the library, if
500necessary. Here is a sample; alter the names:
501
502 Yoyodyne, Inc., hereby disclaims all copyright interest in the
503 library `Frob' (a library for tweaking knobs) written by James Random Hacker.
504
505 <signature of Ty Coon>, 1 April 1990
506 Ty Coon, President of Vice
507
508That's all there is to it!
509
510
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/ChangeLog
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 00000000..ea5a667e
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,3 @@
1AM_CPPFLAGS = -I$(top_srcdir)/src/include
2SUBDIRS = src doc
3ACLOCAL_AMFLAGS = -I m4
diff --git a/NEWS b/NEWS
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/README
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 00000000..4e7cc053
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,2 @@
1#!/bin/sh
2autoreconf -if
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 00000000..d013ab2e
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,154 @@
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.69])
5AC_INIT([taler], [0.0.0], [taler-bug@gnunet.org])
6AC_CONFIG_SRCDIR([src/merchant/merchant.c])
7AC_CONFIG_HEADERS([taler_config.h])
8# support for non-recursive builds
9AM_INIT_AUTOMAKE([subdir-objects])
10
11# pretty build rules
12AM_SILENT_RULES([yes])
13
14AC_CONFIG_MACRO_DIR([m4])
15
16LT_INIT
17
18# Checks for programs.
19AC_PROG_CC
20
21CFLAGS="-Wall $CFLAGS"
22
23# Checks for header files.
24AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
25
26# Check for GNUnet's libgnunetutil.
27libgnunetutil=0
28AC_MSG_CHECKING([for libgnunetutil])
29AC_ARG_WITH(gnunet,
30 [AS_HELP_STRING([--with-gnunet=PFX], [base of GNUnet installation])],
31 [AC_MSG_RESULT([given as $with_gnunet])],
32 [AC_MSG_RESULT(not given)
33 with_gnunet=yes])
34AS_CASE([$with_gnunet],
35 [yes], [],
36 [no], [AC_MSG_ERROR([--with-gnunet is required])],
37 [LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
38 CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"])
39AC_CHECK_HEADERS([gnunet/platform.h gnunet/gnunet_util_lib.h],
40 [AC_CHECK_LIB([gnunetutil], [GNUNET_SCHEDULER_run], libgnunetutil=1)],
41 [], [#ifdef HAVE_GNUNET_PLATFORM_H
42 #include <gnunet/platform.h>
43 #endif])
44AS_IF([test $libgnunetutil != 1],
45 [AC_MSG_ERROR([[
46***
47*** You need libgnunetutil to build this program.
48*** This library is part of GNUnet, available at
49*** https://gnunet.org
50*** ]])])
51
52
53# check for libmicrohttpd
54microhttpd=0
55AC_MSG_CHECKING([for microhttpd])
56AC_ARG_WITH([microhttpd],
57 [AS_HELP_STRING([--with-microhttpd=PFX], [base of microhttpd installation])],
58 [AC_MSG_RESULT([given as $with_microhttpd])],
59 [AC_MSG_RESULT([not given])
60 with_microhttpd=yes])
61AS_CASE([$with_microhttpd],
62 [yes], [],
63 [no], [AC_MSG_ERROR([--with-microhttpd is required])],
64 [LDFLAGS="-L$with_microhttpd/lib $LDFLAGS"
65 CPPFLAGS="-I$with_microhttpd/include $CPPFLAGS"])
66AC_CHECK_LIB(microhttpd,MHD_start_daemon,
67 [AC_CHECK_HEADER([microhttpd.h],[microhttpd=1])])
68AS_IF([test $microhttpd = 0],
69 [AC_MSG_ERROR([[
70***
71*** You need libmicrohttpd to build this program.
72*** ]])])
73
74
75# check for libpq (postgresql)
76AX_LIB_POSTGRESQL([9.3])
77AS_IF([test ! "$found_postgresql" = "yes"],
78 [AC_MSG_ERROR([[
79***
80*** You need postgresql / libpq to build this program.
81*** ]])])
82
83
84# check for libjansson (Jansson JSON library)
85jansson=0
86AC_MSG_CHECKING([for jansson])
87AC_ARG_WITH([jansson],
88 [AS_HELP_STRING([--with-jansson=PFX], [base of jansson installation])],
89 [AC_MSG_RESULT([given as $with_jansson])],
90 [AC_MSG_RESULT([not given])
91 with_jansson=yes])
92AS_CASE([$with_jansson],
93 [yes], [],
94 [no], [AC_MSG_ERROR([--with-jansson is required])],
95 [LDFLAGS="-L$with_jansson/lib $LDFLAGS"
96 CPPFLAGS="-I$with_jansson/include $CPPFLAGS"])
97AC_CHECK_LIB(jansson,json_pack,
98 [AC_CHECK_HEADER([jansson.h],[jansson=1])])
99AS_IF([test $jansson = 0],
100 [AC_MSG_ERROR([[
101***
102*** You need libjansson to build this program.
103*** ]])])
104
105# check for libgnurl
106LIBGNURL_CHECK_CONFIG([], [7.34.0], [gnurl=1], [gnurl=0])
107if test "$gnurl" = 1
108then
109 AM_CONDITIONAL(HAVE_LIBGNURL, true)
110 AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl])
111else
112 AM_CONDITIONAL(HAVE_LIBGNURL, false)
113fi
114AS_IF([test $gnurl = 0],
115 [AC_MSG_ERROR([[
116***
117*** You need libgnurl to build this program.
118*** ]])])
119
120# Require minimum libgcrypt version
121need_libgcrypt_version=1.6.1
122AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], ["$need_libgcrypt_version"],
123 [minimum version of libgcrypt required])
124AM_PATH_LIBGCRYPT([$need_libgcrypt_version])
125
126# logging
127extra_logging=0
128AC_ARG_ENABLE([logging],
129 AS_HELP_STRING([--enable-logging@<:@=value@:>@],[Enable logging calls. Possible values: yes,no,verbose ('yes' is the default)]),
130 [AS_IF([test "x$enableval" = "xyes"], [],
131 [test "x$enableval" = "xno"], [AC_DEFINE([GNUNET_CULL_LOGGING],[],[Define to cull all logging calls])],
132 [test "x$enableval" = "xverbose"], [extra_logging=1]
133 [test "x$enableval" = "xveryverbose"], [extra_logging=2])
134 ], [])
135AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging is enabled, 2 for very verbose extra logging, 0 otherwise])
136
137# Checks for typedefs, structures, and compiler characteristics.
138AC_TYPE_PID_T
139AC_TYPE_SIZE_T
140AC_TYPE_UINT16_T
141AC_TYPE_UINT32_T
142AC_TYPE_UINT64_T
143AC_TYPE_INTMAX_T
144AC_TYPE_UINTMAX_T
145
146# Checks for library functions.
147AC_CHECK_FUNCS([strdup])
148
149AC_CONFIG_FILES([Makefile
150 doc/Makefile
151 src/Makefile
152 src/include/Makefile
153 src/merchant/Makefile])
154AC_OUTPUT
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/doc/Makefile.am
diff --git a/m4/ax_lib_postgresql.m4 b/m4/ax_lib_postgresql.m4
new file mode 100644
index 00000000..e81c0996
--- /dev/null
+++ b/m4/ax_lib_postgresql.m4
@@ -0,0 +1,156 @@
1# ===========================================================================
2# http://www.gnu.org/software/autoconf-archive/ax_lib_postgresql.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7# AX_LIB_POSTGRESQL([MINIMUM-VERSION])
8#
9# DESCRIPTION
10#
11# This macro provides tests of availability of PostgreSQL 'libpq' library
12# of particular version or newer.
13#
14# AX_LIB_POSTGRESQL macro takes only one argument which is optional. If
15# there is no required version passed, then macro does not run version
16# test.
17#
18# The --with-postgresql option takes one of three possible values:
19#
20# no - do not check for PostgreSQL client library
21#
22# yes - do check for PostgreSQL library in standard locations (pg_config
23# should be in the PATH)
24#
25# path - complete path to pg_config utility, use this option if pg_config
26# can't be found in the PATH
27#
28# This macro calls:
29#
30# AC_SUBST(POSTGRESQL_CPPFLAGS)
31# AC_SUBST(POSTGRESQL_LDFLAGS)
32# AC_SUBST(POSTGRESQL_VERSION)
33#
34# And sets:
35#
36# HAVE_POSTGRESQL
37#
38# LICENSE
39#
40# Copyright (c) 2008 Mateusz Loskot <mateusz@loskot.net>
41# Copyright (c) 2014 Sree Harsha Totakura <sreeharsha@totakura.in>
42#
43# Copying and distribution of this file, with or without modification, are
44# permitted in any medium without royalty provided the copyright notice
45# and this notice are preserved. This file is offered as-is, without any
46# warranty.
47
48#serial 9
49
50AC_DEFUN([AX_LIB_POSTGRESQL],
51[
52 AC_ARG_WITH([postgresql],
53 AS_HELP_STRING([--with-postgresql=@<:@ARG@:>@],
54 [use PostgreSQL library @<:@default=yes@:>@, optionally specify path to pg_config]
55 ),
56 [
57 if test "$withval" = "no"; then
58 want_postgresql="no"
59 elif test "$withval" = "yes"; then
60 want_postgresql="yes"
61 else
62 want_postgresql="yes"
63 PG_CONFIG="$withval"
64 fi
65 ],
66 [want_postgresql="yes"]
67 )
68
69 POSTGRESQL_CPPFLAGS=""
70 POSTGRESQL_LDFLAGS=""
71 POSTGRESQL_VERSION=""
72
73 dnl
74 dnl Check PostgreSQL libraries (libpq)
75 dnl
76
77 if test "$want_postgresql" = "yes"; then
78
79 if test -z "$PG_CONFIG" -o test; then
80 AC_PATH_PROG([PG_CONFIG], [pg_config], [])
81 fi
82
83 if test ! -x "$PG_CONFIG"; then
84 AC_MSG_ERROR([$PG_CONFIG does not exist or it is not an exectuable file])
85 PG_CONFIG="no"
86 found_postgresql="no"
87 fi
88
89 if test "$PG_CONFIG" != "no"; then
90 AC_MSG_CHECKING([for PostgreSQL libraries])
91
92 POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
93 POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`"
94
95 POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
96
97 AC_DEFINE([HAVE_POSTGRESQL], [1],
98 [Define to 1 if PostgreSQL libraries are available])
99
100 found_postgresql="yes"
101 AC_MSG_RESULT([yes])
102 else
103 found_postgresql="no"
104 AC_MSG_RESULT([no])
105 fi
106 fi
107
108 dnl
109 dnl Check if required version of PostgreSQL is available
110 dnl
111
112
113 postgresql_version_req=ifelse([$1], [], [], [$1])
114
115 if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
116
117 AC_MSG_CHECKING([if PostgreSQL version is >= $postgresql_version_req])
118
119 dnl Decompose required version string of PostgreSQL
120 dnl and calculate its number representation
121 postgresql_version_req_major=`expr $postgresql_version_req : '\([[0-9]]*\)'`
122 postgresql_version_req_minor=`expr $postgresql_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
123 postgresql_version_req_micro=`expr $postgresql_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
124 if test "x$postgresql_version_req_micro" = "x"; then
125 postgresql_version_req_micro="0"
126 fi
127
128 postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
129 \+ $postgresql_version_req_minor \* 1000 \
130 \+ $postgresql_version_req_micro`
131
132 dnl Decompose version string of installed PostgreSQL
133 dnl and calculate its number representation
134 postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([[0-9]]*\)'`
135 postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
136 postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
137 if test "x$postgresql_version_micro" = "x"; then
138 postgresql_version_micro="0"
139 fi
140
141 postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
142 \+ $postgresql_version_minor \* 1000 \
143 \+ $postgresql_version_micro`
144
145 postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
146 if test "$postgresql_version_check" = "1"; then
147 AC_MSG_RESULT([yes])
148 else
149 AC_MSG_RESULT([no])
150 fi
151 fi
152
153 AC_SUBST([POSTGRESQL_VERSION])
154 AC_SUBST([POSTGRESQL_CPPFLAGS])
155 AC_SUBST([POSTGRESQL_LDFLAGS])
156])
diff --git a/m4/libgnurl.m4 b/m4/libgnurl.m4
new file mode 100644
index 00000000..69aa1660
--- /dev/null
+++ b/m4/libgnurl.m4
@@ -0,0 +1,250 @@
1# LIBGNURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION],
2# [ACTION-IF-YES], [ACTION-IF-NO])
3# ----------------------------------------------------------
4# David Shaw <dshaw@jabberwocky.com> May-09-2006
5#
6# Checks for libgnurl. DEFAULT-ACTION is the string yes or no to
7# specify whether to default to --with-libgnurl or --without-libgnurl.
8# If not supplied, DEFAULT-ACTION is yes. MINIMUM-VERSION is the
9# minimum version of libgnurl to accept. Pass the version as a regular
10# version number like 7.10.1. If not supplied, any version is
11# accepted. ACTION-IF-YES is a list of shell commands to run if
12# libgnurl was successfully found and passed the various tests.
13# ACTION-IF-NO is a list of shell commands that are run otherwise.
14# Note that using --without-libgnurl does run ACTION-IF-NO.
15#
16# This macro #defines HAVE_LIBGNURL if a working libgnurl setup is
17# found, and sets @LIBGNURL@ and @LIBGNURL_CPPFLAGS@ to the necessary
18# values. Other useful defines are LIBGNURL_FEATURE_xxx where xxx are
19# the various features supported by libgnurl, and LIBGNURL_PROTOCOL_yyy
20# where yyy are the various protocols supported by libgnurl. Both xxx
21# and yyy are capitalized. See the list of AH_TEMPLATEs at the top of
22# the macro for the complete list of possible defines. Shell
23# variables $libgnurl_feature_xxx and $libgnurl_protocol_yyy are also
24# defined to 'yes' for those features and protocols that were found.
25# Note that xxx and yyy keep the same capitalization as in the
26# gnurl-config list (e.g. it's "HTTP" and not "http").
27#
28# Users may override the detected values by doing something like:
29# LIBGNURL="-lgnurl" LIBGNURL_CPPFLAGS="-I/usr/myinclude" ./configure
30#
31# For the sake of sanity, this macro assumes that any libgnurl that is
32# found is after version 7.7.2, the first version that included the
33# gnurl-config script. Note that it is very important for people
34# packaging binary versions of libgnurl to include this script!
35# Without gnurl-config, we can only guess what protocols are available,
36# or use gnurl_version_info to figure it out at runtime.
37
38AC_DEFUN([LIBGNURL_CHECK_CONFIG],
39[
40 AH_TEMPLATE([LIBGNURL_FEATURE_SSL],[Defined if libgnurl supports SSL])
41 AH_TEMPLATE([LIBGNURL_FEATURE_KRB4],[Defined if libgnurl supports KRB4])
42 AH_TEMPLATE([LIBGNURL_FEATURE_IPV6],[Defined if libgnurl supports IPv6])
43 AH_TEMPLATE([LIBGNURL_FEATURE_LIBZ],[Defined if libgnurl supports libz])
44 AH_TEMPLATE([LIBGNURL_FEATURE_ASYNCHDNS],[Defined if libgnurl supports AsynchDNS])
45 AH_TEMPLATE([LIBGNURL_FEATURE_IDN],[Defined if libgnurl supports IDN])
46 AH_TEMPLATE([LIBGNURL_FEATURE_SSPI],[Defined if libgnurl supports SSPI])
47 AH_TEMPLATE([LIBGNURL_FEATURE_NTLM],[Defined if libgnurl supports NTLM])
48
49 AH_TEMPLATE([LIBGNURL_PROTOCOL_HTTP],[Defined if libgnurl supports HTTP])
50 AH_TEMPLATE([LIBGNURL_PROTOCOL_HTTPS],[Defined if libgnurl supports HTTPS])
51 AH_TEMPLATE([LIBGNURL_PROTOCOL_FTP],[Defined if libgnurl supports FTP])
52 AH_TEMPLATE([LIBGNURL_PROTOCOL_FTPS],[Defined if libgnurl supports FTPS])
53 AH_TEMPLATE([LIBGNURL_PROTOCOL_FILE],[Defined if libgnurl supports FILE])
54 AH_TEMPLATE([LIBGNURL_PROTOCOL_TELNET],[Defined if libgnurl supports TELNET])
55 AH_TEMPLATE([LIBGNURL_PROTOCOL_LDAP],[Defined if libgnurl supports LDAP])
56 AH_TEMPLATE([LIBGNURL_PROTOCOL_DICT],[Defined if libgnurl supports DICT])
57 AH_TEMPLATE([LIBGNURL_PROTOCOL_TFTP],[Defined if libgnurl supports TFTP])
58 AH_TEMPLATE([LIBGNURL_PROTOCOL_RTSP],[Defined if libgnurl supports RTSP])
59 AH_TEMPLATE([LIBGNURL_PROTOCOL_POP3],[Defined if libgnurl supports POP3])
60 AH_TEMPLATE([LIBGNURL_PROTOCOL_IMAP],[Defined if libgnurl supports IMAP])
61 AH_TEMPLATE([LIBGNURL_PROTOCOL_SMTP],[Defined if libgnurl supports SMTP])
62
63 AC_ARG_WITH(libgnurl,
64 AC_HELP_STRING([--with-libgnurl=PREFIX],[look for the gnurl library in PREFIX/lib and headers in PREFIX/include]),
65 [_libgnurl_with=$withval],[_libgnurl_with=ifelse([$1],,[yes],[$1])])
66
67 if test "$_libgnurl_with" != "no" ; then
68
69 AC_PROG_AWK
70
71 _libgnurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'"
72
73 _libgnurl_try_link=yes
74
75 if test -d "$_libgnurl_with" ; then
76 LIBGNURL_CPPFLAGS="-I$withval/include"
77 _libgnurl_ldflags="-L$withval/lib"
78 AC_PATH_PROG([_libgnurl_config],[gnurl-config],[],
79 ["$withval/bin"])
80 else
81 AC_PATH_PROG([_libgnurl_config],[gnurl-config],[],[$PATH])
82 fi
83
84 if test x$_libgnurl_config != "x" ; then
85 AC_CACHE_CHECK([for the version of libgnurl],
86 [libgnurl_cv_lib_gnurl_version],
87 [libgnurl_cv_lib_gnurl_version=`$_libgnurl_config --version | $AWK '{print $[]2}'`])
88
89 _libgnurl_version=`echo $libgnurl_cv_lib_gnurl_version | $_libgnurl_version_parse`
90 _libgnurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libgnurl_version_parse`
91
92 if test $_libgnurl_wanted -gt 0 ; then
93 AC_CACHE_CHECK([for libgnurl >= version $2],
94 [libgnurl_cv_lib_version_ok],
95 [
96 if test $_libgnurl_version -ge $_libgnurl_wanted ; then
97 libgnurl_cv_lib_version_ok=yes
98 else
99 libgnurl_cv_lib_version_ok=no
100 fi
101 ])
102 fi
103
104 if test $_libgnurl_wanted -eq 0 || test x$libgnurl_cv_lib_version_ok = xyes ; then
105 if test x"$LIBGNURL_CPPFLAGS" = "x" ; then
106 LIBGNURL_CPPFLAGS=`$_libgnurl_config --cflags`
107 fi
108 if test x"$LIBGNURL" = "x" ; then
109 LIBGNURL=`$_libgnurl_config --libs`
110
111 # This is so silly, but Apple actually has a bug in their
112 # gnurl-config script. Fixed in Tiger, but there are still
113 # lots of Panther installs around.
114 case "${host}" in
115 powerpc-apple-darwin7*)
116 LIBGNURL=`echo $LIBGNURL | sed -e 's|-arch i386||g'`
117 ;;
118 esac
119 fi
120
121 # All gnurl-config scripts support --feature
122 _libgnurl_features=`$_libgnurl_config --feature`
123
124 # Is it modern enough to have --protocols? (7.12.4)
125 if test $_libgnurl_version -ge 461828 ; then
126 _libgnurl_protocols=`$_libgnurl_config --protocols`
127 fi
128 else
129 _libgnurl_try_link=no
130 fi
131
132 unset _libgnurl_wanted
133 fi
134
135 if test $_libgnurl_try_link = yes ; then
136
137 # we didn't find gnurl-config, so let's see if the user-supplied
138 # link line (or failing that, "-lgnurl") is enough.
139 LIBGNURL=${LIBGNURL-"$_libgnurl_ldflags -lgnurl"}
140
141 AC_CACHE_CHECK([whether libgnurl is usable],
142 [libgnurl_cv_lib_gnurl_usable],
143 [
144 _libgnurl_save_cppflags=$CPPFLAGS
145 CPPFLAGS="$LIBGNURL_CPPFLAGS $CPPFLAGS"
146 _libgnurl_save_libs=$LIBS
147 LIBS="$LIBGNURL $LIBS"
148
149 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curl/curl.h>],[
150/* Try and use a few common options to force a failure if we are
151 missing symbols or can't link. */
152int x;
153curl_easy_setopt(NULL,CURLOPT_URL,NULL);
154x=CURL_ERROR_SIZE;
155x=CURLOPT_WRITEFUNCTION;
156x=CURLOPT_FILE;
157x=CURLOPT_ERRORBUFFER;
158x=CURLOPT_STDERR;
159x=CURLOPT_VERBOSE;
160])],libgnurl_cv_lib_gnurl_usable=yes,libgnurl_cv_lib_gnurl_usable=no)
161
162 CPPFLAGS=$_libgnurl_save_cppflags
163 LIBS=$_libgnurl_save_libs
164 unset _libgnurl_save_cppflags
165 unset _libgnurl_save_libs
166 ])
167
168 if test $libgnurl_cv_lib_gnurl_usable = yes ; then
169
170 # Does gnurl_free() exist in this version of libgnurl?
171 # If not, fake it with free()
172
173 _libgnurl_save_cppflags=$CPPFLAGS
174 CPPFLAGS="$CPPFLAGS $LIBGNURL_CPPFLAGS"
175 _libgnurl_save_libs=$LIBS
176 LIBS="$LIBS $LIBGNURL"
177
178 AC_CHECK_FUNC(curl_free,,
179 AC_DEFINE(curl_free,free,
180 [Define curl_free() as free() if our version of gnurl lacks curl_free.]))
181
182 CPPFLAGS=$_libgnurl_save_cppflags
183 LIBS=$_libgnurl_save_libs
184 unset _libgnurl_save_cppflags
185 unset _libgnurl_save_libs
186
187 AC_DEFINE(HAVE_LIBGNURL,1,
188 [Define to 1 if you have a functional gnurl library.])
189 AC_SUBST(LIBGNURL_CPPFLAGS)
190 AC_SUBST(LIBGNURL)
191
192 for _libgnurl_feature in $_libgnurl_features ; do
193 AC_DEFINE_UNQUOTED(AS_TR_CPP(libgnurl_feature_$_libgnurl_feature),[1])
194 eval AS_TR_SH(libgnurl_feature_$_libgnurl_feature)=yes
195 done
196
197 if test "x$_libgnurl_protocols" = "x" ; then
198
199 # We don't have --protocols, so just assume that all
200 # protocols are available
201 _libgnurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
202
203 if test x$libgnurl_feature_SSL = xyes ; then
204 _libgnurl_protocols="$_libgnurl_protocols HTTPS"
205
206 # FTPS wasn't standards-compliant until version
207 # 7.11.0 (0x070b00 == 461568)
208 if test $_libgnurl_version -ge 461568; then
209 _libgnurl_protocols="$_libgnurl_protocols FTPS"
210 fi
211 fi
212
213 # RTSP, IMAP, POP3 and SMTP were added in
214 # 7.20.0 (0x071400 == 463872)
215 if test $_libgnurl_version -ge 463872; then
216 _libgnurl_protocols="$_libgnurl_protocols RTSP IMAP POP3 SMTP"
217 fi
218 fi
219
220 for _libgnurl_protocol in $_libgnurl_protocols ; do
221 AC_DEFINE_UNQUOTED(AS_TR_CPP(libgnurl_protocol_$_libgnurl_protocol),[1])
222 eval AS_TR_SH(libgnurl_protocol_$_libgnurl_protocol)=yes
223 done
224 else
225 unset LIBGNURL
226 unset LIBGNURL_CPPFLAGS
227 fi
228 fi
229
230 unset _libgnurl_try_link
231 unset _libgnurl_version_parse
232 unset _libgnurl_config
233 unset _libgnurl_feature
234 unset _libgnurl_features
235 unset _libgnurl_protocol
236 unset _libgnurl_protocols
237 unset _libgnurl_version
238 unset _libgnurl_ldflags
239 fi
240
241 if test x$_libgnurl_with = xno || test x$libgnurl_cv_lib_gnurl_usable != xyes ; then
242 # This is the IF-NO path
243 ifelse([$4],,:,[$4])
244 else
245 # This is the IF-YES path
246 ifelse([$3],,:,[$3])
247 fi
248
249 unset _libgnurl_with
250])dnl
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100644
index 00000000..90ea1a04
--- /dev/null
+++ b/src/.gitignore
@@ -0,0 +1,9 @@
1*.o
2*.deps
3*.libs
4*.lo
5*.la
6*.log
7*.trs
8*/__pycache__
9test-* \ No newline at end of file
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 00000000..e8165ad1
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,614 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# src/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/taler
63pkgincludedir = $(includedir)/taler
64pkglibdir = $(libdir)/taler
65pkglibexecdir = $(libexecdir)/taler
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = x86_64-unknown-linux-gnu
79host_triplet = x86_64-unknown-linux-gnu
80subdir = src
81DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
82ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
84 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
85 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
86 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(install_sh) -d
91CONFIG_HEADER = $(top_builddir)/taler_config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_$(V))
95am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_$(V))
99am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_$(V))
103am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
109 ctags-recursive dvi-recursive html-recursive info-recursive \
110 install-data-recursive install-dvi-recursive \
111 install-exec-recursive install-html-recursive \
112 install-info-recursive install-pdf-recursive \
113 install-ps-recursive install-recursive installcheck-recursive \
114 installdirs-recursive pdf-recursive ps-recursive \
115 tags-recursive uninstall-recursive
116am__can_run_installinfo = \
117 case $$AM_UPDATE_INFO_DIR in \
118 n|no|NO) false;; \
119 *) (install-info --version) >/dev/null 2>&1;; \
120 esac
121RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
122 distclean-recursive maintainer-clean-recursive
123am__recursive_targets = \
124 $(RECURSIVE_TARGETS) \
125 $(RECURSIVE_CLEAN_TARGETS) \
126 $(am__extra_recursive_targets)
127AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
128 distdir
129am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
130# Read a list of newline-separated strings from the standard input,
131# and print each of them once, without duplicates. Input order is
132# *not* preserved.
133am__uniquify_input = $(AWK) '\
134 BEGIN { nonempty = 0; } \
135 { items[$$0] = 1; nonempty = 1; } \
136 END { if (nonempty) { for (i in items) print i; }; } \
137'
138# Make sure the list of sources is unique. This is necessary because,
139# e.g., the same source file might be shared among _SOURCES variables
140# for different programs/libraries.
141am__define_uniq_tagged_files = \
142 list='$(am__tagged_files)'; \
143 unique=`for i in $$list; do \
144 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
145 done | $(am__uniquify_input)`
146ETAGS = etags
147CTAGS = ctags
148DIST_SUBDIRS = $(SUBDIRS)
149DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150am__relativize = \
151 dir0=`pwd`; \
152 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
153 sed_rest='s,^[^/]*/*,,'; \
154 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
155 sed_butlast='s,/*[^/]*$$,,'; \
156 while test -n "$$dir1"; do \
157 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
158 if test "$$first" != "."; then \
159 if test "$$first" = ".."; then \
160 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
161 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
162 else \
163 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
164 if test "$$first2" = "$$first"; then \
165 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
166 else \
167 dir2="../$$dir2"; \
168 fi; \
169 dir0="$$dir0"/"$$first"; \
170 fi; \
171 fi; \
172 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
173 done; \
174 reldir="$$dir2"
175ACLOCAL = ${SHELL} /home/grothoff/research/merchant/missing aclocal-1.14
176AMTAR = $${TAR-tar}
177AM_DEFAULT_VERBOSITY = 0
178AR = ar
179AUTOCONF = ${SHELL} /home/grothoff/research/merchant/missing autoconf
180AUTOHEADER = ${SHELL} /home/grothoff/research/merchant/missing autoheader
181AUTOMAKE = ${SHELL} /home/grothoff/research/merchant/missing automake-1.14
182AWK = gawk
183CC = gcc
184CCDEPMODE = depmode=gcc3
185CFLAGS = -Wall -g -O0 -Wall
186CPP = gcc -E
187CPPFLAGS = -I/home/grothoff//include
188CYGPATH_W = echo
189DEFS = -DHAVE_CONFIG_H
190DEPDIR = .deps
191DLLTOOL = false
192DSYMUTIL =
193DUMPBIN =
194ECHO_C =
195ECHO_N = -n
196ECHO_T =
197EGREP = /bin/grep -E
198EXEEXT =
199FGREP = /bin/grep -F
200GREP = /bin/grep
201INSTALL = /usr/bin/install -c
202INSTALL_DATA = ${INSTALL} -m 644
203INSTALL_PROGRAM = ${INSTALL}
204INSTALL_SCRIPT = ${INSTALL}
205INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
206LD = /usr/bin/ld -m elf_x86_64
207LDFLAGS = -L/home/grothoff//lib
208LIBGCRYPT_CFLAGS =
209LIBGCRYPT_CONFIG = /usr/bin/libgcrypt-config
210LIBGCRYPT_LIBS = -lgcrypt
211LIBGNURL = -L/home/grothoff/lib -lgnurl
212LIBGNURL_CPPFLAGS = -I/home/grothoff/include
213LIBOBJS =
214LIBS =
215LIBTOOL = $(SHELL) $(top_builddir)/libtool
216LIPO =
217LN_S = ln -s
218LTLIBOBJS =
219MAKEINFO = ${SHELL} /home/grothoff/research/merchant/missing makeinfo
220MANIFEST_TOOL = :
221MKDIR_P = /bin/mkdir -p
222NM = /usr/bin/nm -B
223NMEDIT =
224OBJDUMP = objdump
225OBJEXT = o
226OTOOL =
227OTOOL64 =
228PACKAGE = taler
229PACKAGE_BUGREPORT = taler-bug@gnunet.org
230PACKAGE_NAME = taler
231PACKAGE_STRING = taler 0.0.0
232PACKAGE_TARNAME = taler
233PACKAGE_URL =
234PACKAGE_VERSION = 0.0.0
235PATH_SEPARATOR = :
236PG_CONFIG = /usr/bin/pg_config
237POSTGRESQL_CPPFLAGS = -I/usr/include/postgresql
238POSTGRESQL_LDFLAGS = -L/usr/lib/x86_64-linux-gnu
239POSTGRESQL_VERSION = 9.4.0
240RANLIB = ranlib
241SED = /bin/sed
242SET_MAKE =
243SHELL = /bin/bash
244STRIP = strip
245VERSION = 0.0.0
246_libgnurl_config =
247abs_builddir = /home/grothoff/research/merchant/src
248abs_srcdir = /home/grothoff/research/merchant/src
249abs_top_builddir = /home/grothoff/research/merchant
250abs_top_srcdir = /home/grothoff/research/merchant
251ac_ct_AR = ar
252ac_ct_CC = gcc
253ac_ct_DUMPBIN =
254am__include = include
255am__leading_dot = .
256am__quote =
257am__tar = $${TAR-tar} chof - "$$tardir"
258am__untar = $${TAR-tar} xf -
259bindir = ${exec_prefix}/bin
260build = x86_64-unknown-linux-gnu
261build_alias =
262build_cpu = x86_64
263build_os = linux-gnu
264build_vendor = unknown
265builddir = .
266datadir = ${datarootdir}
267datarootdir = ${prefix}/share
268docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
269dvidir = ${docdir}
270exec_prefix = ${prefix}
271host = x86_64-unknown-linux-gnu
272host_alias =
273host_cpu = x86_64
274host_os = linux-gnu
275host_vendor = unknown
276htmldir = ${docdir}
277includedir = ${prefix}/include
278infodir = ${datarootdir}/info
279install_sh = ${SHELL} /home/grothoff/research/merchant/install-sh
280libdir = ${exec_prefix}/lib
281libexecdir = ${exec_prefix}/libexec
282localedir = ${datarootdir}/locale
283localstatedir = ${prefix}/var
284mandir = ${datarootdir}/man
285mkdir_p = $(MKDIR_P)
286oldincludedir = /usr/include
287pdfdir = ${docdir}
288prefix = /usr/local
289program_transform_name = s,x,x,
290psdir = ${docdir}
291sbindir = ${exec_prefix}/sbin
292sharedstatedir = ${prefix}/com
293srcdir = .
294sysconfdir = ${prefix}/etc
295target_alias =
296top_build_prefix = ../
297top_builddir = ..
298top_srcdir = ..
299AM_CPPFLAGS = -I$(top_srcdir)/src/include
300SUBDIRS = include merchant
301all: all-recursive
302
303.SUFFIXES:
304$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
305 @for dep in $?; do \
306 case '$(am__configure_deps)' in \
307 *$$dep*) \
308 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
309 && { if test -f $@; then exit 0; else break; fi; }; \
310 exit 1;; \
311 esac; \
312 done; \
313 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
314 $(am__cd) $(top_srcdir) && \
315 $(AUTOMAKE) --gnu src/Makefile
316.PRECIOUS: Makefile
317Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
318 @case '$?' in \
319 *config.status*) \
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
321 *) \
322 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
323 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
324 esac;
325
326$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
327 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
328
329$(top_srcdir)/configure: $(am__configure_deps)
330 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
331$(ACLOCAL_M4): $(am__aclocal_m4_deps)
332 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
333$(am__aclocal_m4_deps):
334
335mostlyclean-libtool:
336 -rm -f *.lo
337
338clean-libtool:
339 -rm -rf .libs _libs
340
341# This directory's subdirectories are mostly independent; you can cd
342# into them and run 'make' without going through this Makefile.
343# To change the values of 'make' variables: instead of editing Makefiles,
344# (1) if the variable is set in 'config.status', edit 'config.status'
345# (which will cause the Makefiles to be regenerated when you run 'make');
346# (2) otherwise, pass the desired values on the 'make' command line.
347$(am__recursive_targets):
348 @fail=; \
349 if $(am__make_keepgoing); then \
350 failcom='fail=yes'; \
351 else \
352 failcom='exit 1'; \
353 fi; \
354 dot_seen=no; \
355 target=`echo $@ | sed s/-recursive//`; \
356 case "$@" in \
357 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
358 *) list='$(SUBDIRS)' ;; \
359 esac; \
360 for subdir in $$list; do \
361 echo "Making $$target in $$subdir"; \
362 if test "$$subdir" = "."; then \
363 dot_seen=yes; \
364 local_target="$$target-am"; \
365 else \
366 local_target="$$target"; \
367 fi; \
368 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
369 || eval $$failcom; \
370 done; \
371 if test "$$dot_seen" = "no"; then \
372 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
373 fi; test -z "$$fail"
374
375ID: $(am__tagged_files)
376 $(am__define_uniq_tagged_files); mkid -fID $$unique
377tags: tags-recursive
378TAGS: tags
379
380tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
381 set x; \
382 here=`pwd`; \
383 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
384 include_option=--etags-include; \
385 empty_fix=.; \
386 else \
387 include_option=--include; \
388 empty_fix=; \
389 fi; \
390 list='$(SUBDIRS)'; for subdir in $$list; do \
391 if test "$$subdir" = .; then :; else \
392 test ! -f $$subdir/TAGS || \
393 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
394 fi; \
395 done; \
396 $(am__define_uniq_tagged_files); \
397 shift; \
398 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
399 test -n "$$unique" || unique=$$empty_fix; \
400 if test $$# -gt 0; then \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 "$$@" $$unique; \
403 else \
404 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
405 $$unique; \
406 fi; \
407 fi
408ctags: ctags-recursive
409
410CTAGS: ctags
411ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
412 $(am__define_uniq_tagged_files); \
413 test -z "$(CTAGS_ARGS)$$unique" \
414 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
415 $$unique
416
417GTAGS:
418 here=`$(am__cd) $(top_builddir) && pwd` \
419 && $(am__cd) $(top_srcdir) \
420 && gtags -i $(GTAGS_ARGS) "$$here"
421cscopelist: cscopelist-recursive
422
423cscopelist-am: $(am__tagged_files)
424 list='$(am__tagged_files)'; \
425 case "$(srcdir)" in \
426 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
427 *) sdir=$(subdir)/$(srcdir) ;; \
428 esac; \
429 for i in $$list; do \
430 if test -f "$$i"; then \
431 echo "$(subdir)/$$i"; \
432 else \
433 echo "$$sdir/$$i"; \
434 fi; \
435 done >> $(top_builddir)/cscope.files
436
437distclean-tags:
438 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
439
440distdir: $(DISTFILES)
441 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
442 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
443 list='$(DISTFILES)'; \
444 dist_files=`for file in $$list; do echo $$file; done | \
445 sed -e "s|^$$srcdirstrip/||;t" \
446 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
447 case $$dist_files in \
448 */*) $(MKDIR_P) `echo "$$dist_files" | \
449 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
450 sort -u` ;; \
451 esac; \
452 for file in $$dist_files; do \
453 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
454 if test -d $$d/$$file; then \
455 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
456 if test -d "$(distdir)/$$file"; then \
457 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
458 fi; \
459 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
460 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
461 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
462 fi; \
463 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
464 else \
465 test -f "$(distdir)/$$file" \
466 || cp -p $$d/$$file "$(distdir)/$$file" \
467 || exit 1; \
468 fi; \
469 done
470 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
471 if test "$$subdir" = .; then :; else \
472 $(am__make_dryrun) \
473 || test -d "$(distdir)/$$subdir" \
474 || $(MKDIR_P) "$(distdir)/$$subdir" \
475 || exit 1; \
476 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
477 $(am__relativize); \
478 new_distdir=$$reldir; \
479 dir1=$$subdir; dir2="$(top_distdir)"; \
480 $(am__relativize); \
481 new_top_distdir=$$reldir; \
482 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
483 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
484 ($(am__cd) $$subdir && \
485 $(MAKE) $(AM_MAKEFLAGS) \
486 top_distdir="$$new_top_distdir" \
487 distdir="$$new_distdir" \
488 am__remove_distdir=: \
489 am__skip_length_check=: \
490 am__skip_mode_fix=: \
491 distdir) \
492 || exit 1; \
493 fi; \
494 done
495check-am: all-am
496check: check-recursive
497all-am: Makefile
498installdirs: installdirs-recursive
499installdirs-am:
500install: install-recursive
501install-exec: install-exec-recursive
502install-data: install-data-recursive
503uninstall: uninstall-recursive
504
505install-am: all-am
506 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
507
508installcheck: installcheck-recursive
509install-strip:
510 if test -z '$(STRIP)'; then \
511 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
512 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
513 install; \
514 else \
515 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
516 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
517 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
518 fi
519mostlyclean-generic:
520
521clean-generic:
522
523distclean-generic:
524 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
525 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
526
527maintainer-clean-generic:
528 @echo "This command is intended for maintainers to use"
529 @echo "it deletes files that may require special tools to rebuild."
530clean: clean-recursive
531
532clean-am: clean-generic clean-libtool mostlyclean-am
533
534distclean: distclean-recursive
535 -rm -f Makefile
536distclean-am: clean-am distclean-generic distclean-tags
537
538dvi: dvi-recursive
539
540dvi-am:
541
542html: html-recursive
543
544html-am:
545
546info: info-recursive
547
548info-am:
549
550install-data-am:
551
552install-dvi: install-dvi-recursive
553
554install-dvi-am:
555
556install-exec-am:
557
558install-html: install-html-recursive
559
560install-html-am:
561
562install-info: install-info-recursive
563
564install-info-am:
565
566install-man:
567
568install-pdf: install-pdf-recursive
569
570install-pdf-am:
571
572install-ps: install-ps-recursive
573
574install-ps-am:
575
576installcheck-am:
577
578maintainer-clean: maintainer-clean-recursive
579 -rm -f Makefile
580maintainer-clean-am: distclean-am maintainer-clean-generic
581
582mostlyclean: mostlyclean-recursive
583
584mostlyclean-am: mostlyclean-generic mostlyclean-libtool
585
586pdf: pdf-recursive
587
588pdf-am:
589
590ps: ps-recursive
591
592ps-am:
593
594uninstall-am:
595
596.MAKE: $(am__recursive_targets) install-am install-strip
597
598.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
599 check-am clean clean-generic clean-libtool cscopelist-am ctags \
600 ctags-am distclean distclean-generic distclean-libtool \
601 distclean-tags distdir dvi dvi-am html html-am info info-am \
602 install install-am install-data install-data-am install-dvi \
603 install-dvi-am install-exec install-exec-am install-html \
604 install-html-am install-info install-info-am install-man \
605 install-pdf install-pdf-am install-ps install-ps-am \
606 install-strip installcheck installcheck-am installdirs \
607 installdirs-am maintainer-clean maintainer-clean-generic \
608 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
609 ps ps-am tags tags-am uninstall uninstall-am
610
611
612# Tell versions [3.59,3.63) of GNU make to not export all variables.
613# Otherwise a system limit (for SysV at least) may be exceeded.
614.NOEXPORT:
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 00000000..0bd932c0
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,2 @@
1AM_CPPFLAGS = -I$(top_srcdir)/src/include
2SUBDIRS = include merchant
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644
index 00000000..0f54bdf4
--- /dev/null
+++ b/src/Makefile.in
@@ -0,0 +1,614 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/@PACKAGE@
63pkgincludedir = $(includedir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkglibexecdir = $(libexecdir)/@PACKAGE@
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = @build@
79host_triplet = @host@
80subdir = src
81DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
82ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
84 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
85 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
86 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(install_sh) -d
91CONFIG_HEADER = $(top_builddir)/taler_config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_@AM_V@)
95am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_@AM_V@)
99am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_@AM_V@)
103am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
109 ctags-recursive dvi-recursive html-recursive info-recursive \
110 install-data-recursive install-dvi-recursive \
111 install-exec-recursive install-html-recursive \
112 install-info-recursive install-pdf-recursive \
113 install-ps-recursive install-recursive installcheck-recursive \
114 installdirs-recursive pdf-recursive ps-recursive \
115 tags-recursive uninstall-recursive
116am__can_run_installinfo = \
117 case $$AM_UPDATE_INFO_DIR in \
118 n|no|NO) false;; \
119 *) (install-info --version) >/dev/null 2>&1;; \
120 esac
121RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
122 distclean-recursive maintainer-clean-recursive
123am__recursive_targets = \
124 $(RECURSIVE_TARGETS) \
125 $(RECURSIVE_CLEAN_TARGETS) \
126 $(am__extra_recursive_targets)
127AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
128 distdir
129am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
130# Read a list of newline-separated strings from the standard input,
131# and print each of them once, without duplicates. Input order is
132# *not* preserved.
133am__uniquify_input = $(AWK) '\
134 BEGIN { nonempty = 0; } \
135 { items[$$0] = 1; nonempty = 1; } \
136 END { if (nonempty) { for (i in items) print i; }; } \
137'
138# Make sure the list of sources is unique. This is necessary because,
139# e.g., the same source file might be shared among _SOURCES variables
140# for different programs/libraries.
141am__define_uniq_tagged_files = \
142 list='$(am__tagged_files)'; \
143 unique=`for i in $$list; do \
144 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
145 done | $(am__uniquify_input)`
146ETAGS = etags
147CTAGS = ctags
148DIST_SUBDIRS = $(SUBDIRS)
149DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150am__relativize = \
151 dir0=`pwd`; \
152 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
153 sed_rest='s,^[^/]*/*,,'; \
154 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
155 sed_butlast='s,/*[^/]*$$,,'; \
156 while test -n "$$dir1"; do \
157 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
158 if test "$$first" != "."; then \
159 if test "$$first" = ".."; then \
160 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
161 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
162 else \
163 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
164 if test "$$first2" = "$$first"; then \
165 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
166 else \
167 dir2="../$$dir2"; \
168 fi; \
169 dir0="$$dir0"/"$$first"; \
170 fi; \
171 fi; \
172 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
173 done; \
174 reldir="$$dir2"
175ACLOCAL = @ACLOCAL@
176AMTAR = @AMTAR@
177AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
178AR = @AR@
179AUTOCONF = @AUTOCONF@
180AUTOHEADER = @AUTOHEADER@
181AUTOMAKE = @AUTOMAKE@
182AWK = @AWK@
183CC = @CC@
184CCDEPMODE = @CCDEPMODE@
185CFLAGS = @CFLAGS@
186CPP = @CPP@
187CPPFLAGS = @CPPFLAGS@
188CYGPATH_W = @CYGPATH_W@
189DEFS = @DEFS@
190DEPDIR = @DEPDIR@
191DLLTOOL = @DLLTOOL@
192DSYMUTIL = @DSYMUTIL@
193DUMPBIN = @DUMPBIN@
194ECHO_C = @ECHO_C@
195ECHO_N = @ECHO_N@
196ECHO_T = @ECHO_T@
197EGREP = @EGREP@
198EXEEXT = @EXEEXT@
199FGREP = @FGREP@
200GREP = @GREP@
201INSTALL = @INSTALL@
202INSTALL_DATA = @INSTALL_DATA@
203INSTALL_PROGRAM = @INSTALL_PROGRAM@
204INSTALL_SCRIPT = @INSTALL_SCRIPT@
205INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
206LD = @LD@
207LDFLAGS = @LDFLAGS@
208LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
209LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
210LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
211LIBGNURL = @LIBGNURL@
212LIBGNURL_CPPFLAGS = @LIBGNURL_CPPFLAGS@
213LIBOBJS = @LIBOBJS@
214LIBS = @LIBS@
215LIBTOOL = @LIBTOOL@
216LIPO = @LIPO@
217LN_S = @LN_S@
218LTLIBOBJS = @LTLIBOBJS@
219MAKEINFO = @MAKEINFO@
220MANIFEST_TOOL = @MANIFEST_TOOL@
221MKDIR_P = @MKDIR_P@
222NM = @NM@
223NMEDIT = @NMEDIT@
224OBJDUMP = @OBJDUMP@
225OBJEXT = @OBJEXT@
226OTOOL = @OTOOL@
227OTOOL64 = @OTOOL64@
228PACKAGE = @PACKAGE@
229PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
230PACKAGE_NAME = @PACKAGE_NAME@
231PACKAGE_STRING = @PACKAGE_STRING@
232PACKAGE_TARNAME = @PACKAGE_TARNAME@
233PACKAGE_URL = @PACKAGE_URL@
234PACKAGE_VERSION = @PACKAGE_VERSION@
235PATH_SEPARATOR = @PATH_SEPARATOR@
236PG_CONFIG = @PG_CONFIG@
237POSTGRESQL_CPPFLAGS = @POSTGRESQL_CPPFLAGS@
238POSTGRESQL_LDFLAGS = @POSTGRESQL_LDFLAGS@
239POSTGRESQL_VERSION = @POSTGRESQL_VERSION@
240RANLIB = @RANLIB@
241SED = @SED@
242SET_MAKE = @SET_MAKE@
243SHELL = @SHELL@
244STRIP = @STRIP@
245VERSION = @VERSION@
246_libgnurl_config = @_libgnurl_config@
247abs_builddir = @abs_builddir@
248abs_srcdir = @abs_srcdir@
249abs_top_builddir = @abs_top_builddir@
250abs_top_srcdir = @abs_top_srcdir@
251ac_ct_AR = @ac_ct_AR@
252ac_ct_CC = @ac_ct_CC@
253ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
254am__include = @am__include@
255am__leading_dot = @am__leading_dot@
256am__quote = @am__quote@
257am__tar = @am__tar@
258am__untar = @am__untar@
259bindir = @bindir@
260build = @build@
261build_alias = @build_alias@
262build_cpu = @build_cpu@
263build_os = @build_os@
264build_vendor = @build_vendor@
265builddir = @builddir@
266datadir = @datadir@
267datarootdir = @datarootdir@
268docdir = @docdir@
269dvidir = @dvidir@
270exec_prefix = @exec_prefix@
271host = @host@
272host_alias = @host_alias@
273host_cpu = @host_cpu@
274host_os = @host_os@
275host_vendor = @host_vendor@
276htmldir = @htmldir@
277includedir = @includedir@
278infodir = @infodir@
279install_sh = @install_sh@
280libdir = @libdir@
281libexecdir = @libexecdir@
282localedir = @localedir@
283localstatedir = @localstatedir@
284mandir = @mandir@
285mkdir_p = @mkdir_p@
286oldincludedir = @oldincludedir@
287pdfdir = @pdfdir@
288prefix = @prefix@
289program_transform_name = @program_transform_name@
290psdir = @psdir@
291sbindir = @sbindir@
292sharedstatedir = @sharedstatedir@
293srcdir = @srcdir@
294sysconfdir = @sysconfdir@
295target_alias = @target_alias@
296top_build_prefix = @top_build_prefix@
297top_builddir = @top_builddir@
298top_srcdir = @top_srcdir@
299AM_CPPFLAGS = -I$(top_srcdir)/src/include
300SUBDIRS = include merchant
301all: all-recursive
302
303.SUFFIXES:
304$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
305 @for dep in $?; do \
306 case '$(am__configure_deps)' in \
307 *$$dep*) \
308 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
309 && { if test -f $@; then exit 0; else break; fi; }; \
310 exit 1;; \
311 esac; \
312 done; \
313 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
314 $(am__cd) $(top_srcdir) && \
315 $(AUTOMAKE) --gnu src/Makefile
316.PRECIOUS: Makefile
317Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
318 @case '$?' in \
319 *config.status*) \
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
321 *) \
322 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
323 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
324 esac;
325
326$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
327 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
328
329$(top_srcdir)/configure: $(am__configure_deps)
330 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
331$(ACLOCAL_M4): $(am__aclocal_m4_deps)
332 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
333$(am__aclocal_m4_deps):
334
335mostlyclean-libtool:
336 -rm -f *.lo
337
338clean-libtool:
339 -rm -rf .libs _libs
340
341# This directory's subdirectories are mostly independent; you can cd
342# into them and run 'make' without going through this Makefile.
343# To change the values of 'make' variables: instead of editing Makefiles,
344# (1) if the variable is set in 'config.status', edit 'config.status'
345# (which will cause the Makefiles to be regenerated when you run 'make');
346# (2) otherwise, pass the desired values on the 'make' command line.
347$(am__recursive_targets):
348 @fail=; \
349 if $(am__make_keepgoing); then \
350 failcom='fail=yes'; \
351 else \
352 failcom='exit 1'; \
353 fi; \
354 dot_seen=no; \
355 target=`echo $@ | sed s/-recursive//`; \
356 case "$@" in \
357 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
358 *) list='$(SUBDIRS)' ;; \
359 esac; \
360 for subdir in $$list; do \
361 echo "Making $$target in $$subdir"; \
362 if test "$$subdir" = "."; then \
363 dot_seen=yes; \
364 local_target="$$target-am"; \
365 else \
366 local_target="$$target"; \
367 fi; \
368 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
369 || eval $$failcom; \
370 done; \
371 if test "$$dot_seen" = "no"; then \
372 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
373 fi; test -z "$$fail"
374
375ID: $(am__tagged_files)
376 $(am__define_uniq_tagged_files); mkid -fID $$unique
377tags: tags-recursive
378TAGS: tags
379
380tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
381 set x; \
382 here=`pwd`; \
383 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
384 include_option=--etags-include; \
385 empty_fix=.; \
386 else \
387 include_option=--include; \
388 empty_fix=; \
389 fi; \
390 list='$(SUBDIRS)'; for subdir in $$list; do \
391 if test "$$subdir" = .; then :; else \
392 test ! -f $$subdir/TAGS || \
393 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
394 fi; \
395 done; \
396 $(am__define_uniq_tagged_files); \
397 shift; \
398 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
399 test -n "$$unique" || unique=$$empty_fix; \
400 if test $$# -gt 0; then \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 "$$@" $$unique; \
403 else \
404 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
405 $$unique; \
406 fi; \
407 fi
408ctags: ctags-recursive
409
410CTAGS: ctags
411ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
412 $(am__define_uniq_tagged_files); \
413 test -z "$(CTAGS_ARGS)$$unique" \
414 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
415 $$unique
416
417GTAGS:
418 here=`$(am__cd) $(top_builddir) && pwd` \
419 && $(am__cd) $(top_srcdir) \
420 && gtags -i $(GTAGS_ARGS) "$$here"
421cscopelist: cscopelist-recursive
422
423cscopelist-am: $(am__tagged_files)
424 list='$(am__tagged_files)'; \
425 case "$(srcdir)" in \
426 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
427 *) sdir=$(subdir)/$(srcdir) ;; \
428 esac; \
429 for i in $$list; do \
430 if test -f "$$i"; then \
431 echo "$(subdir)/$$i"; \
432 else \
433 echo "$$sdir/$$i"; \
434 fi; \
435 done >> $(top_builddir)/cscope.files
436
437distclean-tags:
438 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
439
440distdir: $(DISTFILES)
441 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
442 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
443 list='$(DISTFILES)'; \
444 dist_files=`for file in $$list; do echo $$file; done | \
445 sed -e "s|^$$srcdirstrip/||;t" \
446 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
447 case $$dist_files in \
448 */*) $(MKDIR_P) `echo "$$dist_files" | \
449 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
450 sort -u` ;; \
451 esac; \
452 for file in $$dist_files; do \
453 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
454 if test -d $$d/$$file; then \
455 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
456 if test -d "$(distdir)/$$file"; then \
457 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
458 fi; \
459 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
460 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
461 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
462 fi; \
463 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
464 else \
465 test -f "$(distdir)/$$file" \
466 || cp -p $$d/$$file "$(distdir)/$$file" \
467 || exit 1; \
468 fi; \
469 done
470 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
471 if test "$$subdir" = .; then :; else \
472 $(am__make_dryrun) \
473 || test -d "$(distdir)/$$subdir" \
474 || $(MKDIR_P) "$(distdir)/$$subdir" \
475 || exit 1; \
476 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
477 $(am__relativize); \
478 new_distdir=$$reldir; \
479 dir1=$$subdir; dir2="$(top_distdir)"; \
480 $(am__relativize); \
481 new_top_distdir=$$reldir; \
482 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
483 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
484 ($(am__cd) $$subdir && \
485 $(MAKE) $(AM_MAKEFLAGS) \
486 top_distdir="$$new_top_distdir" \
487 distdir="$$new_distdir" \
488 am__remove_distdir=: \
489 am__skip_length_check=: \
490 am__skip_mode_fix=: \
491 distdir) \
492 || exit 1; \
493 fi; \
494 done
495check-am: all-am
496check: check-recursive
497all-am: Makefile
498installdirs: installdirs-recursive
499installdirs-am:
500install: install-recursive
501install-exec: install-exec-recursive
502install-data: install-data-recursive
503uninstall: uninstall-recursive
504
505install-am: all-am
506 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
507
508installcheck: installcheck-recursive
509install-strip:
510 if test -z '$(STRIP)'; then \
511 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
512 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
513 install; \
514 else \
515 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
516 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
517 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
518 fi
519mostlyclean-generic:
520
521clean-generic:
522
523distclean-generic:
524 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
525 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
526
527maintainer-clean-generic:
528 @echo "This command is intended for maintainers to use"
529 @echo "it deletes files that may require special tools to rebuild."
530clean: clean-recursive
531
532clean-am: clean-generic clean-libtool mostlyclean-am
533
534distclean: distclean-recursive
535 -rm -f Makefile
536distclean-am: clean-am distclean-generic distclean-tags
537
538dvi: dvi-recursive
539
540dvi-am:
541
542html: html-recursive
543
544html-am:
545
546info: info-recursive
547
548info-am:
549
550install-data-am:
551
552install-dvi: install-dvi-recursive
553
554install-dvi-am:
555
556install-exec-am:
557
558install-html: install-html-recursive
559
560install-html-am:
561
562install-info: install-info-recursive
563
564install-info-am:
565
566install-man:
567
568install-pdf: install-pdf-recursive
569
570install-pdf-am:
571
572install-ps: install-ps-recursive
573
574install-ps-am:
575
576installcheck-am:
577
578maintainer-clean: maintainer-clean-recursive
579 -rm -f Makefile
580maintainer-clean-am: distclean-am maintainer-clean-generic
581
582mostlyclean: mostlyclean-recursive
583
584mostlyclean-am: mostlyclean-generic mostlyclean-libtool
585
586pdf: pdf-recursive
587
588pdf-am:
589
590ps: ps-recursive
591
592ps-am:
593
594uninstall-am:
595
596.MAKE: $(am__recursive_targets) install-am install-strip
597
598.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
599 check-am clean clean-generic clean-libtool cscopelist-am ctags \
600 ctags-am distclean distclean-generic distclean-libtool \
601 distclean-tags distdir dvi dvi-am html html-am info info-am \
602 install install-am install-data install-data-am install-dvi \
603 install-dvi-am install-exec install-exec-am install-html \
604 install-html-am install-info install-info-am install-man \
605 install-pdf install-pdf-am install-ps install-ps-am \
606 install-strip installcheck installcheck-am installdirs \
607 installdirs-am maintainer-clean maintainer-clean-generic \
608 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
609 ps ps-am tags tags-am uninstall uninstall-am
610
611
612# Tell versions [3.59,3.63) of GNU make to not export all variables.
613# Otherwise a system limit (for SysV at least) may be exceeded.
614.NOEXPORT:
diff --git a/src/include/Makefile b/src/include/Makefile
new file mode 100644
index 00000000..5bd27d29
--- /dev/null
+++ b/src/include/Makefile
@@ -0,0 +1,435 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# src/include/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/taler
63pkgincludedir = $(includedir)/taler
64pkglibdir = $(libdir)/taler
65pkglibexecdir = $(libexecdir)/taler
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = x86_64-unknown-linux-gnu
79host_triplet = x86_64-unknown-linux-gnu
80subdir = src/include
81DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
82ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
84 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
85 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
86 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(install_sh) -d
91CONFIG_HEADER = $(top_builddir)/taler_config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_$(V))
95am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_$(V))
99am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_$(V))
103am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108am__can_run_installinfo = \
109 case $$AM_UPDATE_INFO_DIR in \
110 n|no|NO) false;; \
111 *) (install-info --version) >/dev/null 2>&1;; \
112 esac
113am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
114DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115ACLOCAL = ${SHELL} /home/grothoff/research/merchant/missing aclocal-1.14
116AMTAR = $${TAR-tar}
117AM_DEFAULT_VERBOSITY = 0
118AR = ar
119AUTOCONF = ${SHELL} /home/grothoff/research/merchant/missing autoconf
120AUTOHEADER = ${SHELL} /home/grothoff/research/merchant/missing autoheader
121AUTOMAKE = ${SHELL} /home/grothoff/research/merchant/missing automake-1.14
122AWK = gawk
123CC = gcc
124CCDEPMODE = depmode=gcc3
125CFLAGS = -Wall -g -O0 -Wall
126CPP = gcc -E
127CPPFLAGS = -I/home/grothoff//include
128CYGPATH_W = echo
129DEFS = -DHAVE_CONFIG_H
130DEPDIR = .deps
131DLLTOOL = false
132DSYMUTIL =
133DUMPBIN =
134ECHO_C =
135ECHO_N = -n
136ECHO_T =
137EGREP = /bin/grep -E
138EXEEXT =
139FGREP = /bin/grep -F
140GREP = /bin/grep
141INSTALL = /usr/bin/install -c
142INSTALL_DATA = ${INSTALL} -m 644
143INSTALL_PROGRAM = ${INSTALL}
144INSTALL_SCRIPT = ${INSTALL}
145INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
146LD = /usr/bin/ld -m elf_x86_64
147LDFLAGS = -L/home/grothoff//lib
148LIBGCRYPT_CFLAGS =
149LIBGCRYPT_CONFIG = /usr/bin/libgcrypt-config
150LIBGCRYPT_LIBS = -lgcrypt
151LIBGNURL = -L/home/grothoff/lib -lgnurl
152LIBGNURL_CPPFLAGS = -I/home/grothoff/include
153LIBOBJS =
154LIBS =
155LIBTOOL = $(SHELL) $(top_builddir)/libtool
156LIPO =
157LN_S = ln -s
158LTLIBOBJS =
159MAKEINFO = ${SHELL} /home/grothoff/research/merchant/missing makeinfo
160MANIFEST_TOOL = :
161MKDIR_P = /bin/mkdir -p
162NM = /usr/bin/nm -B
163NMEDIT =
164OBJDUMP = objdump
165OBJEXT = o
166OTOOL =
167OTOOL64 =
168PACKAGE = taler
169PACKAGE_BUGREPORT = taler-bug@gnunet.org
170PACKAGE_NAME = taler
171PACKAGE_STRING = taler 0.0.0
172PACKAGE_TARNAME = taler
173PACKAGE_URL =
174PACKAGE_VERSION = 0.0.0
175PATH_SEPARATOR = :
176PG_CONFIG = /usr/bin/pg_config
177POSTGRESQL_CPPFLAGS = -I/usr/include/postgresql
178POSTGRESQL_LDFLAGS = -L/usr/lib/x86_64-linux-gnu
179POSTGRESQL_VERSION = 9.4.0
180RANLIB = ranlib
181SED = /bin/sed
182SET_MAKE =
183SHELL = /bin/bash
184STRIP = strip
185VERSION = 0.0.0
186_libgnurl_config =
187abs_builddir = /home/grothoff/research/merchant/src/include
188abs_srcdir = /home/grothoff/research/merchant/src/include
189abs_top_builddir = /home/grothoff/research/merchant
190abs_top_srcdir = /home/grothoff/research/merchant
191ac_ct_AR = ar
192ac_ct_CC = gcc
193ac_ct_DUMPBIN =
194am__include = include
195am__leading_dot = .
196am__quote =
197am__tar = $${TAR-tar} chof - "$$tardir"
198am__untar = $${TAR-tar} xf -
199bindir = ${exec_prefix}/bin
200build = x86_64-unknown-linux-gnu
201build_alias =
202build_cpu = x86_64
203build_os = linux-gnu
204build_vendor = unknown
205builddir = .
206datadir = ${datarootdir}
207datarootdir = ${prefix}/share
208docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
209dvidir = ${docdir}
210exec_prefix = ${prefix}
211host = x86_64-unknown-linux-gnu
212host_alias =
213host_cpu = x86_64
214host_os = linux-gnu
215host_vendor = unknown
216htmldir = ${docdir}
217includedir = ${prefix}/include
218infodir = ${datarootdir}/info
219install_sh = ${SHELL} /home/grothoff/research/merchant/install-sh
220libdir = ${exec_prefix}/lib
221libexecdir = ${exec_prefix}/libexec
222localedir = ${datarootdir}/locale
223localstatedir = ${prefix}/var
224mandir = ${datarootdir}/man
225mkdir_p = $(MKDIR_P)
226oldincludedir = /usr/include
227pdfdir = ${docdir}
228prefix = /usr/local
229program_transform_name = s,x,x,
230psdir = ${docdir}
231sbindir = ${exec_prefix}/sbin
232sharedstatedir = ${prefix}/com
233srcdir = .
234sysconfdir = ${prefix}/etc
235target_alias =
236top_build_prefix = ../../
237top_builddir = ../..
238top_srcdir = ../..
239EXTRA_DIST = \
240 platform.h
241
242all: all-am
243
244.SUFFIXES:
245$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
246 @for dep in $?; do \
247 case '$(am__configure_deps)' in \
248 *$$dep*) \
249 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
250 && { if test -f $@; then exit 0; else break; fi; }; \
251 exit 1;; \
252 esac; \
253 done; \
254 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile'; \
255 $(am__cd) $(top_srcdir) && \
256 $(AUTOMAKE) --gnu src/include/Makefile
257.PRECIOUS: Makefile
258Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
259 @case '$?' in \
260 *config.status*) \
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
262 *) \
263 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
264 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
265 esac;
266
267$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269
270$(top_srcdir)/configure: $(am__configure_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272$(ACLOCAL_M4): $(am__aclocal_m4_deps)
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
274$(am__aclocal_m4_deps):
275
276mostlyclean-libtool:
277 -rm -f *.lo
278
279clean-libtool:
280 -rm -rf .libs _libs
281tags TAGS:
282
283ctags CTAGS:
284
285cscope cscopelist:
286
287
288distdir: $(DISTFILES)
289 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
290 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
291 list='$(DISTFILES)'; \
292 dist_files=`for file in $$list; do echo $$file; done | \
293 sed -e "s|^$$srcdirstrip/||;t" \
294 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
295 case $$dist_files in \
296 */*) $(MKDIR_P) `echo "$$dist_files" | \
297 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
298 sort -u` ;; \
299 esac; \
300 for file in $$dist_files; do \
301 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
302 if test -d $$d/$$file; then \
303 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
304 if test -d "$(distdir)/$$file"; then \
305 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
306 fi; \
307 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
308 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
309 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
310 fi; \
311 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
312 else \
313 test -f "$(distdir)/$$file" \
314 || cp -p $$d/$$file "$(distdir)/$$file" \
315 || exit 1; \
316 fi; \
317 done
318check-am: all-am
319check: check-am
320all-am: Makefile
321installdirs:
322install: install-am
323install-exec: install-exec-am
324install-data: install-data-am
325uninstall: uninstall-am
326
327install-am: all-am
328 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
329
330installcheck: installcheck-am
331install-strip:
332 if test -z '$(STRIP)'; then \
333 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
334 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
335 install; \
336 else \
337 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
338 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
339 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
340 fi
341mostlyclean-generic:
342
343clean-generic:
344
345distclean-generic:
346 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
347 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
348
349maintainer-clean-generic:
350 @echo "This command is intended for maintainers to use"
351 @echo "it deletes files that may require special tools to rebuild."
352clean: clean-am
353
354clean-am: clean-generic clean-libtool mostlyclean-am
355
356distclean: distclean-am
357 -rm -f Makefile
358distclean-am: clean-am distclean-generic
359
360dvi: dvi-am
361
362dvi-am:
363
364html: html-am
365
366html-am:
367
368info: info-am
369
370info-am:
371
372install-data-am:
373
374install-dvi: install-dvi-am
375
376install-dvi-am:
377
378install-exec-am:
379
380install-html: install-html-am
381
382install-html-am:
383
384install-info: install-info-am
385
386install-info-am:
387
388install-man:
389
390install-pdf: install-pdf-am
391
392install-pdf-am:
393
394install-ps: install-ps-am
395
396install-ps-am:
397
398installcheck-am:
399
400maintainer-clean: maintainer-clean-am
401 -rm -f Makefile
402maintainer-clean-am: distclean-am maintainer-clean-generic
403
404mostlyclean: mostlyclean-am
405
406mostlyclean-am: mostlyclean-generic mostlyclean-libtool
407
408pdf: pdf-am
409
410pdf-am:
411
412ps: ps-am
413
414ps-am:
415
416uninstall-am:
417
418.MAKE: install-am install-strip
419
420.PHONY: all all-am check check-am clean clean-generic clean-libtool \
421 cscopelist-am ctags-am distclean distclean-generic \
422 distclean-libtool distdir dvi dvi-am html html-am info info-am \
423 install install-am install-data install-data-am install-dvi \
424 install-dvi-am install-exec install-exec-am install-html \
425 install-html-am install-info install-info-am install-man \
426 install-pdf install-pdf-am install-ps install-ps-am \
427 install-strip installcheck installcheck-am installdirs \
428 maintainer-clean maintainer-clean-generic mostlyclean \
429 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
430 tags-am uninstall uninstall-am
431
432
433# Tell versions [3.59,3.63) of GNU make to not export all variables.
434# Otherwise a system limit (for SysV at least) may be exceeded.
435.NOEXPORT:
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
new file mode 100644
index 00000000..3db59c88
--- /dev/null
+++ b/src/include/Makefile.am
@@ -0,0 +1,2 @@
1EXTRA_DIST = \
2 platform.h
diff --git a/src/include/Makefile.in b/src/include/Makefile.in
new file mode 100644
index 00000000..6959557a
--- /dev/null
+++ b/src/include/Makefile.in
@@ -0,0 +1,435 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/@PACKAGE@
63pkgincludedir = $(includedir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkglibexecdir = $(libexecdir)/@PACKAGE@
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = @build@
79host_triplet = @host@
80subdir = src/include
81DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
82ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
84 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
85 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
86 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(install_sh) -d
91CONFIG_HEADER = $(top_builddir)/taler_config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_@AM_V@)
95am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_@AM_V@)
99am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_@AM_V@)
103am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108am__can_run_installinfo = \
109 case $$AM_UPDATE_INFO_DIR in \
110 n|no|NO) false;; \
111 *) (install-info --version) >/dev/null 2>&1;; \
112 esac
113am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
114DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115ACLOCAL = @ACLOCAL@
116AMTAR = @AMTAR@
117AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
118AR = @AR@
119AUTOCONF = @AUTOCONF@
120AUTOHEADER = @AUTOHEADER@
121AUTOMAKE = @AUTOMAKE@
122AWK = @AWK@
123CC = @CC@
124CCDEPMODE = @CCDEPMODE@
125CFLAGS = @CFLAGS@
126CPP = @CPP@
127CPPFLAGS = @CPPFLAGS@
128CYGPATH_W = @CYGPATH_W@
129DEFS = @DEFS@
130DEPDIR = @DEPDIR@
131DLLTOOL = @DLLTOOL@
132DSYMUTIL = @DSYMUTIL@
133DUMPBIN = @DUMPBIN@
134ECHO_C = @ECHO_C@
135ECHO_N = @ECHO_N@
136ECHO_T = @ECHO_T@
137EGREP = @EGREP@
138EXEEXT = @EXEEXT@
139FGREP = @FGREP@
140GREP = @GREP@
141INSTALL = @INSTALL@
142INSTALL_DATA = @INSTALL_DATA@
143INSTALL_PROGRAM = @INSTALL_PROGRAM@
144INSTALL_SCRIPT = @INSTALL_SCRIPT@
145INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
146LD = @LD@
147LDFLAGS = @LDFLAGS@
148LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
149LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
150LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
151LIBGNURL = @LIBGNURL@
152LIBGNURL_CPPFLAGS = @LIBGNURL_CPPFLAGS@
153LIBOBJS = @LIBOBJS@
154LIBS = @LIBS@
155LIBTOOL = @LIBTOOL@
156LIPO = @LIPO@
157LN_S = @LN_S@
158LTLIBOBJS = @LTLIBOBJS@
159MAKEINFO = @MAKEINFO@
160MANIFEST_TOOL = @MANIFEST_TOOL@
161MKDIR_P = @MKDIR_P@
162NM = @NM@
163NMEDIT = @NMEDIT@
164OBJDUMP = @OBJDUMP@
165OBJEXT = @OBJEXT@
166OTOOL = @OTOOL@
167OTOOL64 = @OTOOL64@
168PACKAGE = @PACKAGE@
169PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
170PACKAGE_NAME = @PACKAGE_NAME@
171PACKAGE_STRING = @PACKAGE_STRING@
172PACKAGE_TARNAME = @PACKAGE_TARNAME@
173PACKAGE_URL = @PACKAGE_URL@
174PACKAGE_VERSION = @PACKAGE_VERSION@
175PATH_SEPARATOR = @PATH_SEPARATOR@
176PG_CONFIG = @PG_CONFIG@
177POSTGRESQL_CPPFLAGS = @POSTGRESQL_CPPFLAGS@
178POSTGRESQL_LDFLAGS = @POSTGRESQL_LDFLAGS@
179POSTGRESQL_VERSION = @POSTGRESQL_VERSION@
180RANLIB = @RANLIB@
181SED = @SED@
182SET_MAKE = @SET_MAKE@
183SHELL = @SHELL@
184STRIP = @STRIP@
185VERSION = @VERSION@
186_libgnurl_config = @_libgnurl_config@
187abs_builddir = @abs_builddir@
188abs_srcdir = @abs_srcdir@
189abs_top_builddir = @abs_top_builddir@
190abs_top_srcdir = @abs_top_srcdir@
191ac_ct_AR = @ac_ct_AR@
192ac_ct_CC = @ac_ct_CC@
193ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
194am__include = @am__include@
195am__leading_dot = @am__leading_dot@
196am__quote = @am__quote@
197am__tar = @am__tar@
198am__untar = @am__untar@
199bindir = @bindir@
200build = @build@
201build_alias = @build_alias@
202build_cpu = @build_cpu@
203build_os = @build_os@
204build_vendor = @build_vendor@
205builddir = @builddir@
206datadir = @datadir@
207datarootdir = @datarootdir@
208docdir = @docdir@
209dvidir = @dvidir@
210exec_prefix = @exec_prefix@
211host = @host@
212host_alias = @host_alias@
213host_cpu = @host_cpu@
214host_os = @host_os@
215host_vendor = @host_vendor@
216htmldir = @htmldir@
217includedir = @includedir@
218infodir = @infodir@
219install_sh = @install_sh@
220libdir = @libdir@
221libexecdir = @libexecdir@
222localedir = @localedir@
223localstatedir = @localstatedir@
224mandir = @mandir@
225mkdir_p = @mkdir_p@
226oldincludedir = @oldincludedir@
227pdfdir = @pdfdir@
228prefix = @prefix@
229program_transform_name = @program_transform_name@
230psdir = @psdir@
231sbindir = @sbindir@
232sharedstatedir = @sharedstatedir@
233srcdir = @srcdir@
234sysconfdir = @sysconfdir@
235target_alias = @target_alias@
236top_build_prefix = @top_build_prefix@
237top_builddir = @top_builddir@
238top_srcdir = @top_srcdir@
239EXTRA_DIST = \
240 platform.h
241
242all: all-am
243
244.SUFFIXES:
245$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
246 @for dep in $?; do \
247 case '$(am__configure_deps)' in \
248 *$$dep*) \
249 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
250 && { if test -f $@; then exit 0; else break; fi; }; \
251 exit 1;; \
252 esac; \
253 done; \
254 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile'; \
255 $(am__cd) $(top_srcdir) && \
256 $(AUTOMAKE) --gnu src/include/Makefile
257.PRECIOUS: Makefile
258Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
259 @case '$?' in \
260 *config.status*) \
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
262 *) \
263 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
264 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
265 esac;
266
267$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269
270$(top_srcdir)/configure: $(am__configure_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272$(ACLOCAL_M4): $(am__aclocal_m4_deps)
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
274$(am__aclocal_m4_deps):
275
276mostlyclean-libtool:
277 -rm -f *.lo
278
279clean-libtool:
280 -rm -rf .libs _libs
281tags TAGS:
282
283ctags CTAGS:
284
285cscope cscopelist:
286
287
288distdir: $(DISTFILES)
289 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
290 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
291 list='$(DISTFILES)'; \
292 dist_files=`for file in $$list; do echo $$file; done | \
293 sed -e "s|^$$srcdirstrip/||;t" \
294 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
295 case $$dist_files in \
296 */*) $(MKDIR_P) `echo "$$dist_files" | \
297 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
298 sort -u` ;; \
299 esac; \
300 for file in $$dist_files; do \
301 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
302 if test -d $$d/$$file; then \
303 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
304 if test -d "$(distdir)/$$file"; then \
305 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
306 fi; \
307 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
308 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
309 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
310 fi; \
311 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
312 else \
313 test -f "$(distdir)/$$file" \
314 || cp -p $$d/$$file "$(distdir)/$$file" \
315 || exit 1; \
316 fi; \
317 done
318check-am: all-am
319check: check-am
320all-am: Makefile
321installdirs:
322install: install-am
323install-exec: install-exec-am
324install-data: install-data-am
325uninstall: uninstall-am
326
327install-am: all-am
328 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
329
330installcheck: installcheck-am
331install-strip:
332 if test -z '$(STRIP)'; then \
333 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
334 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
335 install; \
336 else \
337 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
338 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
339 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
340 fi
341mostlyclean-generic:
342
343clean-generic:
344
345distclean-generic:
346 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
347 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
348
349maintainer-clean-generic:
350 @echo "This command is intended for maintainers to use"
351 @echo "it deletes files that may require special tools to rebuild."
352clean: clean-am
353
354clean-am: clean-generic clean-libtool mostlyclean-am
355
356distclean: distclean-am
357 -rm -f Makefile
358distclean-am: clean-am distclean-generic
359
360dvi: dvi-am
361
362dvi-am:
363
364html: html-am
365
366html-am:
367
368info: info-am
369
370info-am:
371
372install-data-am:
373
374install-dvi: install-dvi-am
375
376install-dvi-am:
377
378install-exec-am:
379
380install-html: install-html-am
381
382install-html-am:
383
384install-info: install-info-am
385
386install-info-am:
387
388install-man:
389
390install-pdf: install-pdf-am
391
392install-pdf-am:
393
394install-ps: install-ps-am
395
396install-ps-am:
397
398installcheck-am:
399
400maintainer-clean: maintainer-clean-am
401 -rm -f Makefile
402maintainer-clean-am: distclean-am maintainer-clean-generic
403
404mostlyclean: mostlyclean-am
405
406mostlyclean-am: mostlyclean-generic mostlyclean-libtool
407
408pdf: pdf-am
409
410pdf-am:
411
412ps: ps-am
413
414ps-am:
415
416uninstall-am:
417
418.MAKE: install-am install-strip
419
420.PHONY: all all-am check check-am clean clean-generic clean-libtool \
421 cscopelist-am ctags-am distclean distclean-generic \
422 distclean-libtool distdir dvi dvi-am html html-am info info-am \
423 install install-am install-data install-data-am install-dvi \
424 install-dvi-am install-exec install-exec-am install-html \
425 install-html-am install-info install-info-am install-man \
426 install-pdf install-pdf-am install-ps install-ps-am \
427 install-strip installcheck installcheck-am installdirs \
428 maintainer-clean maintainer-clean-generic mostlyclean \
429 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
430 tags-am uninstall uninstall-am
431
432
433# Tell versions [3.59,3.63) of GNU make to not export all variables.
434# Otherwise a system limit (for SysV at least) may be exceeded.
435.NOEXPORT:
diff --git a/src/include/platform.h b/src/include/platform.h
new file mode 100644
index 00000000..4cba7abf
--- /dev/null
+++ b/src/include/platform.h
@@ -0,0 +1,56 @@
1/*
2 This file is part of TALER
3 (C) 2014 Chrisitan Grothoff (and other contributing authors)
4
5 TALER is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software
7 Foundation; either version 3, or (at your option) any later version.
8
9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/>
15*/
16
17/**
18 * @file include/platform.h
19 * @brief This file contains the includes and definitions which are used by the
20 * rest of the modules
21 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
22 */
23
24#ifndef PLATFORM_H_
25#define PLATFORM_H_
26
27/* Include our configuration header */
28#ifndef HAVE_USED_CONFIG_H
29# define HAVE_USED_CONFIG_H
30# ifdef HAVE_CONFIG_H
31# include "taler_config.h"
32# endif
33#endif
34
35
36#if (GNUNET_EXTRA_LOGGING >= 1)
37#define VERBOSE(cmd) cmd
38#else
39#define VERBOSE(cmd) do { break; }while(0)
40#endif
41
42/* Include the features available for GNU source */
43#define _GNU_SOURCE
44
45/* Include GNUnet's platform file */
46#include <gnunet/platform.h>
47
48/* Do not use shortcuts for gcrypt mpi */
49#define GCRYPT_NO_MPI_MACROS 1
50
51/* Do not use deprecated functions from gcrypt */
52#define GCRYPT_NO_DEPRECATED 1
53
54#endif /* PLATFORM_H_ */
55
56/* end of platform.h */
diff --git a/src/merchant/.gitignore b/src/merchant/.gitignore
new file mode 100644
index 00000000..ebe41680
--- /dev/null
+++ b/src/merchant/.gitignore
@@ -0,0 +1 @@
taler-merchant-*
diff --git a/src/merchant/Makefile b/src/merchant/Makefile
new file mode 100644
index 00000000..bbc16e7b
--- /dev/null
+++ b/src/merchant/Makefile
@@ -0,0 +1,731 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# src/merchant/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
63pkgdatadir = $(datadir)/taler
64pkgincludedir = $(includedir)/taler
65pkglibdir = $(libdir)/taler
66pkglibexecdir = $(libexecdir)/taler
67am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
68install_sh_DATA = $(install_sh) -c -m 644
69install_sh_PROGRAM = $(install_sh) -c
70install_sh_SCRIPT = $(install_sh) -c
71INSTALL_HEADER = $(INSTALL_DATA)
72transform = $(program_transform_name)
73NORMAL_INSTALL = :
74PRE_INSTALL = :
75POST_INSTALL = :
76NORMAL_UNINSTALL = :
77PRE_UNINSTALL = :
78POST_UNINSTALL = :
79build_triplet = x86_64-unknown-linux-gnu
80host_triplet = x86_64-unknown-linux-gnu
81bin_PROGRAMS = taler-merchant-dbinit$(EXEEXT) \
82 taler-merchant-serve$(EXEEXT)
83check_PROGRAMS = test-merchant$(EXEEXT) test-merchant-db$(EXEEXT)
84subdir = src/merchant
85DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
86 $(top_srcdir)/depcomp
87ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
88am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
89 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
90 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
91 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
92 $(top_srcdir)/configure.ac
93am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95mkinstalldirs = $(install_sh) -d
96CONFIG_HEADER = $(top_builddir)/taler_config.h
97CONFIG_CLEAN_FILES =
98CONFIG_CLEAN_VPATH_FILES =
99am__installdirs = "$(DESTDIR)$(bindir)"
100PROGRAMS = $(bin_PROGRAMS)
101am__objects_1 = merchant_db.$(OBJEXT)
102am_taler_merchant_dbinit_OBJECTS = taler_merchant_dbinit.$(OBJEXT) \
103 $(am__objects_1)
104taler_merchant_dbinit_OBJECTS = $(am_taler_merchant_dbinit_OBJECTS)
105taler_merchant_dbinit_DEPENDENCIES =
106AM_V_lt = $(am__v_lt_$(V))
107am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
108am__v_lt_0 = --silent
109am__v_lt_1 =
110taler_merchant_dbinit_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
111 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
112 $(AM_CFLAGS) $(CFLAGS) $(taler_merchant_dbinit_LDFLAGS) \
113 $(LDFLAGS) -o $@
114am_taler_merchant_serve_OBJECTS = taler_merchant_serve.$(OBJEXT) \
115 merchant.$(OBJEXT) $(am__objects_1)
116taler_merchant_serve_OBJECTS = $(am_taler_merchant_serve_OBJECTS)
117taler_merchant_serve_DEPENDENCIES =
118taler_merchant_serve_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
119 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
120 $(AM_CFLAGS) $(CFLAGS) $(taler_merchant_serve_LDFLAGS) \
121 $(LDFLAGS) -o $@
122am_test_merchant_OBJECTS = merchant.$(OBJEXT) test_merchant.$(OBJEXT)
123test_merchant_OBJECTS = $(am_test_merchant_OBJECTS)
124test_merchant_DEPENDENCIES =
125am_test_merchant_db_OBJECTS = $(am__objects_1) \
126 test_merchant_db.$(OBJEXT)
127test_merchant_db_OBJECTS = $(am_test_merchant_db_OBJECTS)
128test_merchant_db_DEPENDENCIES =
129AM_V_P = $(am__v_P_$(V))
130am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
131am__v_P_0 = false
132am__v_P_1 = :
133AM_V_GEN = $(am__v_GEN_$(V))
134am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
135am__v_GEN_0 = @echo " GEN " $@;
136am__v_GEN_1 =
137AM_V_at = $(am__v_at_$(V))
138am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
139am__v_at_0 = @
140am__v_at_1 =
141DEFAULT_INCLUDES = -I. -I$(top_builddir)
142depcomp = $(SHELL) $(top_srcdir)/depcomp
143am__depfiles_maybe = depfiles
144am__mv = mv -f
145COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
146 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
147LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
148 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
149 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
150 $(AM_CFLAGS) $(CFLAGS)
151AM_V_CC = $(am__v_CC_$(V))
152am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
153am__v_CC_0 = @echo " CC " $@;
154am__v_CC_1 =
155CCLD = $(CC)
156LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
157 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
158 $(AM_LDFLAGS) $(LDFLAGS) -o $@
159AM_V_CCLD = $(am__v_CCLD_$(V))
160am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
161am__v_CCLD_0 = @echo " CCLD " $@;
162am__v_CCLD_1 =
163SOURCES = $(taler_merchant_dbinit_SOURCES) \
164 $(taler_merchant_serve_SOURCES) $(test_merchant_SOURCES) \
165 $(test_merchant_db_SOURCES)
166DIST_SOURCES = $(taler_merchant_dbinit_SOURCES) \
167 $(taler_merchant_serve_SOURCES) $(test_merchant_SOURCES) \
168 $(test_merchant_db_SOURCES)
169am__can_run_installinfo = \
170 case $$AM_UPDATE_INFO_DIR in \
171 n|no|NO) false;; \
172 *) (install-info --version) >/dev/null 2>&1;; \
173 esac
174am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
175# Read a list of newline-separated strings from the standard input,
176# and print each of them once, without duplicates. Input order is
177# *not* preserved.
178am__uniquify_input = $(AWK) '\
179 BEGIN { nonempty = 0; } \
180 { items[$$0] = 1; nonempty = 1; } \
181 END { if (nonempty) { for (i in items) print i; }; } \
182'
183# Make sure the list of sources is unique. This is necessary because,
184# e.g., the same source file might be shared among _SOURCES variables
185# for different programs/libraries.
186am__define_uniq_tagged_files = \
187 list='$(am__tagged_files)'; \
188 unique=`for i in $$list; do \
189 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
190 done | $(am__uniquify_input)`
191ETAGS = etags
192CTAGS = ctags
193DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
194ACLOCAL = ${SHELL} /home/grothoff/research/merchant/missing aclocal-1.14
195AMTAR = $${TAR-tar}
196AM_DEFAULT_VERBOSITY = 0
197AR = ar
198AUTOCONF = ${SHELL} /home/grothoff/research/merchant/missing autoconf
199AUTOHEADER = ${SHELL} /home/grothoff/research/merchant/missing autoheader
200AUTOMAKE = ${SHELL} /home/grothoff/research/merchant/missing automake-1.14
201AWK = gawk
202CC = gcc
203CCDEPMODE = depmode=gcc3
204CFLAGS = -Wall -g -O0 -Wall
205CPP = gcc -E
206CPPFLAGS = -I/home/grothoff//include
207CYGPATH_W = echo
208DEFS = -DHAVE_CONFIG_H
209DEPDIR = .deps
210DLLTOOL = false
211DSYMUTIL =
212DUMPBIN =
213ECHO_C =
214ECHO_N = -n
215ECHO_T =
216EGREP = /bin/grep -E
217EXEEXT =
218FGREP = /bin/grep -F
219GREP = /bin/grep
220INSTALL = /usr/bin/install -c
221INSTALL_DATA = ${INSTALL} -m 644
222INSTALL_PROGRAM = ${INSTALL}
223INSTALL_SCRIPT = ${INSTALL}
224INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
225LD = /usr/bin/ld -m elf_x86_64
226LDFLAGS = -L/home/grothoff//lib
227LIBGCRYPT_CFLAGS =
228LIBGCRYPT_CONFIG = /usr/bin/libgcrypt-config
229LIBGCRYPT_LIBS = -lgcrypt
230LIBGNURL = -L/home/grothoff/lib -lgnurl
231LIBGNURL_CPPFLAGS = -I/home/grothoff/include
232LIBOBJS =
233LIBS =
234LIBTOOL = $(SHELL) $(top_builddir)/libtool
235LIPO =
236LN_S = ln -s
237LTLIBOBJS =
238MAKEINFO = ${SHELL} /home/grothoff/research/merchant/missing makeinfo
239MANIFEST_TOOL = :
240MKDIR_P = /bin/mkdir -p
241NM = /usr/bin/nm -B
242NMEDIT =
243OBJDUMP = objdump
244OBJEXT = o
245OTOOL =
246OTOOL64 =
247PACKAGE = taler
248PACKAGE_BUGREPORT = taler-bug@gnunet.org
249PACKAGE_NAME = taler
250PACKAGE_STRING = taler 0.0.0
251PACKAGE_TARNAME = taler
252PACKAGE_URL =
253PACKAGE_VERSION = 0.0.0
254PATH_SEPARATOR = :
255PG_CONFIG = /usr/bin/pg_config
256POSTGRESQL_CPPFLAGS = -I/usr/include/postgresql
257POSTGRESQL_LDFLAGS = -L/usr/lib/x86_64-linux-gnu
258POSTGRESQL_VERSION = 9.4.0
259RANLIB = ranlib
260SED = /bin/sed
261SET_MAKE =
262SHELL = /bin/bash
263STRIP = strip
264VERSION = 0.0.0
265_libgnurl_config =
266abs_builddir = /home/grothoff/research/merchant/src/merchant
267abs_srcdir = /home/grothoff/research/merchant/src/merchant
268abs_top_builddir = /home/grothoff/research/merchant
269abs_top_srcdir = /home/grothoff/research/merchant
270ac_ct_AR = ar
271ac_ct_CC = gcc
272ac_ct_DUMPBIN =
273am__include = include
274am__leading_dot = .
275am__quote =
276am__tar = $${TAR-tar} chof - "$$tardir"
277am__untar = $${TAR-tar} xf -
278bindir = ${exec_prefix}/bin
279build = x86_64-unknown-linux-gnu
280build_alias =
281build_cpu = x86_64
282build_os = linux-gnu
283build_vendor = unknown
284builddir = .
285datadir = ${datarootdir}
286datarootdir = ${prefix}/share
287docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
288dvidir = ${docdir}
289exec_prefix = ${prefix}
290host = x86_64-unknown-linux-gnu
291host_alias =
292host_cpu = x86_64
293host_os = linux-gnu
294host_vendor = unknown
295htmldir = ${docdir}
296includedir = ${prefix}/include
297infodir = ${datarootdir}/info
298install_sh = ${SHELL} /home/grothoff/research/merchant/install-sh
299libdir = ${exec_prefix}/lib
300libexecdir = ${exec_prefix}/libexec
301localedir = ${datarootdir}/locale
302localstatedir = ${prefix}/var
303mandir = ${datarootdir}/man
304mkdir_p = $(MKDIR_P)
305oldincludedir = /usr/include
306pdfdir = ${docdir}
307prefix = /usr/local
308program_transform_name = s,x,x,
309psdir = ${docdir}
310sbindir = ${exec_prefix}/sbin
311sharedstatedir = ${prefix}/com
312srcdir = .
313sysconfdir = ${prefix}/etc
314target_alias =
315top_build_prefix = ../../
316top_builddir = ../..
317top_srcdir = ../..
318AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
319MERCHANT_DB = merchant_db.c merchant_db.h
320taler_merchant_dbinit_SOURCES = \
321 taler_merchant_dbinit.c \
322 $(MERCHANT_DB)
323
324taler_merchant_dbinit_LDADD = \
325 -lpq \
326 -lgnunetutil \
327 -ltalerutil \
328 -lgnunetpostgres
329
330taler_merchant_dbinit_LDFLAGS = \
331 $(POSTGRESQL_LDFLAGS)
332
333test_merchant_SOURCES = \
334 merchant.c \
335 test_merchant.c
336
337test_merchant_LDADD = \
338 -ltalerutil \
339 -lgnunetutil
340
341test_merchant_db_SOURCES = \
342 $(MERCHANT_DB) \
343 test_merchant_db.c
344
345test_merchant_db_LDADD = \
346 -ltalerutil \
347 -lgnunetutil \
348 -lgnunetpostgres \
349 -lpq
350
351taler_merchant_serve_SOURCES = \
352 taler_merchant_serve.c \
353 merchant.c merchant.h \
354 $(MERCHANT_DB)
355
356taler_merchant_serve_LDADD = \
357 -lpq \
358 -lgnunetutil \
359 -lgnunetpostgres \
360 -lmicrohttpd \
361 -ltalermintapi \
362 -ltalerutil \
363 -ljansson
364
365taler_merchant_serve_LDFLAGS = \
366 $(POSTGRESQL_LDFLAGS)
367
368all: all-am
369
370.SUFFIXES:
371.SUFFIXES: .c .lo .o .obj
372$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
373 @for dep in $?; do \
374 case '$(am__configure_deps)' in \
375 *$$dep*) \
376 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
377 && { if test -f $@; then exit 0; else break; fi; }; \
378 exit 1;; \
379 esac; \
380 done; \
381 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/merchant/Makefile'; \
382 $(am__cd) $(top_srcdir) && \
383 $(AUTOMAKE) --gnu src/merchant/Makefile
384.PRECIOUS: Makefile
385Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
386 @case '$?' in \
387 *config.status*) \
388 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
389 *) \
390 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
391 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
392 esac;
393
394$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
395 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
396
397$(top_srcdir)/configure: $(am__configure_deps)
398 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
399$(ACLOCAL_M4): $(am__aclocal_m4_deps)
400 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
401$(am__aclocal_m4_deps):
402install-binPROGRAMS: $(bin_PROGRAMS)
403 @$(NORMAL_INSTALL)
404 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
405 if test -n "$$list"; then \
406 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
407 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
408 fi; \
409 for p in $$list; do echo "$$p $$p"; done | \
410 sed 's/$(EXEEXT)$$//' | \
411 while read p p1; do if test -f $$p \
412 || test -f $$p1 \
413 ; then echo "$$p"; echo "$$p"; else :; fi; \
414 done | \
415 sed -e 'p;s,.*/,,;n;h' \
416 -e 's|.*|.|' \
417 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
418 sed 'N;N;N;s,\n, ,g' | \
419 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
420 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
421 if ($$2 == $$4) files[d] = files[d] " " $$1; \
422 else { print "f", $$3 "/" $$4, $$1; } } \
423 END { for (d in files) print "f", d, files[d] }' | \
424 while read type dir files; do \
425 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
426 test -z "$$files" || { \
427 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
428 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
429 } \
430 ; done
431
432uninstall-binPROGRAMS:
433 @$(NORMAL_UNINSTALL)
434 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
435 files=`for p in $$list; do echo "$$p"; done | \
436 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
437 -e 's/$$/$(EXEEXT)/' \
438 `; \
439 test -n "$$list" || exit 0; \
440 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
441 cd "$(DESTDIR)$(bindir)" && rm -f $$files
442
443clean-binPROGRAMS:
444 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
445 echo " rm -f" $$list; \
446 rm -f $$list || exit $$?; \
447 test -n "$(EXEEXT)" || exit 0; \
448 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
449 echo " rm -f" $$list; \
450 rm -f $$list
451
452clean-checkPROGRAMS:
453 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
454 echo " rm -f" $$list; \
455 rm -f $$list || exit $$?; \
456 test -n "$(EXEEXT)" || exit 0; \
457 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
458 echo " rm -f" $$list; \
459 rm -f $$list
460
461taler-merchant-dbinit$(EXEEXT): $(taler_merchant_dbinit_OBJECTS) $(taler_merchant_dbinit_DEPENDENCIES) $(EXTRA_taler_merchant_dbinit_DEPENDENCIES)
462 @rm -f taler-merchant-dbinit$(EXEEXT)
463 $(AM_V_CCLD)$(taler_merchant_dbinit_LINK) $(taler_merchant_dbinit_OBJECTS) $(taler_merchant_dbinit_LDADD) $(LIBS)
464
465taler-merchant-serve$(EXEEXT): $(taler_merchant_serve_OBJECTS) $(taler_merchant_serve_DEPENDENCIES) $(EXTRA_taler_merchant_serve_DEPENDENCIES)
466 @rm -f taler-merchant-serve$(EXEEXT)
467 $(AM_V_CCLD)$(taler_merchant_serve_LINK) $(taler_merchant_serve_OBJECTS) $(taler_merchant_serve_LDADD) $(LIBS)
468
469test-merchant$(EXEEXT): $(test_merchant_OBJECTS) $(test_merchant_DEPENDENCIES) $(EXTRA_test_merchant_DEPENDENCIES)
470 @rm -f test-merchant$(EXEEXT)
471 $(AM_V_CCLD)$(LINK) $(test_merchant_OBJECTS) $(test_merchant_LDADD) $(LIBS)
472
473test-merchant-db$(EXEEXT): $(test_merchant_db_OBJECTS) $(test_merchant_db_DEPENDENCIES) $(EXTRA_test_merchant_db_DEPENDENCIES)
474 @rm -f test-merchant-db$(EXEEXT)
475 $(AM_V_CCLD)$(LINK) $(test_merchant_db_OBJECTS) $(test_merchant_db_LDADD) $(LIBS)
476
477mostlyclean-compile:
478 -rm -f *.$(OBJEXT)
479
480distclean-compile:
481 -rm -f *.tab.c
482
483include ./$(DEPDIR)/merchant.Po
484include ./$(DEPDIR)/merchant_db.Po
485include ./$(DEPDIR)/taler_merchant_dbinit.Po
486include ./$(DEPDIR)/taler_merchant_serve.Po
487include ./$(DEPDIR)/test_merchant.Po
488include ./$(DEPDIR)/test_merchant_db.Po
489
490.c.o:
491 $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
492 $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
493 $(am__mv) $$depbase.Tpo $$depbase.Po
494# $(AM_V_CC)source='$<' object='$@' libtool=no \
495# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
496# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
497
498.c.obj:
499 $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
500 $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
501 $(am__mv) $$depbase.Tpo $$depbase.Po
502# $(AM_V_CC)source='$<' object='$@' libtool=no \
503# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
504# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
505
506.c.lo:
507 $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
508 $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
509 $(am__mv) $$depbase.Tpo $$depbase.Plo
510# $(AM_V_CC)source='$<' object='$@' libtool=yes \
511# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
512# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $<
513
514mostlyclean-libtool:
515 -rm -f *.lo
516
517clean-libtool:
518 -rm -rf .libs _libs
519
520ID: $(am__tagged_files)
521 $(am__define_uniq_tagged_files); mkid -fID $$unique
522tags: tags-am
523TAGS: tags
524
525tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
526 set x; \
527 here=`pwd`; \
528 $(am__define_uniq_tagged_files); \
529 shift; \
530 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
531 test -n "$$unique" || unique=$$empty_fix; \
532 if test $$# -gt 0; then \
533 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
534 "$$@" $$unique; \
535 else \
536 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
537 $$unique; \
538 fi; \
539 fi
540ctags: ctags-am
541
542CTAGS: ctags
543ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
544 $(am__define_uniq_tagged_files); \
545 test -z "$(CTAGS_ARGS)$$unique" \
546 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
547 $$unique
548
549GTAGS:
550 here=`$(am__cd) $(top_builddir) && pwd` \
551 && $(am__cd) $(top_srcdir) \
552 && gtags -i $(GTAGS_ARGS) "$$here"
553cscopelist: cscopelist-am
554
555cscopelist-am: $(am__tagged_files)
556 list='$(am__tagged_files)'; \
557 case "$(srcdir)" in \
558 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
559 *) sdir=$(subdir)/$(srcdir) ;; \
560 esac; \
561 for i in $$list; do \
562 if test -f "$$i"; then \
563 echo "$(subdir)/$$i"; \
564 else \
565 echo "$$sdir/$$i"; \
566 fi; \
567 done >> $(top_builddir)/cscope.files
568
569distclean-tags:
570 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
571
572distdir: $(DISTFILES)
573 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
574 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
575 list='$(DISTFILES)'; \
576 dist_files=`for file in $$list; do echo $$file; done | \
577 sed -e "s|^$$srcdirstrip/||;t" \
578 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
579 case $$dist_files in \
580 */*) $(MKDIR_P) `echo "$$dist_files" | \
581 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
582 sort -u` ;; \
583 esac; \
584 for file in $$dist_files; do \
585 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
586 if test -d $$d/$$file; then \
587 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
588 if test -d "$(distdir)/$$file"; then \
589 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
590 fi; \
591 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
592 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
593 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
594 fi; \
595 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
596 else \
597 test -f "$(distdir)/$$file" \
598 || cp -p $$d/$$file "$(distdir)/$$file" \
599 || exit 1; \
600 fi; \
601 done
602check-am: all-am
603 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
604check: check-am
605all-am: Makefile $(PROGRAMS)
606installdirs:
607 for dir in "$(DESTDIR)$(bindir)"; do \
608 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
609 done
610install: install-am
611install-exec: install-exec-am
612install-data: install-data-am
613uninstall: uninstall-am
614
615install-am: all-am
616 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
617
618installcheck: installcheck-am
619install-strip:
620 if test -z '$(STRIP)'; then \
621 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
622 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
623 install; \
624 else \
625 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
626 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
627 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
628 fi
629mostlyclean-generic:
630
631clean-generic:
632
633distclean-generic:
634 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
635 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
636
637maintainer-clean-generic:
638 @echo "This command is intended for maintainers to use"
639 @echo "it deletes files that may require special tools to rebuild."
640clean: clean-am
641
642clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
643 clean-libtool mostlyclean-am
644
645distclean: distclean-am
646 -rm -rf ./$(DEPDIR)
647 -rm -f Makefile
648distclean-am: clean-am distclean-compile distclean-generic \
649 distclean-tags
650
651dvi: dvi-am
652
653dvi-am:
654
655html: html-am
656
657html-am:
658
659info: info-am
660
661info-am:
662
663install-data-am:
664
665install-dvi: install-dvi-am
666
667install-dvi-am:
668
669install-exec-am: install-binPROGRAMS
670
671install-html: install-html-am
672
673install-html-am:
674
675install-info: install-info-am
676
677install-info-am:
678
679install-man:
680
681install-pdf: install-pdf-am
682
683install-pdf-am:
684
685install-ps: install-ps-am
686
687install-ps-am:
688
689installcheck-am:
690
691maintainer-clean: maintainer-clean-am
692 -rm -rf ./$(DEPDIR)
693 -rm -f Makefile
694maintainer-clean-am: distclean-am maintainer-clean-generic
695
696mostlyclean: mostlyclean-am
697
698mostlyclean-am: mostlyclean-compile mostlyclean-generic \
699 mostlyclean-libtool
700
701pdf: pdf-am
702
703pdf-am:
704
705ps: ps-am
706
707ps-am:
708
709uninstall-am: uninstall-binPROGRAMS
710
711.MAKE: check-am install-am install-strip
712
713.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
714 clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
715 clean-libtool cscopelist-am ctags ctags-am distclean \
716 distclean-compile distclean-generic distclean-libtool \
717 distclean-tags distdir dvi dvi-am html html-am info info-am \
718 install install-am install-binPROGRAMS install-data \
719 install-data-am install-dvi install-dvi-am install-exec \
720 install-exec-am install-html install-html-am install-info \
721 install-info-am install-man install-pdf install-pdf-am \
722 install-ps install-ps-am install-strip installcheck \
723 installcheck-am installdirs maintainer-clean \
724 maintainer-clean-generic mostlyclean mostlyclean-compile \
725 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
726 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
727
728
729# Tell versions [3.59,3.63) of GNU make to not export all variables.
730# Otherwise a system limit (for SysV at least) may be exceeded.
731.NOEXPORT:
diff --git a/src/merchant/Makefile.am b/src/merchant/Makefile.am
new file mode 100644
index 00000000..701b3ee8
--- /dev/null
+++ b/src/merchant/Makefile.am
@@ -0,0 +1,52 @@
1AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
2
3MERCHANT_DB = merchant_db.c merchant_db.h
4bin_PROGRAMS = \
5 taler-merchant-dbinit \
6 taler-merchant-serve
7
8taler_merchant_dbinit_SOURCES = \
9 taler_merchant_dbinit.c \
10 $(MERCHANT_DB)
11taler_merchant_dbinit_LDADD = \
12 -lpq \
13 -lgnunetutil \
14 -ltalerutil \
15 -lgnunetpostgres
16taler_merchant_dbinit_LDFLAGS = \
17 $(POSTGRESQL_LDFLAGS)
18
19check_PROGRAMS = \
20 test-merchant \
21 test-merchant-db
22
23test_merchant_SOURCES = \
24 merchant.c \
25 test_merchant.c
26test_merchant_LDADD = \
27 -ltalerutil \
28 -lgnunetutil
29
30test_merchant_db_SOURCES = \
31 $(MERCHANT_DB) \
32 test_merchant_db.c
33test_merchant_db_LDADD = \
34 -ltalerutil \
35 -lgnunetutil \
36 -lgnunetpostgres \
37 -lpq
38
39taler_merchant_serve_SOURCES = \
40 taler_merchant_serve.c \
41 merchant.c merchant.h \
42 $(MERCHANT_DB)
43taler_merchant_serve_LDADD = \
44 -lpq \
45 -lgnunetutil \
46 -lgnunetpostgres \
47 -lmicrohttpd \
48 -ltalermintapi \
49 -ltalerutil \
50 -ljansson
51taler_merchant_serve_LDFLAGS = \
52 $(POSTGRESQL_LDFLAGS)
diff --git a/src/merchant/Makefile.in b/src/merchant/Makefile.in
new file mode 100644
index 00000000..33fcb832
--- /dev/null
+++ b/src/merchant/Makefile.in
@@ -0,0 +1,731 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
63pkgdatadir = $(datadir)/@PACKAGE@
64pkgincludedir = $(includedir)/@PACKAGE@
65pkglibdir = $(libdir)/@PACKAGE@
66pkglibexecdir = $(libexecdir)/@PACKAGE@
67am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
68install_sh_DATA = $(install_sh) -c -m 644
69install_sh_PROGRAM = $(install_sh) -c
70install_sh_SCRIPT = $(install_sh) -c
71INSTALL_HEADER = $(INSTALL_DATA)
72transform = $(program_transform_name)
73NORMAL_INSTALL = :
74PRE_INSTALL = :
75POST_INSTALL = :
76NORMAL_UNINSTALL = :
77PRE_UNINSTALL = :
78POST_UNINSTALL = :
79build_triplet = @build@
80host_triplet = @host@
81bin_PROGRAMS = taler-merchant-dbinit$(EXEEXT) \
82 taler-merchant-serve$(EXEEXT)
83check_PROGRAMS = test-merchant$(EXEEXT) test-merchant-db$(EXEEXT)
84subdir = src/merchant
85DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
86 $(top_srcdir)/depcomp
87ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
88am__aclocal_m4_deps = $(top_srcdir)/m4/ax_lib_postgresql.m4 \
89 $(top_srcdir)/m4/libgnurl.m4 $(top_srcdir)/m4/libtool.m4 \
90 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
91 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
92 $(top_srcdir)/configure.ac
93am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
94 $(ACLOCAL_M4)
95mkinstalldirs = $(install_sh) -d
96CONFIG_HEADER = $(top_builddir)/taler_config.h
97CONFIG_CLEAN_FILES =
98CONFIG_CLEAN_VPATH_FILES =
99am__installdirs = "$(DESTDIR)$(bindir)"
100PROGRAMS = $(bin_PROGRAMS)
101am__objects_1 = merchant_db.$(OBJEXT)
102am_taler_merchant_dbinit_OBJECTS = taler_merchant_dbinit.$(OBJEXT) \
103 $(am__objects_1)
104taler_merchant_dbinit_OBJECTS = $(am_taler_merchant_dbinit_OBJECTS)
105taler_merchant_dbinit_DEPENDENCIES =
106AM_V_lt = $(am__v_lt_@AM_V@)
107am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
108am__v_lt_0 = --silent
109am__v_lt_1 =
110taler_merchant_dbinit_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
111 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
112 $(AM_CFLAGS) $(CFLAGS) $(taler_merchant_dbinit_LDFLAGS) \
113 $(LDFLAGS) -o $@
114am_taler_merchant_serve_OBJECTS = taler_merchant_serve.$(OBJEXT) \
115 merchant.$(OBJEXT) $(am__objects_1)
116taler_merchant_serve_OBJECTS = $(am_taler_merchant_serve_OBJECTS)
117taler_merchant_serve_DEPENDENCIES =
118taler_merchant_serve_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
119 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
120 $(AM_CFLAGS) $(CFLAGS) $(taler_merchant_serve_LDFLAGS) \
121 $(LDFLAGS) -o $@
122am_test_merchant_OBJECTS = merchant.$(OBJEXT) test_merchant.$(OBJEXT)
123test_merchant_OBJECTS = $(am_test_merchant_OBJECTS)
124test_merchant_DEPENDENCIES =
125am_test_merchant_db_OBJECTS = $(am__objects_1) \
126 test_merchant_db.$(OBJEXT)
127test_merchant_db_OBJECTS = $(am_test_merchant_db_OBJECTS)
128test_merchant_db_DEPENDENCIES =
129AM_V_P = $(am__v_P_@AM_V@)
130am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
131am__v_P_0 = false
132am__v_P_1 = :
133AM_V_GEN = $(am__v_GEN_@AM_V@)
134am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
135am__v_GEN_0 = @echo " GEN " $@;
136am__v_GEN_1 =
137AM_V_at = $(am__v_at_@AM_V@)
138am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
139am__v_at_0 = @
140am__v_at_1 =
141DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
142depcomp = $(SHELL) $(top_srcdir)/depcomp
143am__depfiles_maybe = depfiles
144am__mv = mv -f
145COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
146 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
147LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
148 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
149 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
150 $(AM_CFLAGS) $(CFLAGS)
151AM_V_CC = $(am__v_CC_@AM_V@)
152am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
153am__v_CC_0 = @echo " CC " $@;
154am__v_CC_1 =
155CCLD = $(CC)
156LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
157 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
158 $(AM_LDFLAGS) $(LDFLAGS) -o $@
159AM_V_CCLD = $(am__v_CCLD_@AM_V@)
160am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
161am__v_CCLD_0 = @echo " CCLD " $@;
162am__v_CCLD_1 =
163SOURCES = $(taler_merchant_dbinit_SOURCES) \
164 $(taler_merchant_serve_SOURCES) $(test_merchant_SOURCES) \
165 $(test_merchant_db_SOURCES)
166DIST_SOURCES = $(taler_merchant_dbinit_SOURCES) \
167 $(taler_merchant_serve_SOURCES) $(test_merchant_SOURCES) \
168 $(test_merchant_db_SOURCES)
169am__can_run_installinfo = \
170 case $$AM_UPDATE_INFO_DIR in \
171 n|no|NO) false;; \
172 *) (install-info --version) >/dev/null 2>&1;; \
173 esac
174am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
175