… | |
… | |
4 | dnl# |
4 | dnl# |
5 | AC_INIT |
5 | AC_INIT |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
|
|
9 | |
|
|
10 | AC_CANONICAL_HOST |
9 | |
11 | |
10 | dnl RXVT version |
12 | dnl RXVT version |
11 | changequote(, )dnl |
13 | changequote(, )dnl |
12 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
13 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
… | |
… | |
40 | LIBS="$LIBS -lsupc++" |
42 | LIBS="$LIBS -lsupc++" |
41 | ]) |
43 | ]) |
42 | fi |
44 | fi |
43 | AC_SUBST(LINKER,[$LINKER]) |
45 | AC_SUBST(LINKER,[$LINKER]) |
44 | |
46 | |
45 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
47 | AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.) |
|
|
48 | |
|
|
49 | case $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 | ;; |
|
|
55 | esac |
46 | |
56 | |
47 | dnl if test x$GXX = xyes; then |
57 | dnl if test x$GXX = xyes; then |
48 | dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... |
58 | dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... |
49 | dnl fi |
59 | dnl fi |
50 | |
60 | |
… | |
… | |
245 | [if test x$enableval = xyes; then |
255 | [if test x$enableval = xyes; then |
246 | 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) |
247 | fi]) |
257 | fi]) |
248 | |
258 | |
249 | AC_ARG_WITH(codesets, |
259 | AC_ARG_WITH(codesets, |
250 | [ --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)], |
251 | [codesets="$withval"]) |
261 | [codesets="$withval"]) |
252 | |
262 | |
253 | AC_ARG_ENABLE(xim, |
263 | AC_ARG_ENABLE(xim, |
254 | [ --enable-xim XIM (X Input Method) protocol support], |
264 | [ --enable-xim XIM (X Input Method) protocol support], |
255 | [if test x$enableval = xyes -o x$enableval = xno; then |
265 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
595 | dnl> AC_CHECK_TYPE(umode_t, int) |
605 | dnl> AC_CHECK_TYPE(umode_t, int) |
596 | dnl> AC_CHECK_TYPE(off_t, long) |
606 | dnl> AC_CHECK_TYPE(off_t, long) |
597 | AC_TYPE_PID_T |
607 | AC_TYPE_PID_T |
598 | AC_TYPE_UID_T |
608 | AC_TYPE_UID_T |
599 | |
609 | |
600 | AC_CHECK_SIZEOF(char, 1) |
|
|
601 | AC_CHECK_SIZEOF(short, 2) |
610 | AC_CHECK_SIZEOF(short, 2) |
602 | AC_CHECK_SIZEOF(int, 4) |
611 | AC_CHECK_SIZEOF(int, 4) |
603 | AC_CHECK_SIZEOF(long, 4) |
612 | dnl AC_CHECK_SIZEOF(long, 4) |
604 | AC_CHECK_SIZEOF(long long, 8) |
613 | AC_CHECK_SIZEOF(long long, 8) |
605 | AC_CHECK_SIZEOF(int *, 4) |
614 | AC_CHECK_SIZEOF(int *, 4) |
606 | |
615 | |
607 | dnl# see usage below |
616 | dnl# see usage below |
608 | AC_DEFUN(RXVT_CHECK_SIZE, |
617 | AC_DEFUN(RXVT_CHECK_SIZE, |