comparison 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
comparison
equal deleted inserted replaced
113:f04499f1ef90 114:e213bfcf9aa7
1 AC_PREREQ(2.59) 1 AC_PREREQ(2.59)
2 AC_INIT(libpst,0.6.23,carl@five-ten-sg.com) 2 AC_INIT(libpst,0.6.24,carl@five-ten-sg.com)
3 AC_CONFIG_SRCDIR([config.h.in]) 3 AC_CONFIG_SRCDIR([config.h.in])
4 AC_CONFIG_HEADER([config.h]) 4 AC_CONFIG_HEADER([config.h])
5 5
6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) 6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
7 7
86 all_libraries="-L/usr/lib $all_libraries" 86 all_libraries="-L/usr/lib $all_libraries"
87 AC_SUBST(all_libraries) 87 AC_SUBST(all_libraries)
88 AC_MSG_WARN([This should be building on Mac OSX, adding /usr/lib to the library path]) 88 AC_MSG_WARN([This should be building on Mac OSX, adding /usr/lib to the library path])
89 fi 89 fi
90 90
91 AC_MSG_CHECKING([if iconv uses const arguments])
92 AC_LANG_PUSH([C++])
93 AC_COMPILE_IFELSE([
94 #include <iconv.h>
95 int main(int argc, char **argv)
96 {
97 size_t inlen = 100;
98 char buffer[[inlen]];
99 char *p = buffer;
100 size_t utf8_len = 2 * inlen + 1;
101 char utf8_buffer[[utf8_len]];
102 char *utf8_p = utf8_buffer;
103 iconv_t cd = 0;
104 iconv(cd, (const char**)&p, &inlen, &utf8_p, &utf8_len);
105 }
106 ],
107 [AC_DEFINE(ICONV_CONST,const,[do we have const headers])
108 AC_MSG_RESULT([yes])
109 ],
110 [AC_DEFINE(ICONV_CONST,,[do we have const headers])
111 AC_MSG_RESULT([no])
112 ])
113 AC_LANG_POP([C++])
114
115
91 # The following lines adds the --enable-pst-debug option to configure: 116 # The following lines adds the --enable-pst-debug option to configure:
92 # 117 #
93 # Give the user the choice to enter one of these: 118 # Give the user the choice to enter one of these:
94 # --enable-pst-debug 119 # --enable-pst-debug
95 # --enable-pst-debug=yes 120 # --enable-pst-debug=yes