annotate configure.ac @ 406:7200790e46ac

Added tag stable-0-6-75 for changeset af8ae7bd3fed
author Carl Byington <carl@five-ten-sg.com>
date Tue, 16 Jun 2020 17:18:28 -0700
parents c1b1bbd42696
children 24871e6cdd69
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
1 AC_PREREQ(2.60)
401
c1b1bbd42696 Markus Schnalke - fix from Debian for vcard version format
Carl Byington <carl@five-ten-sg.com>
parents: 394
diff changeset
2 AC_INIT(libpst,0.6.75,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
401
c1b1bbd42696 Markus Schnalke - fix from Debian for vcard version format
Carl Byington <carl@five-ten-sg.com>
parents: 394
diff changeset
24 libpst_version_info='5:17: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
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
60
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 # Check for solaris
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
64 AC_MSG_CHECKING([for Solaris])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
65 case "$host" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
66 *solaris*)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
67 os_solaris=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
68 ;;
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 os_solaris=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
71 ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
72 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
73 AC_MSG_RESULT($os_solaris)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
74 AM_CONDITIONAL(OS_SOLARIS, [test "$os_solaris" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
75
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 # Check for win32
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
78 AC_MSG_CHECKING([for Win32])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
79 case "$host" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
80 *-mingw*)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
81 os_win32=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
82 ;;
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 os_win32=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
85 ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
86 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
87 AC_MSG_RESULT($os_win32)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
88 AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
89
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 # Check for Win32 platform
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
92 AC_MSG_CHECKING([for Win32 platform in general])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
93 case "$host" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
94 *-cygwin*)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
95 platform_win32=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
96 ;;
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 platform_win32=$os_win32
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
99 ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
100 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
101 AC_MSG_RESULT($platform_win32)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
102 AM_CONDITIONAL(PLATFORM_WIN32, [test "$platform_win32" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
103
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 # Checks for programs.
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
106 # 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
107 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
108 # 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
109 # --enable-dii
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
110 # --enable-dii=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
111 # --enable-dii=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
112 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
113 AC_MSG_CHECKING([whether we are enabling dii utility])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
114 AC_ARG_ENABLE(dii,
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
115 AC_HELP_STRING([--enable-dii], [enable dii utility]),
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
116 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
117 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
118 yes) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
119 no) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
120 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dii) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
121 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
122 ],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
123 # default if not specified
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
124 enable_dii=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
125 )
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
126 AC_MSG_RESULT([$enable_dii])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
127 AC_PATH_PROG(CONVERT, convert)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
128 if test "x$CONVERT" = "x" ; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
129 if test "$enable_dii" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
130 enable_dii=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
131 AC_MSG_WARN([convert program not found. pst2dii disabled])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
132 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
133 else
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
134 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
135 if test "$enable_dii" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
136 enable_dii=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
137 AC_MSG_WARN([wrong convert program found. pst2dii disabled])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
138 fi
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 AC_CHECK_HEADER([gd.h],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
142 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
143 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
144 ],
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 if test "$enable_dii" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
147 enable_dii=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
148 AC_MSG_WARN([gd.h not found. pst2dii disabled])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
149 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
150 ])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
151 AM_CONDITIONAL(BUILD_DII, [test "$enable_dii" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
152
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 # Checks for programs.
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
155 AC_PROG_CXX
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
156 AC_PROG_CC
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
157 AM_PROG_CC_C_O
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
158 AC_PROG_CPP
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
159 AC_PROG_INSTALL
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
160 AC_PROG_LN_S
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
161 AC_PROG_LIBTOOL
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
162 AC_PROG_MAKE_SET
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
163
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 # make sure we get large file support
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
166 AC_SYS_LARGEFILE
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
167 AC_CHECK_SIZEOF(off_t)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
168
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 # Checks for header files.
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
171 AC_CHECK_HEADER([unistd.h],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
172 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no]),
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
173 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
174 )
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
175 AC_HEADER_DIRENT
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
176 AC_HEADER_STDC
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
177 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
178 save_libs="$LIBS" ; LIBS=""
ffbb5e3f2551 Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents: 392
diff changeset
179 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
180 AC_SUBST([SEM_LIBS])
ffbb5e3f2551 Add missing linking with zlib and libpthread/librt
Paul Wise <pabs3@bonedaddy.net>
parents: 392
diff changeset
181 LIBS="$save_libs"
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
182
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 # Checks for typedefs, structures, and compiler characteristics.
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
185 AC_HEADER_STDBOOL
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
186 AC_HEADER_SYS_WAIT
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
187 AC_C_CONST
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
188 AC_C_INLINE
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
189 AC_TYPE_OFF_T
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
190 AC_TYPE_SIZE_T
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
191 AC_TYPE_PID_T
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
192 AC_STRUCT_TM
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
193
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 # Checks for library functions.
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
196 AC_FUNC_FORK
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
197 AC_FUNC_FSEEKO
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
198 AC_FUNC_STAT
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
199 AC_FUNC_LSTAT
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
200 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
201 if test "$cross_compiling" != "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
202 AC_FUNC_MALLOC
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
203 AC_FUNC_MKTIME
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
204 AC_FUNC_REALLOC
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
205 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
206 AC_FUNC_STRFTIME
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
207 AC_FUNC_VPRINTF
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
208 AC_CHECK_FUNCS([chdir getcwd memchr memmove memset regcomp strcasecmp strncasecmp strchr strdup strerror strpbrk strrchr strstr strtol get_current_dir_name])
386
f1f9920cc7b1 Add AM_GNU_GETTEXT macros
Paul Wise <pabs3@bonedaddy.net>
parents: 385
diff changeset
209 AM_GNU_GETTEXT
394
3cbda103e0ef changes to build on centos 6
Carl Byington <carl@five-ten-sg.com>
parents: 393
diff changeset
210 AM_GNU_GETTEXT_VERSION([0.17])
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
211 AM_ICONV
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
212 if test "$am_cv_func_iconv" != "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
213 AC_MSG_ERROR([libpst requires iconv which is missing])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
214 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
215
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 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
218 [REGEXLIB=-lregex
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
219 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
220 [AC_MSG_ERROR([No regex library found])])])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
221 AC_SUBST(REGEXLIB)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
222
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 # 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
225 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
226 # 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
227 # --enable-pst-debug
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
228 # --enable-pst-debug=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
229 # --enable-pst-debug=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
230 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
231 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
232 AC_ARG_ENABLE(pst-debug,
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
233 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
234 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
235 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
236 yes) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
237 no) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
238 *) 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
239 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
240 ],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
241 # default if not specified
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
242 enable_pst_debug=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
243 )
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
244 AC_MSG_RESULT([$enable_pst_debug])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
245 if test "$enable_pst_debug" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
246 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
247 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
248
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 # 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
251 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
252 # 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
253 # --enable-libpst-shared
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
254 # --enable-libpst-shared=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
255 # --enable-libpst-shared=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
256 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
257 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
258 AC_ARG_ENABLE(libpst-shared,
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
259 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
260 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
261 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
262 yes) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
263 no) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
264 *) 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
265 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
266 ],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
267 # default if not specified
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
268 enable_libpst_shared=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
269 )
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
270 AC_MSG_RESULT([$enable_libpst_shared])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
271 enable_static_tools=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
272 if test "$enable_libpst_shared" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
273 enable_shared=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
274 enable_static_tools=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
275 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
276
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
277 # needed by STATIC_TOOLS in src/Makefile.am
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
278 AC_SUBST(PST_OBJDIR, [$objdir])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
279
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 # 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
282 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
283 # 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
284 # --enable-static-tools
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
285 # --enable-static-tools=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
286 # --enable-static-tools=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
287 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
288 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
289 AC_ARG_ENABLE([static-tools],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
290 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
291 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
292 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
293 yes) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
294 no) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
295 *) 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
296 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
297 ],
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 enable_static_tools=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
300 ])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
301 AC_MSG_RESULT([$enable_static_tools])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
302 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
303 if test "$enable_static_tools" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
304 enable_static="yes"
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
305 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
306
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 # 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
309 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
310 # 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
311 # --enable-python
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
312 # --enable-python=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
313 # --enable-python=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
314 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
315 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
316 AC_ARG_ENABLE([python],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
317 AC_HELP_STRING([--enable-python], [build libpst python interface]),
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
318 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
319 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
320 yes) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
321 no) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
322 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
323 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
324 ],
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 enable_python=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
327 ])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
328 AC_MSG_RESULT([$enable_python])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
329 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
330 if test "$enable_python" = "yes"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
331 enable_shared="yes"
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
332 # get the version of installed python
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
333 AX_PYTHON
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
334 if test "$ax_python_bin" = "no"; then
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
335 AC_MSG_ERROR(python binary not found)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
336 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
337 PYTHON_VERSION=`echo $ax_python_bin | cut -c7-`
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
338
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
339 # 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
340 AX_PYTHON_DEVEL([$PYTHON_VERSION])
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
341
390
5c0ce43c7532 Fix a number of spelling mistakes
Paul Wise <pabs3@bonedaddy.net>
parents: 388
diff changeset
342 # do we have Boost Python?
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
343 AX_BOOST_PYTHON
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
344 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
345 AC_MSG_ERROR(Boost Python not found)
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
346 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
347 AC_SUBST(PYTHON_VERSION, [$ax_python_bin])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
348 fi
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
349
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 # 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
352 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
353 # 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
354 # --enable-profiling
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
355 # --enable-profiling=yes
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
356 # --enable-profiling=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
357 #
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
358 AC_MSG_CHECKING([whether to link with gprof profiling])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
359 AC_ARG_ENABLE([profiling],
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
360 AC_HELP_STRING([--enable-profiling], [link with gprof profiling]),
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
361 [
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
362 case "${enableval}" in
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
363 yes)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
364 CFLAGS="$CFLAGS -pg"
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
365 CPPFLAGS="$CPPFLAGS -pg"
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
366 CXXFLAGS="$CXXFLAGS -pg"
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
367 ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
368 no)
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
369 ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
370 *) AC_MSG_ERROR(bad value ${enableval} for --profiling) ;;
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
371 esac
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
372 ],
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 enable_profiling=no
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
375 ])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
376 AC_MSG_RESULT([$enable_profiling])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
377 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
378
392
54465fca8b9e Use PKG_CHECK_MODULES to find the gsf-1 library
Paul Wise <pabs3@bonedaddy.net>
parents: 390
diff changeset
379 PKG_CHECK_MODULES([GSF], [libgsf-1])
385
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
380
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
381 PKG_CHECK_MODULES([ZLIB], [zlib])
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
382
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
383 AC_OUTPUT( \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
384 Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
385 html/Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
386 libpst.pc \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
387 libpst.spec \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
388 man/Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
389 src/Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
390 src/pst2dii.cpp \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
391 python/Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
392 xml/Makefile \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
393 xml/libpst \
0917d53d78b3 Rename configure.in to configure.ac
Paul Wise <pabs3@bonedaddy.net>
parents:
diff changeset
394 )