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.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#
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"
1425AC_SUBST(DLIB) 1427AC_SUBST(DLIB)
1426AC_SUBST(LIBS) 1428AC_SUBST(LIBS)
1427AC_SUBST(X_LIBS) 1429AC_SUBST(X_LIBS)
1428AC_SUBST(X_EXTRA_LIBS) 1430AC_SUBST(X_EXTRA_LIBS)
1429 1431
1430dnl# common parts of the Makefile
1431MCOMMON=./autoconf/Make.common
1432AC_SUBST_FILE(MCOMMON)
1433
1434AC_ARG_PROGRAM 1432AC_ARG_PROGRAM
1435 1433
1436dnl# test for "sun" or "__sun__" before include sys_ioctl 1434dnl# test for "sun" or "__sun__" before include sys_ioctl
1437 1435
1438dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1436dnl# 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) 1454RXVT_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) 1455RXVT_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) 1456RXVT_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) 1457RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes)
1460 1458
1461AC_CONFIG_FILES([autoconf/Make.common \ 1459AC_CONFIG_FILES([Makefile \
1462Makefile \
1463doc/Makefile \ 1460doc/Makefile \
1464src/Makefile \ 1461src/Makefile \
1465src/rxvtlib.h \ 1462src/rxvtlib.h \
1466]) 1463])
1467AC_OUTPUT 1464AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines