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.31 by root, Tue Aug 10 22:36:30 2004 UTC vs.
Revision 1.39 by root, Sun Sep 5 09:32:59 2004 UTC

91support_xpm=no 91support_xpm=no
92support_xft=no 92support_xft=no
93support_unicode3=no 93support_unicode3=no
94support_combining=no 94support_combining=no
95support_8bitctrls=no 95support_8bitctrls=no
96support_iso14755=no
97support_styles=no
96codesets= 98codesets=
97 99
98dnl# -------------------------------------------------------------------------- 100dnl# --------------------------------------------------------------------------
99dnl# CHECKING COMMAND LINE OPTIONS 101dnl# CHECKING COMMAND LINE OPTIONS
100dnl# -------------------------------------------------------------------------- 102dnl# --------------------------------------------------------------------------
135 support_xpm=yes 137 support_xpm=yes
136 support_xft=yes 138 support_xft=yes
137 support_unicode3=yes 139 support_unicode3=yes
138 support_combining=yes 140 support_combining=yes
139 #support_8bitctrls=yes 141 #support_8bitctrls=yes
142 support_iso14755=yes
143 support_styles=yes
140 codesets=all 144 codesets=all
141 fi]) 145 fi])
142 146
143AC_ARG_ENABLE(unicode3, 147AC_ARG_ENABLE(unicode3,
144 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 148 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
145 [if test x$enableval = xyes -o x$enableval = xno; then 149 [if test x$enableval = xyes -o x$enableval = xno; then
146 support_unicode3=yes 150 support_unicode3=$enableval
147 fi]) 151 fi])
148 152
149AC_ARG_ENABLE(combining, 153AC_ARG_ENABLE(combining,
150 [ --enable-combining enable composition of base and combining characters], 154 [ --enable-combining enable composition of base and combining characters],
151 [if test x$enableval = xyes -o x$enableval = xno; then 155 [if test x$enableval = xyes -o x$enableval = xno; then
152 support_combining=yes 156 support_combining=$enableval
153 fi]) 157 fi])
154 158
155AC_ARG_ENABLE(xft, 159AC_ARG_ENABLE(xft,
156 [ --enable-xft enable xft support on systems that have it], 160 [ --enable-xft enable xft support on systems that have it],
157 [if test x$enableval = xyes -o x$enableval = xno; then 161 [if test x$enableval = xyes -o x$enableval = xno; then
158 support_xft=yes 162 support_xft=$enableval
163 fi])
164
165AC_ARG_ENABLE(font-styles,
166 [ --enable-font-styles enable bold and italic support],
167 [if test x$enableval = xyes -o x$enableval = xno; then
168 support_styles=$enableval
159 fi]) 169 fi])
160 170
161AC_ARG_ENABLE(utmp, 171AC_ARG_ENABLE(utmp,
162 [ --enable-utmp enable utmp (utmpx) support], 172 [ --enable-utmp enable utmp (utmpx) support],
163 [if test x$enableval = xyes -o x$enableval = xno; then 173 [if test x$enableval = xyes -o x$enableval = xno; then
277 fi]) 287 fi])
278 288
279AC_ARG_ENABLE(8bitctrls, 289AC_ARG_ENABLE(8bitctrls,
280 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 290 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
281 [if test x$enableval = xyes -o x$enableval = xno; then 291 [if test x$enableval = xyes -o x$enableval = xno; then
282 support_8bitctrls=yes 292 support_8bitctrls=$enableval
283 fi]) 293 fi])
284 294
285RESFALLBACK=Rxvt 295RESFALLBACK=Rxvt
286AC_ARG_ENABLE(fallback, 296AC_ARG_ENABLE(fallback,
287 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], 297 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
309 319
310RXVTNAME=urxvt 320RXVTNAME=urxvt
311AC_ARG_WITH(name, 321AC_ARG_WITH(name,
312 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], 322 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
313 [RXVTNAME="$withval"]) 323 [RXVTNAME="$withval"])
324AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
314 325
315RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 326RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
316AC_SUBST(RXVTNAME) 327AC_SUBST(RXVTNAME)
317 328
318AC_ARG_ENABLE(strings, 329AC_ARG_ENABLE(strings,
323 334
324AC_ARG_ENABLE(swapscreen, 335AC_ARG_ENABLE(swapscreen,
325 [ --disable-swapscreen disable swap screen support], 336 [ --disable-swapscreen disable swap screen support],
326 [if test x$enableval = xno; then 337 [if test x$enableval = xno; then
327 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) 338 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace)
339 fi])
340
341AC_ARG_ENABLE(iso14755,
342 [ --enable-iso14755 enable support for extended ISO 14755 modes],
343 [if test x$enableval = xyes -o x$enableval = xno; then
344 support_iso14755=$enableval
328 fi]) 345 fi])
329 346
330AC_ARG_ENABLE(frills, 347AC_ARG_ENABLE(frills,
331 [ --enable-frills enable support for rarely used features], 348 [ --enable-frills enable support for rarely used features],
332 [if test x$enableval = xyes -o x$enableval = xno; then 349 [if test x$enableval = xyes -o x$enableval = xno; then
390 407
391AC_ARG_ENABLE(smart-resize, 408AC_ARG_ENABLE(smart-resize,
392 [ --enable-smart-resize enable smart growth/shrink behaviour], 409 [ --enable-smart-resize enable smart growth/shrink behaviour],
393 [if test x$enableval = xyes; then 410 [if test x$enableval = xyes; then
394 AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) 411 AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior)
395 fi])
396
397AC_ARG_ENABLE(256-color,
398 [ --enable-256-color enable 256-color support],
399 [if test x$enableval = xyes; then
400 AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support)
401 fi]) 412 fi])
402 413
403AC_ARG_ENABLE(cursor-blink, 414AC_ARG_ENABLE(cursor-blink,
404 [ --enable-cursor-blink enable blinking cursor], 415 [ --enable-cursor-blink enable blinking cursor],
405 [if test x$enableval = xyes -o x$enableval = xno; then 416 [if test x$enableval = xyes -o x$enableval = xno; then
455AC_PATH_PROG(LN, ln, ln) 466AC_PATH_PROG(LN, ln, ln)
456AC_PATH_PROG(SED, sed, sed) 467AC_PATH_PROG(SED, sed, sed)
457AC_PATH_PROG(ECHO, echo, echo) 468AC_PATH_PROG(ECHO, echo, echo)
458AC_PATH_PROG(CMP, cmp, cmp) 469AC_PATH_PROG(CMP, cmp, cmp)
459AC_PATH_PROG(TBL, tbl) 470AC_PATH_PROG(TBL, tbl)
471AC_PATH_PROG(TIC, tic)
460 472
461dnl# need a neat way to detect SVR4 or its features 473dnl# need a neat way to detect SVR4 or its features
462dnl# in src/command.c we use these functions: 474dnl# in src/command.c we use these functions:
463dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 475dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
464dnl# - but are these also defined for other systems? 476dnl# - but are these also defined for other systems?
501 sys/byteorder.h \ 513 sys/byteorder.h \
502 sys/ioctl.h \ 514 sys/ioctl.h \
503 sys/select.h \ 515 sys/select.h \
504 sys/sockio.h \ 516 sys/sockio.h \
505 sys/strredir.h \ 517 sys/strredir.h \
518 sys/stropts.h \
506 sys/time.h \ 519 sys/time.h \
507 utmp.h \ 520 utmp.h \
508 utmpx.h \ 521 utmpx.h \
509 stdint.h \ 522 stdint.h \
510) 523)
581AC_TYPE_MODE_T 594AC_TYPE_MODE_T
582dnl> AC_CHECK_TYPE(umode_t, int) 595dnl> AC_CHECK_TYPE(umode_t, int)
583dnl> AC_CHECK_TYPE(off_t, long) 596dnl> AC_CHECK_TYPE(off_t, long)
584AC_TYPE_PID_T 597AC_TYPE_PID_T
585AC_TYPE_UID_T 598AC_TYPE_UID_T
586
587 599
588AC_CHECK_SIZEOF(char, 1) 600AC_CHECK_SIZEOF(char, 1)
589AC_CHECK_SIZEOF(short, 2) 601AC_CHECK_SIZEOF(short, 2)
590AC_CHECK_SIZEOF(int, 4) 602AC_CHECK_SIZEOF(int, 4)
591AC_CHECK_SIZEOF(long, 4) 603AC_CHECK_SIZEOF(long, 4)
1170fi 1182fi
1171 1183
1172dnl# -------------------------------------------------------------------------- 1184dnl# --------------------------------------------------------------------------
1173dnl# now add and remove other stuff 1185dnl# now add and remove other stuff
1174dnl# -------------------------------------------------------------------------- 1186dnl# --------------------------------------------------------------------------
1187if test x$support_xft = xyes; then
1188 LIBS="$LIBS `pkg-config xft --libs`"
1189 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1190 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1191
1192 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1193 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1194
1195 if test x$support_xft = xyes; then
1196 AC_DEFINE(XFT, 1, Define to enable xft support)
1197 fi
1198fi
1199if test x$support_styles = xyes; then
1200 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
1201fi
1202if test x$support_iso14755 = xyes; then
1203 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)
1204fi
1175if test x$support_8bitctrls = xyes; then 1205if test x$support_8bitctrls = xyes; then
1176 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) 1206 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
1177fi 1207fi
1178if test x$support_fading = xyes; then 1208if test x$support_fading = xyes; then
1179 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) 1209 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
1191 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) 1221 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen)
1192fi 1222fi
1193if test x$support_menubar = xyes; then 1223if test x$support_menubar = xyes; then
1194 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1224 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1195fi 1225fi
1196if test x$support_frills = xno; then 1226if test x$support_frills = xyes; then
1197 AC_DEFINE(NO_FRILLS, 1, Define if you don't want handling for rarely used features) 1227 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1198fi 1228fi
1199if test x$support_linespace = xno; then 1229if test x$support_linespace = xno; then
1200 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace) 1230 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1201fi 1231fi
1202if test x$support_24bit = xyes; then 1232if test x$support_24bit = xyes; then
1255fi 1285fi
1256if test x$support_combining = xyes; then 1286if test x$support_combining = xyes; then
1257 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) 1287 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
1258fi 1288fi
1259if test x$codesets = xall; then 1289if test x$codesets = xall; then
1260 codesets=jp,jp-ext,kr,cn,cn-ext 1290 codesets=jp,jp-ext,kr,zh,zh-ext
1261fi 1291fi
1292AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1293AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1262for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1294for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1263 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1264 AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1265 case "$codeset" in 1295 case "$codeset" in
1266 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1296 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1267 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1297 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1268 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1298 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1269 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1299 ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
1270 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1300 ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
1271 esac 1301 esac
1272done 1302done
1273 1303
1274dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) 1304dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket)
1275 1305
1329RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) 1359RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch)
1330RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1360RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1331RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1361RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1332RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1362RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1333RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1363RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1334
1335if test x$support_xft = xyes; then
1336 LIBS="$LIBS `pkg-config xft --libs`"
1337 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1338 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1339
1340 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1341 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1342
1343 if test x$support_xft = xyes; then
1344 AC_DEFINE(XFT, 1, Define to enable xft support)
1345 fi
1346fi
1347 1364
1348AC_CONFIG_FILES([autoconf/Make.common \ 1365AC_CONFIG_FILES([autoconf/Make.common \
1349Makefile \ 1366Makefile \
1350doc/Makefile \ 1367doc/Makefile \
1351src/Makefile \ 1368src/Makefile \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines