1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_INIT(psiconv) |
2 | AC_INIT(psiconv) |
3 | AM_INIT_AUTOMAKE(psiconv,0.5.0) |
3 | AM_INIT_AUTOMAKE(psiconv,0.5.0a) |
4 | |
4 | |
5 | AM_CONFIG_HEADER(config.h) |
5 | AM_CONFIG_HEADER(config.h) |
6 | |
6 | |
7 | dnl Checks for programs. |
7 | dnl Checks for programs. |
8 | AM_PROG_LIBTOOL |
8 | AM_PROG_LIBTOOL |
… | |
… | |
111 | no) asciidocs=false ;; |
111 | no) asciidocs=false ;; |
112 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
112 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;; |
113 | esac],[asciidocs=false]) |
113 | esac],[asciidocs=false]) |
114 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
114 | AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue) |
115 | |
115 | |
|
|
116 | AC_ARG_ENABLE(rtf-docs, |
|
|
117 | [ --enable-rtf-docs Enable generation of RTF docs (default: off)], |
|
|
118 | [case "${enableval}" in |
|
|
119 | yes) rtfdocs=true ;; |
|
|
120 | no) rtfdocs=false ;; |
|
|
121 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtf-docs) ;; |
|
|
122 | esac],[rtfdocs=false]) |
|
|
123 | AM_CONDITIONAL(RTFDOCS,test x$rtfdocs = xtrue) |
|
|
124 | |
116 | AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile]) |
125 | AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile]) |