ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/autoconf/configure.in
(Generate patch)

Comparing rxvt-unicode/autoconf/configure.in (file contents):
Revision 1.14 by pcg, Wed Feb 25 12:03:47 2004 UTC vs.
Revision 1.17 by pcg, Wed Mar 3 04:07:52 2004 UTC

27AC_PROG_CC 27AC_PROG_CC
28AC_PROG_CXX 28AC_PROG_CXX
29AC_PROG_CPP 29AC_PROG_CPP
30AC_PROG_INSTALL 30AC_PROG_INSTALL
31AC_PROG_AWK 31AC_PROG_AWK
32
33AC_LANG(C)
34
35LINKER="$CXX"
36if test x$GCC = xyes && test x$GXX = xyes; then
37 AC_CHECK_LIB(supc++, main, [
38 LINKER="$CC"
39 LIBS="$LIBS -lsupc++"
40 ])
41fi
42AC_SUBST(LINKER,[$LINKER])
43
44CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
45
46if test x$GXX = xyes; then
47 CXXFLAGS="$CXXFLAGS -fno-exceptions"
48fi
49
50AC_LANG(C++)
32 51
33dnl# system hacks 52dnl# system hacks
34AC_AIX 53AC_AIX
35AC_ISC_POSIX 54AC_ISC_POSIX
36 55
74 INSTALL_LIBRXVT=yes 93 INSTALL_LIBRXVT=yes
75fi 94fi
76AC_SUBST(INSTALL_LIBRXVT) 95AC_SUBST(INSTALL_LIBRXVT)
77 96
78AC_ARG_ENABLE(everything, 97AC_ARG_ENABLE(everything,
79 [ --enable-everything enable standard non-multichoice features: marked * 98 [ --enable-everything enable standard non-multichoice features
80 NOTE: this option is order dependent 99 NOTE: this option is order dependent
81 NOTE: automatically enabled with --enable-shared], 100 NOTE: automatically enabled with --enable-shared],
82 [if test x$enableval = xyes; then 101 [if test x$enableval = xyes; then
83 support_24bit=yes 102 support_24bit=yes
84 support_frills=yes 103 support_frills=yes
107 codesets=all 126 codesets=all
108 fi]) 127 fi])
109 128
110AC_ARG_ENABLE(unicode3, 129AC_ARG_ENABLE(unicode3,
111 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 130 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
112 [if test x$enableval = xyes; then 131 [if test x$enableval = xyes -o x$enableval = xno; then
113 support_unicode3=yes 132 support_unicode3=yes
114 fi]) 133 fi])
115 134
116AC_ARG_ENABLE(xft, 135AC_ARG_ENABLE(xft,
117 [ --enable-xft enable xft support on systems that have it], 136 [ --enable-xft enable xft support on systems that have it],
118 [if test x$enableval = xyes; then 137 [if test x$enableval = xyes -o x$enableval = xno; then
119 support_xft=yes 138 support_xft=yes
120 fi])
121
122AC_ARG_WITH(codesets,
123 [ --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)],
124 [if test x$enableval = xyes; then
125 codesets="$withval"
126 fi])
127
128AC_ARG_WITH(encoding,
129 [ --with-encoding=NAME set language default encoding to NAME (default: sjis)
130 (eucj|sjis|big5|gb|kr|noenc)],
131 [if test x$enableval = xyes; then
132 withval=`echo $withval | tr '[a-z]' '[A-Z]'`
133 AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding)
134 fi]) 139 fi])
135 140
136AC_ARG_ENABLE(utmp, 141AC_ARG_ENABLE(utmp,
137 [ --enable-utmp enable utmp (utmpx) support], 142 [ --enable-utmp enable utmp (utmpx) support],
138 [if test x$enableval = xyes -o x$enableval = xno; then 143 [if test x$enableval = xyes -o x$enableval = xno; then
197 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], 202 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
198 [if test x$enableval = xyes; then 203 [if test x$enableval = xyes; then
199 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 204 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
200 fi]) 205 fi])
201 206
207AC_ARG_WITH(codesets,
208 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)],
209 [codesets="$withval"])
210
202AC_ARG_ENABLE(xim, 211AC_ARG_ENABLE(xim,
203 [ --enable-xim XIM (X Input Method) protocol support], 212 [ --enable-xim XIM (X Input Method) protocol support],
204 [if test x$enableval = xyes -o x$enableval = xno; then 213 [if test x$enableval = xyes -o x$enableval = xno; then
205 support_xim=$enableval 214 support_xim=$enableval
206 fi]) 215 fi])
232AC_ARG_ENABLE(xgetdefault, 241AC_ARG_ENABLE(xgetdefault,
233 [ --enable-xgetdefault enable resources via X instead of our small version], 242 [ --enable-xgetdefault enable resources via X instead of our small version],
234 [if test x$enableval = xyes; then 243 [if test x$enableval = xyes; then
235 AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) 244 AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version)
236 fi]) 245 fi])
246
247RESFALLBACK=Rxvt
248AC_ARG_ENABLE(fallback,
249 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
250 [
251 test x$enableval = xyes && enableval=Rxvt
252 test x$enableval = xno && enableval=
253 RESFALLBACK="$enableval"
254 ])
255
256if test x$RESFALLBACK != x; then
257 AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class])
258fi
259
260RESNAME=urxvt
261AC_ARG_WITH(res-name,
262 [ --with-res-name=NAME use this as default resource name (default: urxvt)],
263 [RESNAME="$withval"])
264AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name])
265
266RESCLASS=URxvt
267AC_ARG_WITH(res-class,
268 [ --with-res-class=CLASS use this as the resource class (default: URxvt)],
269 [RESCLASS="$withval"])
270AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class])
271
272RXVTNAME=urxvt
273AC_ARG_WITH(name,
274 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
275 [RXVTNAME="$withval"])
276
277RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
278AC_SUBST(RXVTNAME)
237 279
238AC_ARG_ENABLE(strings, 280AC_ARG_ENABLE(strings,
239 [ --enable-strings enable some replacement system functions], 281 [ --enable-strings enable some replacement system functions],
240 [if test x$enableval = xyes -o x$enableval = xno; then 282 [if test x$enableval = xyes -o x$enableval = xno; then
241 support_addstrings=$enableval 283 support_addstrings=$enableval
349 [if test x$enableval = xyes -o x$enableval = xno; then 391 [if test x$enableval = xyes -o x$enableval = xno; then
350 support_pointer_blank=$enableval 392 support_pointer_blank=$enableval
351 fi]) 393 fi])
352 394
353AC_ARG_WITH(term, 395AC_ARG_WITH(term,
354 [ --with-term=NAME set the terminal to NAME (default \"rxvt\")], 396 [ --with-term=NAME set the terminal to NAME (default: rxvt)],
355 [if test x$withval != x; then 397 [if test x$withval != x; then
356 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" 398 AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval"
357 fi]) 399 fi])
358 400
359AC_ARG_WITH(terminfo, 401AC_ARG_WITH(terminfo,
1194if test x$codesets = xall; then 1236if test x$codesets = xall; then
1195 codesets=jp,jp-ext,kr,cn,cn-ext,vn 1237 codesets=jp,jp-ext,kr,cn,cn-ext,vn
1196fi 1238fi
1197for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1239for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1198 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1240 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1241 AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1199 case "$codeset" in 1242 case "$codeset" in
1200 VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;;
1201 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1243 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1202 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1244 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1203 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1245 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1204 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1246 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;;
1205 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1247 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;;
1239dnl# common parts of the Makefile 1281dnl# common parts of the Makefile
1240MCOMMON=./autoconf/Make.common 1282MCOMMON=./autoconf/Make.common
1241AC_SUBST_FILE(MCOMMON) 1283AC_SUBST_FILE(MCOMMON)
1242 1284
1243AC_ARG_PROGRAM 1285AC_ARG_PROGRAM
1244
1245RXVTNAME=`echo rxvt|sed "$program_transform_name"`
1246AC_SUBST(RXVTNAME)
1247 1286
1248dnl# test for "sun" or "__sun__" before include sys_ioctl 1287dnl# test for "sun" or "__sun__" before include sys_ioctl
1249 1288
1250dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1289dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1251AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl 1290AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl
1295echo "Configuration: 1334echo "Configuration:
1296 1335
1297 Rxvt version: $VERSION : $DATE 1336 Rxvt version: $VERSION : $DATE
1298 Source code location: $srcdir 1337 Source code location: $srcdir
1299 Install path: ${prefix}/bin 1338 Install path: ${prefix}/bin
1300 Compiler: $CC 1339 Compiler: $CXX
1301 Compiler flags: $CFLAGS" 1340 Compiler flags: $CFLAGS
1341 Linker: $LINKER"
1302 1342
1303if test "$MALLOC_TYPE" = S; then 1343if test "$MALLOC_TYPE" = S; then
1304 echo " malloc support: system default" 1344 echo " malloc support: system default"
1305fi 1345fi
1306if test "$MALLOC_TYPE" = G; then 1346if test "$MALLOC_TYPE" = G; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines