Browse Source

Added KDE3 version of Tellico


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1097620 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tags/v3.5.13
tpearson 9 years ago
commit
e38d2351b8
100 changed files with 26471 additions and 0 deletions
  1. 1
    0
      AUTHORS
  2. 353
    0
      COPYING
  3. 2416
    0
      ChangeLog
  4. 167
    0
      INSTALL
  5. 128
    0
      Makefile.am
  6. 0
    0
      NEWS
  7. 1
    0
      README
  8. 1
    0
      TODO
  9. 11720
    0
      acinclude.m4
  10. 1033
    0
      aclocal.m4
  11. 326
    0
      config.h.in
  12. 723
    0
      configure.in
  13. 552
    0
      configure.in.in
  14. 4
    0
      doc/CMakeLists.txt
  15. 5
    0
      doc/Makefile.am
  16. 62
    0
      doc/en/CMakeLists.txt
  17. 50
    0
      doc/en/Makefile.am
  18. 151
    0
      doc/en/advanced.docbook
  19. BIN
      doc/en/amazon-options.png
  20. 376
    0
      doc/en/configuration.docbook
  21. BIN
      doc/en/csv-dialog.png
  22. 547
    0
      doc/en/details.docbook
  23. BIN
      doc/en/entry-editor1.png
  24. BIN
      doc/en/entry-editor3.png
  25. BIN
      doc/en/entry-editor4.png
  26. BIN
      doc/en/entry-editor5.png
  27. BIN
      doc/en/export-bibtex.png
  28. BIN
      doc/en/export-csv.png
  29. BIN
      doc/en/export-html.png
  30. BIN
      doc/en/export-options.png
  31. BIN
      doc/en/export-pdb.png
  32. BIN
      doc/en/externalexec-options.png
  33. 257
    0
      doc/en/faqs.docbook
  34. BIN
      doc/en/fetch-dialog.png
  35. BIN
      doc/en/fields-dialog.png
  36. BIN
      doc/en/filter-dialog.png
  37. BIN
      doc/en/filter-view.png
  38. 57
    0
      doc/en/freebsd-doc-license.html
  39. 595
    0
      doc/en/fundamentals.docbook
  40. BIN
      doc/en/general-options.png
  41. 362
    0
      doc/en/hacking.docbook
  42. BIN
      doc/en/imdb-options.png
  43. 452
    0
      doc/en/importing-exporting.docbook
  44. 423
    0
      doc/en/index.docbook
  45. BIN
      doc/en/loan-dialog.png
  46. BIN
      doc/en/loan-view.png
  47. BIN
      doc/en/main-window.png
  48. 768
    0
      doc/en/menus.docbook
  49. BIN
      doc/en/openoffice-dialog.png
  50. BIN
      doc/en/print-options.png
  51. BIN
      doc/en/report-dialog.png
  52. BIN
      doc/en/source-options.png
  53. BIN
      doc/en/sru-options.png
  54. BIN
      doc/en/template-options.png
  55. BIN
      doc/en/z3950-options.png
  56. 60
    0
      doc/fr/CMakeLists.txt
  57. 50
    0
      doc/fr/Makefile.am
  58. 120
    0
      doc/fr/advanced.docbook
  59. BIN
      doc/fr/amazon-options.png
  60. 445
    0
      doc/fr/configuration.docbook
  61. BIN
      doc/fr/csv-dialog.png
  62. 613
    0
      doc/fr/details.docbook
  63. BIN
      doc/fr/entry-editor1.png
  64. BIN
      doc/fr/entry-editor3.png
  65. BIN
      doc/fr/entry-editor4.png
  66. BIN
      doc/fr/entry-editor5.png
  67. BIN
      doc/fr/export-bibtex.png
  68. BIN
      doc/fr/export-csv.png
  69. BIN
      doc/fr/export-html.png
  70. BIN
      doc/fr/export-options.png
  71. BIN
      doc/fr/export-pdb.png
  72. BIN
      doc/fr/externalexec-options.png
  73. 279
    0
      doc/fr/faqs.docbook
  74. BIN
      doc/fr/fetch-dialog.png
  75. BIN
      doc/fr/fields-dialog.png
  76. BIN
      doc/fr/filter-dialog.png
  77. BIN
      doc/fr/filter-view.png
  78. 57
    0
      doc/fr/freebsd-doc-license.html
  79. 841
    0
      doc/fr/fundamentals.docbook
  80. BIN
      doc/fr/general-options.png
  81. 448
    0
      doc/fr/hacking.docbook
  82. BIN
      doc/fr/imdb-options.png
  83. 594
    0
      doc/fr/importing-exporting.docbook
  84. 452
    0
      doc/fr/index.docbook
  85. BIN
      doc/fr/loan-dialog.png
  86. BIN
      doc/fr/loan-view.png
  87. BIN
      doc/fr/main-window.png
  88. 821
    0
      doc/fr/menus.docbook
  89. BIN
      doc/fr/openoffice-dialog.png
  90. BIN
      doc/fr/print-options.png
  91. BIN
      doc/fr/report-dialog.png
  92. BIN
      doc/fr/source-options.png
  93. BIN
      doc/fr/sru-options.png
  94. BIN
      doc/fr/template-options.png
  95. BIN
      doc/fr/z3950-options.png
  96. 81
    0
      icons/Makefile.am
  97. 18
    0
      icons/README.icons
  98. 62
    0
      icons/README.quesnay
  99. BIN
      icons/album.png
  100. 0
    0
      icons/bibtex.png

+ 1
- 0
AUTHORS View File

@@ -0,0 +1 @@
1
+Robby Stephenson <robby@periapsis.org>

+ 353
- 0
COPYING View File

@@ -0,0 +1,353 @@
1
+		    GNU GENERAL PUBLIC LICENSE
2
+		       Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+                       51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+			    Preamble
10
+
11
+  The licenses for most software are designed to take away your
12
+freedom to share and change it.  By contrast, the GNU General Public
13
+License is intended to guarantee your freedom to share and change free
14
+software--to make sure the software is free for all its users.  This
15
+General Public License applies to most of the Free Software
16
+Foundation's software and to any other program whose authors commit to
17
+using it.  (Some other Free Software Foundation software is covered by
18
+the GNU Library General Public License instead.)  You can apply it to
19
+your programs, too.
20
+
21
+  When we speak of free software, we are referring to freedom, not
22
+price.  Our General Public Licenses are designed to make sure that you
23
+have the freedom to distribute copies of free software (and charge for
24
+this service if you wish), that you receive source code or can get it
25
+if you want it, that you can change the software or use pieces of it
26
+in new free programs; and that you know you can do these things.
27
+
28
+  To protect your rights, we need to make restrictions that forbid
29
+anyone to deny you these rights or to ask you to surrender the rights.
30
+These restrictions translate to certain responsibilities for you if you
31
+distribute copies of the software, or if you modify it.
32
+
33
+  For example, if you distribute copies of such a program, whether
34
+gratis or for a fee, you must give the recipients all the rights that
35
+you have.  You must make sure that they, too, receive or can get the
36
+source code.  And you must show them these terms so they know their
37
+rights.
38
+
39
+  We protect your rights with two steps: (1) copyright the software, and
40
+(2) offer you this license which gives you legal permission to copy,
41
+distribute and/or modify the software.
42
+
43
+  Also, for each author's protection and ours, we want to make certain
44
+that everyone understands that there is no warranty for this free
45
+software.  If the software is modified by someone else and passed on, we
46
+want its recipients to know that what they have is not the original, so
47
+that any problems introduced by others will not reflect on the original
48
+authors' reputations.
49
+
50
+  Finally, any free program is threatened constantly by software
51
+patents.  We wish to avoid the danger that redistributors of a free
52
+program will individually obtain patent licenses, in effect making the
53
+program proprietary.  To prevent this, we have made it clear that any
54
+patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+  The precise terms and conditions for copying, distribution and
57
+modification follow.
58
+
59
+		    GNU GENERAL PUBLIC LICENSE
60
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+  0. This License applies to any program or other work which contains
63
+a notice placed by the copyright holder saying it may be distributed
64
+under the terms of this General Public License.  The "Program", below,
65
+refers to any such program or work, and a "work based on the Program"
66
+means either the Program or any derivative work under copyright law:
67
+that is to say, a work containing the Program or a portion of it,
68
+either verbatim or with modifications and/or translated into another
69
+language.  (Hereinafter, translation is included without limitation in
70
+the term "modification".)  Each licensee is addressed as "you".
71
+
72
+Activities other than copying, distribution and modification are not
73
+covered by this License; they are outside its scope.  The act of
74
+running the Program is not restricted, and the output from the Program
75
+is covered only if its contents constitute a work based on the
76
+Program (independent of having been made by running the Program).
77
+Whether that is true depends on what the Program does.
78
+
79
+  1. You may copy and distribute verbatim copies of the Program's
80
+source code as you receive it, in any medium, provided that you
81
+conspicuously and appropriately publish on each copy an appropriate
82
+copyright notice and disclaimer of warranty; keep intact all the
83
+notices that refer to this License and to the absence of any warranty;
84
+and give any other recipients of the Program a copy of this License
85
+along with the Program.
86
+
87
+You may charge a fee for the physical act of transferring a copy, and
88
+you may at your option offer warranty protection in exchange for a fee.
89
+
90
+  2. You may modify your copy or copies of the Program or any portion
91
+of it, thus forming a work based on the Program, and copy and
92
+distribute such modifications or work under the terms of Section 1
93
+above, provided that you also meet all of these conditions:
94
+
95
+    a) You must cause the modified files to carry prominent notices
96
+    stating that you changed the files and the date of any change.
97
+
98
+    b) You must cause any work that you distribute or publish, that in
99
+    whole or in part contains or is derived from the Program or any
100
+    part thereof, to be licensed as a whole at no charge to all third
101
+    parties under the terms of this License.
102
+
103
+    c) If the modified program normally reads commands interactively
104
+    when run, you must cause it, when started running for such
105
+    interactive use in the most ordinary way, to print or display an
106
+    announcement including an appropriate copyright notice and a
107
+    notice that there is no warranty (or else, saying that you provide
108
+    a warranty) and that users may redistribute the program under
109
+    these conditions, and telling the user how to view a copy of this
110
+    License.  (Exception: if the Program itself is interactive but
111
+    does not normally print such an announcement, your work based on
112
+    the Program is not required to print an announcement.)
113
+
114
+These requirements apply to the modified work as a whole.  If
115
+identifiable sections of that work are not derived from the Program,
116
+and can be reasonably considered independent and separate works in
117
+themselves, then this License, and its terms, do not apply to those
118
+sections when you distribute them as separate works.  But when you
119
+distribute the same sections as part of a whole which is a work based
120
+on the Program, the distribution of the whole must be on the terms of
121
+this License, whose permissions for other licensees extend to the
122
+entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+Thus, it is not the intent of this section to claim rights or contest
125
+your rights to work written entirely by you; rather, the intent is to
126
+exercise the right to control the distribution of derivative or
127
+collective works based on the Program.
128
+
129
+In addition, mere aggregation of another work not based on the Program
130
+with the Program (or with a work based on the Program) on a volume of
131
+a storage or distribution medium does not bring the other work under
132
+the scope of this License.
133
+
134
+  3. You may copy and distribute the Program (or a work based on it,
135
+under Section 2) in object code or executable form under the terms of
136
+Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+    a) Accompany it with the complete corresponding machine-readable
139
+    source code, which must be distributed under the terms of Sections
140
+    1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+    b) Accompany it with a written offer, valid for at least three
143
+    years, to give any third party, for a charge no more than your
144
+    cost of physically performing source distribution, a complete
145
+    machine-readable copy of the corresponding source code, to be
146
+    distributed under the terms of Sections 1 and 2 above on a medium
147
+    customarily used for software interchange; or,
148
+
149
+    c) Accompany it with the information you received as to the offer
150
+    to distribute corresponding source code.  (This alternative is
151
+    allowed only for noncommercial distribution and only if you
152
+    received the program in object code or executable form with such
153
+    an offer, in accord with Subsection b above.)
154
+
155
+The source code for a work means the preferred form of the work for
156
+making modifications to it.  For an executable work, complete source
157
+code means all the source code for all modules it contains, plus any
158
+associated interface definition files, plus the scripts used to
159
+control compilation and installation of the executable.  However, as a
160
+special exception, the source code distributed need not include
161
+anything that is normally distributed (in either source or binary
162
+form) with the major components (compiler, kernel, and so on) of the
163
+operating system on which the executable runs, unless that component
164
+itself accompanies the executable.
165
+
166
+If distribution of executable or object code is made by offering
167
+access to copy from a designated place, then offering equivalent
168
+access to copy the source code from the same place counts as
169
+distribution of the source code, even though third parties are not
170
+compelled to copy the source along with the object code.
171
+
172
+  4. You may not copy, modify, sublicense, or distribute the Program
173
+except as expressly provided under this License.  Any attempt
174
+otherwise to copy, modify, sublicense or distribute the Program is
175
+void, and will automatically terminate your rights under this License.
176
+However, parties who have received copies, or rights, from you under
177
+this License will not have their licenses terminated so long as such
178
+parties remain in full compliance.
179
+
180
+  5. You are not required to accept this License, since you have not
181
+signed it.  However, nothing else grants you permission to modify or
182
+distribute the Program or its derivative works.  These actions are
183
+prohibited by law if you do not accept this License.  Therefore, by
184
+modifying or distributing the Program (or any work based on the
185
+Program), you indicate your acceptance of this License to do so, and
186
+all its terms and conditions for copying, distributing or modifying
187
+the Program or works based on it.
188
+
189
+  6. Each time you redistribute the Program (or any work based on the
190
+Program), the recipient automatically receives a license from the
191
+original licensor to copy, distribute or modify the Program subject to
192
+these terms and conditions.  You may not impose any further
193
+restrictions on the recipients' exercise of the rights granted herein.
194
+You are not responsible for enforcing compliance by third parties to
195
+this License.
196
+
197
+  7. If, as a consequence of a court judgment or allegation of patent
198
+infringement or for any other reason (not limited to patent issues),
199
+conditions are imposed on you (whether by court order, agreement or
200
+otherwise) that contradict the conditions of this License, they do not
201
+excuse you from the conditions of this License.  If you cannot
202
+distribute so as to satisfy simultaneously your obligations under this
203
+License and any other pertinent obligations, then as a consequence you
204
+may not distribute the Program at all.  For example, if a patent
205
+license would not permit royalty-free redistribution of the Program by
206
+all those who receive copies directly or indirectly through you, then
207
+the only way you could satisfy both it and this License would be to
208
+refrain entirely from distribution of the Program.
209
+
210
+If any portion of this section is held invalid or unenforceable under
211
+any particular circumstance, the balance of the section is intended to
212
+apply and the section as a whole is intended to apply in other
213
+circumstances.
214
+
215
+It is not the purpose of this section to induce you to infringe any
216
+patents or other property right claims or to contest validity of any
217
+such claims; this section has the sole purpose of protecting the
218
+integrity of the free software distribution system, which is
219
+implemented by public license practices.  Many people have made
220
+generous contributions to the wide range of software distributed
221
+through that system in reliance on consistent application of that
222
+system; it is up to the author/donor to decide if he or she is willing
223
+to distribute software through any other system and a licensee cannot
224
+impose that choice.
225
+
226
+This section is intended to make thoroughly clear what is believed to
227
+be a consequence of the rest of this License.
228
+
229
+  8. If the distribution and/or use of the Program is restricted in
230
+certain countries either by patents or by copyrighted interfaces, the
231
+original copyright holder who places the Program under this License
232
+may add an explicit geographical distribution limitation excluding
233
+those countries, so that distribution is permitted only in or among
234
+countries not thus excluded.  In such case, this License incorporates
235
+the limitation as if written in the body of this License.
236
+
237
+  9. The Free Software Foundation may publish revised and/or new versions
238
+of the General Public License from time to time.  Such new versions will
239
+be similar in spirit to the present version, but may differ in detail to
240
+address new problems or concerns.
241
+
242
+Each version is given a distinguishing version number.  If the Program
243
+specifies a version number of this License which applies to it and "any
244
+later version", you have the option of following the terms and conditions
245
+either of that version or of any later version published by the Free
246
+Software Foundation.  If the Program does not specify a version number of
247
+this License, you may choose any version ever published by the Free Software
248
+Foundation.
249
+
250
+  10. If you wish to incorporate parts of the Program into other free
251
+programs whose distribution conditions are different, write to the author
252
+to ask for permission.  For software which is copyrighted by the Free
253
+Software Foundation, write to the Free Software Foundation; we sometimes
254
+make exceptions for this.  Our decision will be guided by the two goals
255
+of preserving the free status of all derivatives of our free software and
256
+of promoting the sharing and reuse of software generally.
257
+
258
+			    NO WARRANTY
259
+
260
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+REPAIR OR CORRECTION.
269
+
270
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+POSSIBILITY OF SUCH DAMAGES.
279
+
280
+		     END OF TERMS AND CONDITIONS
281
+
282
+	    How to Apply These Terms to Your New Programs
283
+
284
+  If you develop a new program, and you want it to be of the greatest
285
+possible use to the public, the best way to achieve this is to make it
286
+free software which everyone can redistribute and change under these terms.
287
+
288
+  To do so, attach the following notices to the program.  It is safest
289
+to attach them to the start of each source file to most effectively
290
+convey the exclusion of warranty; and each file should have at least
291
+the "copyright" line and a pointer to where the full notice is found.
292
+
293
+    <one line to give the program's name and a brief idea of what it does.>
294
+    Copyright (C) <year>  <name of author>
295
+
296
+    This program is free software; you can redistribute it and/or modify
297
+    it under the terms of the GNU General Public License as published by
298
+    the Free Software Foundation; either version 2 of the License, or
299
+    (at your option) any later version.
300
+
301
+    This program is distributed in the hope that it will be useful,
302
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304
+    GNU General Public License for more details.
305
+
306
+    You should have received a copy of the GNU General Public License
307
+    along with this program; if not, write to the Free Software
308
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
309
+
310
+
311
+Also add information on how to contact you by electronic and paper mail.
312
+
313
+If the program is interactive, make it output a short notice like this
314
+when it starts in an interactive mode:
315
+
316
+    Gnomovision version 69, Copyright (C) year name of author
317
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
+    This is free software, and you are welcome to redistribute it
319
+    under certain conditions; type `show c' for details.
320
+
321
+The hypothetical commands `show w' and `show c' should show the appropriate
322
+parts of the General Public License.  Of course, the commands you use may
323
+be called something other than `show w' and `show c'; they could even be
324
+mouse-clicks or menu items--whatever suits your program.
325
+
326
+You should also get your employer (if you work as a programmer) or your
327
+school, if any, to sign a "copyright disclaimer" for the program, if
328
+necessary.  Here is a sample; alter the names:
329
+
330
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
+
333
+  <signature of Ty Coon>, 1 April 1989
334
+  Ty Coon, President of Vice
335
+
336
+This General Public License does not permit incorporating your program into
337
+proprietary programs.  If your program is a subroutine library, you may
338
+consider it more useful to permit linking proprietary applications with the
339
+library.  If this is what you want to do, use the GNU Library General
340
+Public License instead of this License.
341
+
342
+----------------------------------------------------------------------------
343
+
344
+In addition, as a special exception, the author gives permission to
345
+link the code of this program with the OpenSSL library released by
346
+the OpenSSL Project (or with modified versions of OpenSSL that use
347
+the same license as OpenSSL), and distribute linked combinations
348
+including the two.  You must obey the GNU General Public License in
349
+all respects for all of the code used other than OpenSSL.  If you
350
+modify this software, you may extend this exception to your version of,
351
+but you are not obligated to do so.  If you do not wish to do so,
352
+delete this exception statement from your version.
353
+

