Mercurial > libpst
annotate configure.in @ 96:2e3ec9511166
update the release notes
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 14 Sep 2008 11:56:19 -0700 |
parents | ff1743cbe4aa |
children | b7f456946c5b |
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) |
96
2e3ec9511166
update the release notes
Carl Byington <carl@five-ten-sg.com>
parents:
95
diff
changeset
|
2 AC_INIT(libpst,0.6.19,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 |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
8 # 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
|
9 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
|
10 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
|
11 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
|
12 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
|
13 my_build_dii=no |
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 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
|
15 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
|
16 |
cfd6175f9334
Start work on pst2dii to convert to Summation dii load file format.
Carl Byington <carl@five-ten-sg.com>
parents:
61
diff
changeset
|
17 # Checks for programs. |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
18 AC_PROG_CXX |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
19 AC_PROG_CC |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
20 AC_PROG_CPP |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
21 AC_PROG_INSTALL |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
22 AC_PROG_LN_S |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
23 AC_PROG_LIBTOOL |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
24 AC_PROG_MAKE_SET |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
25 AC_PROG_RANLIB |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
26 |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
27 AC_SYS_LARGEFILE |
75
987aa872294e
Use ftello/fseeko to properly handle large files.
Carl Byington <carl@five-ten-sg.com>
parents:
73
diff
changeset
|
28 AC_CHECK_SIZEOF(off_t) |
16 | 29 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
30 # Checks for header files. |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
31 AC_CHECK_HEADER([unistd.h], |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
32 AM_CONDITIONAL(NEED_XGETOPT, [test yes = no ]), |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
33 AM_CONDITIONAL(NEED_XGETOPT, [test yes = yes]) |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
34 ) |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
35 AC_HEADER_DIRENT |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
36 AC_HEADER_STDC |
96
2e3ec9511166
update the release notes
Carl Byington <carl@five-ten-sg.com>
parents:
95
diff
changeset
|
37 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
|
38 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
|
39 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
|
40 fi |
16 | 41 |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
42 # Checks for typedefs, structures, and compiler characteristics. |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
43 AC_HEADER_STDBOOL |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
44 AC_C_CONST |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
45 AC_TYPE_OFF_T |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
46 AC_TYPE_SIZE_T |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
47 AC_STRUCT_TM |
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 # 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
|
50 AC_FUNC_FSEEKO |
59
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
51 AC_FUNC_LSTAT |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
52 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
53 AC_FUNC_MALLOC |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
54 AC_FUNC_MKTIME |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
55 AC_FUNC_REALLOC |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
56 AC_FUNC_STRFTIME |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
57 AC_FUNC_VPRINTF |
7d5c637aaafb
General cleanup and code fixes.
Carl Byington <carl@five-ten-sg.com>
parents:
52
diff
changeset
|
58 AC_CHECK_FUNCS([memchr memmove memset strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol]) |
16 | 59 |
93 | 60 # iconv on mac is a library |
61 AC_SEARCH_LIBS([iconv_open], [iconv]) | |
62 | |
31 | 63 # The following lines adds the --enable-pst-debug option to configure: |
64 # | |
65 # Give the user the choice to enter one of these: | |
66 # --enable-pst-debug | |
67 # --enable-pst-debug=yes | |
68 # --enable-pst-debug=no | |
69 # | |
34
07177825c91b
fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents:
31
diff
changeset
|
70 AC_MSG_CHECKING([whether we are forcing debug dump file creation]) |
31 | 71 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
|
72 AC_HELP_STRING([--enable-pst-debug], [force debug dump file creation]), |
31 | 73 [if test "${enable_pst_debug}" = "no" ; then |
74 AC_MSG_RESULT([no]) | |
75 else | |
34
07177825c91b
fix signed/unsigned to allow very small pst files with only leaf nodes
carl
parents:
31
diff
changeset
|
76 AC_DEFINE(DEBUG_ALL, 1, Define to 1 to force debug dump file creation) |
31 | 77 AC_MSG_RESULT([yes]) |
78 fi], | |
79 # Default value for configure | |
80 AC_MSG_RESULT([no]) | |
81 ) | |
82 | |
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
|
83 |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
84 # 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
|
85 # |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
86 # 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
|
87 # --enable-libpst-shared |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
88 # --enable-libpst-shared=yes |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
89 # --enable-libpst-shared=no |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
90 # |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
91 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
|
92 AC_ARG_ENABLE(libpst-shared, |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
93 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
|
94 [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
|
95 AC_MSG_RESULT([no]) |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
96 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
|
97 else |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
98 AC_MSG_RESULT([yes]) |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
99 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
|
100 fi], |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
101 # Default value for configure |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
102 [AC_MSG_RESULT([no]) |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
103 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
|
104 ) |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
105 |
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
106 |
16 | 107 AC_OUTPUT( \ |
108 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
|
109 debian/changelog \ |
82
b370d9e8aa10
Fix my mistake in debian packaging.
Carl Byington <carl@five-ten-sg.com>
parents:
80
diff
changeset
|
110 debian/Makefile \ |
16 | 111 libpst.spec \ |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
112 libpst.pc \ |
16 | 113 html/Makefile \ |
114 info/Makefile \ | |
115 man/Makefile \ | |
116 src/Makefile \ | |
21 | 117 src/version.h \ |
95
ff1743cbe4aa
initial attempt at building a shared library
Carl Byington <carl@five-ten-sg.com>
parents:
93
diff
changeset
|
118 src/pst2dii.cpp \ |
16 | 119 xml/Makefile \ |
120 xml/libpst \ | |
121 ) |