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.72 by root, Mon Jan 16 14:48:39 2006 UTC vs.
Revision 1.76 by ayin, Mon Jan 16 16:38:47 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#
5orig_CXXFLAGS="$CXXFLAGS"
6 5
7AC_INIT 6AC_INIT
7AC_PREREQ(2.50)
8AC_CONFIG_SRCDIR([src/feature.h]) 8AC_CONFIG_SRCDIR([src/feature.h])
9AC_CONFIG_AUX_DIR(autoconf) 9AC_CONFIG_AUX_DIR(autoconf)
10AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 10AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
11 11
12AC_CANONICAL_HOST 12AC_CANONICAL_HOST
23AC_SUBST(LIBVERSION)dnl 23AC_SUBST(LIBVERSION)dnl
24echo "" 24echo ""
25echo "configuring for rxvt $VERSION" 25echo "configuring for rxvt $VERSION"
26echo "" 26echo ""
27 27
28orig_CXXFLAGS="$CXXFLAGS"
29
28dnl# Checks for programs. 30dnl# Checks for programs.
29dnl AC_MAKE_SET 31dnl AC_MAKE_SET
30 32
31AC_PROG_CC 33AC_PROG_CC
32AC_PROG_CXX 34AC_PROG_CXX
38 40
39dnl# -------------------------------------------------------------------------- 41dnl# --------------------------------------------------------------------------
40dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' 42dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
41dnl# 43dnl#
42if test -z "$orig_CXXFLAGS"; then 44if test -z "$orig_CXXFLAGS"; then
43 CXXFLAGS='-O'
44 if test x$GCC = xyes && test "x$GXX" = xyes; then 45 if test x$GCC = xyes && test "x$GXX" = xyes; then
45 CXXFLAGS="-g -O3" 46 CXXFLAGS="-g -O3"
47 else
48 CXXFLAGS="-O"
46 fi 49 fi
47 CFLAGS="$CXXFLAGS" 50 CFLAGS="$CXXFLAGS"
48fi 51fi
49 52
50LINKER="$CXX" 53LINKER="$CXX"
298 [ --enable-plain-scroll enable plain style scrollbar], 301 [ --enable-plain-scroll enable plain style scrollbar],
299 [if test x$enableval = xyes -o x$enableval = xno; then 302 [if test x$enableval = xyes -o x$enableval = xno; then
300 support_scroll_plain=$enableval 303 support_scroll_plain=$enableval
301 fi]) 304 fi])
302 305
303AC_ARG_ENABLE(half-shadow, 306dnl AC_ARG_ENABLE(half-shadow,
304 [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], 307dnl [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
305 [if test x$enableval = xyes; then 308dnl [if test x$enableval = xyes; then
306 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 309dnl AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
307 fi]) 310dnl fi])
308 311
309AC_ARG_WITH(codesets, 312AC_ARG_WITH(codesets,
310 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], 313 [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
311 [codesets="$withval"]) 314 [codesets="$withval"])
312 315
1424AC_SUBST(DLIB) 1427AC_SUBST(DLIB)
1425AC_SUBST(LIBS) 1428AC_SUBST(LIBS)
1426AC_SUBST(X_LIBS) 1429AC_SUBST(X_LIBS)
1427AC_SUBST(X_EXTRA_LIBS) 1430AC_SUBST(X_EXTRA_LIBS)
1428 1431
1429dnl# common parts of the Makefile
1430MCOMMON=./autoconf/Make.common
1431AC_SUBST_FILE(MCOMMON)
1432
1433AC_ARG_PROGRAM 1432AC_ARG_PROGRAM
1434 1433
1435dnl# test for "sun" or "__sun__" before include sys_ioctl 1434dnl# test for "sun" or "__sun__" before include sys_ioctl
1436 1435
1437dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1436dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1455RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) 1454RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch)
1456RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) 1455RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch)
1457RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) 1456RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch)
1458RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) 1457RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1459 1458
1460AC_CONFIG_FILES([autoconf/Make.common \ 1459AC_CONFIG_FILES([Makefile \
1461Makefile \
1462doc/Makefile \ 1460doc/Makefile \
1463src/Makefile \ 1461src/Makefile \
1464src/rxvtlib.h \ 1462src/rxvtlib.h \
1465]) 1463])
1466AC_OUTPUT 1464AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines