/[public]/psiconv/trunk/configure.in
ViewVC logotype

Contents of /psiconv/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15 - (show annotations)
Wed Oct 13 15:02:21 1999 UTC (25 years ago) by frodo
File size: 3483 byte(s)
(Frodo) Latest parse_paint_section changes

It still is not perfect, but it is certainly coming along

1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(psiconv)
3 AM_INIT_AUTOMAKE(psiconv,0.5.0a)
4
5 AM_CONFIG_HEADER(config.h)
6
7 dnl Checks for programs.
8 AM_PROG_LIBTOOL
9
10 dnl Checks for libraries.
11
12 dnl Checks for header files.
13 AC_HEADER_STDC
14 AC_CHECK_HEADERS(unistd.h)
15
16 dnl Checks for typedefs, structures, and compiler characteristics.
17 AC_C_CONST
18 AC_TYPE_SIZE_T
19
20 dnl Here we check for large enough integer types. This is not quite
21 dnl good enough, but it should work almost always.
22
23 AC_CHECK_SIZEOF(char,1)
24 AC_CHECK_SIZEOF(short,1)
25 AC_CHECK_SIZEOF(int,2)
26 AC_CHECK_SIZEOF(long,4)
27
28 AC_MSG_CHECKING(for an 8 bit integer type)
29 if test $ac_cv_sizeof_char -ge 1 ; then
30 INT_8_BIT=char
31 AC_MSG_RESULT(char)
32 elif test $ac_cv_sizeof_short -ge 1 ; then
33 INT_8_BIT=short
34 AC_MSG_RESULT(short)
35 elif test $ac_cv_sizeof_int -ge 1 ; then
36 INT_8_BIT=int
37 AC_MSG_RESULT(int)
38 elif test $ac_cv_sizeof_long -ge 1 ; then
39 INT_8_BIT=long
40 AC_MSG_RESULT(long)
41 else
42 AC_MSG_ERROR(No integer type of at least 8 bits found)
43 fi
44
45 AC_MSG_CHECKING(for a 16 bit integer type)
46 if test $ac_cv_sizeof_char -ge 2 ; then
47 INT_16_BIT=char
48 AC_MSG_RESULT(char)
49 elif test $ac_cv_sizeof_short -ge 2 ; then
50 INT_16_BIT=short
51 AC_MSG_RESULT(short)
52 elif test $ac_cv_sizeof_int -ge 2 ; then
53 INT_16_BIT=int
54 AC_MSG_RESULT(int)
55 elif test $ac_cv_sizeof_long -ge 2 ; then
56 INT_16_BIT=long
57 AC_MSG_RESULT(long)
58 else
59 AC_MSG_ERROR(No integer type of at least 16 bits found)
60 fi
61
62 AC_MSG_CHECKING(for a 32 bit integer type)
63 if test $ac_cv_sizeof_char -ge 4 ; then
64 INT_32_BIT=char
65 AC_MSG_RESULT(char)
66 elif test $ac_cv_sizeof_short -ge 4 ; then
67 INT_32_BIT=short
68 AC_MSG_RESULT(short)
69 elif test $ac_cv_sizeof_int -ge 4 ; then
70 INT_32_BIT=int
71 AC_MSG_RESULT(int)
72 elif test $ac_cv_sizeof_long -ge 4 ; then
73 INT_32_BIT=long
74 AC_MSG_RESULT(long)
75 else
76 AC_MSG_ERROR(No integer type of at least 32 bits found)
77 fi
78
79 AC_SUBST(INT_8_BIT)
80 AC_SUBST(INT_16_BIT)
81 AC_SUBST(INT_32_BIT)
82
83 dnl Checks for library functions.
84 AC_FUNC_VPRINTF
85 AC_CHECK_FUNCS(strdup)
86 AC_REPLACE_FUNCS(strdup)
87
88 dnl With and without functions
89 AC_ARG_ENABLE(html-docs,
90 [ --disable-html-docs Disable generation of HTML 3.2 docs (default: on)],
91 [case "${enableval}" in
92 yes) htmldocs=true ;;
93 no) htmldocs=false ;;
94 *) AC_MSG_ERROR(bad value ${enableval} for --enable-html-docs) ;;
95 esac],[htmldocs=true])
96 AM_CONDITIONAL(HTMLDOCS,test x$htmldocs = xtrue)
97
98 AC_ARG_ENABLE(html4-docs,
99 [ --enable-html4-docs Enable generation of HTML 4 docs (default: off)],
100 [case "${enableval}" in
101 yes) html4docs=true ;;
102 no) html4docs=false ;;
103 *) AC_MSG_ERROR(bad value ${enableval} for --enable-html4-docs) ;;
104 esac],[html4docs=false])
105 AM_CONDITIONAL(HTML4DOCS,test x$html4docs = xtrue)
106
107 AC_ARG_ENABLE(ascii-docs,
108 [ --enable-ascii-docs Enable generation of ASCII docs (default: off)],
109 [case "${enableval}" in
110 yes) asciidocs=true ;;
111 no) asciidocs=false ;;
112 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ascii-docs) ;;
113 esac],[asciidocs=false])
114 AM_CONDITIONAL(ASCIIDOCS,test x$asciidocs = xtrue)
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
125 AC_OUTPUT([Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile])

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26