+ 2416
- 0
ChangeLog
File diff suppressed because it is too large
View File


+ 167
- 0
INSTALL View File

@@ -0,0 +1,167 @@
1
+Basic Installation
2
+==================
3
+
4
+   These are generic installation instructions.
5
+
6
+   The `configure' shell script attempts to guess correct values for
7
+various system-dependent variables used during compilation.  It uses
8
+those values to create a `Makefile' in each directory of the package.
9
+It may also create one or more `.h' files containing system-dependent
10
+definitions.  Finally, it creates a shell script `config.status' that
11
+you can run in the future to recreate the current configuration, a file
12
+`config.cache' that saves the results of its tests to speed up
13
+reconfiguring, and a file `config.log' containing compiler output
14
+(useful mainly for debugging `configure').
15
+
16
+   If you need to do unusual things to compile the package, please try
17
+to figure out how `configure' could check whether to do them, and mail
18
+diffs or instructions to the address given in the `README' so they can
19
+be considered for the next release.  If at some point `config.cache'
20
+contains results you don't want to keep, you may remove or edit it.
21
+
22
+   The file `configure.in' is used to create `configure' by a program
23
+called `autoconf'.  You only need `configure.in' if you want to change
24
+it or regenerate `configure' using a newer version of `autoconf'.
25
+
26
+The simplest way to compile this package is:
27
+
28
+  1. `cd' to the directory containing the package's source code and type
29
+     `./configure' to configure the package for your system.  If you're
30
+     using `csh' on an old version of System V, you might need to type
31
+     `sh ./configure' instead to prevent `csh' from trying to execute
32
+     `configure' itself.
33
+
34
+     Running `configure' takes a while.  While running, it prints some
35
+     messages telling which features it is checking for.
36
+
37
+  2. Type `make' to compile the package.
38
+
39
+  3. Type `make install' to install the programs and any data files and
40
+     documentation.
41
+
42
+  4. You can remove the program binaries and object files from the
43
+     source code directory by typing `make clean'.  
44
+
45
+Compilers and Options
46
+=====================
47
+
48
+   Some systems require unusual options for compilation or linking that
49
+the `configure' script does not know about.  You can give `configure'
50
+initial values for variables by setting them in the environment.  Using
51
+a Bourne-compatible shell, you can do that on the command line like
52
+this:
53
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
54
+
55
+Or on systems that have the `env' program, you can do it like this:
56
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
57
+
58
+Compiling For Multiple Architectures
59
+====================================
60
+
61
+   You can compile the package for more than one kind of computer at the
62
+same time, by placing the object files for each architecture in their
63
+own directory.  To do this, you must use a version of `make' that
64
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
65
+directory where you want the object files and executables to go and run
66
+the `configure' script.  `configure' automatically checks for the
67
+source code in the directory that `configure' is in and in `..'.
68
+
69
+   If you have to use a `make' that does not supports the `VPATH'
70
+variable, you have to compile the package for one architecture at a time
71
+in the source code directory.  After you have installed the package for
72
+one architecture, use `make distclean' before reconfiguring for another
73
+architecture.
74
+
75
+Installation Names
76
+==================
77
+
78
+   By default, `make install' will install the package's files in
79
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
80
+installation prefix other than `/usr/local' by giving `configure' the
81
+option `--prefix=PATH'.
82
+
83
+   You can specify separate installation prefixes for
84
+architecture-specific files and architecture-independent files.  If you
85
+give `configure' the option `--exec-prefix=PATH', the package will use
86
+PATH as the prefix for installing programs and libraries.
87
+Documentation and other data files will still use the regular prefix.
88
+
89
+   If the package supports it, you can cause programs to be installed
90
+with an extra prefix or suffix on their names by giving `configure' the
91
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
92
+
93
+Optional Features
94
+=================
95
+
96
+   Some packages pay attention to `--enable-FEATURE' options to
97
+`configure', where FEATURE indicates an optional part of the package.
98
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
99
+is something like `gnu-as' or `x' (for the X Window System).  The
100
+`README' should mention any `--enable-' and `--with-' options that the
101
+package recognizes.
102
+
103
+   For packages that use the X Window System, `configure' can usually
104
+find the X include and library files automatically, but if it doesn't,
105
+you can use the `configure' options `--x-includes=DIR' and
106
+`--x-libraries=DIR' to specify their locations.
107
+
108
+Specifying the System Type
109
+==========================
110
+
111
+   There may be some features `configure' can not figure out
112
+automatically, but needs to determine by the type of host the package
113
+will run on.  Usually `configure' can figure that out, but if it prints
114
+a message saying it can not guess the host type, give it the
115
+`--host=TYPE' option.  TYPE can either be a short name for the system
116
+type, such as `sun4', or a canonical name with three fields:
117
+     CPU-COMPANY-SYSTEM
118
+
119
+See the file `config.sub' for the possible values of each field.  If
120
+`config.sub' isn't included in this package, then this package doesn't
121
+need to know the host type.
122
+
123
+   If you are building compiler tools for cross-compiling, you can also
124
+use the `--target=TYPE' option to select the type of system they will
125
+produce code for and the `--build=TYPE' option to select the type of
126
+system on which you are compiling the package.
127
+
128
+Sharing Defaults
129
+================
130
+
131
+   If you want to set default values for `configure' scripts to share,
132
+you can create a site shell script called `config.site' that gives
133
+default values for variables like `CC', `cache_file', and `prefix'.
134
+`configure' looks for `PREFIX/share/config.site' if it exists, then
135
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
136
+`CONFIG_SITE' environment variable to the location of the site script.
137
+A warning: not all `configure' scripts look for a site script.
138
+
139
+Operation Controls
140
+==================
141
+
142
+   `configure' recognizes the following options to control how it
143
+operates.
144
+
145
+`--cache-file=FILE'
146
+     Use and save the results of the tests in FILE instead of
147
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
148
+     debugging `configure'.
149
+
150
+`--help'
151
+     Print a summary of the options to `configure', and exit.
152
+
153
+`--quiet'
154
+`--silent'
155
+`-q'
156
+     Do not print messages saying which checks are being made.
157
+
158
+`--srcdir=DIR'
159
+     Look for the package's source code in directory DIR.  Usually
160
+     `configure' can determine that directory automatically.
161
+
162
+`--version'
163
+     Print the version of Autoconf used to generate the `configure'
164
+     script, and exit.
165
+
166
+`configure' also accepts some other, not widely useful, options.
167
+

+ 128
- 0
Makefile.am View File

@@ -0,0 +1,128 @@
1
+####### kdevelop will overwrite this part!!! (begin)##########
2
+
3
+SUBDIRS = src po doc icons xslt
4
+
5
+ADMIN_DIST = \
6
+admin/acinclude.m4.in \
7
+admin/am_edit \
8
+admin/am_edit.py \
9
+admin/conf.change.pl \
10
+admin/config.pl \
11
+admin/libtool.m4.in \
12
+admin/Makefile.common
13
+
14
+EXTRA_DIST = \
15
+COPYING ChangeLog INSTALL README TODO \
16
+tellico.lsm tellico.dtd x-tellico.desktop \
17
+configure.in.in AUTHORS NEWS tellico.tips \
18
+tellico.desktop tellico.xml $(ADMIN_DIST)
19
+
20
+####### kdevelop will overwrite this part!!! (end)############
21
+# not a GNU package. You can remove this line, if 
22
+# have all needed files, that a GNU package needs
23
+AUTOMAKE_OPTIONS = foreign
24
+
25
+KDE_OPTIONS = noautodist
26
+
27
+#$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
28
+$(top_srcdir)/configure.in: configure.in.in
29
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
30
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in
31
+
32
+$(top_srcdir)/subdirs:
33
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
34
+
35
+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
36
+	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
37
+
38
+xdg_apps_DATA = tellico.desktop
39
+xdg_mime_DATA = tellico.xml
40
+
41
+mimedir = $(kde_mimedir)/application
42
+mime_DATA = x-tellico.desktop
43
+
44
+localdir = $(kde_datadir)/tellico
45
+local_DATA = tellico.dtd tellico.tips
46
+
47
+CLEANFILES = *~ *.loT
48
+
49
+DISTCLEANFILES = stamp-h1 stamp-h.in stamp-h2 $(distdir).tar.gz $(CLEANFILES)
50
+
51
+MAINTAINERCLEANFILES = \
52
+subdirs configure configure.in \
53
+aclocal.m4 acinclude.m4 configure.files \
54
+Makefile.in $(DISTCLEANFILES)
55
+
56
+
57
+package-messages:
58
+	$(MAKE) -f admin/Makefile.common package-messages
59
+	$(MAKE) -C po merge
60
+
61
+messages:
62
+	@ rm -f tips.cpp xslt.cpp z3950.cpp scripts.cpp
63
+	@ touch $(podir)/tellico.pot;
64
+	./preparetips tellico.tips > tips.cpp; \
65
+	$(XGETTEXT)  --join-existing tips.cpp -o $(podir)/tellico.pot; \
66
+	./prepare_i18n_xslt > xslt.cpp; \
67
+	$(XGETTEXT)  --join-existing xslt.cpp -o $(podir)/tellico.pot; \
68
+	./prepare_desktop src/fetch/z3950-servers.cfg > z3950.cpp; \
69
+	$(XGETTEXT)  --join-existing z3950.cpp -o $(podir)/tellico.pot; \
70
+	./prepare_desktop src/fetch/scripts/*.spec > scripts.cpp; \
71
+	$(XGETTEXT)  --join-existing scripts.cpp -o $(podir)/tellico.pot;
72
+	@ rm -f tips.cpp xslt.cpp z3950.cpp scripts.cpp
73
+
74
+
75
+dist-hook:
76
+# am_edit needs to modify the Makefile.in files, so they must be writeable
77
+	-find $(distdir) -exec chmod a+w {} \;
78
+	cd $(distdir) && perl admin/am_edit -padmin
79
+	cd $(distdir) && $(MAKE) -f admin/Makefile.common subdirs
80
+# don't include dist file inside the dist file
81
+#	cd $(srcdir) && rm -f $(distdir).tar.gz
82
+# remove any executable
83
+	rm -rf $(distdir)/src/tellico
84
+
85
+PUBLIC_ID=-//Robby Stephenson/DTD Tellico V9.0//EN
86
+SYSTEM_ID=http://www.periapsis.org/tellico/dtd/v9/tellico.dtd
87
+
88
+install-data-local:
89
+	@if test x"@XML_CATALOG_FILE@" != x; then \
90
+          echo @XMLCATALOG@ --noout --add "delegatePublic" \
91
+               "$(PUBLIC_ID)" \
92
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
93
+          @XMLCATALOG@ --noout --add "delegatePublic" \
94
+               "$(PUBLIC_ID)" \
95
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
96
+          echo @XMLCATALOG@ --noout --add "delegateSystem" \
97
+               "$(SYSTEM_ID)" \
98
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
99
+          @XMLCATALOG@ --noout --add "delegateSystem" \
100
+               "$(SYSTEM_ID)" \
101
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
102
+          echo @XMLCATALOG@ --noout --add "delegateURI" \
103
+               "$(SYSTEM_ID)" \
104
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
105
+          @XMLCATALOG@ --noout --add "delegateURI" \
106
+               "$(SYSTEM_ID)" \
107
+               "file://$(localdir)/tellico.dtd" "@XML_CATALOG_FILE@" ; \
108
+	fi
109
+
110
+uninstall-local:
111
+	@if test x"@XML_CATALOG_FILE@" != x; then \
112
+          echo @XMLCATALOG@ --noout --del \
113
+               "$(PUBLIC_ID)" "@XML_CATALOG_FILE@" ; \
114
+          @XMLCATALOG@ --noout --del \
115
+               "$(PUBLIC_ID)" "@XML_CATALOG_FILE@" ; \
116
+          echo @XMLCATALOG@ --noout --del \
117
+               "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
118
+          @XMLCATALOG@ --noout --del \
119
+               "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
120
+          echo @XMLCATALOG@ --noout --del \
121
+               "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
122
+          @XMLCATALOG@ --noout --del \
123
+               "$(SYSTEM_ID)" "@XML_CATALOG_FILE@" ; \
124
+	fi
125
+
126
+# probably a better way to do this
127
+uninstall-hook:
128
+	-if [ -d $(localdir) ]; then rmdir $(localdir); fi

+ 0
- 0
NEWS View File


+ 1
- 0
README View File

@@ -0,0 +1 @@
1
+

+ 1
- 0
TODO View File

@@ -0,0 +1 @@
1
+See http://www.periapsis.org/tellico/

+ 11720
- 0
acinclude.m4
File diff suppressed because it is too large
View File


+ 1033
- 0
aclocal.m4
File diff suppressed because it is too large
View File


+ 326
- 0
config.h.in View File

@@ -0,0 +1,326 @@
1
+/* config.h.in.  Generated from configure.in by autoheader.  */
2
+
3
+/* Define to 1 if Amazon.com searching should be enabled */
4
+#undef AMAZON_SUPPORT
5
+
6
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
7
+   systems. This function is required for `alloca.c' support on those systems.
8
+   */
9
+#undef CRAY_STACKSEG_END
10
+
11
+/* Define to 1 if using `alloca.c'. */
12
+#undef C_ALLOCA
13
+
14
+/* Define to 1 if webcam support is enabled */
15
+#undef ENABLE_WEBCAM
16
+
17
+/* Define to 1 if you have `alloca', as a function or macro. */
18
+#undef HAVE_ALLOCA
19
+
20
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
21
+   */
22
+#undef HAVE_ALLOCA_H
23
+
24
+/* Define if boolean is defined in <sys/types.h> */
25
+#undef HAVE_BOOLEAN
26
+
27
+/* Define if you have the CoreAudio API */
28
+#undef HAVE_COREAUDIO
29
+
30
+/* Define to 1 if you have the <crt_externs.h> header file. */
31
+#undef HAVE_CRT_EXTERNS_H
32
+
33
+/* Defines if your system has the crypt function */
34
+#undef HAVE_CRYPT
35
+
36
+/* Define to 1 if you have the <dlfcn.h> header file. */
37
+#undef HAVE_DLFCN_H
38
+
39
+/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
40
+#undef HAVE_DOPRNT
41
+
42
+/* Define to 1 if exempi is available */
43
+#undef HAVE_EXEMPI
44
+
45
+/* Define to 1 if you have the <inttypes.h> header file. */
46
+#undef HAVE_INTTYPES_H
47
+
48
+/* Define to 1 if you have libkcal */
49
+#undef HAVE_KCAL
50
+
51
+/* Define to 1 if you have libkcddb */
52
+#undef HAVE_KCDDB
53
+
54
+/* Define to 1 if you have the `btparse' library (-lbtparse). */
55
+#undef HAVE_LIBBTPARSE
56
+
57
+/* Define if you have libjpeg */
58
+#undef HAVE_LIBJPEG
59
+
60
+/* Define if you have libpng */
61
+#undef HAVE_LIBPNG
62
+
63
+/* Define if you have a working libpthread (will enable threaded code) */
64
+#undef HAVE_LIBPTHREAD
65
+
66
+/* Define if you have libz */
67
+#undef HAVE_LIBZ
68
+
69
+/* Define to 1 if you have the <memory.h> header file. */
70
+#undef HAVE_MEMORY_H
71
+
72
+/* Define if your system needs _NSGetEnviron to set up the environment */
73
+#undef HAVE_NSGETENVIRON
74
+
75
+/* Define to 1 if poppler is available */
76
+#undef HAVE_POPPLER
77
+
78
+/* Define if you have res_init */
79
+#undef HAVE_RES_INIT
80
+
81
+/* Define if you have the res_init prototype */
82
+#undef HAVE_RES_INIT_PROTO
83
+
84
+/* Define to 1 if you have the <sal/config.h> header file. */
85
+#undef HAVE_SAL_CONFIG_H
86
+
87
+/* Define to 1 if you have the `snprintf' function. */
88
+#undef HAVE_SNPRINTF
89
+
90
+/* Define to 1 if you have the <stdint.h> header file. */
91
+#undef HAVE_STDINT_H
92
+
93
+/* Define to 1 if you have the <stdlib.h> header file. */
94
+#undef HAVE_STDLIB_H
95
+
96
+/* Define if strdup is declared in <string.h> */
97
+#undef HAVE_STRDUP_DECL
98
+
99
+/* Define to 1 if you have the <strings.h> header file. */
100
+#undef HAVE_STRINGS_H
101
+
102
+/* Define to 1 if you have the <string.h> header file. */
103
+#undef HAVE_STRING_H
104
+
105
+/* Define if you have strlcat */
106
+#undef HAVE_STRLCAT
107
+
108
+/* Define if you have the strlcat prototype */
109
+#undef HAVE_STRLCAT_PROTO
110
+
111
+/* Define if you have strlcpy */
112
+#undef HAVE_STRLCPY
113
+
114
+/* Define if you have the strlcpy prototype */
115
+#undef HAVE_STRLCPY_PROTO
116
+
117
+/* Define to 1 if you have the `strlwr' function. */
118
+#undef HAVE_STRLWR
119
+
120
+/* Define to 1 if you have the `strupr' function. */
121
+#undef HAVE_STRUPR
122
+
123
+/* Define to 1 if you have the <sys/bitypes.h> header file. */
124
+#undef HAVE_SYS_BITYPES_H
125
+
126
+/* Define to 1 if you have the <sys/stat.h> header file. */
127
+#undef HAVE_SYS_STAT_H
128
+
129
+/* Define to 1 if you have the <sys/types.h> header file. */
130
+#undef HAVE_SYS_TYPES_H
131
+
132
+/* Define to 1 if you have the TagLib library */
133
+#undef HAVE_TAGLIB
134
+
135
+/* Define to 1 if you have the <unistd.h> header file. */
136
+#undef HAVE_UNISTD_H
137
+
138
+/* Define if ushort is defined in <sys/types.h> */
139
+#undef HAVE_USHORT
140
+
141
+/* Define if you have the 'std::vector::at(std::size_t)' function */
142
+#undef HAVE_VECTOR_AT
143
+
144
+/* Define to 1 if you have the `vprintf' function. */
145
+#undef HAVE_VPRINTF
146
+
147
+/* Define to 1 if you have the `vsnprintf' function. */
148
+#undef HAVE_VSNPRINTF
149
+
150
+/* Define to 1 if you have the yaz library */
151
+#undef HAVE_YAZ
152
+
153
+/* Define to 1 if IMDb searching should be enabled */
154
+#undef IMDB_SUPPORT
155
+
156
+/* Suffix for lib directories */
157
+#undef KDELIBSUFF
158
+
159
+/* Name of package */
160
+#undef PACKAGE
161
+
162
+/* Define to the address where bug reports for this package should be sent. */
163
+#undef PACKAGE_BUGREPORT
164
+
165
+/* Define to the full name of this package. */
166
+#undef PACKAGE_NAME
167
+
168
+/* Define to the full name and version of this package. */
169
+#undef PACKAGE_STRING
170
+
171
+/* Define to the one symbol short name of this package. */
172
+#undef PACKAGE_TARNAME
173
+
174
+/* Define to the version of this package. */
175
+#undef PACKAGE_VERSION
176
+
177
+/* The size of `char', as computed by sizeof. */
178
+#undef SIZEOF_CHAR
179
+
180
+/* The size of `char *', as computed by sizeof. */
181
+#undef SIZEOF_CHAR_P
182
+
183
+/* The size of `int', as computed by sizeof. */
184
+#undef SIZEOF_INT
185
+
186
+/* The size of `long', as computed by sizeof. */
187
+#undef SIZEOF_LONG
188
+
189
+/* The size of `short', as computed by sizeof. */
190
+#undef SIZEOF_SHORT
191
+
192
+/* The size of `size_t', as computed by sizeof. */
193
+#undef SIZEOF_SIZE_T
194
+
195
+/* The size of `unsigned char', as computed by sizeof. */
196
+#undef SIZEOF_UNSIGNED_CHAR
197
+
198
+/* The size of `unsigned int', as computed by sizeof. */
199
+#undef SIZEOF_UNSIGNED_INT
200
+
201
+/* The size of `unsigned long', as computed by sizeof. */
202
+#undef SIZEOF_UNSIGNED_LONG
203
+
204
+/* The size of `unsigned short', as computed by sizeof. */
205
+#undef SIZEOF_UNSIGNED_SHORT
206
+
207
+/* If using the C implementation of alloca, define if you know the
208
+   direction of stack growth for your system; otherwise it will be
209
+   automatically deduced at runtime.
210
+	STACK_DIRECTION > 0 => grows toward higher addresses
211
+	STACK_DIRECTION < 0 => grows toward lower addresses
212
+	STACK_DIRECTION = 0 => direction of growth unknown */
213
+#undef STACK_DIRECTION
214
+
215
+/* Define to 1 if you have the ANSI C header files. */
216
+#undef STDC_HEADERS
217
+
218
+/* Define to 1 if you want to compile CD-Text support */
219
+#undef USE_CDTEXT
220
+
221
+/* Version number of package */
222
+#undef VERSION
223
+
224
+/* Defined if compiling without arts */
225
+#undef WITHOUT_ARTS
226
+
227
+/*
228
+ * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
229
+ * headers and I'm too lazy to write a configure test as long as only
230
+ * unixware is related
231
+ */
232
+#ifdef _UNIXWARE
233
+#define HAVE_BOOLEAN
234
+#endif
235
+
236
+
237
+
238
+/*
239
+ * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
240
+ * that defines bzero.
241
+ */
242
+
243
+#if defined(_AIX)
244
+#include <strings.h>
245
+#endif
246
+
247
+
248
+
249
+#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
250
+# include <sys/time.h>
251
+# include <crt_externs.h>
252
+# define environ (*_NSGetEnviron())
253
+#endif
254
+
255
+
256
+
257
+#if !defined(HAVE_RES_INIT_PROTO)
258
+#ifdef __cplusplus
259
+extern "C" {
260
+#endif
261
+int res_init(void);
262
+#ifdef __cplusplus
263
+}
264
+#endif
265
+#endif
266
+
267
+
268
+
269
+#if !defined(HAVE_STRLCAT_PROTO)
270
+#ifdef __cplusplus
271
+extern "C" {
272
+#endif
273
+unsigned long strlcat(char*, const char*, unsigned long);
274
+#ifdef __cplusplus
275
+}
276
+#endif
277
+#endif
278
+
279
+
280
+
281
+#if !defined(HAVE_STRLCPY_PROTO)
282
+#ifdef __cplusplus
283
+extern "C" {
284
+#endif
285
+unsigned long strlcpy(char*, const char*, unsigned long);
286
+#ifdef __cplusplus
287
+}
288
+#endif
289
+#endif
290
+
291
+
292
+
293
+/*
294
+ * On HP-UX, the declaration of vsnprintf() is needed every time !
295
+ */
296
+
297
+#if !defined(HAVE_VSNPRINTF) || defined(hpux)
298
+#if __STDC__
299
+#include <stdarg.h>
300
+#include <stdlib.h>
301
+#else
302
+#include <varargs.h>
303
+#endif
304
+#ifdef __cplusplus
305
+extern "C"
306
+#endif
307
+int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
308
+#ifdef __cplusplus
309
+extern "C"
310
+#endif
311
+int snprintf(char *str, size_t n, char const *fmt, ...);
312
+#endif
313
+
314
+
315
+
316
+#if defined(__SVR4) && !defined(__svr4__)
317
+#define __svr4__ 1
318
+#endif
319
+
320
+
321
+/* type to use in place of socklen_t if not defined */
322
+#undef kde_socklen_t
323
+
324
+/* type to use in place of socklen_t if not defined (deprecated, use
325
+   kde_socklen_t) */
326
+#undef ksize_t

+ 723
- 0
configure.in View File

@@ -0,0 +1,723 @@
1
+dnl =======================================================
2
+dnl FILE: ./admin/configure.in.min
3
+dnl =======================================================
4
+
5
+dnl    This file is part of the KDE libraries/packages
6
+dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
7
+ 
8
+dnl    This file is free software; you can redistribute it and/or
9
+dnl    modify it under the terms of the GNU Library General Public
10
+dnl    License as published by the Free Software Foundation; either
11
+dnl    version 2 of the License, or (at your option) any later version.
12
+ 
13
+dnl    This library is distributed in the hope that it will be useful,
14
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
+dnl    Library General Public License for more details.
17
+ 
18
+dnl    You should have received a copy of the GNU Library General Public License
19
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
20
+dnl    the Free Software Foundation, Inc., 51 Franklin Street, Fifh Floor,
21
+dnl    Boston, MA 02110-1301, USA.
22
+
23
+# Original Author was Kalle@kde.org
24
+# I lifted it in some mater. (Stephan Kulow)
25
+# I used much code from Janos Farkas
26
+
27
+dnl Process this file with autoconf to produce a configure script.
28
+
29
+AC_INIT(acinclude.m4) dnl a source file from your sub dir
30
+
31
+dnl This is so we can use kde-common
32
+AC_CONFIG_AUX_DIR(admin)
33
+
34
+dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
35
+unset CDPATH
36
+
37
+dnl Checking host/target/build systems, for make, install etc.
38
+AC_CANONICAL_SYSTEM 
39
+dnl Perform program name transformation
40
+AC_ARG_PROGRAM
41
+
42
+dnl Automake doc recommends to do this only here. (Janos)
43
+AM_INIT_AUTOMAKE(tellico, 1.3.2.1) dnl searches for some needed programs
44
+
45
+KDE_SET_PREFIX
46
+
47
+dnl generate the config header
48
+AM_CONFIG_HEADER(config.h) dnl at the distribution this done
49
+
50
+dnl Checks for programs.
51
+AC_CHECK_COMPILERS
52
+AC_ENABLE_SHARED(yes)
53
+AC_ENABLE_STATIC(no)
54
+KDE_PROG_LIBTOOL
55
+
56
+dnl for NLS support. Call them in this order!
57
+dnl WITH_NLS is for the po files
58
+AM_KDE_WITH_NLS
59
+
60
+KDE_USE_QT(3.3)
61
+AC_PATH_KDE
62
+dnl =======================================================
63
+dnl FILE: configure.in.in
64
+dnl =======================================================
65
+
66
+#MIN_CONFIG(3.3)
67
+
68
+dnl PACKAGE set before
69
+
70
+dnl AM_KDE_MIN_VERSION(MIN-VERSION-MAJOR, MIN-VERSION-MINOR, MIN-VERSION-MICRO)
71
+dnl (taken from KMyMoney2)
72
+dnl
73
+AC_DEFUN([AM_KDE_MIN_VERSION],
74
+[
75
+    AC_MSG_CHECKING([for KDE version $1.$2.$3 or later])
76
+    AC_LANG_SAVE
77
+    AC_LANG_CPLUSPLUS
78
+    save_CXXFLAGS=$CXXFLAGS
79
+    CXXFLAGS="$CXXFLAGS -I$srcdir $all_includes"
80
+    AC_TRY_COMPILE([
81
+        #include "kdeversion.h"
82
+        #if !( KDE_IS_VERSION( $1, $2, $3 ) )
83
+        #error KDE version does not meet minimum requirement
84
+        #endif
85
+    ], [], AC_MSG_RESULT(yes), AC_MSG_ERROR(no))
86
+    CXXFLAGS=$save_CXXFLAGS
87
+    AC_LANG_RESTORE
88
+])
89
+AM_KDE_MIN_VERSION(3,3,1)
90
+
91
+dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
92
+dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
93
+dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS -DQT_NO_ASCII_CAST -DQT_NO_TRANSLATION" dnl __kdevelop[exc]__
94
+
95
+dnl KDE_NEED_FLEX dnl __kdevelop__
96
+dnl AC_PROG_YACC dnl __kdevelop__
97
+
98
+AC_MSG_CHECKING(for ushort in <sys/types.h>)
99
+AC_CACHE_VAL(bt_cv_type_ushort, [
100
+AC_TRY_COMPILE([
101
+#include <sys/types.h>
102
+],[
103
+ushort i;
104
+], bt_cv_type_ushort=yes, bt_cv_type_ushort=no)])
105
+AC_MSG_RESULT($bt_cv_type_ushort)
106
+if test "$bt_cv_type_ushort" = "yes" ; then
107
+  AC_DEFINE(HAVE_USHORT, 1, [Define if ushort is defined in <sys/types.h>])
108
+fi
109
+
110
+AC_MSG_CHECKING(for boolean in <sys/types.h>)
111
+AC_CACHE_VAL(bt_cv_type_boolean, [
112
+AC_TRY_COMPILE([
113
+#include <sys/types.h>
114
+],[
115
+boolean f;
116
+], bt_cv_type_boolean=yes, bt_cv_type_boolean=no)])
117
+AC_MSG_RESULT($bt_cv_type_boolean)
118
+if test "$bt_cv_type_boolean" = "yes" ; then
119
+  AC_DEFINE(HAVE_BOOLEAN, 1, [Define if boolean is defined in <sys/types.h>])
120
+fi
121
+
122
+AC_MSG_CHECKING(for strdup declaration in <string.h>)
123
+AC_EGREP_HEADER([strdup *\(], string.h, bt_cv_decl_strdup=yes, bt_cv_decl_strdup=no)
124
+AC_MSG_RESULT($bt_cv_decl_strdup)
125
+if test "$bt_cv_decl_strdup" = "yes" ; then
126
+  AC_DEFINE(HAVE_STRDUP_DECL, 1, [Define if strdup is declared in <string.h>])
127
+fi
128
+
129
+dnl Checks for library functions.
130
+AC_FUNC_ALLOCA
131
+AC_FUNC_VPRINTF
132
+AC_CHECK_FUNCS(strlwr strupr)
133
+
134
+AC_CHECK_SIZEOF(unsigned int, 4)
135
+AC_CHECK_SIZEOF(unsigned short, 2)
136
+AC_CHECK_SIZEOF(unsigned char, 1)
137
+AC_CHECK_SIZEOF(char, 1)
138
+
139
+AC_CACHE_CHECK([for std::vector::at(std::size_t)],
140
+        ac_cv_cxx_have_vector_at, [
141
+        AC_LANG_SAVE
142
+        AC_LANG_CPLUSPLUS
143
+        AC_TRY_COMPILE([
144
+                #include <vector>
145
+        ],[
146
+                std::vector<int> v(1);
147
+                v.at(0);
148
+                return 0;
149
+        ],ac_cv_cxx_have_vector_at=yes, ac_cv_cxx_have_vector_at=no)
150
+        AC_LANG_RESTORE
151
+])
152
+if test "$ac_cv_cxx_have_vector_at" = "yes"; then
153
+        AC_DEFINE(HAVE_VECTOR_AT,1,[Define if you have the 'std::vector::at(std::size_t)' function])
154
+fi
155
+
156
+KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
157
+  AC_MSG_ERROR([[Could not find xml2-config anywhere, check ftp://xmlsoft.org/ for libxml >= 2.6.0. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxml2-devel or something similar.]])
158
+])
159
+
160
+if test -n "$XML_CONFIG"; then
161
+  vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
162
+  if test -n "$vers" && test "$vers" -ge 2006000
163
+  then
164
+    LIBXML_LIBS="`$XML_CONFIG --libs`"
165
+    LIBXML_RPATH=
166
+    for args in $LIBXML_LIBS; do
167
+      case $args in
168
+        -L*)
169
+          LIBXML_RPATH="$LIBXML_RPATH $args"
170
+        ;;
171
+      esac
172
+    done
173
+    LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"`
174
+    LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
175
+  else
176
+    AC_MSG_ERROR([[You need at least libxml 2.6.0.]])
177
+  fi
178
+fi
179
+
180
+AC_SUBST(LIBXML_LIBS)
181
+AC_SUBST(LIBXML_CFLAGS)
182
+AC_SUBST(LIBXML_RPATH)
183
+
184
+AC_ARG_WITH([xml-catalog],
185
+  AC_HELP_STRING([--with-xml-catalog=CATALOG],
186
+                 [path to XML catalog, default=without-xml-catalog]),,
187
+                 [with_xml_catalog=no])
188
+
189
+if test x"$with_xml_catalog" != xno; then
190
+  KDE_FIND_PATH(xmlcatalog, XMLCATALOG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
191
+    AC_MSG_ERROR([[Could not find xmlcatalog anywhere, check ftp://xmlsoft.org/ for libxml2 >= 2.4.23. If you are using pre-packaged libraries, be sure to have the utility files installed as well, which may be called libxml2-utils or something similar.]])
192
+ ])
193
+
194
+  AC_SUBST(XMLCATALOG)
195
+
196
+  if test x"$with_xml_catalog" = xyes; then
197
+    XML_CATALOG_FILE="/etc/xml/catalog"
198
+  else
199
+    XML_CATALOG_FILE="$with_xml_catalog"
200
+  fi
201
+
202
+  AC_MSG_CHECKING([for XML catalog])
203
+  if test -f "$XML_CATALOG_FILE"; then
204
+    AC_MSG_RESULT([$XML_CATALOG_FILE])
205
+  else
206
+    AC_MSG_ERROR([$XML_CATALOG_FILE not found])
207
+  fi
208
+
209
+  AC_SUBST(XML_CATALOG_FILE)
210
+fi
211
+
212
+KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
213
+  AC_MSG_ERROR([[Could not find xslt-config anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.19. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxslt-devel or something similar.]])
214
+])
215
+
216
+if test -n "$XSLT_CONFIG"; then
217
+  vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
218
+  if test -n "$vers" && test "$vers" -ge 1000019; then
219
+    LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
220
+    LIBXSLT_RPATH=
221
+    for args in $LIBXSLT_LIBS; do
222
+      case $args in
223
+        -L*)
224
+          LIBXSLT_RPATH="$LIBXSLT_RPATH $args"
225
+        ;;
226
+      esac
227
+    done
228
+    LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"`
229
+    LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
230
+  else
231
+    AC_MSG_ERROR([[You need at least libxslt 1.0.19.]])
232
+  fi
233
+fi
234
+
235
+AC_SUBST(LIBXSLT_LIBS)
236
+AC_SUBST(LIBXSLT_CFLAGS)
237
+AC_SUBST(LIBXSLT_RPATH)
238
+
239
+dnl ---------- TAGLIB CHECK ----------
240
+
241
+AC_DEFUN([AC_HAVE_TAGLIB],
242
+[
243
+    AC_DEFINE(HAVE_TAGLIB, 1, [Define to 1 if you have the TagLib library])
244
+    TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`]
245
+    TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`]
246
+    TAGLIB_RPATH=
247
+    for args in $TAGLIB_LIBS; do
248
+      case $args in
249
+        -L*)
250
+          TAGLIB_RPATH="$TAGLIB_RPATH $args"
251
+        ;;
252
+      esac
253
+    done
254
+    TAGLIB_RPATH=`echo $TAGLIB_RPATH | sed -e "s/-L/-R/g"`
255
+])
256
+
257
+AC_DEFUN([AC_NO_TAGLIB],
258
+[
259
+    TAGLIB_CFLAGS=""
260
+    TAGLIB_LIBS=""
261
+    TAGLIB_RPATH=""
262
+])
263
+
264
+KDE_FIND_PATH(taglib-config, TAGLIB_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin])
265
+if test -n "$TAGLIB_CONFIG"; then
266
+    AC_HAVE_TAGLIB
267
+else
268
+    AC_NO_TAGLIB
269
+fi
270
+
271
+AC_SUBST(TAGLIB_CFLAGS)
272
+AC_SUBST(TAGLIB_LIBS)
273
+AC_SUBST(TAGLIB_RPATH)
274
+
275
+dnl ---------- END TAGLIB CHECK ----------
276
+
277
+dnl ---------- YAZ CHECK ----------
278
+
279
+AC_DEFUN([AC_HAVE_YAZ],
280
+[
281
+    AC_DEFINE(HAVE_YAZ, 1, [Define to 1 if you have the yaz library])
282
+    YAZ_CFLAGS=[`$YAZ_CONFIG --cflags`]
283
+    YAZ_LIBS=[`$YAZ_CONFIG --libs`]
284
+    YAZ_RPATH=
285
+    for args in $YAZ_LIBS; do
286
+      case $args in
287
+        -L*)
288
+          YAZ_RPATH="$YAZ_RPATH $args"
289
+        ;;
290
+      esac
291
+    done
292
+    YAZ_RPATH=`echo $YAZ_RPATH | sed -e "s/-L/-R/g"`
293
+])
294
+
295
+AC_DEFUN([AC_NO_YAZ],
296
+[
297
+    YAZ_CFLAGS=""
298
+    YAZ_LIBS=""
299
+    YAZ_RPATH=""
300
+])
301
+
302
+KDE_FIND_PATH(yaz-config, YAZ_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin])
303
+if test -n "$YAZ_CONFIG"; then
304
+    AC_HAVE_YAZ
305
+else
306
+    AC_NO_YAZ
307
+fi
308
+
309
+AC_SUBST(YAZ_CFLAGS)
310
+AC_SUBST(YAZ_LIBS)
311
+AC_SUBST(YAZ_RPATH)
312
+
313
+dnl ---------- END YAZ CHECK ----------
314
+
315
+dnl ---------- KCDDB CHECK ----------
316
+
317
+AC_ARG_ENABLE(libkcddb,
318
+    AC_HELP_STRING([--disable-libkcddb], [disable libkcddb, default=enable if found]),
319
+    [enable_libkcddb=$enableval],
320
+    [enable_libkcddb=yes]
321
+)
322
+
323
+if test x$enable_libkcddb = xyes; then
324
+
325
+AC_LANG_SAVE
326
+AC_LANG_CPLUSPLUS
327
+
328
+ac_save_libs="$LIBS"
329
+ac_save_cxxflags="$CXXFLAGS"
330
+
331
+LIBS="$LIBS $all_libraries -lkcddb"
332
+CXXFLAGS="$CXXFLAGS $all_includes"
333
+
334
+AC_MSG_CHECKING(for libkcddb library and headers)
335
+AC_TRY_LINK(
336
+    [
337
+#ifdef QT_NO_CAST_ASCII
338
+#undef QT_NO_CAST_ASCII
339
+#endif
340
+#include <libkcddb/cddb.h>
341
+        ],
342
+    [KCDDB::CDDB c],
343
+    [kcddb=yes],
344
+    [kcddb=no]
345
+)
346
+AC_MSG_RESULT($kcddb)
347
+
348
+LIBS="$ac_save_libs"
349
+CXXFLAGS="$ac_save_cxxflags"
350
+AC_LANG_RESTORE
351
+
352
+if test x$kcddb = xyes; then
353
+    AC_DEFINE(HAVE_KCDDB, 1, [Define to 1 if you have libkcddb])
354
+    KCDDB_LIBS="-lkcddb"
355
+else
356
+    KCDDB_LIBS=
357
+fi
358
+
359
+dnl -- kcddb was disabled ---
360
+else
361
+    KCDDB_LIBS=
362
+fi
363
+
364
+AC_SUBST(KCDDB_LIBS)
365
+
366
+dnl ---------- END KCDDB CHECK ----------
367
+
368
+dnl ---------- KCAL CHECK ----------
369
+
370
+AC_ARG_ENABLE(libkcal,
371
+    AC_HELP_STRING([--disable-libkcal], [disable libkcal, default=enable if found]),
372
+    [enable_libkcal=$enableval],
373
+    [enable_libkcal=yes]
374
+)
375
+
376
+if test x$enable_libkcal = xyes; then
377
+
378
+AC_LANG_SAVE
379
+AC_LANG_CPLUSPLUS
380
+
381
+ac_save_libs="$LIBS"
382
+ac_save_cxxflags="$CXXFLAGS"
383
+
384
+LIBS="$LIBS $all_libraries -lkcal"
385
+CXXFLAGS="$CXXFLAGS $all_includes"
386
+
387
+AC_MSG_CHECKING(for libkcal library and headers)
388
+AC_TRY_LINK(
389
+    [
390
+#ifdef QT_NO_CAST_ASCII
391
+#undef QT_NO_CAST_ASCII
392
+#endif
393
+#include <libkcal/todo.h>
394
+        ],
395
+    [KCal::Todo t],
396
+    [kcal=yes],
397
+    [kcal=no]
398
+)
399
+AC_MSG_RESULT($kcal)
400
+
401
+LIBS="$ac_save_libs"
402
+CXXFLAGS="$ac_save_cxxflags"
403
+AC_LANG_RESTORE
404
+
405
+if test x$kcal = xyes; then
406
+    AC_DEFINE(HAVE_KCAL, 1, [Define to 1 if you have libkcal])
407
+    KCAL_LIBS="-lkcal"
408
+else
409
+    KCAL_LIBS=
410
+fi
411
+
412
+dnl -- libkcal was disabled ---
413
+else
414
+    KCAL_LIBS=
415
+fi
416
+
417
+AC_SUBST(KCAL_LIBS)
418
+
419
+dnl ---------- END KCAL CHECK ----------
420
+
421
+AC_ARG_WITH([btparse],
422
+            AC_HELP_STRING([--with-btparse], [Link against libbtparse
423
+            as a shared lib (shared) or build it statically (static), default=static]),
424
+            [case "${withval}" in
425
+                 shared) btparse=shared ;;
426
+                 static) btparse=static ;;
427
+                    yes) btparse=shared ;;
428
+                      *) AC_MSG_ERROR(bad value ${withval} for --with-btparse) ;;
429
+             esac],
430
+            [btparse=static])
431
+
432
+AM_CONDITIONAL(USE_LIBBTPARSE, test x$btparse = xshared)
433
+
434
+if test x$btparse = xshared; then
435
+  KDE_CHECK_LIB(btparse, bt_initialize, [], [AC_MSG_ERROR(could not find libbtparse)])
436
+fi
437
+
438
+dnl ---------- AMAZON CHECK ----------
439
+
440
+AC_ARG_ENABLE(amazon,
441
+    AC_HELP_STRING([--disable-amazon], [disable Amazon.com searching, default=enable]),
442
+    [enable_amazon=$enableval],
443
+    [enable_amazon=yes]
444
+)
445
+
446
+if test x$enable_amazon = xyes; then
447
+    AC_DEFINE(AMAZON_SUPPORT, 1, [Define to 1 if Amazon.com searching should be enabled])
448
+fi
449
+
450
+dnl ---------- END AMAZON CHECK ----------
451
+
452
+dnl ---------- IMDB CHECK ----------
453
+
454
+AC_ARG_ENABLE(imdb,
455
+    AC_HELP_STRING([--disable-imdb], [disable IMDb searching, default=enable]),
456
+    [enable_imdb=$enableval],
457
+    [enable_imdb=yes]
458
+)
459
+
460
+if test x$enable_imdb = xyes; then
461
+    AC_DEFINE(IMDB_SUPPORT, 1, [Define to 1 if IMDb searching should be enabled])
462
+fi
463
+
464
+dnl ---------- END IMDB CHECK ----------
465
+
466
+dnl ---------- CDTEXT CHECK ----------
467
+dnl Not sure if my code for CDText works on all platforms, allow disabling
468
+
469
+AC_ARG_ENABLE(cdtext,
470
+    AC_HELP_STRING([--disable-cdtext], [disable cdtext, default=enable (Linux only)]),
471
+    [enable_cdtext=$enableval],
472
+    [enable_cdtext=yes]
473
+)
474
+
475
+if test x$enable_cdtext = xyes; then
476
+    AC_DEFINE(USE_CDTEXT, 1, [Define to 1 if you want to compile CD-Text support])
477
+fi
478
+
479
+dnl ---------- OpenOffice.org CHECK ----------
480
+
481
+AC_ARG_ENABLE(ooo,
482
+    AC_HELP_STRING([--enable-ooo], [enable support for OpenOffice.org, default=disable]),
483
+    [enable_ooo=$enableval],
484
+    [enable_ooo=no]
485
+)
486
+
487
+AM_CONDITIONAL(WITH_OOO, test x$enable_ooo = xyes)
488
+
489
+dnl Options: OpenOffice.org installation
490
+AC_ARG_WITH([ooo-dir],
491
+	    AC_HELP_STRING([--with-ooo-dir=DIR],
492
+			   [where the OpenOffice.org program files are installed]),
493
+	    [ac_ooo_libdir="${withval}/program"
494
+	     ac_ooo_datadir="${withval}/program"])
495
+AC_ARG_WITH([ooo-libdir],
496
+	    AC_HELP_STRING([--with-ooo-libdir=DIR],
497
+			   [where the OpenOffice.org program libraries are installed (<ooo-dir>/program)]),
498
+	    [ac_ooo_libdir="${withval}"])
499
+AC_ARG_WITH([ooo-datadir],
500
+	    AC_HELP_STRING([--with-ooo-datadir=DIR],
501
+			   [where the OpenOffice.org data files are installed (<ooo-dir>/program)]),
502
+	    [ac_ooo_datadir="${withval}"])
503
+
504
+dnl Options: OpenOffice.org SDK
505
+AC_ARG_WITH([ooo-sdk-dir],
506
+	    AC_HELP_STRING([--with-ooo-sdk-dir=DIR],
507
+			   [where the OpenOffice.org SDK is installed]),
508
+	    [ac_ooo_sdk_bindir="${withval}/linux/bin"
509
+	     ac_ooo_sdk_includes="${withval}/include"])
510
+AC_ARG_WITH([ooo-sdk-bindir],
511
+	    AC_HELP_STRING([--with-ooo-sdk-bindir=DIR],
512
+			   [where the OpenOffice.org SDK binaries are installed (<ooo-sdk-dir>/linux/bin)]),
513
+	    [ac_ooo_sdk_bindir="${withval}"])
514
+AC_ARG_WITH([ooo-sdk-includes],
515
+	    AC_HELP_STRING([--with-ooo-sdk-includes=DIR],
516
+			   [where the OpenOffice.org SDK includes are installed (<ooo-sdk-dir>/include)]),
517
+	    [ac_ooo_sdk_includes="${withval}"])
518
+
519
+if test x$enable_ooo = xyes; then
520
+
521
+dnl Check for UNO cpp binding
522
+KDE_FIND_PATH(cppumaker, CPPUMAKER, [$ac_ooo_sdk_bindir ${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
523
+  AC_MSG_ERROR([[cppumaker not found, try '--with-ooo-sdk-dir=location_of_ODK']])
524
+])
525
+
526
+dnl Check for ODK includes
527
+ac_cppflags_safe="$CPPFLAGS"
528
+CPPFLAGS="-I$ac_ooo_sdk_includes"
529
+KDE_CHECK_HEADERS([sal/config.h],
530
+		 [OFFICE_SDK_includes="$CPPFLAGS"],
531
+		 AC_MSG_ERROR([[OpenOffice.org SDK include files not found, try '--with-ooo-sdk-dir=location_of_ODK']]))
532
+CPPFLAGS="$ac_cppflags_safe"
533
+
534
+dnl OpenOffice.org libraries
535
+if test -n "$ac_ooo_libdir" ; then
536
+  OFFICE_libadd="-L$ac_ooo_libdir"
537
+  OFFICE_libdir="$ac_ooo_libdir"
538
+fi
539
+
540
+dnl OpenOffice.org types.rdb
541
+AC_CHECK_FILE([$ac_ooo_datadir/types.rdb],
542
+	      [OFFICE_registry="$ac_ooo_datadir"/types.rdb],
543
+	      AC_MSG_ERROR([[types.rdb not found, try '--with-ooo-dir=OpenOffice.org_installation_path']]))
544
+
545
+dnl Substitute the values
546
+AC_SUBST(OFFICE_SDK_includes)
547
+AC_SUBST(OFFICE_libadd)
548
+AC_SUBST(OFFICE_libdir)
549
+AC_SUBST(OFFICE_registry)
550
+AC_SUBST(CPPUMAKER)
551
+
552
+fi
553
+CFLAGS="$CFLAGS -I\$(top_srcdir)/src/core"
554
+CXXFLAGS="$CXXFLAGS -I\$(top_srcdir)/src/core"
555
+
556
+dnl ---------- EXEMPI CHECK ----------
557
+
558
+AC_ARG_ENABLE(exempi,
559
+    AC_HELP_STRING([--disable-exempi], [disable exempi, default=enable if found]),
560
+    [enable_libexempi=$enableval],
561
+    [enable_libexempi=yes]
562
+)
563
+
564
+if test x$enable_libexempi = xyes; then
565
+   KDE_PKG_CHECK_MODULES(EXEMPI, 
566
+                                 [exempi-2.0 >= 1.99.0],
567
+                                 [have_exempi=yes],
568
+                                 [have_exempi=no])
569
+   AC_SUBST(EXEMPI_LIBS)
570
+   AC_SUBST(EXEMPI_CFLAGS)
571
+else
572
+   have_exempi="no (disabled)"
573
+fi
574
+
575
+test "$have_exempi" = "yes" && AC_DEFINE(HAVE_EXEMPI, 1, [Define to 1 if exempi is available])
576
+
577
+
578
+dnl ---------- END EXEMPI CHECK ----------
579
+
580
+dnl ---------- POPPLER CHECK ----------
581
+
582
+AC_ARG_ENABLE(poppler,
583
+    AC_HELP_STRING([--disable-poppler], [disable poppler, default=enable if found]),
584
+    [enable_libpoppler=$enableval],
585
+    [enable_libpoppler=yes]
586
+)
587
+
588
+if test x$enable_libpoppler = xyes; then
589
+   KDE_PKG_CHECK_MODULES(POPPLER, 
590
+                                 [poppler-qt >= 0.5],
591
+                                 [have_poppler=yes],
592
+                                 [have_poppler=no])
593
+   AC_SUBST(POPPLER_LIBS)
594
+   AC_SUBST(POPPLER_CFLAGS)
595
+else
596
+   have_poppler="no (disabled)"
597
+fi
598
+
599
+test "$have_poppler" = "yes" && AC_DEFINE(HAVE_POPPLER, 1, [Define to 1 if poppler is available])
600
+
601
+
602
+dnl ---------- END POPPLER CHECK ----------
603
+
604
+dnl ---------- WEBCAM CHECK ----------
605
+
606
+AC_ARG_ENABLE(webcam,
607
+    AC_HELP_STRING([--enable-webcam], [enable support for webcams (experimental), default=disable]),
608
+    [enable_webcam=$enableval],
609
+    [enable_webcam=no]
610
+)
611
+
612
+AM_CONDITIONAL(ENABLE_WEBCAM, test $enable_webcam = yes)
613
+if test x$enable_webcam = xyes; then
614
+    AC_DEFINE(ENABLE_WEBCAM, 1, [Define to 1 if webcam support is enabled])
615
+fi
616
+
617
+dnl ---------- END WEBCAM CHECK ----------
618
+KDE_CREATE_SUBDIRSLIST
619
+AC_CONFIG_FILES([ Makefile ])
620
+AC_CONFIG_FILES([ doc/Makefile ])
621
+AC_CONFIG_FILES([ doc/en/Makefile ])
622
+AC_CONFIG_FILES([ doc/fr/Makefile ])
623
+AC_CONFIG_FILES([ icons/Makefile ])
624
+AC_CONFIG_FILES([ po/Makefile ])
625
+AC_CONFIG_FILES([ src/Makefile ])
626
+AC_CONFIG_FILES([ src/barcode/Makefile ])
627
+AC_CONFIG_FILES([ src/cite/Makefile ])
628
+AC_CONFIG_FILES([ src/cite/ooo/Makefile ])
629
+AC_CONFIG_FILES([ src/collections/Makefile ])
630
+AC_CONFIG_FILES([ src/commands/Makefile ])
631
+AC_CONFIG_FILES([ src/core/Makefile ])
632
+AC_CONFIG_FILES([ src/fetch/Makefile ])
633
+AC_CONFIG_FILES([ src/fetch/scripts/Makefile ])
634
+AC_CONFIG_FILES([ src/gui/Makefile ])
635
+AC_CONFIG_FILES([ src/newstuff/Makefile ])
636
+AC_CONFIG_FILES([ src/rtf2html/Makefile ])
637
+AC_CONFIG_FILES([ src/tests/Makefile ])
638
+AC_CONFIG_FILES([ src/translators/Makefile ])
639
+AC_CONFIG_FILES([ src/translators/btparse/Makefile ])
640
+AC_CONFIG_FILES([ src/translators/pilotdb/Makefile ])
641
+AC_CONFIG_FILES([ src/translators/pilotdb/libflatfile/Makefile ])
642
+AC_CONFIG_FILES([ src/translators/pilotdb/libpalm/Makefile ])
643
+AC_CONFIG_FILES([ xslt/Makefile ])
644
+AC_CONFIG_FILES([ xslt/entry-templates/Makefile ])
645
+AC_CONFIG_FILES([ xslt/report-templates/Makefile ])
646
+AC_OUTPUT
647
+echo ""
648
+
649
+if test -z "$TAGLIB_CONFIG"; then
650
+    echo "  *******************************************************"
651
+    echo "  *** You don't have the TagLib headers on your system"
652
+    echo "  *** Support for reading audio files is disabled"
653
+    echo "  *******************************************************"
654
+    echo ""
655
+fi
656
+
657
+if test -z "$YAZ_CONFIG"; then
658
+    echo "  *******************************************************"
659
+    echo "  *** You don't have the yaz headers on your system"
660
+    echo "  *** Support for z39.50 searches is disabled"
661
+    echo "  *******************************************************"
662
+    echo ""
663
+fi
664
+
665
+if test x$kcddb != xyes; then
666
+    echo "  *******************************************************"
667
+    echo "  *** You don't have the kcddb headers on your system"
668
+    echo "  *** Support for fetching CDDB info is disabled"
669
+    echo "  *******************************************************"
670
+    echo ""
671
+fi
672
+
673
+if test x$kcal != xyes; then
674
+    echo "  *******************************************************"
675
+    echo "  *** You don't have the kcal headers on your system"
676
+    echo "  *** Support for interacting with KOrganizer is disabled"
677
+    echo "  *******************************************************"
678
+    echo ""
679
+fi
680
+
681
+if test x$have_exempi != xyes; then
682
+    echo "  *******************************************************"
683
+    echo "  *** You don't have the exempi headers on your system"
684
+    echo "  *** Support for importing some PDF metadata is disabled"
685
+    echo "  *******************************************************"
686
+    echo ""
687
+fi
688
+
689
+if test x$have_poppler != xyes; then
690
+    echo "  *******************************************************"
691
+    echo "  *** You don't have the poppler headers on your system"
692
+    echo "  *** Support for searching inside PDF files is disabled"
693
+    echo "  *******************************************************"
694
+    echo ""
695
+fi
696
+
697
+# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
698
+if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
699
+  # And if so, warn when they don't match
700
+  if test "$kde_libs_prefix" != "$given_prefix"; then
701
+    echo ""
702
+    echo "Warning: you chose to install this package in $given_prefix,"
703
+    echo "but KDE was found in $kde_libs_prefix."
704
+    echo "For this to work, you will need to tell KDE about the new prefix,"
705
+    echo "by ensuring that KDEDIRS contains it, e.g."
706
+    echo "   export KDEDIRS=$given_prefix:$kde_libs_prefix"
707
+    echo "Then restart KDE."
708
+    echo ""
709
+  fi
710
+fi
711
+
712
+if test "$all_tests" = "bad"; then
713
+  if test ! "$cache_file" = "/dev/null"; then
714
+    echo ""
715
+    echo "Please remove the file $cache_file after changing your setup"
716
+    echo "so that configure will find the changes next time."
717
+    echo ""
718
+  fi
719
+else
720
+  echo ""
721
+  echo "Good - your configure finished. Start make now"
722
+  echo ""
723
+fi

+ 552
- 0
configure.in.in View File

@@ -0,0 +1,552 @@
1
+#MIN_CONFIG(3.3)
2
+
3
+AM_INIT_AUTOMAKE(tellico,1.3.2.1)
4
+
5
+dnl AM_KDE_MIN_VERSION(MIN-VERSION-MAJOR, MIN-VERSION-MINOR, MIN-VERSION-MICRO)
6
+dnl (taken from KMyMoney2)
7
+dnl
8
+AC_DEFUN([AM_KDE_MIN_VERSION],
9
+[
10
+    AC_MSG_CHECKING([for KDE version $1.$2.$3 or later])
11
+    AC_LANG_SAVE
12
+    AC_LANG_CPLUSPLUS
13
+    save_CXXFLAGS=$CXXFLAGS
14
+    CXXFLAGS="$CXXFLAGS -I$srcdir $all_includes"
15
+    AC_TRY_COMPILE([
16
+        #include "kdeversion.h"
17
+        #if !( KDE_IS_VERSION( $1, $2, $3 ) )
18
+        #error KDE version does not meet minimum requirement
19
+        #endif
20
+    ], [], AC_MSG_RESULT(yes), AC_MSG_ERROR(no))
21
+    CXXFLAGS=$save_CXXFLAGS
22
+    AC_LANG_RESTORE
23
+])
24
+AM_KDE_MIN_VERSION(3,3,1)
25
+
26
+dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
27
+dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
28
+dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS -DQT_NO_ASCII_CAST -DQT_NO_TRANSLATION" dnl __kdevelop[exc]__
29
+
30
+dnl KDE_NEED_FLEX dnl __kdevelop__
31
+dnl AC_PROG_YACC dnl __kdevelop__
32
+
33
+AC_MSG_CHECKING(for ushort in <sys/types.h>)
34
+AC_CACHE_VAL(bt_cv_type_ushort, [
35
+AC_TRY_COMPILE([
36
+#include <sys/types.h>
37
+],[
38
+ushort i;
39
+], bt_cv_type_ushort=yes, bt_cv_type_ushort=no)])
40
+AC_MSG_RESULT($bt_cv_type_ushort)
41
+if test "$bt_cv_type_ushort" = "yes" ; then
42
+  AC_DEFINE(HAVE_USHORT, 1, [Define if ushort is defined in <sys/types.h>])
43
+fi
44
+
45
+AC_MSG_CHECKING(for boolean in <sys/types.h>)
46
+AC_CACHE_VAL(bt_cv_type_boolean, [
47
+AC_TRY_COMPILE([
48
+#include <sys/types.h>
49
+],[
50
+boolean f;
51
+], bt_cv_type_boolean=yes, bt_cv_type_boolean=no)])
52
+AC_MSG_RESULT($bt_cv_type_boolean)
53
+if test "$bt_cv_type_boolean" = "yes" ; then
54
+  AC_DEFINE(HAVE_BOOLEAN, 1, [Define if boolean is defined in <sys/types.h>])
55
+fi
56
+
57
+AC_MSG_CHECKING(for strdup declaration in <string.h>)
58
+AC_EGREP_HEADER([strdup *\(], string.h, bt_cv_decl_strdup=yes, bt_cv_decl_strdup=no)
59
+AC_MSG_RESULT($bt_cv_decl_strdup)
60
+if test "$bt_cv_decl_strdup" = "yes" ; then
61
+  AC_DEFINE(HAVE_STRDUP_DECL, 1, [Define if strdup is declared in <string.h>])
62
+fi
63
+
64
+dnl Checks for library functions.
65
+AC_FUNC_ALLOCA
66
+AC_FUNC_VPRINTF
67
+AC_CHECK_FUNCS(strlwr strupr)
68
+
69
+AC_CHECK_SIZEOF(unsigned int, 4)
70
+AC_CHECK_SIZEOF(unsigned short, 2)
71
+AC_CHECK_SIZEOF(unsigned char, 1)
72
+AC_CHECK_SIZEOF(char, 1)
73
+
74
+AC_CACHE_CHECK([for std::vector::at(std::size_t)],
75
+        ac_cv_cxx_have_vector_at, [
76
+        AC_LANG_SAVE
77
+        AC_LANG_CPLUSPLUS
78
+        AC_TRY_COMPILE([
79
+                #include <vector>
80
+        ],[
81
+                std::vector<int> v(1);
82
+                v.at(0);
83
+                return 0;
84
+        ],ac_cv_cxx_have_vector_at=yes, ac_cv_cxx_have_vector_at=no)
85
+        AC_LANG_RESTORE
86
+])
87
+if test "$ac_cv_cxx_have_vector_at" = "yes"; then
88
+        AC_DEFINE(HAVE_VECTOR_AT,1,[Define if you have the 'std::vector::at(std::size_t)' function])
89
+fi
90
+
91
+KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
92
+  AC_MSG_ERROR([[Could not find xml2-config anywhere, check ftp://xmlsoft.org/ for libxml >= 2.6.0. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxml2-devel or something similar.]])
93
+])
94
+
95
+if test -n "$XML_CONFIG"; then
96
+  vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
97
+  if test -n "$vers" && test "$vers" -ge 2006000
98
+  then
99
+    LIBXML_LIBS="`$XML_CONFIG --libs`"
100
+    LIBXML_RPATH=
101
+    for args in $LIBXML_LIBS; do
102
+      case $args in
103
+        -L*)
104
+          LIBXML_RPATH="$LIBXML_RPATH $args"
105
+        ;;
106
+      esac
107
+    done
108
+    LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"`
109
+    LIBXML_CFLAGS="`$XML_CONFIG --cflags`"
110
+  else
111
+    AC_MSG_ERROR([[You need at least libxml 2.6.0.]])
112
+  fi
113
+fi
114
+
115
+AC_SUBST(LIBXML_LIBS)
116
+AC_SUBST(LIBXML_CFLAGS)
117
+AC_SUBST(LIBXML_RPATH)
118
+
119
+AC_ARG_WITH([xml-catalog],
120
+  AC_HELP_STRING([--with-xml-catalog=CATALOG],
121
+                 [path to XML catalog, default=without-xml-catalog]),,
122
+                 [with_xml_catalog=no])
123
+
124
+if test x"$with_xml_catalog" != xno; then
125
+  KDE_FIND_PATH(xmlcatalog, XMLCATALOG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
126
+    AC_MSG_ERROR([[Could not find xmlcatalog anywhere, check ftp://xmlsoft.org/ for libxml2 >= 2.4.23. If you are using pre-packaged libraries, be sure to have the utility files installed as well, which may be called libxml2-utils or something similar.]])
127
+ ])
128
+
129
+  AC_SUBST(XMLCATALOG)
130
+
131
+  if test x"$with_xml_catalog" = xyes; then
132
+    XML_CATALOG_FILE="/etc/xml/catalog"
133
+  else
134
+    XML_CATALOG_FILE="$with_xml_catalog"
135
+  fi
136
+
137
+  AC_MSG_CHECKING([for XML catalog])
138
+  if test -f "$XML_CATALOG_FILE"; then
139
+    AC_MSG_RESULT([$XML_CATALOG_FILE])
140
+  else
141
+    AC_MSG_ERROR([$XML_CATALOG_FILE not found])
142
+  fi
143
+
144
+  AC_SUBST(XML_CATALOG_FILE)
145
+fi
146
+
147
+KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
148
+  AC_MSG_ERROR([[Could not find xslt-config anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.19. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxslt-devel or something similar.]])
149
+])
150
+
151
+if test -n "$XSLT_CONFIG"; then
152
+  vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
153
+  if test -n "$vers" && test "$vers" -ge 1000019; then
154
+    LIBXSLT_LIBS="`$XSLT_CONFIG --libs`"
155
+    LIBXSLT_RPATH=
156
+    for args in $LIBXSLT_LIBS; do
157
+      case $args in
158
+        -L*)
159
+          LIBXSLT_RPATH="$LIBXSLT_RPATH $args"
160
+        ;;
161
+      esac
162
+    done
163
+    LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"`
164
+    LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
165
+  else
166
+    AC_MSG_ERROR([[You need at least libxslt 1.0.19.]])
167
+  fi
168
+fi
169
+
170
+AC_SUBST(LIBXSLT_LIBS)
171
+AC_SUBST(LIBXSLT_CFLAGS)
172
+AC_SUBST(LIBXSLT_RPATH)
173
+
174
+dnl ---------- TAGLIB CHECK ----------
175
+
176
+AC_DEFUN([AC_HAVE_TAGLIB],
177
+[
178
+    AC_DEFINE(HAVE_TAGLIB, 1, [Define to 1 if you have the TagLib library])
179
+    TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`]
180
+    TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`]
181
+    TAGLIB_RPATH=
182
+    for args in $TAGLIB_LIBS; do
183
+      case $args in
184
+        -L*)
185
+          TAGLIB_RPATH="$TAGLIB_RPATH $args"
186
+        ;;
187
+      esac
188
+    done
189
+    TAGLIB_RPATH=`echo $TAGLIB_RPATH | sed -e "s/-L/-R/g"`
190
+])
191
+
192
+AC_DEFUN([AC_NO_TAGLIB],
193
+[
194
+    TAGLIB_CFLAGS=""
195
+    TAGLIB_LIBS=""
196
+    TAGLIB_RPATH=""
197
+])
198
+
199
+KDE_FIND_PATH(taglib-config, TAGLIB_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin])
200
+if test -n "$TAGLIB_CONFIG"; then
201
+    AC_HAVE_TAGLIB
202
+else
203
+    AC_NO_TAGLIB
204
+fi
205
+
206
+AC_SUBST(TAGLIB_CFLAGS)
207
+AC_SUBST(TAGLIB_LIBS)
208
+AC_SUBST(TAGLIB_RPATH)
209
+
210
+dnl ---------- END TAGLIB CHECK ----------
211
+
212
+dnl ---------- YAZ CHECK ----------
213
+
214
+AC_DEFUN([AC_HAVE_YAZ],
215
+[
216
+    AC_DEFINE(HAVE_YAZ, 1, [Define to 1 if you have the yaz library])
217
+    YAZ_CFLAGS=[`$YAZ_CONFIG --cflags`]
218
+    YAZ_LIBS=[`$YAZ_CONFIG --libs`]
219
+    YAZ_RPATH=
220
+    for args in $YAZ_LIBS; do
221
+      case $args in
222
+        -L*)
223
+          YAZ_RPATH="$YAZ_RPATH $args"
224
+        ;;
225
+      esac
226
+    done
227
+    YAZ_RPATH=`echo $YAZ_RPATH | sed -e "s/-L/-R/g"`
228
+])
229
+
230
+AC_DEFUN([AC_NO_YAZ],
231
+[
232
+    YAZ_CFLAGS=""
233
+    YAZ_LIBS=""
234
+    YAZ_RPATH=""
235
+])
236
+
237
+KDE_FIND_PATH(yaz-config, YAZ_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin])
238
+if test -n "$YAZ_CONFIG"; then
239
+    AC_HAVE_YAZ
240
+else
241
+    AC_NO_YAZ
242
+fi
243
+
244
+AC_SUBST(YAZ_CFLAGS)
245
+AC_SUBST(YAZ_LIBS)
246
+AC_SUBST(YAZ_RPATH)
247
+
248
+dnl ---------- END YAZ CHECK ----------
249
+
250
+dnl ---------- KCDDB CHECK ----------
251
+
252
+AC_ARG_ENABLE(libkcddb,
253
+    AC_HELP_STRING([--disable-libkcddb], [disable libkcddb, default=enable if found]),
254
+    [enable_libkcddb=$enableval],
255
+    [enable_libkcddb=yes]
256
+)
257
+
258
+if test x$enable_libkcddb = xyes; then
259
+
260
+AC_LANG_SAVE
261
+AC_LANG_CPLUSPLUS
262
+
263
+ac_save_libs="$LIBS"
264
+ac_save_cxxflags="$CXXFLAGS"
265
+
266
+LIBS="$LIBS $all_libraries -lkcddb"
267
+CXXFLAGS="$CXXFLAGS $all_includes"
268
+
269
+AC_MSG_CHECKING(for libkcddb library and headers)
270
+AC_TRY_LINK(
271
+    [
272
+#ifdef QT_NO_CAST_ASCII
273
+#undef QT_NO_CAST_ASCII
274
+#endif
275
+#include <libkcddb/cddb.h>
276
+        ],
277
+    [KCDDB::CDDB c],
278
+    [kcddb=yes],
279
+    [kcddb=no]
280
+)
281
+AC_MSG_RESULT($kcddb)
282
+
283
+LIBS="$ac_save_libs"
284
+CXXFLAGS="$ac_save_cxxflags"
285
+AC_LANG_RESTORE
286
+
287
+if test x$kcddb = xyes; then
288
+    AC_DEFINE(HAVE_KCDDB, 1, [Define to 1 if you have libkcddb])
289
+    KCDDB_LIBS="-lkcddb"
290
+else
291
+    KCDDB_LIBS=
292
+fi
293
+
294
+dnl -- kcddb was disabled ---
295
+else
296
+    KCDDB_LIBS=
297
+fi
298
+
299
+AC_SUBST(KCDDB_LIBS)
300
+
301
+dnl ---------- END KCDDB CHECK ----------
302
+
303
+dnl ---------- KCAL CHECK ----------
304
+
305
+AC_ARG_ENABLE(libkcal,
306
+    AC_HELP_STRING([--disable-libkcal], [disable libkcal, default=enable if found]),
307
+    [enable_libkcal=$enableval],
308
+    [enable_libkcal=yes]
309
+)
310
+
311
+if test x$enable_libkcal = xyes; then
312
+
313
+AC_LANG_SAVE
314
+AC_LANG_CPLUSPLUS
315
+
316
+ac_save_libs="$LIBS"
317
+ac_save_cxxflags="$CXXFLAGS"
318
+
319
+LIBS="$LIBS $all_libraries -lkcal"
320
+CXXFLAGS="$CXXFLAGS $all_includes"
321
+
322
+AC_MSG_CHECKING(for libkcal library and headers)
323
+AC_TRY_LINK(
324
+    [
325
+#ifdef QT_NO_CAST_ASCII
326
+#undef QT_NO_CAST_ASCII
327
+#endif
328
+#include <libkcal/todo.h>
329
+        ],
330
+    [KCal::Todo t],
331
+    [kcal=yes],
332
+    [kcal=no]
333
+)
334
+AC_MSG_RESULT($kcal)
335
+
336
+LIBS="$ac_save_libs"
337
+CXXFLAGS="$ac_save_cxxflags"
338
+AC_LANG_RESTORE
339
+
340
+if test x$kcal = xyes; then
341
+    AC_DEFINE(HAVE_KCAL, 1, [Define to 1 if you have libkcal])
342
+    KCAL_LIBS="-lkcal"
343
+else
344
+    KCAL_LIBS=
345
+fi
346
+
347
+dnl -- libkcal was disabled ---
348
+else
349
+    KCAL_LIBS=
350
+fi
351
+
352
+AC_SUBST(KCAL_LIBS)
353
+
354
+dnl ---------- END KCAL CHECK ----------
355
+
356
+AC_ARG_WITH([btparse],
357
+            AC_HELP_STRING([--with-btparse], [Link against libbtparse
358
+            as a shared lib (shared) or build it statically (static), default=static]),
359
+            [case "${withval}" in
360
+                 shared) btparse=shared ;;
361
+                 static) btparse=static ;;
362
+                    yes) btparse=shared ;;
363
+                      *) AC_MSG_ERROR(bad value ${withval} for --with-btparse) ;;
364
+             esac],
365
+            [btparse=static])
366
+
367
+AM_CONDITIONAL(USE_LIBBTPARSE, test x$btparse = xshared)
368
+
369
+if test x$btparse = xshared; then
370
+  KDE_CHECK_LIB(btparse, bt_initialize, [], [AC_MSG_ERROR(could not find libbtparse)])
371
+fi
372
+
373
+dnl ---------- AMAZON CHECK ----------
374
+
375
+AC_ARG_ENABLE(amazon,
376
+    AC_HELP_STRING([--disable-amazon], [disable Amazon.com searching, default=enable]),
377
+    [enable_amazon=$enableval],
378
+    [enable_amazon=yes]
379
+)
380
+
381
+if test x$enable_amazon = xyes; then
382
+    AC_DEFINE(AMAZON_SUPPORT, 1, [Define to 1 if Amazon.com searching should be enabled])
383
+fi
384
+
385
+dnl ---------- END AMAZON CHECK ----------
386
+
387
+dnl ---------- IMDB CHECK ----------
388
+
389
+AC_ARG_ENABLE(imdb,
390
+    AC_HELP_STRING([--disable-imdb], [disable IMDb searching, default=enable]),
391
+    [enable_imdb=$enableval],
392
+    [enable_imdb=yes]
393
+)
394
+
395
+if test x$enable_imdb = xyes; then
396
+    AC_DEFINE(IMDB_SUPPORT, 1, [Define to 1 if IMDb searching should be enabled])
397
+fi
398
+
399
+dnl ---------- END IMDB CHECK ----------
400
+
401
+dnl ---------- CDTEXT CHECK ----------
402
+dnl Not sure if my code for CDText works on all platforms, allow disabling
403
+
404
+AC_ARG_ENABLE(cdtext,
405
+    AC_HELP_STRING([--disable-cdtext], [disable cdtext, default=enable (Linux only)]),
406
+    [enable_cdtext=$enableval],
407
+    [enable_cdtext=yes]
408
+)
409
+
410
+if test x$enable_cdtext = xyes; then
411
+    AC_DEFINE(USE_CDTEXT, 1, [Define to 1 if you want to compile CD-Text support])
412
+fi
413
+
414
+dnl ---------- OpenOffice.org CHECK ----------
415
+
416
+AC_ARG_ENABLE(ooo,
417
+    AC_HELP_STRING([--enable-ooo], [enable support for OpenOffice.org, default=disable]),
418
+    [enable_ooo=$enableval],
419
+    [enable_ooo=no]
420
+)
421
+
422
+AM_CONDITIONAL(WITH_OOO, test x$enable_ooo = xyes)
423
+
424
+dnl Options: OpenOffice.org installation
425
+AC_ARG_WITH([ooo-dir],
426
+	    AC_HELP_STRING([--with-ooo-dir=DIR],
427
+			   [where the OpenOffice.org program files are installed]),
428
+	    [ac_ooo_libdir="${withval}/program"
429
+	     ac_ooo_datadir="${withval}/program"])
430
+AC_ARG_WITH([ooo-libdir],
431
+	    AC_HELP_STRING([--with-ooo-libdir=DIR],
432
+			   [where the OpenOffice.org program libraries are installed (<ooo-dir>/program)]),
433
+	    [ac_ooo_libdir="${withval}"])
434
+AC_ARG_WITH([ooo-datadir],
435
+	    AC_HELP_STRING([--with-ooo-datadir=DIR],
436
+			   [where the OpenOffice.org data files are installed (<ooo-dir>/program)]),
437
+	    [ac_ooo_datadir="${withval}"])
438
+
439
+dnl Options: OpenOffice.org SDK
440
+AC_ARG_WITH([ooo-sdk-dir],
441
+	    AC_HELP_STRING([--with-ooo-sdk-dir=DIR],
442
+			   [where the OpenOffice.org SDK is installed]),
443
+	    [ac_ooo_sdk_bindir="${withval}/linux/bin"
444
+	     ac_ooo_sdk_includes="${withval}/include"])
445
+AC_ARG_WITH([ooo-sdk-bindir],
446
+	    AC_HELP_STRING([--with-ooo-sdk-bindir=DIR],
447
+			   [where the OpenOffice.org SDK binaries are installed (<ooo-sdk-dir>/linux/bin)]),
448
+	    [ac_ooo_sdk_bindir="${withval}"])
449
+AC_ARG_WITH([ooo-sdk-includes],
450
+	    AC_HELP_STRING([--with-ooo-sdk-includes=DIR],
451
+			   [where the OpenOffice.org SDK includes are installed (<ooo-sdk-dir>/include)]),
452
+	    [ac_ooo_sdk_includes="${withval}"])
453
+
454
+if test x$enable_ooo = xyes; then
455
+
456
+dnl Check for UNO cpp binding
457
+KDE_FIND_PATH(cppumaker, CPPUMAKER, [$ac_ooo_sdk_bindir ${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
458
+  AC_MSG_ERROR([[cppumaker not found, try '--with-ooo-sdk-dir=location_of_ODK']])
459
+])
460
+
461
+dnl Check for ODK includes
462
+ac_cppflags_safe="$CPPFLAGS"
463
+CPPFLAGS="-I$ac_ooo_sdk_includes"
464
+KDE_CHECK_HEADERS([sal/config.h],
465
+		 [OFFICE_SDK_includes="$CPPFLAGS"],
466
+		 AC_MSG_ERROR([[OpenOffice.org SDK include files not found, try '--with-ooo-sdk-dir=location_of_ODK']]))
467
+CPPFLAGS="$ac_cppflags_safe"
468
+
469
+dnl OpenOffice.org libraries
470
+if test -n "$ac_ooo_libdir" ; then
471
+  OFFICE_libadd="-L$ac_ooo_libdir"
472
+  OFFICE_libdir="$ac_ooo_libdir"
473
+fi
474
+
475
+dnl OpenOffice.org types.rdb
476
+AC_CHECK_FILE([$ac_ooo_datadir/types.rdb],
477
+	      [OFFICE_registry="$ac_ooo_datadir"/types.rdb],
478
+	      AC_MSG_ERROR([[types.rdb not found, try '--with-ooo-dir=OpenOffice.org_installation_path']]))
479
+
480
+dnl Substitute the values
481
+AC_SUBST(OFFICE_SDK_includes)
482
+AC_SUBST(OFFICE_libadd)
483
+AC_SUBST(OFFICE_libdir)
484
+AC_SUBST(OFFICE_registry)
485
+AC_SUBST(CPPUMAKER)
486
+
487
+fi
488
+CFLAGS="$CFLAGS -I\$(top_srcdir)/src/core"
489
+CXXFLAGS="$CXXFLAGS -I\$(top_srcdir)/src/core"
490
+
491
+dnl ---------- EXEMPI CHECK ----------
492
+
493
+AC_ARG_ENABLE(exempi,
494
+    AC_HELP_STRING([--disable-exempi], [disable exempi, default=enable if found]),
495
+    [enable_libexempi=$enableval],
496
+    [enable_libexempi=yes]
497
+)
498
+
499
+if test x$enable_libexempi = xyes; then
500
+   KDE_PKG_CHECK_MODULES(EXEMPI, 
501
+                                 [exempi-2.0 >= 1.99.0],
502
+                                 [have_exempi=yes],
503
+                                 [have_exempi=no])
504
+   AC_SUBST(EXEMPI_LIBS)
505
+   AC_SUBST(EXEMPI_CFLAGS)
506
+else
507
+   have_exempi="no (disabled)"
508
+fi
509
+
510
+test "$have_exempi" = "yes" && AC_DEFINE(HAVE_EXEMPI, 1, [Define to 1 if exempi is available])
511
+
512
+
513
+dnl ---------- END EXEMPI CHECK ----------
514
+
515
+dnl ---------- POPPLER CHECK ----------
516
+
517
+AC_ARG_ENABLE(poppler,
518
+    AC_HELP_STRING([--disable-poppler], [disable poppler, default=enable if found]),
519
+    [enable_libpoppler=$enableval],
520
+    [enable_libpoppler=yes]
521
+)
522
+
523
+if test x$enable_libpoppler = xyes; then
524
+   KDE_PKG_CHECK_MODULES(POPPLER, 
525
+                                 [poppler-qt >= 0.5],
526
+                                 [have_poppler=yes],
527
+                                 [have_poppler=no])
528
+   AC_SUBST(POPPLER_LIBS)
529
+   AC_SUBST(POPPLER_CFLAGS)
530
+else
531
+   have_poppler="no (disabled)"
532
+fi
533
+
534
+test "$have_poppler" = "yes" && AC_DEFINE(HAVE_POPPLER, 1, [Define to 1 if poppler is available])
535
+
536
+
537
+dnl ---------- END POPPLER CHECK ----------
538
+
539
+dnl ---------- WEBCAM CHECK ----------
540
+
541
+AC_ARG_ENABLE(webcam,
542
+    AC_HELP_STRING([--enable-webcam], [enable support for webcams (experimental), default=disable]),
543
+    [enable_webcam=$enableval],
544
+    [enable_webcam=no]
545
+)
546
+
547
+AM_CONDITIONAL(ENABLE_WEBCAM, test $enable_webcam = yes)
548
+if test x$enable_webcam = xyes; then
549
+    AC_DEFINE(ENABLE_WEBCAM, 1, [Define to 1 if webcam support is enabled])
550
+fi
551
+
552
+dnl ---------- END WEBCAM CHECK ----------

+ 4
- 0
doc/CMakeLists.txt View File

@@ -0,0 +1,4 @@
1
+ADD_SUBDIRECTORY( en ) 
2
+ADD_SUBDIRECTORY( fr ) 
3
+
4
+

+ 5
- 0
doc/Makefile.am View File

@@ -0,0 +1,5 @@
1
+####### kdevelop will overwrite this part!!! (begin)##########
2
+
3
+SUBDIRS = en fr
4
+
5
+####### kdevelop will overwrite this part!!! (end)############

+ 62
- 0
doc/en/CMakeLists.txt View File

@@ -0,0 +1,62 @@
1
+
2
+KDE_CREATE_HANDBOOK( index.docbook Xi
3
+  INSTALL_DESTINATION share/doc/kde/HTML/en/tellico
4
+  )
5
+
6
+########### install files ###############
7
+
8
+
9
+
10
+
11
+#original Makefile.am contents follow:
12
+
13
+######## kdevelop will overwrite this part!!! (begin)##########
14
+#
15
+#
16
+#EXTRA_DIST = \
17
+#advanced.docbook \
18
+#configuration.docbook \
19
+#details.docbook \
20
+#faqs.docbook \
21
+#fundamentals.docbook \
22
+#hacking.docbook \
23
+#importing-exporting.docbook \
24
+#index.docbook \
25
+#menus.docbook \
26
+#freebsd-doc-license.html \
27
+#entry-editor1.png \
28
+#entry-editor3.png \
29
+#entry-editor4.png \
30
+#entry-editor5.png \
31
+#fields-dialog.png \
32
+#general-options.png \
33
+#main-window.png \
34
+#print-options.png \
35
+#template-options.png \
36
+#source-options.png \
37
+#filter-dialog.png \
38
+#csv-dialog.png \
39
+#fetch-dialog.png \
40
+#export-options.png \
41
+#export-html.png \
42
+#export-csv.png \
43
+#export-pdb.png \
44
+#export-bibtex.png \
45
+#amazon-options.png \
46
+#z3950-options.png \
47
+#externalexec-options.png \
48
+#report-dialog.png \
49
+#loan-dialog.png \
50
+#loan-view.png \
51
+#filter-view.png \
52
+#openoffice-dialog.png \
53
+#sru-options.png \
54
+#imdb-options.png
55
+#
56
+#
57
+######## kdevelop will overwrite this part!!! (end)############
58
+#
59
+#KDE_LANG = en
60
+#KDE_DOCS = tellico
61
+#
62
+#CLEANFILES = *~

+ 50
- 0
doc/en/Makefile.am View File

@@ -0,0 +1,50 @@
1
+####### kdevelop will overwrite this part!!! (begin)##########
2
+
3
+
4
+EXTRA_DIST = \
5
+advanced.docbook \
6
+configuration.docbook \
7
+details.docbook \
8
+faqs.docbook \
9
+fundamentals.docbook \
10
+hacking.docbook \
11
+importing-exporting.docbook \
12
+index.docbook \
13
+menus.docbook \
14
+freebsd-doc-license.html \
15
+entry-editor1.png \
16
+entry-editor3.png \
17
+entry-editor4.png \
18
+entry-editor5.png \
19
+fields-dialog.png \
20
+general-options.png \
21
+main-window.png \
22
+print-options.png \
23
+template-options.png \
24
+source-options.png \
25
+filter-dialog.png \
26
+csv-dialog.png \
27
+fetch-dialog.png \
28
+export-options.png \
29
+export-html.png \
30
+export-csv.png \
31
+export-pdb.png \
32
+export-bibtex.png \
33
+amazon-options.png \
34
+z3950-options.png \
35
+externalexec-options.png \
36
+report-dialog.png \
37
+loan-dialog.png \
38
+loan-view.png \
39
+filter-view.png \
40
+openoffice-dialog.png \
41
+sru-options.png \
42
+imdb-options.png
43
+
44
+
45
+####### kdevelop will overwrite this part!!! (end)############
46
+
47
+KDE_LANG = en
48
+KDE_DOCS = tellico
49
+
50
+CLEANFILES = *~

+ 151
- 0
doc/en/advanced.docbook View File

@@ -0,0 +1,151 @@
1
+<chapter id="advanced">
2
+<title>Advanced Usage</title>
3
+
4
+<sect1 id="command-line">
5
+<title>Command Line Options</title>
6
+
7
+<para>
8
+When running &appname; from the command line, there are several options for opening data files. They may be seen by running <userinput>tellico --help</userinput>.
9
+</para>
10
+
11
+<programlisting>
12
+Usage: tellico [Qt-options] [KDE-options] [options] [filename]
13
+
14
+Tellico - a collection manager for KDE
15
+
16
+Options:
17
+  --nofile                  Do not reopen the last open file
18
+  --bibtex                  Import &lt;filename&gt; as a bibtex file
19
+  --mods                    Import &lt;filename&gt; as a MODS file
20
+  --ris                     Import &lt;filename&gt; as a RIS file
21
+
22
+Arguments:
23
+  filename                  File to open
24
+</programlisting>
25
+
26
+</sect1>
27
+
28
+<sect1 id="dcop-interface">
29
+<title>&DCOP; Interface</title>
30
+
31
+<para>
32
+&appname; has a minimal &DCOP; interface, which can be used for scripting or interacting with a running application from the command-line. As with all &DCOP; calls, you need to specify the application you want to interface with, and the particular interface. The name of the &DCOP; application is <constant>tellico-&lt;pid&gt;</constant>, where <emphasis>&lt;pid&gt;</emphasis> is the process id of the running application.
33
+</para>
34
+
35
+<sect2 id="dcop-commands">
36
+<title>DCOP Commands</title>
37
+
38
+<para>Two &DCOP; objects are available in the tellico interface: <constant>tellico</constant> and <constant>collection</constant>.</para>
39
+
40
+<sect3 id="dcop-tellico">
41
+<title>The <constant>tellico</constant> Object</title>
42
+
43
+<para>The full list of &DCOP; commands in the <constant>tellico</constant> object is shown below:</para>
44
+
45
+<programlisting>
46
+bool importTellico(QString file, QString action)
47
+bool importBibtex(QString file, QString action)
48
+bool importMODS(QString file, QString action)
49
+bool importRIS(QString file, QString action)
50
+bool exportXML(QString file)
51
+bool exportZip(QString file)
52
+bool exportBibtex(QString file)
53
+bool exportHTML(QString file)
54
+bool exportCSV(QString file)
55
+bool exportPilotDB(QString file)
56
+QValueList&lt;long int&gt; selectedEntries()
57
+QValueList&lt;long int&gt; filteredEntries()
58
+void openFile(QString file)
59
+void setFilter(QString text)
60
+bool showEntry(long int id)
61
+</programlisting>
62
+
63
+<para>
64
+For the four import commands, the first argument is the file to import, and the second is the import action. Three actions are available: <emphasis>replace</emphasis>, <emphasis>append</emphasis>, and <emphasis>merge</emphasis>. Four file formats are supported for importing: Tellico XML files, Bibtex files, MODS files, and RIS files.
65
+</para>
66
+
67
+<para>
68
+The current open collection in &appname; may be exported to a file, in either Tellico XML format, Tellico ZIP format, Bibtex, HTML, comma-separated values (CSV), or the PilotDB format.
69
+</para>
70
+
71
+<para>A list of the entry IDs currently selected or being filtered is able to facilitate showing or updating entries in the view.</para>
72
+
73
+<para> A new data file may be opened by using the <command>openFile()</command> command. The full path must be specified.</para>
74
+
75
+<para>A new filter may be set using the <command>setFilter()</command> command, which is the equivalent of typing in the filter box in the main window.</para>
76
+
77
+<para>Given an entry ID, <command>showEntry()</command> will select that entry and show the entry details in the main window.</para>
78
+</sect3>
79
+
80
+<sect3 id="dcop-collection">
81
+<title>The <constant>collection</constant> Object</title>
82
+
83
+<para>The full list of &DCOP; commands in the <constant>collection</constant> object is shown below:</para>
84
+
85
+<programlisting>
86
+long int addEntry()
87
+bool removeEntry(long int entryID)
88
+QStringList values(QString fieldName)
89
+QStringList values(long int entryID,QString fieldName)
90
+QStringList bibtexKeys()
91
+QString bibtexKey(long int entryID)
92
+bool setFieldValue(long int entryID,QString fieldName,QString value)
93
+bool addFieldValue(long int entryID,QString fieldName,QString value)
94
+</programlisting>
95
+
96
+<para>
97
+A new empty entry may be created in the current collection using the <command>addEntry()</command> command. The return value is the entry ID, which can then be used to set the field values in the entry. An entry can be deleted from the collection by calling <command>removeEntry()</command>.
98
+</para>
99
+
100
+<para>
101
+Calling <command>values()</command> using just a field name will return all the values for that field for the currently selected entries. If no entries are selected, the return list is empty. If an entry ID is included in the command, the field values for that specific entry are returned.
102
+</para>
103
+
104
+<para>
105
+If the current collection is a bibliography, calling <command>bibtexKeys()</command> will return the Bibtex citation key for all selected entries. The bibtexKey for a specific entry may be found by using the <command>bibtekKey()</command> command.
106
+</para>
107
+
108
+<para>
109
+Entries can be edited directly with the &DCOP; interface. Given an entry ID, <command>setFieldValue()</command> will set the field value directly. To add a value, without affecting the existing values, use <command>addFieldValue()</command>. The new value gets appended to the end of the existing list.
110
+</para>
111
+</sect3>
112
+
113
+</sect2>
114
+
115
+<sect2 id="dcop-examples">
116
+<title>DCOP Examples</title>
117
+
118
+<para>
119
+Here are some examples for scripting &appname; using the &DCOP; interface. Since the <emphasis>pid</emphasis> must be known, the easiest way to include that in the shell command is like so: <userinput>dcop $(dcop | grep tellico) tellico</userinput>.
120
+</para>
121
+
122
+<screen width="40">
123
+<emphasis>Open a Bibtex file</emphasis>
124
+<prompt>%</prompt> <userinput>dcop $(dcop | grep tellico) tellico importBibtex ~/documents/reference.bib replace</userinput>
125
+<computeroutput>true</computeroutput>
126
+</screen>
127
+
128
+<screen width="40">
129
+<emphasis>Export a Bibtex file</emphasis>
130
+<prompt>%</prompt> <userinput>dcop $(dcop | grep tellico) tellico exportBibtex ~/documents/reference.bib</userinput>
131
+<computeroutput>true</computeroutput>