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.35 by root, Tue Aug 17 09:16:40 2004 UTC vs.
Revision 1.44 by root, Tue Jan 11 00:54:57 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
66AC_PROG_LIBTOOL()dnl# libtool 76AC_PROG_LIBTOOL()dnl# libtool
67 77
68MALLOC_TYPE=S 78MALLOC_TYPE=S
69support_addstrings=no 79support_addstrings=no
70support_frills=no 80support_frills=no
71support_linespace=no
72support_inheritpixmap=no 81support_inheritpixmap=no
73support_tinting=no 82support_tinting=no
74support_fading=no 83support_fading=no
75support_keepscrolling=no 84support_keepscrolling=no
76support_selectionscrolling=no 85support_selectionscrolling=no
92support_xft=no 101support_xft=no
93support_unicode3=no 102support_unicode3=no
94support_combining=no 103support_combining=no
95support_8bitctrls=no 104support_8bitctrls=no
96support_iso14755=no 105support_iso14755=no
106support_styles=no
97codesets= 107codesets=
98 108
99dnl# -------------------------------------------------------------------------- 109dnl# --------------------------------------------------------------------------
100dnl# CHECKING COMMAND LINE OPTIONS 110dnl# CHECKING COMMAND LINE OPTIONS
101dnl# -------------------------------------------------------------------------- 111dnl# --------------------------------------------------------------------------
111 NOTE: this option is order dependent 121 NOTE: this option is order dependent
112 NOTE: automatically enabled with --enable-shared], 122 NOTE: automatically enabled with --enable-shared],
113 [if test x$enableval = xyes; then 123 [if test x$enableval = xyes; then
114 support_24bit=yes 124 support_24bit=yes
115 support_frills=yes 125 support_frills=yes
116 support_linespace=yes
117 support_inheritpixmap=yes 126 support_inheritpixmap=yes
118 support_tinting=yes 127 support_tinting=yes
119 support_fading=yes 128 support_fading=yes
120 support_keepscrolling=yes 129 support_keepscrolling=yes
121 support_selectionscrolling=yes 130 support_selectionscrolling=yes
137 support_xft=yes 146 support_xft=yes
138 support_unicode3=yes 147 support_unicode3=yes
139 support_combining=yes 148 support_combining=yes
140 #support_8bitctrls=yes 149 #support_8bitctrls=yes
141 support_iso14755=yes 150 support_iso14755=yes
151 support_styles=yes
142 codesets=all 152 codesets=all
143 fi]) 153 fi])
144 154
145AC_ARG_ENABLE(unicode3, 155AC_ARG_ENABLE(unicode3,
146 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], 156 [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters],
147 [if test x$enableval = xyes -o x$enableval = xno; then 157 [if test x$enableval = xyes -o x$enableval = xno; then
148 support_unicode3=yes 158 support_unicode3=$enableval
149 fi]) 159 fi])
150 160
151AC_ARG_ENABLE(combining, 161AC_ARG_ENABLE(combining,
152 [ --enable-combining enable composition of base and combining characters], 162 [ --enable-combining enable composition of base and combining characters],
153 [if test x$enableval = xyes -o x$enableval = xno; then 163 [if test x$enableval = xyes -o x$enableval = xno; then
154 support_combining=yes 164 support_combining=$enableval
155 fi]) 165 fi])
156 166
157AC_ARG_ENABLE(xft, 167AC_ARG_ENABLE(xft,
158 [ --enable-xft enable xft support on systems that have it], 168 [ --enable-xft enable xft support on systems that have it],
159 [if test x$enableval = xyes -o x$enableval = xno; then 169 [if test x$enableval = xyes -o x$enableval = xno; then
160 support_xft=yes 170 support_xft=$enableval
171 fi])
172
173AC_ARG_ENABLE(font-styles,
174 [ --enable-font-styles enable bold and italic support],
175 [if test x$enableval = xyes -o x$enableval = xno; then
176 support_styles=$enableval
161 fi]) 177 fi])
162 178
163AC_ARG_ENABLE(utmp, 179AC_ARG_ENABLE(utmp,
164 [ --enable-utmp enable utmp (utmpx) support], 180 [ --enable-utmp enable utmp (utmpx) support],
165 [if test x$enableval = xyes -o x$enableval = xno; then 181 [if test x$enableval = xyes -o x$enableval = xno; then
237 [if test x$enableval = xyes; then 253 [if test x$enableval = xyes; then
238 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 254 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
239 fi]) 255 fi])
240 256
241AC_ARG_WITH(codesets, 257AC_ARG_WITH(codesets,
242 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], 258 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
243 [codesets="$withval"]) 259 [codesets="$withval"])
244 260
245AC_ARG_ENABLE(xim, 261AC_ARG_ENABLE(xim,
246 [ --enable-xim XIM (X Input Method) protocol support], 262 [ --enable-xim XIM (X Input Method) protocol support],
247 [if test x$enableval = xyes -o x$enableval = xno; then 263 [if test x$enableval = xyes -o x$enableval = xno; then
279 fi]) 295 fi])
280 296
281AC_ARG_ENABLE(8bitctrls, 297AC_ARG_ENABLE(8bitctrls,
282 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], 298 [ --enable-8bitctrls enable 8 bit control sequences (not recommended)],
283 [if test x$enableval = xyes -o x$enableval = xno; then 299 [if test x$enableval = xyes -o x$enableval = xno; then
284 support_8bitctrls=yes 300 support_8bitctrls=$enableval
285 fi]) 301 fi])
286 302
287RESFALLBACK=Rxvt 303RESFALLBACK=Rxvt
288AC_ARG_ENABLE(fallback, 304AC_ARG_ENABLE(fallback,
289 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], 305 [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)],
311 327
312RXVTNAME=urxvt 328RXVTNAME=urxvt
313AC_ARG_WITH(name, 329AC_ARG_WITH(name,
314 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], 330 [ --with-name=NAME set the basename for the installed binaries (default: urxvt)],
315 [RXVTNAME="$withval"]) 331 [RXVTNAME="$withval"])
332AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name])
316 333
317RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 334RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
318AC_SUBST(RXVTNAME) 335AC_SUBST(RXVTNAME)
319 336
320AC_ARG_ENABLE(strings, 337AC_ARG_ENABLE(strings,
337 354
338AC_ARG_ENABLE(frills, 355AC_ARG_ENABLE(frills,
339 [ --enable-frills enable support for rarely used features], 356 [ --enable-frills enable support for rarely used features],
340 [if test x$enableval = xyes -o x$enableval = xno; then 357 [if test x$enableval = xyes -o x$enableval = xno; then
341 support_frills=$enableval 358 support_frills=$enableval
342 fi])
343
344AC_ARG_ENABLE(linespace,
345 [ --enable-linespace enable support for linespace],
346 [if test x$enableval = xyes -o x$enableval = xno; then
347 support_linespace=$enableval
348 fi]) 359 fi])
349 360
350AC_ARG_ENABLE(24bit, 361AC_ARG_ENABLE(24bit,
351 [ --enable-24bit enable support for using 24bit visuals if available], 362 [ --enable-24bit enable support for using 24bit visuals if available],
352 [if test x$enableval = xyes -o x$enableval = xno; then 363 [if test x$enableval = xyes -o x$enableval = xno; then
586dnl> AC_CHECK_TYPE(umode_t, int) 597dnl> AC_CHECK_TYPE(umode_t, int)
587dnl> AC_CHECK_TYPE(off_t, long) 598dnl> AC_CHECK_TYPE(off_t, long)
588AC_TYPE_PID_T 599AC_TYPE_PID_T
589AC_TYPE_UID_T 600AC_TYPE_UID_T
590 601
591AC_CHECK_SIZEOF(char, 1)
592AC_CHECK_SIZEOF(short, 2) 602AC_CHECK_SIZEOF(short, 2)
593AC_CHECK_SIZEOF(int, 4) 603AC_CHECK_SIZEOF(int, 4)
594AC_CHECK_SIZEOF(long, 4) 604dnl AC_CHECK_SIZEOF(long, 4)
595AC_CHECK_SIZEOF(long long, 8) 605AC_CHECK_SIZEOF(long long, 8)
596AC_CHECK_SIZEOF(int *, 4) 606AC_CHECK_SIZEOF(int *, 4)
597 607
598dnl# see usage below 608dnl# see usage below
599AC_DEFUN(RXVT_CHECK_SIZE, 609AC_DEFUN(RXVT_CHECK_SIZE,
1173fi 1183fi
1174 1184
1175dnl# -------------------------------------------------------------------------- 1185dnl# --------------------------------------------------------------------------
1176dnl# now add and remove other stuff 1186dnl# now add and remove other stuff
1177dnl# -------------------------------------------------------------------------- 1187dnl# --------------------------------------------------------------------------
1188if test x$support_xft = xyes; then
1189 LIBS="$LIBS `pkg-config xft --libs`"
1190 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1191 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1192
1193 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1194 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1195
1196 if test x$support_xft = xyes; then
1197 AC_DEFINE(XFT, 1, Define to enable xft support)
1198 fi
1199fi
1200if test x$support_styles = xyes; then
1201 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
1202fi
1178if test x$support_iso14755 = xyes; then 1203if test x$support_iso14755 = xyes; then
1179 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) 1204 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)
1180fi 1205fi
1181if test x$support_8bitctrls = xyes; then 1206if test x$support_8bitctrls = xyes; then
1182 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) 1207 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
1199if test x$support_menubar = xyes; then 1224if test x$support_menubar = xyes; then
1200 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1225 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1201fi 1226fi
1202if test x$support_frills = xyes; then 1227if test x$support_frills = xyes; then
1203 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) 1228 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1204fi
1205if test x$support_linespace = xno; then
1206 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1207fi 1229fi
1208if test x$support_24bit = xyes; then 1230if test x$support_24bit = xyes; then
1209 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) 1231 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit)
1210fi 1232fi
1211if test x$support_mousewheel = xyes; then 1233if test x$support_mousewheel = xyes; then
1261fi 1283fi
1262if test x$support_combining = xyes; then 1284if test x$support_combining = xyes; then
1263 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) 1285 AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
1264fi 1286fi
1265if test x$codesets = xall; then 1287if test x$codesets = xall; then
1266 codesets=jp,jp-ext,kr,cn,cn-ext 1288 codesets=jp,jp-ext,kr,zh,zh-ext
1267fi 1289fi
1268AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) 1290AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1269AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) 1291AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
1270for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1292for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1271 case "$codeset" in 1293 case "$codeset" in
1272 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1294 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1273 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1295 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1274 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1296 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1275 CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; 1297 ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
1276 CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; 1298 ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
1277 esac 1299 esac
1278done 1300done
1279 1301
1280dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) 1302dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket)
1281 1303
1335RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) 1357RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch)
1336RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1358RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1337RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1359RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1338RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1360RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1339RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1361RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1340
1341if test x$support_xft = xyes; then
1342 LIBS="$LIBS `pkg-config xft --libs`"
1343 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
1344 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
1345
1346 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
1347 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
1348
1349 if test x$support_xft = xyes; then
1350 AC_DEFINE(XFT, 1, Define to enable xft support)
1351 fi
1352fi
1353 1362
1354AC_CONFIG_FILES([autoconf/Make.common \ 1363AC_CONFIG_FILES([autoconf/Make.common \
1355Makefile \ 1364Makefile \
1356doc/Makefile \ 1365doc/Makefile \
1357src/Makefile \ 1366src/Makefile \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines