Mercurial > libpst
annotate configure.ac @ 410:5fd1ca9302f7 default tip
Added tag stable-0-6-76 for changeset 1c458f13d1d3
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 27 Mar 2021 17:13:19 -0700 |
parents | 24871e6cdd69 |
children |
rev | line source |
---|---|
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
1 AC_PREREQ(2.60) |
407
24871e6cdd69
Stuart C. Naifeh - fix rfc2231 encoding when saving messages to both .eml and msg formats
Carl Byington <carl@five-ten-sg.com>
parents:
401
diff
changeset
|
2 AC_INIT(libpst,0.6.76,carl@five-ten-sg.com) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
3 AC_CONFIG_SRCDIR([src/libpst.c]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
4 AC_CONFIG_HEADER([config.h]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
5 AC_CONFIG_MACRO_DIR([m4]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
6 AM_INIT_AUTOMAKE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
7 AC_CANONICAL_HOST |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
8 AC_USE_SYSTEM_EXTENSIONS |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
10 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
11 # 1. Remember that version-info is current:revision:age, and age <= current. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
12 # 2. If the source code has changed at all since the last public release, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
13 # then increment revision (`c:r:a' becomes `c:r+1:a'). |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
14 # 3. If any interfaces have been added, removed, or changed since the last |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
15 # update, increment current, and set revision to 0. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
16 # 4. If any interfaces have been added since the last public release, then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
17 # increment age, since we should be backward compatible with the previous |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
18 # version. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
19 # 5. If any interfaces have been removed or changed since the last public |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
20 # release, then set age to 0, since we are not backward compatible. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
21 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
22 # and x=current-age, y=age, z=revision |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
23 |
407
24871e6cdd69
Stuart C. Naifeh - fix rfc2231 encoding when saving messages to both .eml and msg formats
Carl Byington <carl@five-ten-sg.com>
parents:
401
diff
changeset
|
24 libpst_version_info='5:18:1' |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
25 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
26 libpst_so_major='4' |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
27 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
28 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
29 # libpst |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
30 # version soname so library name |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
31 # 0.6.35 libpst.so.2 libpst.so.2.0.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
32 # 0.6.37 libpst.so.2 libpst.so.2.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
33 # 0.6.38 libpst.so.2 libpst.so.2.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
34 # 0.6.40 libpst.so.4 libpst.so.4.0.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
35 # 0.6.43 libpst.so.4 libpst.so.4.0.1 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
36 # 0.6.47 libpst.so.4 libpst.so.4.0.2 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
37 # 0.6.48 libpst.so.4 libpst.so.4.0.3 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
38 # 0.6.49 libpst.so.4 libpst.so.4.0.4 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
39 # 0.6.50 libpst.so.4 libpst.so.4.1.0 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
40 # 0.6.51 libpst.so.4 libpst.so.4.1.1 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
41 # 0.6.52 libpst.so.4 libpst.so.4.1.2 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
42 # 0.6.53 libpst.so.4 libpst.so.4.1.3 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
43 # 0.6.54 libpst.so.4 libpst.so.4.1.4 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
44 # 0.6.55 libpst.so.4 libpst.so.4.1.5 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
45 # 0.6.56 libpst.so.4 libpst.so.4.1.6 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
46 # 0.6.57 libpst.so.4 libpst.so.4.1.6 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
47 # 0.6.58 libpst.so.4 libpst.so.4.1.7 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
48 # 0.6.59 libpst.so.4 libpst.so.4.1.8 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
49 # 0.6.60 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
50 # 0.6.61 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
51 # 0.6.62 libpst.so.4 libpst.so.4.1.9 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
52 # 0.6.63 libpst.so.4 libpst.so.4.1.10 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
53 # 0.6.66 libpst.so.4 libpst.so.4.1.11 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
54 # 0.6.67 libpst.so.4 libpst.so.4.1.12 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
55 # 0.6.68 libpst.so.4 libpst.so.4.1.13 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
56 # 0.6.69 libpst.so.4 libpst.so.4.1.14 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
57 # 0.6.73 libpst.so.4 libpst.so.4.1.15 |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
58 # 0.6.74 libpst.so.4 libpst.so.4.1.16 |
401
c1b1bbd42696
Markus Schnalke - fix from Debian for vcard version format
Carl Byington <carl@five-ten-sg.com>
parents:
394
diff
changeset
|
59 # 0.6.75 libpst.so.4 libpst.so.4.1.17 |
407
24871e6cdd69
Stuart C. Naifeh - fix rfc2231 encoding when saving messages to both .eml and msg formats
Carl Byington <carl@five-ten-sg.com>
parents:
401
diff
changeset
|
60 # 0.6.76 libpst.so.4 libpst.so.4.1.18 |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
61 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
62 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
63 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
64 # Check for solaris |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
65 AC_MSG_CHECKING([for Solaris]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
66 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
67 *solaris*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
68 os_solaris=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
69 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
70 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
71 os_solaris=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
72 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
73 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
74 AC_MSG_RESULT($os_solaris) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
75 AM_CONDITIONAL(OS_SOLARIS, [test "$os_solaris" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
76 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
77 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
78 # Check for win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
79 AC_MSG_CHECKING([for Win32]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
80 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
81 *-mingw*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
82 os_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
83 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
84 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
85 os_win32=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
86 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
87 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
88 AC_MSG_RESULT($os_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
89 AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
90 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
91 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
92 # Check for Win32 platform |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
93 AC_MSG_CHECKING([for Win32 platform in general]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
94 case "$host" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
95 *-cygwin*) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
96 platform_win32=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
97 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
98 *) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
99 platform_win32=$os_win32 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
100 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
101 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
102 AC_MSG_RESULT($platform_win32) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
103 AM_CONDITIONAL(PLATFORM_WIN32, [test "$platform_win32" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
104 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
105 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
106 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
107 # The following lines adds the --enable-dii option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
108 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
109 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
110 # --enable-dii |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
111 # --enable-dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
112 # --enable-dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
113 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
114 AC_MSG_CHECKING([whether we are enabling dii utility]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
115 AC_ARG_ENABLE(dii, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
116 AC_HELP_STRING([--enable-dii], [enable dii utility]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
117 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
118 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
119 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
120 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
121 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dii) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
122 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
123 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
124 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
125 enable_dii=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
126 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
127 AC_MSG_RESULT([$enable_dii]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
128 AC_PATH_PROG(CONVERT, convert) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
129 if test "x$CONVERT" = "x" ; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
130 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
131 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
132 AC_MSG_WARN([convert program not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
133 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
134 else |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
135 if test "x`$CONVERT --version 2>&1 | grep -i imagemagick >/dev/null ; echo $?`" != "x0"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
136 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
137 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
138 AC_MSG_WARN([wrong convert program found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
139 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
140 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
141 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
142 AC_CHECK_HEADER([gd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
143 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
144 AC_DEFINE([HAVE_GD_H], [1], [Define to 1 if you have the <gd.h> header file.]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
145 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
146 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
147 if test "$enable_dii" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
148 enable_dii=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
149 AC_MSG_WARN([gd.h not found. pst2dii disabled]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
150 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
151 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
152 AM_CONDITIONAL(BUILD_DII, [test "$enable_dii" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
153 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
154 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
155 # Checks for programs. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
156 AC_PROG_CXX |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
157 AC_PROG_CC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
158 AM_PROG_CC_C_O |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
159 AC_PROG_CPP |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
160 AC_PROG_INSTALL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
161 AC_PROG_LN_S |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
162 AC_PROG_LIBTOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
163 AC_PROG_MAKE_SET |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
164 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
165 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
166 # make sure we get large file support |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
167 AC_SYS_LARGEFILE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
168 AC_CHECK_SIZEOF(off_t) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
169 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
170 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
171 # Checks for header files. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
172 AC_CHECK_HEADER([unistd.h], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
173 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
174 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
175 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
176 AC_HEADER_DIRENT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
177 AC_HEADER_STDC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
178 AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h inttypes.h limits.h regex.h semaphore.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/param.h sys/shm.h sys/stat.h sys/types.h time.h unistd.h wchar.h]) |
393
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
179 save_libs="$LIBS" ; LIBS="" |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
180 AC_SEARCH_LIBS([sem_init], [pthread rt], [SEM_LIBS="$LIBS"], [AC_MSG_ERROR([sem_init missing])]) |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
181 AC_SUBST([SEM_LIBS]) |
ffbb5e3f2551
Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents:
392
diff
changeset
|
182 LIBS="$save_libs" |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
183 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
184 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
185 # Checks for typedefs, structures, and compiler characteristics. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
186 AC_HEADER_STDBOOL |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
187 AC_HEADER_SYS_WAIT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
188 AC_C_CONST |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
189 AC_C_INLINE |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
190 AC_TYPE_OFF_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
191 AC_TYPE_SIZE_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
192 AC_TYPE_PID_T |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
193 AC_STRUCT_TM |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
194 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
195 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
196 # Checks for library functions. |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
197 AC_FUNC_FORK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
198 AC_FUNC_FSEEKO |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
199 AC_FUNC_STAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
200 AC_FUNC_LSTAT |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
201 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
202 if test "$cross_compiling" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
203 AC_FUNC_MALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
204 AC_FUNC_MKTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
205 AC_FUNC_REALLOC |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
206 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
207 AC_FUNC_STRFTIME |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
208 AC_FUNC_VPRINTF |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
209 AC_CHECK_FUNCS([chdir getcwd memchr memmove memset regcomp strcasecmp strncasecmp strchr strdup strerror strpbrk strrchr strstr strtol get_current_dir_name]) |
386 | 210 AM_GNU_GETTEXT |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
211 AM_GNU_GETTEXT_VERSION([0.17]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
212 AM_ICONV |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
213 if test "$am_cv_func_iconv" != "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
214 AC_MSG_ERROR([libpst requires iconv which is missing]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
215 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
216 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
217 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
218 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
219 [REGEXLIB=-lregex |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
220 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
221 [AC_MSG_ERROR([No regex library found])])]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
222 AC_SUBST(REGEXLIB) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
223 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
224 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
225 # The following lines adds the --enable-pst-debug option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
226 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
227 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
228 # --enable-pst-debug |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
229 # --enable-pst-debug=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
230 # --enable-pst-debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
231 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
232 AC_MSG_CHECKING([whether we are forcing debug dump file creation]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
233 AC_ARG_ENABLE(pst-debug, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
234 AC_HELP_STRING([--enable-pst-debug], [force debug dump file creation]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
235 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
236 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
237 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
238 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
239 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pst-debug) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
240 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
241 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
242 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
243 enable_pst_debug=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
244 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
245 AC_MSG_RESULT([$enable_pst_debug]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
246 if test "$enable_pst_debug" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
247 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to force debug dump file creation) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
248 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
249 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
250 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
251 # The following lines adds the --enable-libpst-shared option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
252 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
253 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
254 # --enable-libpst-shared |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
255 # --enable-libpst-shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
256 # --enable-libpst-shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
257 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
258 AC_MSG_CHECKING([whether we are building libpst shared object]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
259 AC_ARG_ENABLE(libpst-shared, |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
260 AC_HELP_STRING([--enable-libpst-shared], [build libpst shared object]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
261 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
262 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
263 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
264 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
265 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libpst-shared) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
266 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
267 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
268 # default if not specified |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
269 enable_libpst_shared=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
270 ) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
271 AC_MSG_RESULT([$enable_libpst_shared]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
272 enable_static_tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
273 if test "$enable_libpst_shared" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
274 enable_shared=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
275 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
276 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
277 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
278 # needed by STATIC_TOOLS in src/Makefile.am |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
279 AC_SUBST(PST_OBJDIR, [$objdir]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
280 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
281 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
282 # The following lines adds the --enable-static-tools option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
283 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
284 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
285 # --enable-static-tools |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
286 # --enable-static-tools=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
287 # --enable-static-tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
288 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
289 AC_MSG_CHECKING([whether to link command line tools with libpst statically]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
290 AC_ARG_ENABLE([static-tools], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
291 AC_HELP_STRING([--enable-static-tools], [link command line tools with libpst statically]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
292 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
293 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
294 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
295 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
296 *) AC_MSG_ERROR(bad value ${enableval} for --enable-static-tools) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
297 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
298 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
299 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
300 enable_static_tools=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
301 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
302 AC_MSG_RESULT([$enable_static_tools]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
303 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
304 if test "$enable_static_tools" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
305 enable_static="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
306 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
307 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
308 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
309 # The following lines adds the --enable-python option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
310 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
311 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
312 # --enable-python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
313 # --enable-python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
314 # --enable-python=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
315 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
316 AC_MSG_CHECKING([whether to build the libpst python interface]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
317 AC_ARG_ENABLE([python], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
318 AC_HELP_STRING([--enable-python], [build libpst python interface]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
319 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
320 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
321 yes) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
322 no) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
323 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
324 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
325 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
326 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
327 enable_python=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
328 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
329 AC_MSG_RESULT([$enable_python]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
330 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
331 if test "$enable_python" = "yes"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
332 enable_shared="yes" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
333 # get the version of installed python |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
334 AX_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
335 if test "$ax_python_bin" = "no"; then |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
336 AC_MSG_ERROR(python binary not found) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
337 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
338 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-` |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
339 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
340 # find the flags for that version |
394
3cbda103e0ef
changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents:
393
diff
changeset
|
341 AX_PYTHON_DEVEL([$PYTHON_VERSION]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
342 |
390
5c0ce43c7532
Fix a number of spelling mistakes
Paul Wise <pabs3@bonedaddy.net>
parents:
388
diff
changeset
|
343 # do we have Boost Python? |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
344 AX_BOOST_PYTHON |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
345 if test "$ac_cv_boost_python" = "no"; then |
390
5c0ce43c7532
Fix a number of spelling mistakes
Paul Wise <pabs3@bonedaddy.net>
parents:
388
diff
changeset
|
346 AC_MSG_ERROR(Boost Python not found) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
347 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
348 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
349 fi |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
350 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
351 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
352 # The following lines adds the --enable-profiling option to configure: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
353 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
354 # Give the user the choice to enter one of these: |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
355 # --enable-profiling |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
356 # --enable-profiling=yes |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
357 # --enable-profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
358 # |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
359 AC_MSG_CHECKING([whether to link with gprof profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
360 AC_ARG_ENABLE([profiling], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
361 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]), |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
362 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
363 case "${enableval}" in |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
364 yes) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
365 CFLAGS="$CFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
366 CPPFLAGS="$CPPFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
367 CXXFLAGS="$CXXFLAGS -pg" |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
368 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
369 no) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
370 ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
371 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;; |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
372 esac |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
373 ], |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
374 [ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
375 enable_profiling=no |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
376 ]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
377 AC_MSG_RESULT([$enable_profiling]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
378 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
379 |
392
54465fca8b9e
Use PKG_CHECK_MODULES to find the gsf-1 library
Paul Wise <pabs3@bonedaddy.net>
parents:
390
diff
changeset
|
380 PKG_CHECK_MODULES([GSF], [libgsf-1]) |
385
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
381 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
382 PKG_CHECK_MODULES([ZLIB], [zlib]) |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
383 |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
384 AC_OUTPUT( \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
385 Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
386 html/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
387 libpst.pc \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
388 libpst.spec \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
389 man/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
390 src/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
391 src/pst2dii.cpp \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
392 python/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
393 xml/Makefile \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
394 xml/libpst \ |
0917d53d78b3
Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff
changeset
|
395 ) |