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.50 by ayin, Wed Jun 13 11:30:42 2007 UTC vs.
Revision 1.53 by ayin, Mon Jun 25 13:50:40 2007 UTC

46 CXX="$CC" 46 CXX="$CC"
47 LIBS="$LIBS -lsupc++" 47 LIBS="$LIBS -lsupc++"
48 LINKER="$CC" 48 LINKER="$CC"
49 AC_LINK_IFELSE( 49 AC_LINK_IFELSE(
50 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])], 50 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])],
51 [
51 [AC_MSG_RESULT(ok)], 52 AC_MSG_RESULT(ok)
53 CXXLIB="-lsupc++"
54 ],
52 [ 55 [
53 AC_MSG_RESULT([no, making everything bigger and slower]) 56 AC_MSG_RESULT([no, making everything bigger and slower])
54 LIBS="$save_LIBS" 57 LIBS="$save_LIBS"
55 LINKER="$save_CXX" 58 LINKER="$save_CXX"
56 ] 59 ]
57 ) 60 )
58 CXX="$save_CXX" 61 CXX="$save_CXX"
59fi 62fi
60AC_SUBST(LINKER,[$LINKER]) 63AC_SUBST(LINKER,[$LINKER])
64AC_SUBST(CXXLIB)
61 65
62dnl# -------------------------------------------------------------------------- 66dnl# --------------------------------------------------------------------------
63dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' 67dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
64dnl# 68dnl#
65if test -z "$orig_CXXFLAGS"; then 69if test -z "$orig_CXXFLAGS"; then
439 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 443 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
440 fi]) 444 fi])
441 445
442dnl# -------------------------------------------------------------------------- 446dnl# --------------------------------------------------------------------------
443 447
444AC_PATH_PROG(CP, cp, cp)
445AC_PATH_PROG(SED, sed, sed)
446AC_PATH_PROG(ECHO, echo, echo)
447AC_PATH_PROG(TIC, tic) 448AC_PATH_PROG(TIC, tic)
448 449
449dnl# need a neat way to detect SVR4 or its features 450dnl# need a neat way to detect SVR4 or its features
450dnl# in src/command.c we use these functions: 451dnl# in src/command.c we use these functions:
451dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 452dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
742if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 743if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
743exit (XSupportsLocale() ? 0 : 1); 744exit (XSupportsLocale() ? 0 : 1);
744else 745else
745exit (1);}]])],[dnl 746exit (1);}]])],[dnl
746 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl 747 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
747 AC_MSG_WARN(Define NO_XLOCALE in config.h manually)])]) 748 :])])
748if test x$rxvt_cv_func_xlocale = xyes; then
749 AC_DEFINE(HAVE_XLOCALE, 1, Define if Xlocale support works)
750fi
751 749
752AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, 750AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale,
753[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 751[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1
754#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) 752#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])])
755if test x$rxvt_cv_func_xsetlocale = xyes; then 753if test x$rxvt_cv_func_xsetlocale = xyes; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines