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

Comparing rxvt-unicode/configure (file contents):
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 UTC vs.
Revision 1.151 by sf-exg, Thu Jan 19 11:09:56 2012 UTC

1375 --enable-256-color enable 256-color support 1375 --enable-256-color enable 256-color support
1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1377 --enable-combining enable composition of base and combining characters 1377 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1378 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1379 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images 1380 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1381 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1382 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1383 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1384 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1385 --enable-rxvt-scroll enable rxvt style scrollbar
2746IFS=$ac_save_IFS 2746IFS=$ac_save_IFS
2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 2748
2749 2749
2750 2750
2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2751VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2752DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753 2753
2754echo "" 2754echo ""
2755echo "configuring for rxvt $VERSION" 2755echo "configuring for rxvt $VERSION"
2756echo "" 2756echo ""
2757 2757
4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 4423
4424 4424
4425LINKER="$CXX"
4425if test x$GCC = xyes && test x$GXX = xyes; then 4426if test x$GCC = xyes && test x$GXX = xyes; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4427$as_echo_n "checking for working libsupc++... " >&6; } 4428$as_echo_n "checking for working libsupc++... " >&6; }
4428 save_CXX="$CXX" 4429 save_CXX="$CXX"
4429 save_LIBS="$LIBS" 4430 save_LIBS="$LIBS"
4430 CXX="$CC" 4431 CXX="$CC"
4431 LIBS="$LIBS -lsupc++" 4432 LIBS="$LIBS -lsupc++"
4432 LINKER="$CC"
4433 4433
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */ 4435/* end confdefs.h. */
4436struct test { }; void f() try { throw new test; } catch (...) { throw; } 4436struct test { }; void f() try { throw new test; } catch (...) { throw; }
4437int 4437int
4443} 4443}
4444_ACEOF 4444_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then : 4445if ac_fn_cxx_try_link "$LINENO"; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4447$as_echo "ok" >&6; } 4447$as_echo "ok" >&6; }
4448 LINKER="$CC"
4448else 4449else
4449 4450
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4451$as_echo "no, making everything bigger and slower" >&6; } 4452$as_echo "no, making everything bigger and slower" >&6; }
4452 LIBS="$save_LIBS" 4453 LIBS="$save_LIBS"
4453 LINKER="$save_CXX"
4454 4454
4455 4455
4456fi 4456fi
4457rm -f core conftest.err conftest.$ac_objext \ 4457rm -f core conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext 4458 conftest$ac_exeext conftest.$ac_ext
4484 else 4484 else
4485 CXXFLAGS="-O" 4485 CXXFLAGS="-O"
4486 fi 4486 fi
4487 CFLAGS="$CXXFLAGS" 4487 CFLAGS="$CXXFLAGS"
4488fi 4488fi
4489
4490case $host in
4491 *-*-solaris* )
4492
4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4494
4495 ;;
4496esac
4497 4489
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4499$as_echo_n "checking for library containing setlocale... " >&6; } 4491$as_echo_n "checking for library containing setlocale... " >&6; }
4500if ${ac_cv_search_setlocale+:} false; then : 4492if ${ac_cv_search_setlocale+:} false; then :
4501 $as_echo_n "(cached) " >&6 4493 $as_echo_n "(cached) " >&6
4678support_scroll_next=yes 4670support_scroll_next=yes
4679support_scroll_xterm=yes 4671support_scroll_xterm=yes
4680support_xim=yes 4672support_xim=yes
4681support_pixbuf=yes 4673support_pixbuf=yes
4682support_startup_notification=yes 4674support_startup_notification=yes
4683support_afterimage=yes
4684support_xft=yes 4675support_xft=yes
4685support_unicode3=no 4676support_unicode3=no
4686support_combining=yes 4677support_combining=yes
4687support_8bitctrls=no 4678support_8bitctrls=no
4688support_iso14755=yes 4679support_iso14755=yes
4711 support_utmp=no 4702 support_utmp=no
4712 support_wtmp=no 4703 support_wtmp=no
4713 support_xim=no 4704 support_xim=no
4714 support_pixbuf=no 4705 support_pixbuf=no
4715 support_startup_notification=no 4706 support_startup_notification=no
4716 support_afterimage=no
4717 support_xft=no 4707 support_xft=no
4718 support_unicode3=no 4708 support_unicode3=no
4719 support_combining=no 4709 support_combining=no
4720 support_8bitctrls=no 4710 support_8bitctrls=no
4721 support_iso14755=no 4711 support_iso14755=no
4740 support_utmp=yes 4730 support_utmp=yes
4741 support_wtmp=yes 4731 support_wtmp=yes
4742 support_xim=yes 4732 support_xim=yes
4743 support_pixbuf=yes 4733 support_pixbuf=yes
4744 support_startup_notification=yes 4734 support_startup_notification=yes
4745 support_afterimage=yes
4746 support_xft=yes 4735 support_xft=yes
4747 support_unicode3=yes 4736 support_unicode3=yes
4748 support_combining=yes 4737 support_combining=yes
4749 #support_8bitctrls=yes 4738 #support_8bitctrls=yes
4750 support_iso14755=yes 4739 support_iso14755=yes
4754 fi 4743 fi
4755 4744
4756fi 4745fi
4757 4746
4758 4747
4759ASSERTIONS=no 4748support_assertions=no
4760# Check whether --enable-assert was given. 4749# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then : 4750if test "${enable_assert+set}" = set; then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then 4751 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes 4752 support_assertions=yes
4764 fi 4753 fi
4765fi 4754fi
4766 4755
4767if test x$ASSERTIONS = xno; then 4756if test x$support_assertions = xno; then
4768 4757
4769$as_echo "#define NDEBUG 1" >>confdefs.h 4758$as_echo "#define NDEBUG 1" >>confdefs.h
4770 4759
4771fi 4760fi
4772 4761
4773WARNINGS=no 4762support_warnings=no
4774# Check whether --enable-warnings was given. 4763# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then : 4764if test "${enable_warnings+set}" = set; then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then 4765 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes 4766 support_warnings=yes
4778 fi 4767 fi
4779fi 4768fi
4780 4769
4781if test x$GXX = xyes; then 4770if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then 4771 if test $support_warnings = yes; then
4783 save_CXXFLAGS="$CXXFLAGS" 4772 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 4773 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */ 4775/* end confdefs.h. */
4787 4776
4788int 4777int
4789main () 4778main ()
6432 6421
6433 6422
6434 6423
6435AFTERIMAGE_CFLAGS= 6424AFTERIMAGE_CFLAGS=
6436AFTERIMAGE_LIBS= 6425AFTERIMAGE_LIBS=
6437AFTERIMAGE_VERSION=
6438 6426
6439if test x$support_afterimage = xyes; then 6427if test x$support_afterimage = xyes; then
6440 support_afterimage=no 6428 support_afterimage=no
6441 6429
6442 if test "x$afterimage_config" = "x" ; then 6430 if test "x$afterimage_config" = "x" ; then
6483 6471
6484 fi 6472 fi
6485 if test "x$afterimage_config" != "xno" ; then 6473 if test "x$afterimage_config" != "xno" ; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } 6475$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6488 xAFTERIMAGE_VERSION=`$afterimage_config --version` 6476 AFTERIMAGE_VERSION=`$afterimage_config --version`
6489 if test -n "$xAFTERIMAGE_VERSION" ; then 6477 if test -n "$AFTERIMAGE_VERSION" ; then
6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 6478 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs` 6479 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then 6480 if test "x$AFTERIMAGE_LIBS" != "x"; then
6493 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` 6481 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6494 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` 6482 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6495 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then 6483 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6496 support_afterimage=yes 6484 support_afterimage=yes
6497 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6498 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6500 fi 6485 fi
6501 fi 6486 fi
6502 fi 6487 fi
6503 if test "x$support_afterimage" = "xyes"; then 6488 if test "x$support_afterimage" = "xyes"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h 6496$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512 6497
6513 else 6498 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; } 6500$as_echo "no" >&6; }
6501 AFTERIMAGE_CFLAGS=
6502 AFTERIMAGE_LIBS=
6516 fi 6503 fi
6517 fi 6504 fi
6518fi 6505fi
6519 6506
6520 6507
6765 6752
6766fi 6753fi
6767 6754
6768done 6755done
6769 6756
6757
6758case $host in
6759 *-*-solaris*)
6760
6761$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6762
6763 ;;
6764esac
6770 6765
6771 6766
6772for ac_header in utmp.h 6767for ac_header in utmp.h
6773do : 6768do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 6769 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h 6904$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6910 6905
6911fi 6906fi
6912 6907
6913 6908
6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
6915#include <sys/types.h>
6916#include <utmpx.h>
6917
6918"
6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6920
6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6922
6923fi
6924
6925
6926fi 6909fi
6927 6910
6928done 6911done
6929 6912
6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 6913ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
7054if ${pt_cv_path_lastlog+:} false; then : 7037if ${pt_cv_path_lastlog+:} false; then :
7055 $as_echo_n "(cached) " >&6 7038 $as_echo_n "(cached) " >&6
7056else 7039else
7057 7040
7058if test "$cross_compiling" != yes; then 7041if test "$cross_compiling" != yes; then
7059 for file in "/var/log/lastlog"; do 7042 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7060 if test -f "$file"; then 7043 if test -f "$file"; then
7061 pt_cv_path_lastlog=$file 7044 pt_cv_path_lastlog=$file
7062 break 7045 break
7063 fi 7046 fi
7064 done 7047 done
7284 7267
7285$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7268$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7286 7269
7287fi 7270fi
7288 7271
7272
7273case $host in
7274 *-*-solaris*)
7275
7276$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7279$as_echo_n "checking for library containing sendmsg... " >&6; }
7280if ${ac_cv_search_sendmsg+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 ac_func_search_save_LIBS=$LIBS
7284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h. */
7286
7287/* Override any GCC internal prototype to avoid an error.
7288 Use char because int might match the return type of a GCC
7289 builtin and then its argument prototype would still apply. */
7290#ifdef __cplusplus
7291extern "C"
7292#endif
7293char sendmsg ();
7294int
7295main ()
7296{
7297return sendmsg ();
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302for ac_lib in '' socket; do
7303 if test -z "$ac_lib"; then
7304 ac_res="none required"
7305 else
7306 ac_res=-l$ac_lib
7307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7308 fi
7309 if ac_fn_cxx_try_link "$LINENO"; then :
7310 ac_cv_search_sendmsg=$ac_res
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext
7314 if ${ac_cv_search_sendmsg+:} false; then :
7315 break
7316fi
7317done
7318if ${ac_cv_search_sendmsg+:} false; then :
7319
7320else
7321 ac_cv_search_sendmsg=no
7322fi
7323rm conftest.$ac_ext
7324LIBS=$ac_func_search_save_LIBS
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7327$as_echo "$ac_cv_search_sendmsg" >&6; }
7328ac_res=$ac_cv_search_sendmsg
7329if test "$ac_res" != no; then :
7330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7331
7332fi
7333
7334 ;;
7335esac
7289 7336
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7291$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } 7338$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7292if ${pt_cv_can_pass_fds+:} false; then : 7339if ${pt_cv_can_pass_fds+:} false; then :
7293 $as_echo_n "(cached) " >&6 7340 $as_echo_n "(cached) " >&6

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines