annotate configure.in @ 114:e213bfcf9aa7 stable-0-6-24

patch from Chris Eagle to build on cygwin
author Carl Byington <carl@five-ten-sg.com>
date Thu, 11 Dec 2008 11:58:22 -0800
parents 554e9a422778
children ed2a260bbb98
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
1 AC_PREREQ(2.59)
114
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
2 AC_INIT(libpst,0.6.24,carl@five-ten-sg.com)
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
3 AC_CONFIG_SRCDIR([config.h.in])
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
4 AC_CONFIG_HEADER([config.h])
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
5
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
7
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
8
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
9 # Checks for programs.
63
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
10 my_build_dii=yes
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
11 AC_PATH_PROG(CONVERT, convert)
67
90aa7814ad1f Initial version of pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 63
diff changeset
12 if test "x$CONVERT" = "x" ; then
63
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
13 AC_MSG_WARN([convert not found. pst2dii disabled])
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
14 my_build_dii=no
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
15 else
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
16 # The following lines adds the --enable-dii option to configure:
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
17 #
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
18 # Give the user the choice to enter one of these:
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
19 # --enable-dii
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
20 # --enable-dii=yes
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
21 # --enable-dii=no
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
22 #
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
23 AC_MSG_CHECKING([whether we are enabling dii utility])
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
24 AC_ARG_ENABLE(dii,
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
25 AC_HELP_STRING([--enable-dii], [enable dii utility]),
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
26 [if test "${enable_dii}" = "no" ; then
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
27 AC_MSG_RESULT([no])
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
28 my_build_dii=no
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
29 else
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
30 AC_MSG_RESULT([yes])
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
31 fi],
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
32 # Default value for configure
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
33 AC_MSG_RESULT([yes])
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
34 )
63
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
35 fi
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
36 AM_CONDITIONAL(BUILD_DII, test $my_build_dii = yes)
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
37
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
38
63
cfd6175f9334 Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 61
diff changeset
39 # Checks for programs.
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
40 AC_PROG_CXX
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
41 AC_PROG_CC
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
42 AC_PROG_CPP
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
43 AC_PROG_INSTALL
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
44 AC_PROG_LN_S
95
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
45 AC_PROG_LIBTOOL
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
46 AC_PROG_MAKE_SET
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
47 AC_PROG_RANLIB
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
48
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
49 AC_SYS_LARGEFILE
75
987aa872294e Use ftello/fseeko to properly handle large files.
Carl Byington <carl@five-ten-sg.com>
parents: 73
diff changeset
50 AC_CHECK_SIZEOF(off_t)
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
51
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
52 # Checks for header files.
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
53 AC_CHECK_HEADER([unistd.h],
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
54 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no ]),
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
55 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes])
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
56 )
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
57 AC_HEADER_DIRENT
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
58 AC_HEADER_STDC
96
2e3ec9511166 update the release notes
Carl Byington <carl@five-ten-sg.com>
parents: 95
diff changeset
59 AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h sys/param.h unistd.h wchar.h])
67
90aa7814ad1f Initial version of pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 63
diff changeset
60 if test "$my_build_dii" = "yes"; then
90aa7814ad1f Initial version of pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 63
diff changeset
61 AC_CHECK_HEADERS([gd.h])
90aa7814ad1f Initial version of pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents: 63
diff changeset
62 fi
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
63
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
64 # Checks for typedefs, structures, and compiler characteristics.
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
65 AC_HEADER_STDBOOL
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
66 AC_C_CONST
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
67 AC_TYPE_OFF_T
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
68 AC_TYPE_SIZE_T
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
69 AC_STRUCT_TM
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
70
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
71 # Checks for library functions.
75
987aa872294e Use ftello/fseeko to properly handle large files.
Carl Byington <carl@five-ten-sg.com>
parents: 73
diff changeset
72 AC_FUNC_FSEEKO
59
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
73 AC_FUNC_LSTAT
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
74 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
75 AC_FUNC_MALLOC
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
76 AC_FUNC_MKTIME
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
77 AC_FUNC_REALLOC
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
78 AC_FUNC_STRFTIME
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
79 AC_FUNC_VPRINTF
7d5c637aaafb General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents: 52
diff changeset
80 AC_CHECK_FUNCS([memchr memmove memset strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol])
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
81
93
cb14583c119a iconv changes for Mac
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
82 # iconv on mac is a library
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
83 SAVELIBS="${LIBS}"
93
cb14583c119a iconv changes for Mac
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
84 AC_SEARCH_LIBS([iconv_open], [iconv])
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
85 if test "x${SAVELIBS}" != "x${LIBS}"; then
100
1e4a7610d525 fixes from Justin Greer to add -D option to include deleted items, to add missing email headers, to fix bug in my_stristr()
Carl Byington <carl@five-ten-sg.com>
parents: 99
diff changeset
86 all_libraries="-L/usr/lib $all_libraries"
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
87 AC_SUBST(all_libraries)
100
1e4a7610d525 fixes from Justin Greer to add -D option to include deleted items, to add missing email headers, to fix bug in my_stristr()
Carl Byington <carl@five-ten-sg.com>
parents: 99
diff changeset
88 AC_MSG_WARN([This should be building on Mac OSX, adding /usr/lib to the library path])
99
b7f456946c5b add configure option --enable-dii=no to remove dependency on libgd.
Carl Byington <carl@five-ten-sg.com>
parents: 96
diff changeset
89 fi
93
cb14583c119a iconv changes for Mac
Carl Byington <carl@five-ten-sg.com>
parents: 90
diff changeset
90
114
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
91 AC_MSG_CHECKING([if iconv uses const arguments])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
92 AC_LANG_PUSH([C++])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
93 AC_COMPILE_IFELSE([
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
94 #include <iconv.h>
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
95 int main(int argc, char **argv)
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
96 {
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
97 size_t inlen = 100;
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
98 char buffer[[inlen]];
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
99 char *p = buffer;
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
100 size_t utf8_len = 2 * inlen + 1;
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
101 char utf8_buffer[[utf8_len]];
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
102 char *utf8_p = utf8_buffer;
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
103 iconv_t cd = 0;
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
104 iconv(cd, (const char**)&p, &inlen, &utf8_p, &utf8_len);
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
105 }
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
106 ],
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
107 [AC_DEFINE(ICONV_CONST,const,[do we have const headers])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
108 AC_MSG_RESULT([yes])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
109 ],
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
110 [AC_DEFINE(ICONV_CONST,,[do we have const headers])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
111 AC_MSG_RESULT([no])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
112 ])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
113 AC_LANG_POP([C++])
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
114
e213bfcf9aa7 patch from Chris Eagle to build on cygwin
Carl Byington <carl@five-ten-sg.com>
parents: 112
diff changeset
115
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
116 # The following lines adds the --enable-pst-debug option to configure:
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
117 #
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
118 # Give the user the choice to enter one of these:
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
119 # --enable-pst-debug
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
120 # --enable-pst-debug=yes
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
121 # --enable-pst-debug=no
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
122 #
34
07177825c91b fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents: 31
diff changeset
123 AC_MSG_CHECKING([whether we are forcing debug dump file creation])
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
124 AC_ARG_ENABLE(pst-debug,
34
07177825c91b fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents: 31
diff changeset
125 AC_HELP_STRING([--enable-pst-debug], [force debug dump file creation]),
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
126 [if test "${enable_pst_debug}" = "no" ; then
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
127 AC_MSG_RESULT([no])
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
128 else
34
07177825c91b fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents: 31
diff changeset
129 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to force debug dump file creation)
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
130 AC_MSG_RESULT([yes])
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
131 fi],
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
132 # Default value for configure
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
133 AC_MSG_RESULT([no])
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
134 )
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 28
diff changeset
135
78
535075b4d261 Patch from Joachim Metz for debian packaging, and fix for incorrect length on lz decompression.
Carl Byington <carl@five-ten-sg.com>
parents: 77
diff changeset
136
95
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
137 # The following lines adds the --enable-libpst-shared option to configure:
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
138 #
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
139 # Give the user the choice to enter one of these:
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
140 # --enable-libpst-shared
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
141 # --enable-libpst-shared=yes
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
142 # --enable-libpst-shared=no
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
143 #
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
144 AC_MSG_CHECKING([whether we are building libpst shared object])
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
145 AC_ARG_ENABLE(libpst-shared,
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
146 AC_HELP_STRING([--enable-libpst-shared], [build libpst shared object]),
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
147 [if test "${enable_libpst_shared}" = "no" ; then
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
148 AC_MSG_RESULT([no])
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
149 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 0 = 1)
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
150 else
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
151 AC_MSG_RESULT([yes])
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
152 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 1 = 1)
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
153 fi],
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
154 # Default value for configure
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
155 [AC_MSG_RESULT([no])
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
156 AM_CONDITIONAL(BUILD_LIBPST_SHARED, test 0 = 1)]
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
157 )
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
158
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
159
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
160 AC_OUTPUT( \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
161 Makefile \
78
535075b4d261 Patch from Joachim Metz for debian packaging, and fix for incorrect length on lz decompression.
Carl Byington <carl@five-ten-sg.com>
parents: 77
diff changeset
162 debian/changelog \
82
b370d9e8aa10 Fix my mistake in debian packaging.
Carl Byington <carl@five-ten-sg.com>
parents: 80
diff changeset
163 debian/Makefile \
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
164 libpst.spec \
95
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
165 libpst.pc \
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
166 html/Makefile \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
167 info/Makefile \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
168 man/Makefile \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
169 src/Makefile \
21
e5418051878c switch to automake/autoconf
carl
parents: 16
diff changeset
170 src/version.h \
95
ff1743cbe4aa initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents: 93
diff changeset
171 src/pst2dii.cpp \
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
172 xml/Makefile \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
173 xml/libpst \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
174 )