… | |
… | |
187 | AC_SUBST(INT_32_BIT) |
187 | AC_SUBST(INT_32_BIT) |
188 | |
188 | |
189 | dnl Checks for library functions. |
189 | dnl Checks for library functions. |
190 | AC_FUNC_VPRINTF |
190 | AC_FUNC_VPRINTF |
191 | AC_REPLACE_FUNCS(strdup) |
191 | AC_REPLACE_FUNCS(strdup) |
192 | AC_CHECK_FUNCS(getopt_long,,AC_LIBOBJ([getopt]);AC_LIBOBJ([getopt1])) |
192 | AC_CHECK_FUNC(getopt_long,getopt=yes,getopt=no) |
|
|
193 | if test $getopt = no; then |
|
|
194 | AC_LIBOBJ([getopt]) |
|
|
195 | AC_LIBOBJ([getopt1]) |
|
|
196 | fi |
193 | |
197 | |
194 | AC_ARG_ENABLE(dmalloc, |
198 | AC_ARG_ENABLE(dmalloc, |
195 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
199 | [ --enable-dmalloc Enable dmalloc for developers (default:off)], |
196 | [case "${enableval}" in |
200 | [case "${enableval}" in |
197 | yes) dmalloc=yes ;; |
201 | yes) dmalloc=yes ;; |
… | |
… | |
211 | LIB_DMALLOC= |
215 | LIB_DMALLOC= |
212 | fi |
216 | fi |
213 | AC_SUBST(LIB_DMALLOC) |
217 | AC_SUBST(LIB_DMALLOC) |
214 | |
218 | |
215 | dnl With and without functions |
219 | dnl With and without functions |
216 | AC_ARG_ENABLE(html-docs, |
220 | AC_ARG_ENABLE(xhtml-docs, |
217 | [ --disable-html-docs Disable generation of HTML 3.2 docs (default: on)], |
221 | [ --disable-xhtml-docs Disable generation of XHTML docs (default: on)], |
218 | [case "${enableval}" in |
222 | [case "${enableval}" in |
219 | yes) htmldocs=true ;; |
223 | yes) xhtmldocs=true ;; |
220 | no) htmldocs=false ;; |
224 | no) xhtmldocs=false ;; |
221 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-html-docs) ;; |
225 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-xhtml-docs) ;; |
222 | esac],[htmldocs=true]) |
226 | esac],[xhtmldocs=true]) |
223 | AM_CONDITIONAL(HTMLDOCS,test x$htmldocs = xtrue) |
227 | AM_CONDITIONAL(XHTMLDOCS,test x$xhtmldocs = xtrue) |
224 | |
228 | |
225 | AC_ARG_ENABLE(html4-docs, |
229 | AC_ARG_ENABLE(html4-docs, |
226 | [ --enable-html4-docs Enable generation of HTML 4 docs (default: off)], |
230 | [ --enable-html4-docs Enable generation of HTML 4 docs (default: off)], |
227 | [case "${enableval}" in |
231 | [case "${enableval}" in |
228 | yes) html4docs=true ;; |
232 | yes) html4docs=true ;; |
… | |
… | |
238 | no) asciidocs=false ;; |
242 | no) asciidocs=false ;; |
239 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
243 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
240 | esac],[asciidocs=false]) |
244 | esac],[asciidocs=false]) |
241 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
245 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
242 | |
246 | |
243 | AC_ARG_ENABLE(rtf-docs, |
|
|
244 | [ --enable-rtf-docs Enable generation of RTF docs (default: off)], |
|
|
245 | [case "${enableval}" in |
|
|
246 | yes) rtfdocs=true ;; |
|
|
247 | no) rtfdocs=false ;; |
|
|
248 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtf-docs) ;; |
|
|
249 | esac],[rtfdocs=false]) |
|
|
250 | AM_CONDITIONAL(RTFDOCS,test x$rtfdocs = xtrue) |
|
|
251 | |
|
|
252 | |
|
|
253 | AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile]) |
247 | AC_CONFIG_FILES([Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile]) |
254 | AC_OUTPUT |
248 | AC_OUTPUT |