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.34 by root, Tue Aug 17 08:47: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
92support_xft=no 102support_xft=no
93support_unicode3=no 103support_unicode3=no
94support_combining=no 104support_combining=no
95support_8bitctrls=no 105support_8bitctrls=no
96support_iso14755=no 106support_iso14755=no
107support_styles=no
97codesets= 108codesets=
98 109
99dnl# -------------------------------------------------------------------------- 110dnl# --------------------------------------------------------------------------
100dnl# CHECKING COMMAND LINE OPTIONS 111dnl# CHECKING COMMAND LINE OPTIONS
101dnl# -------------------------------------------------------------------------- 112dnl# --------------------------------------------------------------------------
137 support_xft=yes 148 support_xft=yes
138 support_unicode3=yes 149 support_unicode3=yes
139 support_combining=yes 150 support_combining=yes
140 #support_8bitctrls=yes 151 #support_8bitctrls=yes
141 support_iso14755=yes 152 support_iso14755=yes
153 support_styles=yes
142 codesets=all 154 codesets=all
143 fi]) 155 fi])
144 156
145AC_ARG_ENABLE(unicode3, 157AC_ARG_ENABLE(unicode3,
146 [ --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],
147 [if test x$enableval = xyes -o x$enableval = xno; then 159 [if test x$enableval = xyes -o x$enableval = xno; then
148 support_unicode3=yes 160 support_unicode3=$enableval
149 fi]) 161 fi])
150 162
151AC_ARG_ENABLE(combining, 163AC_ARG_ENABLE(combining,
152 [ --enable-combining enable composition of base and combining characters], 164 [ --enable-combining enable composition of base and combining characters],
153 [if test x$enableval = xyes -o x$enableval = xno; then 165 [if test x$enableval = xyes -o x$enableval = xno; then
154 support_combining=yes 166 support_combining=$enableval
155 fi]) 167 fi])
156 168
157AC_ARG_ENABLE(xft, 169AC_ARG_ENABLE(xft,
158 [ --enable-xft enable xft support on systems that have it], 170 [ --enable-xft enable xft support on systems that have it],
159 [if test x$enableval = xyes -o x$enableval = xno; then 171 [if test x$enableval = xyes -o x$enableval = xno; then
160 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
161 fi]) 179 fi])
162 180
163AC_ARG_ENABLE(utmp, 181AC_ARG_ENABLE(utmp,
164 [ --enable-utmp enable utmp (utmpx) support], 182 [ --enable-utmp enable utmp (utmpx) support],
165 [if test x$enableval = xyes -o x$enableval = xno; then 183 [if test x$enableval = xyes -o x$enableval = xno; then
237 [if test x$enableval = xyes; then 255 [if test x$enableval = xyes; then
238 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)
239 fi]) 257 fi])
240 258
241AC_ARG_WITH(codesets, 259AC_ARG_WITH(codesets,
242 [ --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)],
243 [codesets="$withval"]) 261 [codesets="$withval"])
244 262
245AC_ARG_ENABLE(xim, 263AC_ARG_ENABLE(xim,
246 [ --enable-xim XIM (X Input Method) protocol support], 264 [ --enable-xim XIM (X Input Method) protocol support],
247 [if test x$enableval = xyes -o x$enableval = xno; then 265 [if test x$enableval = xyes -o x$enableval = xno; then
279 fi]) 297 fi])
280 298
281AC_ARG_ENABLE(8bitctrls, 299AC_ARG_ENABLE(8bitctrls,
282 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 300 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
283 [if test x$enableval = xyes -o x$enableval = xno; then 301 [if test x$enableval = xyes -o x$enableval = xno; then
284 support_8bitctrls=yes 302 support_8bitctrls=$enableval
285 fi]) 303 fi])
286 304
287RESFALLBACK=Rxvt 305RESFALLBACK=Rxvt
288AC_ARG_ENABLE(fallback, 306AC_ARG_ENABLE(fallback,
289 [ --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)],
311 329
312RXVTNAME=urxvt 330RXVTNAME=urxvt
313AC_ARG_WITH(name, 331AC_ARG_WITH(name,
314 [ --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)],
315 [RXVTNAME="$withval"]) 333 [RXVTNAME="$withval"])
334AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
316 335
317RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 336RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
318AC_SUBST(RXVTNAME) 337AC_SUBST(RXVTNAME)
319 338
320AC_ARG_ENABLE(strings, 339AC_ARG_ENABLE(strings,
457AC_PATH_PROG(LN, ln, ln) 476AC_PATH_PROG(LN, ln, ln)
458AC_PATH_PROG(SED, sed, sed) 477AC_PATH_PROG(SED, sed, sed)
459AC_PATH_PROG(ECHO, echo, echo) 478AC_PATH_PROG(ECHO, echo, echo)
460AC_PATH_PROG(CMP, cmp, cmp) 479AC_PATH_PROG(CMP, cmp, cmp)
461AC_PATH_PROG(TBL, tbl) 480AC_PATH_PROG(TBL, tbl)
481AC_PATH_PROG(TIC, tic)
462 482
463dnl# need a neat way to detect SVR4 or its features 483dnl# need a neat way to detect SVR4 or its features
464dnl# in src/command.c we use these functions: 484dnl# in src/command.c we use these functions:
465dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 485dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
466dnl# - but are these also defined for other systems? 486dnl# - but are these also defined for other systems?
585dnl> AC_CHECK_TYPE(umode_t, int) 605dnl> AC_CHECK_TYPE(umode_t, int)
586dnl> AC_CHECK_TYPE(off_t, long) 606dnl> AC_CHECK_TYPE(off_t, long)
587AC_TYPE_PID_T 607AC_TYPE_PID_T
588AC_TYPE_UID_T 608AC_TYPE_UID_T
589 609
590AC_CHECK_SIZEOF(char, 1)
591AC_CHECK_SIZEOF(short, 2) 610AC_CHECK_SIZEOF(short, 2)
592AC_CHECK_SIZEOF(int, 4) 611AC_CHECK_SIZEOF(int, 4)
593AC_CHECK_SIZEOF(long, 4) 612dnl AC_CHECK_SIZEOF(long, 4)
594AC_CHECK_SIZEOF(long long, 8) 613AC_CHECK_SIZEOF(long long, 8)
595AC_CHECK_SIZEOF(int *, 4) 614AC_CHECK_SIZEOF(int *, 4)
596 615
597dnl# see usage below 616dnl# see usage below
598AC_DEFUN(RXVT_CHECK_SIZE, 617AC_DEFUN(RXVT_CHECK_SIZE,
1172fi 1191fi
1173 1192
1174dnl# -------------------------------------------------------------------------- 1193dnl# --------------------------------------------------------------------------
1175dnl# now add and remove other stuff 1194dnl# now add and remove other stuff
1176dnl# -------------------------------------------------------------------------- 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
1177if test x$support_iso14755 = xyes; then 1211if test x$support_iso14755 = xyes; then
1178 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) 1212 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)
1179fi 1213fi
1180if test x$support_8bitctrls = xyes; then 1214if test x$support_8bitctrls = xyes; then
1181 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)
1260fi 1294fi
1261if test x$support_combining = xyes; then 1295if test x$support_combining = xyes; then
1262 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)
1263fi 1297fi
1264if test x$codesets = xall; then 1298if test x$codesets = xall; then
1265 codesets=jp,jp-ext,kr,cn,cn-ext 1299 codesets=jp,jp-ext,kr,zh,zh-ext
1266fi 1300fi
1267AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1301AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1268AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) 1302AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1269for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1303for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1270 case "$codeset" in 1304 case "$codeset" in
1271 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) ;;
1272 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) ;;
1273 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) ;;
1274 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) ;;
1275 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) ;;
1276 esac 1310 esac
1277done 1311done
1278 1312
1279dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) 1313dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket)
1280 1314
1334RXVT_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)
1335RXVT_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)
1336RXVT_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)
1337RXVT_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)
1338RXVT_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)
1339
1340if test x$support_xft = xyes; then
1341 LIBS="$LIBS `pkg-config xft --libs`"
1342 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1343 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1344
1345 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1346 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1347
1348 if test x$support_xft = xyes; then
1349 AC_DEFINE(XFT, 1, Define to enable xft support)
1350 fi
1351fi
1352 1373
1353AC_CONFIG_FILES([autoconf/Make.common \ 1374AC_CONFIG_FILES([autoconf/Make.common \
1354Makefile \ 1375Makefile \
1355doc/Makefile \ 1376doc/Makefile \
1356src/Makefile \ 1377src/Makefile \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines