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.82 by root, Sun Nov 11 04:08:00 2007 UTC vs.
Revision 1.87 by ayin, Mon Dec 10 19:17:29 2007 UTC

17changequote([, ])dnl 17changequote([, ])dnl
18AC_SUBST(VERSION)dnl 18AC_SUBST(VERSION)dnl
19AC_SUBST(DATE)dnl 19AC_SUBST(DATE)dnl
20AC_SUBST(LSMDATE)dnl 20AC_SUBST(LSMDATE)dnl
21AC_SUBST(LIBVERSION)dnl 21AC_SUBST(LIBVERSION)dnl
22
22echo "" 23echo ""
23echo "configuring for rxvt $VERSION" 24echo "configuring for rxvt $VERSION"
24echo "" 25echo ""
25 26
26orig_CXXFLAGS="$CXXFLAGS" 27orig_CXXFLAGS="$CXXFLAGS"
62dnl# -------------------------------------------------------------------------- 63dnl# --------------------------------------------------------------------------
63dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' 64dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
64dnl# 65dnl#
65if test -z "$orig_CXXFLAGS"; then 66if test -z "$orig_CXXFLAGS"; then
66 if test x$GCC = xyes && test "x$GXX" = xyes; then 67 if test x$GCC = xyes && test "x$GXX" = xyes; then
67 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 68 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
68 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) 69 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"])
69 else 70 else
70 CXXFLAGS="-O" 71 CXXFLAGS="-O"
71 fi 72 fi
72 CFLAGS="$CXXFLAGS" 73 CFLAGS="$CXXFLAGS"
130fi 131fi
131AC_SUBST(INSTALL_LIBRXVT) 132AC_SUBST(INSTALL_LIBRXVT)
132 133
133AC_ARG_ENABLE(everything, 134AC_ARG_ENABLE(everything,
134 [ --enable-everything enable standard non-multichoice features 135 [ --enable-everything enable standard non-multichoice features
135 NOTE: this option is order dependent 136 NOTE: this option is order dependent],
136 NOTE: automatically enabled with --enable-shared],
137 [ 137 [
138 if test x$enableval = xno; then 138 if test x$enableval = xno; then
139 support_frills=no 139 support_frills=no
140 support_inheritpixmap=no 140 support_inheritpixmap=no
141 support_fading=no 141 support_fading=no
281 [ --enable-xterm-scroll enable Xterm style scrollbar], 281 [ --enable-xterm-scroll enable Xterm style scrollbar],
282 [if test x$enableval = xyes -o x$enableval = xno; then 282 [if test x$enableval = xyes -o x$enableval = xno; then
283 support_scroll_xterm=$enableval 283 support_scroll_xterm=$enableval
284 fi]) 284 fi])
285 285
286AC_ARG_ENABLE(plain-scroll,
287 [ --enable-plain-scroll enable plain style scrollbar],
288 [if test x$enableval = xyes -o x$enableval = xno; then
289 support_scroll_plain=$enableval
290 fi])
291
286AC_ARG_ENABLE(perl, 292AC_ARG_ENABLE(perl,
287 [ --enable-perl enable embedded perl interpreter], 293 [ --enable-perl enable embedded perl interpreter],
288 [if test x$enableval = xyes -o x$enableval = xno; then 294 [if test x$enableval = xyes -o x$enableval = xno; then
289 support_perl=$enableval 295 support_perl=$enableval
290 fi])
291
292AC_ARG_ENABLE(plain-scroll,
293 [ --enable-plain-scroll enable plain style scrollbar],
294 [if test x$enableval = xyes -o x$enableval = xno; then
295 support_scroll_plain=$enableval
296 fi]) 296 fi])
297 297
298AC_ARG_WITH(codesets, 298AC_ARG_WITH(codesets,
299 [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], 299 [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
300 [codesets="$withval"]) 300 [codesets="$withval"])
435 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 435 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
436 fi]) 436 fi])
437 437
438dnl# -------------------------------------------------------------------------- 438dnl# --------------------------------------------------------------------------
439 439
440LIBEV_M4_AVOID_LIBRT=1
440m4_include([libev/libev.m4]) 441m4_include([libev/libev.m4])
441 442
442dnl# -------------------------------------------------------------------------- 443dnl# --------------------------------------------------------------------------
443 444
444AC_PATH_PROG(TIC, tic, :) 445AC_PATH_PROG(TIC, tic, :)
445
446dnl# need a neat way to detect SVR4 or its features
447dnl# in src/command.c we use these functions:
448dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
449dnl# - but are these also defined for other systems?
450
451dnl# hack to find if this is SVR4 -- who knows?
452dnl## AC_MSG_CHECKING(for SVR4)
453dnl## AC_EGREP_CPP(yes,
454dnl## [#if defined (SVR4) || defined (_SVR4) || defined (__svr4__)
455dnl## yes;
456dnl## #endif
457dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?))
458 446
459AC_PATH_XTRA 447AC_PATH_XTRA
460 448
461AFTERIMAGE_CFLAGS= 449AFTERIMAGE_CFLAGS=
462AFTERIMAGE_LIBS= 450AFTERIMAGE_LIBS=
725dnl# now add and remove other stuff 713dnl# now add and remove other stuff
726dnl# -------------------------------------------------------------------------- 714dnl# --------------------------------------------------------------------------
727if test x$support_xft = xyes; then 715if test x$support_xft = xyes; then
728 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 716 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
729 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 717 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
730 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 718 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
731 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 719 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
732 else 720 else
733 AC_PATH_PROG(XFT_CONFIG, xft-config, no) 721 AC_PATH_PROG(XFT_CONFIG, xft-config, no)
734 if test $XFT_CONFIG != no; then 722 if test $XFT_CONFIG != no; then
735 LIBS="$LIBS `$XFT_CONFIG --libs`" 723 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
736 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 724 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
737 fi 725 fi
738 fi 726 fi
739 727
728 save_LIBS="$LIBS"
729 LIBS="$LIBS $X_LIBS"
740 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) 730 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
741 AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) 731 AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
732 LIBS="$save_LIBS"
742 733
743 if test x$support_xft = xyes; then 734 if test x$support_xft = xyes; then
744 AC_DEFINE(XFT, 1, Define to enable xft support) 735 AC_DEFINE(XFT, 1, Define to enable xft support)
745 fi 736 fi
746fi 737fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines