ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.10 by root, Fri Jan 20 11:02:46 2006 UTC vs.
Revision 1.13 by ayin, Fri Jan 20 23:53:21 2006 UTC

48fi 48fi
49AC_SUBST(LINKER,[$LINKER]) 49AC_SUBST(LINKER,[$LINKER])
50 50
51AC_LANG(C++) 51AC_LANG(C++)
52dnl# -------------------------------------------------------------------------- 52dnl# --------------------------------------------------------------------------
53dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' 53dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
54dnl# 54dnl#
55if test -z "$orig_CXXFLAGS"; then 55if test -z "$orig_CXXFLAGS"; then
56 if test x$GCC = xyes && test "x$GXX" = xyes; then 56 if test x$GCC = xyes && test "x$GXX" = xyes; then
57 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 57 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
58 AC_COMPILE_IFELSE([int i;], [echo didididid], [CXXFLAGS="-g -O3"]) 58 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"])
59 else 59 else
60 CXXFLAGS="-O" 60 CXXFLAGS="-O"
61 fi 61 fi
62 CFLAGS="$CXXFLAGS" 62 CFLAGS="$CXXFLAGS"
63fi 63fi
626dnl AC_CHECK_SIZEOF(long, 4) 626dnl AC_CHECK_SIZEOF(long, 4)
627AC_CHECK_SIZEOF(long long, 8) 627AC_CHECK_SIZEOF(long long, 8)
628AC_CHECK_SIZEOF(int *, 4) 628AC_CHECK_SIZEOF(int *, 4)
629 629
630dnl# see usage below 630dnl# see usage below
631AC_DEFUN(RXVT_CHECK_SIZE, 631AC_DEFUN([RXVT_CHECK_SIZE],
632 [AC_CACHE_CHECK([for $2], $1, 632 [AC_CACHE_CHECK([for $2], $1,
633 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl 633 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
634if test "$ac_cv_sizeof_char" -ge $3; then 634if test "$ac_cv_sizeof_char" -ge $3; then
635 $1="$4 char" 635 $1="$4 char"
636else 636else
1423AC_ARG_PROGRAM 1423AC_ARG_PROGRAM
1424 1424
1425dnl# test for "sun" or "__sun__" before include sys_ioctl 1425dnl# test for "sun" or "__sun__" before include sys_ioctl
1426 1426
1427dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1427dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1428AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl 1428AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl
1429[if test "$$3" = "$4" -o "$$5" = "$6"; then 1429[if test "$$3" = "$4" -o "$$5" = "$6"; then
1430 $1="#include <$2>" 1430 $1="#include <$2>"
1431else 1431else
1432 $1="/* #include <$2> */" 1432 $1="/* #include <$2> */"
1433fi dnl 1433fi dnl

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines