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.32 by root, Fri Aug 13 03:36:56 2004 UTC vs.
Revision 1.43 by root, Mon Jan 3 12:00:50 2005 UTC

4dnl# 4dnl#
5AC_INIT 5AC_INIT
6AC_CONFIG_SRCDIR([src/feature.h]) 6AC_CONFIG_SRCDIR([src/feature.h])
7AC_CONFIG_AUX_DIR(autoconf) 7AC_CONFIG_AUX_DIR(autoconf)
8AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 8AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
9
10AC_CANONICAL_HOST
9 11
10dnl RXVT version 12dnl RXVT version
11changequote(, )dnl 13changequote(, )dnl
12VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
13DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
40 LIBS="$LIBS -lsupc++" 42 LIBS="$LIBS -lsupc++"
41 ]) 43 ])
42fi 44fi
43AC_SUBST(LINKER,[$LINKER]) 45AC_SUBST(LINKER,[$LINKER])
44 46
45CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" 47AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.)
48
49case $host in
50 *-*-solaris* )
51 AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
52 AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris)
53 AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
54 ;;
55esac
46 56
47dnl if test x$GXX = xyes; then 57dnl if test x$GXX = xyes; then
48dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... 58dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...
49dnl fi 59dnl fi
50 60
91support_xpm=no 101support_xpm=no
92support_xft=no 102support_xft=no
93support_unicode3=no 103support_unicode3=no
94support_combining=no 104support_combining=no
95support_8bitctrls=no 105support_8bitctrls=no
106support_iso14755=no
107support_styles=no
96codesets= 108codesets=
97 109
98dnl# -------------------------------------------------------------------------- 110dnl# --------------------------------------------------------------------------
99dnl# CHECKING COMMAND LINE OPTIONS 111dnl# CHECKING COMMAND LINE OPTIONS
100dnl# -------------------------------------------------------------------------- 112dnl# --------------------------------------------------------------------------
135 support_xpm=yes 147 support_xpm=yes
136 support_xft=yes 148 support_xft=yes
137 support_unicode3=yes 149 support_unicode3=yes
138 support_combining=yes 150 support_combining=yes
139 #support_8bitctrls=yes 151 #support_8bitctrls=yes
152 support_iso14755=yes
153 support_styles=yes
140 codesets=all 154 codesets=all
141 fi]) 155 fi])
142 156
143AC_ARG_ENABLE(unicode3, 157AC_ARG_ENABLE(unicode3,
144 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 158 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
145 [if test x$enableval = xyes -o x$enableval = xno; then 159 [if test x$enableval = xyes -o x$enableval = xno; then
146 support_unicode3=yes 160 support_unicode3=$enableval
147 fi]) 161 fi])
148 162
149AC_ARG_ENABLE(combining, 163AC_ARG_ENABLE(combining,
150 [ --enable-combining enable composition of base and combining characters], 164 [ --enable-combining enable composition of base and combining characters],
151 [if test x$enableval = xyes -o x$enableval = xno; then 165 [if test x$enableval = xyes -o x$enableval = xno; then
152 support_combining=yes 166 support_combining=$enableval
153 fi]) 167 fi])
154 168
155AC_ARG_ENABLE(xft, 169AC_ARG_ENABLE(xft,
156 [ --enable-xft enable xft support on systems that have it], 170 [ --enable-xft enable xft support on systems that have it],
157 [if test x$enableval = xyes -o x$enableval = xno; then 171 [if test x$enableval = xyes -o x$enableval = xno; then
158 support_xft=yes 172 support_xft=$enableval
173 fi])
174
175AC_ARG_ENABLE(font-styles,
176 [ --enable-font-styles enable bold and italic support],
177 [if test x$enableval = xyes -o x$enableval = xno; then
178 support_styles=$enableval
159 fi]) 179 fi])
160 180
161AC_ARG_ENABLE(utmp, 181AC_ARG_ENABLE(utmp,
162 [ --enable-utmp enable utmp (utmpx) support], 182 [ --enable-utmp enable utmp (utmpx) support],
163 [if test x$enableval = xyes -o x$enableval = xno; then 183 [if test x$enableval = xyes -o x$enableval = xno; then
235 [if test x$enableval = xyes; then 255 [if test x$enableval = xyes; then
236 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 256 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
237 fi]) 257 fi])
238 258
239AC_ARG_WITH(codesets, 259AC_ARG_WITH(codesets,
240 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], 260 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
241 [codesets="$withval"]) 261 [codesets="$withval"])
242 262
243AC_ARG_ENABLE(xim, 263AC_ARG_ENABLE(xim,
244 [ --enable-xim XIM (X Input Method) protocol support], 264 [ --enable-xim XIM (X Input Method) protocol support],
245 [if test x$enableval = xyes -o x$enableval = xno; then 265 [if test x$enableval = xyes -o x$enableval = xno; then
277 fi]) 297 fi])
278 298
279AC_ARG_ENABLE(8bitctrls, 299AC_ARG_ENABLE(8bitctrls,
280 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 300 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
281 [if test x$enableval = xyes -o x$enableval = xno; then 301 [if test x$enableval = xyes -o x$enableval = xno; then
282 support_8bitctrls=yes 302 support_8bitctrls=$enableval
283 fi]) 303 fi])
284 304
285RESFALLBACK=Rxvt 305RESFALLBACK=Rxvt
286AC_ARG_ENABLE(fallback, 306AC_ARG_ENABLE(fallback,
287 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], 307 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
309 329
310RXVTNAME=urxvt 330RXVTNAME=urxvt
311AC_ARG_WITH(name, 331AC_ARG_WITH(name,
312 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], 332 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
313 [RXVTNAME="$withval"]) 333 [RXVTNAME="$withval"])
334AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
314 335
315RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 336RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
316AC_SUBST(RXVTNAME) 337AC_SUBST(RXVTNAME)
317 338
318AC_ARG_ENABLE(strings, 339AC_ARG_ENABLE(strings,
323 344
324AC_ARG_ENABLE(swapscreen, 345AC_ARG_ENABLE(swapscreen,
325 [ --disable-swapscreen disable swap screen support], 346 [ --disable-swapscreen disable swap screen support],
326 [if test x$enableval = xno; then 347 [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) 348 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace)
349 fi])
350
351AC_ARG_ENABLE(iso14755,
352 [ --enable-iso14755 enable support for extended ISO 14755 modes],
353 [if test x$enableval = xyes -o x$enableval = xno; then
354 support_iso14755=$enableval
328 fi]) 355 fi])
329 356
330AC_ARG_ENABLE(frills, 357AC_ARG_ENABLE(frills,
331 [ --enable-frills enable support for rarely used features], 358 [ --enable-frills enable support for rarely used features],
332 [if test x$enableval = xyes -o x$enableval = xno; then 359 [if test x$enableval = xyes -o x$enableval = xno; then
390 417
391AC_ARG_ENABLE(smart-resize, 418AC_ARG_ENABLE(smart-resize,
392 [ --enable-smart-resize enable smart growth/shrink behaviour], 419 [ --enable-smart-resize enable smart growth/shrink behaviour],
393 [if test x$enableval = xyes; then 420 [if test x$enableval = xyes; then
394 AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) 421 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]) 422 fi])
402 423
403AC_ARG_ENABLE(cursor-blink, 424AC_ARG_ENABLE(cursor-blink,
404 [ --enable-cursor-blink enable blinking cursor], 425 [ --enable-cursor-blink enable blinking cursor],
405 [if test x$enableval = xyes -o x$enableval = xno; then 426 [if test x$enableval = xyes -o x$enableval = xno; then
455AC_PATH_PROG(LN, ln, ln) 476AC_PATH_PROG(LN, ln, ln)
456AC_PATH_PROG(SED, sed, sed) 477AC_PATH_PROG(SED, sed, sed)
457AC_PATH_PROG(ECHO, echo, echo) 478AC_PATH_PROG(ECHO, echo, echo)
458AC_PATH_PROG(CMP, cmp, cmp) 479AC_PATH_PROG(CMP, cmp, cmp)
459AC_PATH_PROG(TBL, tbl) 480AC_PATH_PROG(TBL, tbl)
481AC_PATH_PROG(TIC, tic)
460 482
461dnl# need a neat way to detect SVR4 or its features 483dnl# need a neat way to detect SVR4 or its features
462dnl# in src/command.c we use these functions: 484dnl# in src/command.c we use these functions:
463dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 485dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
464dnl# - but are these also defined for other systems? 486dnl# - but are these also defined for other systems?
583dnl> AC_CHECK_TYPE(umode_t, int) 605dnl> AC_CHECK_TYPE(umode_t, int)
584dnl> AC_CHECK_TYPE(off_t, long) 606dnl> AC_CHECK_TYPE(off_t, long)
585AC_TYPE_PID_T 607AC_TYPE_PID_T
586AC_TYPE_UID_T 608AC_TYPE_UID_T
587 609
588
589AC_CHECK_SIZEOF(char, 1)
590AC_CHECK_SIZEOF(short, 2) 610AC_CHECK_SIZEOF(short, 2)
591AC_CHECK_SIZEOF(int, 4) 611AC_CHECK_SIZEOF(int, 4)
592AC_CHECK_SIZEOF(long, 4) 612dnl AC_CHECK_SIZEOF(long, 4)
593AC_CHECK_SIZEOF(long long, 8) 613AC_CHECK_SIZEOF(long long, 8)
594AC_CHECK_SIZEOF(int *, 4) 614AC_CHECK_SIZEOF(int *, 4)
595 615
596dnl# see usage below 616dnl# see usage below
597AC_DEFUN(RXVT_CHECK_SIZE, 617AC_DEFUN(RXVT_CHECK_SIZE,
1171fi 1191fi
1172 1192
1173dnl# -------------------------------------------------------------------------- 1193dnl# --------------------------------------------------------------------------
1174dnl# now add and remove other stuff 1194dnl# now add and remove other stuff
1175dnl# -------------------------------------------------------------------------- 1195dnl# --------------------------------------------------------------------------
1196if test x$support_xft = xyes; then
1197 LIBS="$LIBS `pkg-config xft --libs`"
1198 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1199 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1200
1201 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1202 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1203
1204 if test x$support_xft = xyes; then
1205 AC_DEFINE(XFT, 1, Define to enable xft support)
1206 fi
1207fi
1208if test x$support_styles = xyes; then
1209 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
1210fi
1211if test x$support_iso14755 = xyes; then
1212 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)
1213fi
1176if test x$support_8bitctrls = xyes; then 1214if test x$support_8bitctrls = xyes; then
1177 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) 1215 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
1178fi 1216fi
1179if test x$support_fading = xyes; then 1217if test x$support_fading = xyes; then
1180 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) 1218 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
1192 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) 1230 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen)
1193fi 1231fi
1194if test x$support_menubar = xyes; then 1232if test x$support_menubar = xyes; then
1195 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1233 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1196fi 1234fi
1197if test x$support_frills = xno; then 1235if test x$support_frills = xyes; then
1198 AC_DEFINE(NO_FRILLS, 1, Define if you don't want handling for rarely used features) 1236 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1199fi 1237fi
1200if test x$support_linespace = xno; then 1238if test x$support_linespace = xno; then
1201 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace) 1239 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1202fi 1240fi
1203if test x$support_24bit = xyes; then 1241if test x$support_24bit = xyes; then
1256fi 1294fi
1257if test x$support_combining = xyes; then 1295if test x$support_combining = xyes; then
1258 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) 1296 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
1259fi 1297fi
1260if test x$codesets = xall; then 1298if test x$codesets = xall; then
1261 codesets=jp,jp-ext,kr,cn,cn-ext 1299 codesets=jp,jp-ext,kr,zh,zh-ext
1262fi 1300fi
1263AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1301AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1264AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) 1302AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1265for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1303for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1266 case "$codeset" in 1304 case "$codeset" in
1267 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1305 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1268 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1306 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1269 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1307 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1270 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1308 ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
1271 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1309 ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
1272 esac 1310 esac
1273done 1311done
1274 1312
1275dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) 1313dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket)
1276 1314
1330RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) 1368RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch)
1331RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1369RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1332RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1370RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1333RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1371RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1334RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1372RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1335
1336if test x$support_xft = xyes; then
1337 LIBS="$LIBS `pkg-config xft --libs`"
1338 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1339 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1340
1341 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1342 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1343
1344 if test x$support_xft = xyes; then
1345 AC_DEFINE(XFT, 1, Define to enable xft support)
1346 fi
1347fi
1348 1373
1349AC_CONFIG_FILES([autoconf/Make.common \ 1374AC_CONFIG_FILES([autoconf/Make.common \
1350Makefile \ 1375Makefile \
1351doc/Makefile \ 1376doc/Makefile \
1352src/Makefile \ 1377src/Makefile \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines