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.8 by ayin, Wed Jan 18 11:28:42 2006 UTC vs.
Revision 1.9 by root, Fri Jan 20 10:27:08 2006 UTC

31AC_PROG_CC 31AC_PROG_CC
32AC_PROG_CXX 32AC_PROG_CXX
33AC_PROG_CPP 33AC_PROG_CPP
34AC_PROG_INSTALL 34AC_PROG_INSTALL
35 35
36AC_AIX
37AC_ISC_POSIX
38
36AC_LANG(C) 39AC_LANG(C)
37 40
38dnl# -------------------------------------------------------------------------- 41dnl check wetehr we can link with gcc -lsupc++
39dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
40dnl#
41if test -z "$orig_CXXFLAGS"; then
42 if test x$GCC = xyes && test "x$GXX" = xyes; then
43 CXXFLAGS="-g -O3"
44 else
45 CXXFLAGS="-O"
46 fi
47 CFLAGS="$CXXFLAGS"
48fi
49
50LINKER="$CXX" 42LINKER="$CXX"
51if test x$GCC = xyes && test x$GXX = xyes; then 43if test x$GCC = xyes && test x$GXX = xyes; then
52 AC_CHECK_LIB(supc++, main, [ 44 AC_CHECK_LIB(supc++, main, [
53 LINKER="$CC" 45 LINKER="$CC"
54 LIBS="$LIBS -lsupc++" 46 LIBS="$LIBS -lsupc++"
55 ]) 47 ])
56fi 48fi
57AC_SUBST(LINKER,[$LINKER]) 49AC_SUBST(LINKER,[$LINKER])
50
51AC_LANG(C++)
52dnl# --------------------------------------------------------------------------
53dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure'
54dnl#
55if test -z "$orig_CXXFLAGS"; then
56 if test x$GCC = xyes && test "x$GXX" = xyes; then
57 CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs"
58 AC_COMPILE_IFELSE([int i;], [echo didididid], [CXXFLAGS="-g -O3"])
59 else
60 CXXFLAGS="-O"
61 fi
62 CFLAGS="$CXXFLAGS"
63fi
58 64
59AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.) 65AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.)
60 66
61case $host in 67case $host in
62 *-*-solaris* ) 68 *-*-solaris* )
67esac 73esac
68 74
69dnl if test x$GXX = xyes; then 75dnl if test x$GXX = xyes; then
70dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... 76dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...
71dnl fi 77dnl fi
72
73AC_LANG(C++)
74
75dnl# system hacks
76AC_AIX
77AC_ISC_POSIX
78 78
79dnl# FreeBSD needs to link libxpg4 79dnl# FreeBSD needs to link libxpg4
80AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) 80AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])])
81 81
82dnl# solaris needs to link libnsl and socket 82dnl# solaris needs to link libnsl and socket

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines