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.74 by root, Mon Jan 16 15:12:48 2006 UTC vs.
Revision 1.77 by ayin, Tue Jan 17 09:02:18 2006 UTC

1dnl# -*- sh -*- 1dnl# -*- sh -*-
2dnl# 2dnl#
3dnl# Process this file with autoconf to produce a configure script. 3dnl# Process this file with autoconf to produce a configure script.
4dnl# 4dnl#
5
6AC_INIT
5AC_PREREQ(2.50) 7AC_PREREQ(2.50)
6orig_CXXFLAGS="$CXXFLAGS"
7
8AC_INIT
9AC_CONFIG_SRCDIR([src/feature.h]) 8AC_CONFIG_SRCDIR([src/feature.h])
10AC_CONFIG_AUX_DIR(autoconf) 9AC_CONFIG_AUX_DIR(autoconf)
11AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 10AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
12 11
13AC_CANONICAL_HOST 12AC_CANONICAL_HOST
24AC_SUBST(LIBVERSION)dnl 23AC_SUBST(LIBVERSION)dnl
25echo "" 24echo ""
26echo "configuring for rxvt $VERSION" 25echo "configuring for rxvt $VERSION"
27echo "" 26echo ""
28 27
28orig_CXXFLAGS="$CXXFLAGS"
29
29dnl# Checks for programs. 30dnl# Checks for programs.
30dnl AC_MAKE_SET 31dnl AC_MAKE_SET
31 32
32AC_PROG_CC 33AC_PROG_CC
33AC_PROG_CXX 34AC_PROG_CXX
39 40
40dnl# -------------------------------------------------------------------------- 41dnl# --------------------------------------------------------------------------
41dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' 42dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
42dnl# 43dnl#
43if test -z "$orig_CXXFLAGS"; then 44if test -z "$orig_CXXFLAGS"; then
44 CXXFLAGS='-O'
45 if test x$GCC = xyes && test "x$GXX" = xyes; then 45 if test x$GCC = xyes && test "x$GXX" = xyes; then
46 CXXFLAGS="-g -O3" 46 CXXFLAGS="-g -O3"
47 else
48 CXXFLAGS="-O"
47 fi 49 fi
48 CFLAGS="$CXXFLAGS" 50 CFLAGS="$CXXFLAGS"
49fi 51fi
50 52
51LINKER="$CXX" 53LINKER="$CXX"
725 setreuid \ 727 setreuid \
726 setsid \ 728 setsid \
727 setpgrp \ 729 setpgrp \
728 setpgid \ 730 setpgid \
729 _getpty \ 731 _getpty \
732 getpt \
730 posix_openpt \ 733 posix_openpt \
731 grantpt \ 734 grantpt \
732 unlockpt \ 735 unlockpt \
733 isastream \ 736 isastream \
734 on_exit \ 737 on_exit \
1164 1167
1165if test x$rxvt_broken_ximcb = xyes; then 1168if test x$rxvt_broken_ximcb = xyes; then
1166 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) 1169 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
1167fi 1170fi
1168 1171
1169if test x$ac_cv_func_posix_openpt = xno; then 1172if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
1170 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) 1173 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])])
1171fi 1174fi
1172 1175
1173dnl# if we don't guess right then it's up to the user 1176dnl# if we don't guess right then it's up to the user
1174AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, 1177AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys,
1175[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 1178[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
1176 rxvt_cv_ptys=OPENPTY 1179 rxvt_cv_ptys=OPENPTY
1180 else if test x$ac_cv_func_getpt = xyes; then
1181 rxvt_cv_ptys=GLIBC
1177 else if test x$ac_cv_func_posix_openpt = xyes; then 1182 else if test x$ac_cv_func_posix_openpt = xyes; then
1178 rxvt_cv_ptys=POSIX 1183 rxvt_cv_ptys=POSIX
1179 else if test x$ac_cv_func__getpty = xyes; then 1184 else if test x$ac_cv_func__getpty = xyes; then
1180 rxvt_cv_ptys=SGI4 1185 rxvt_cv_ptys=SGI4
1181 else if test -c /dev/ttyp20; then 1186 else if test -c /dev/ttyp20; then
1200fi 1205fi
1201fi 1206fi
1202fi 1207fi
1203fi 1208fi
1204fi 1209fi
1210fi
1205]) 1211])
1206 1212
1213if test x$rxvt_cv_ptys = xGLIBC; then
1214 AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type)
1215fi
1207if test x$rxvt_cv_ptys = xPOSIX; then 1216if test x$rxvt_cv_ptys = xPOSIX; then
1208 AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) 1217 AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type)
1209fi 1218fi
1210if test x$rxvt_cv_ptys = xOPENPTY; then 1219if test x$rxvt_cv_ptys = xOPENPTY; then
1211 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) 1220 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type)
1425AC_SUBST(DLIB) 1434AC_SUBST(DLIB)
1426AC_SUBST(LIBS) 1435AC_SUBST(LIBS)
1427AC_SUBST(X_LIBS) 1436AC_SUBST(X_LIBS)
1428AC_SUBST(X_EXTRA_LIBS) 1437AC_SUBST(X_EXTRA_LIBS)
1429 1438
1430dnl# common parts of the Makefile
1431MCOMMON=./autoconf/Make.common
1432AC_SUBST_FILE(MCOMMON)
1433
1434AC_ARG_PROGRAM 1439AC_ARG_PROGRAM
1435 1440
1436dnl# test for "sun" or "__sun__" before include sys_ioctl 1441dnl# test for "sun" or "__sun__" before include sys_ioctl
1437 1442
1438dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1443dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1456RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1461RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1457RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1462RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1458RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1463RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1459RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1464RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1460 1465
1461AC_CONFIG_FILES([autoconf/Make.common \ 1466AC_CONFIG_FILES([Makefile \
1462Makefile \
1463doc/Makefile \ 1467doc/Makefile \
1464src/Makefile \ 1468src/Makefile \
1465src/rxvtlib.h \ 1469src/rxvtlib.h \
1466]) 1470])
1467AC_OUTPUT 1471AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines