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

Comparing rxvt-unicode/configure (file contents):
Revision 1.150 by root, Sun Dec 18 02:23:11 2011 UTC vs.
Revision 1.152 by root, Thu Jan 19 17:10:54 2012 UTC

2738IFS=$ac_save_IFS 2738IFS=$ac_save_IFS
2739case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2739case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2740 2740
2741 2741
2742 2742
2743VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2743VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2744DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2744DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2745 2745
2746echo "" 2746echo ""
2747echo "configuring for rxvt $VERSION" 2747echo "configuring for rxvt $VERSION"
2748echo "" 2748echo ""
2749 2749
4412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4415 4415
4416 4416
4417LINKER="$CXX"
4417if test x$GCC = xyes && test x$GXX = xyes; then 4418if test x$GCC = xyes && test x$GXX = xyes; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4419$as_echo_n "checking for working libsupc++... " >&6; } 4420$as_echo_n "checking for working libsupc++... " >&6; }
4420 save_CXX="$CXX" 4421 save_CXX="$CXX"
4421 save_LIBS="$LIBS" 4422 save_LIBS="$LIBS"
4422 CXX="$CC" 4423 CXX="$CC"
4423 LIBS="$LIBS -lsupc++" 4424 LIBS="$LIBS -lsupc++"
4424 LINKER="$CC"
4425 4425
4426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h. */ 4427/* end confdefs.h. */
4428struct test { }; void f() try { throw new test; } catch (...) { throw; } 4428struct test { }; void f() try { throw new test; } catch (...) { throw; }
4429int 4429int
4435} 4435}
4436_ACEOF 4436_ACEOF
4437if ac_fn_cxx_try_link "$LINENO"; then : 4437if ac_fn_cxx_try_link "$LINENO"; then :
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4439$as_echo "ok" >&6; } 4439$as_echo "ok" >&6; }
4440 LINKER="$CC"
4440else 4441else
4441 4442
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4443$as_echo "no, making everything bigger and slower" >&6; } 4444$as_echo "no, making everything bigger and slower" >&6; }
4444 LIBS="$save_LIBS" 4445 LIBS="$save_LIBS"
4445 LINKER="$save_CXX"
4446 4446
4447 4447
4448fi 4448fi
4449rm -f core conftest.err conftest.$ac_objext \ 4449rm -f core conftest.err conftest.$ac_objext \
4450 conftest$ac_exeext conftest.$ac_ext 4450 conftest$ac_exeext conftest.$ac_ext
4476 else 4476 else
4477 CXXFLAGS="-O" 4477 CXXFLAGS="-O"
4478 fi 4478 fi
4479 CFLAGS="$CXXFLAGS" 4479 CFLAGS="$CXXFLAGS"
4480fi 4480fi
4481
4482case $host in
4483 *-*-solaris* )
4484
4485$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4486
4487 ;;
4488esac
4489 4481
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4491$as_echo_n "checking for library containing setlocale... " >&6; } 4483$as_echo_n "checking for library containing setlocale... " >&6; }
4492if test "${ac_cv_search_setlocale+set}" = set; then : 4484if test "${ac_cv_search_setlocale+set}" = set; then :
4493 $as_echo_n "(cached) " >&6 4485 $as_echo_n "(cached) " >&6
6512 sys/ioctl.h \ 6504 sys/ioctl.h \
6513 sys/sockio.h \ 6505 sys/sockio.h \
6514 sys/strredir.h \ 6506 sys/strredir.h \
6515 stdint.h \ 6507 stdint.h \
6516 wchar.h \ 6508 wchar.h \
6517 cwchar \
6518 6509
6519do : 6510do :
6520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6512ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6752 6743
6753fi 6744fi
6754 6745
6755done 6746done
6756 6747
6748
6749case $host in
6750 *-*-solaris*)
6751
6752$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6753
6754 ;;
6755esac
6757 6756
6758 6757
6759for ac_header in utmp.h 6758for ac_header in utmp.h
6760do : 6759do :
6761 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 6760 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6896$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h 6895$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6897 6896
6898fi 6897fi
6899 6898
6900 6899
6901ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
6902#include <sys/types.h>
6903#include <utmpx.h>
6904
6905"
6906if test "x$ac_cv_member_struct_utmpx_ut_session" = x""yes; then :
6907
6908$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6909
6910fi
6911
6912
6913fi 6900fi
6914 6901
6915done 6902done
6916 6903
6917ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 6904ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
7041if test "${pt_cv_path_lastlog+set}" = set; then : 7028if test "${pt_cv_path_lastlog+set}" = set; then :
7042 $as_echo_n "(cached) " >&6 7029 $as_echo_n "(cached) " >&6
7043else 7030else
7044 7031
7045if test "$cross_compiling" != yes; then 7032if test "$cross_compiling" != yes; then
7046 for file in "/var/log/lastlog"; do 7033 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7047 if test -f "$file"; then 7034 if test -f "$file"; then
7048 pt_cv_path_lastlog=$file 7035 pt_cv_path_lastlog=$file
7049 break 7036 break
7050 fi 7037 fi
7051 done 7038 done
7214if test "${rxvt_cv_func_setlocale+set}" = set; then : 7201if test "${rxvt_cv_func_setlocale+set}" = set; then :
7215 $as_echo_n "(cached) " >&6 7202 $as_echo_n "(cached) " >&6
7216else 7203else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h. */ 7205/* end confdefs.h. */
7219#include <clocale> 7206#include <locale.h>
7220int 7207int
7221main () 7208main ()
7222{ 7209{
7223setlocale(LC_CTYPE, ""); 7210setlocale(LC_CTYPE, "");
7224 ; 7211 ;
7272$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7259$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7273 7260
7274fi 7261fi
7275 7262
7276 7263
7264case $host in
7265 *-*-solaris*)
7266
7267$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7270$as_echo_n "checking for library containing sendmsg... " >&6; }
7271if test "${ac_cv_search_sendmsg+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273else
7274 ac_func_search_save_LIBS=$LIBS
7275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h. */
7277
7278/* Override any GCC internal prototype to avoid an error.
7279 Use char because int might match the return type of a GCC
7280 builtin and then its argument prototype would still apply. */
7281#ifdef __cplusplus
7282extern "C"
7283#endif
7284char sendmsg ();
7285int
7286main ()
7287{
7288return sendmsg ();
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293for ac_lib in '' socket; do
7294 if test -z "$ac_lib"; then
7295 ac_res="none required"
7296 else
7297 ac_res=-l$ac_lib
7298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7299 fi
7300 if ac_fn_cxx_try_link "$LINENO"; then :
7301 ac_cv_search_sendmsg=$ac_res
7302fi
7303rm -f core conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext
7305 if test "${ac_cv_search_sendmsg+set}" = set; then :
7306 break
7307fi
7308done
7309if test "${ac_cv_search_sendmsg+set}" = set; then :
7310
7311else
7312 ac_cv_search_sendmsg=no
7313fi
7314rm conftest.$ac_ext
7315LIBS=$ac_func_search_save_LIBS
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7318$as_echo "$ac_cv_search_sendmsg" >&6; }
7319ac_res=$ac_cv_search_sendmsg
7320if test "$ac_res" != no; then :
7321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7322
7323fi
7324
7325 ;;
7326esac
7327
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7278$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } 7329$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7279if test "${pt_cv_can_pass_fds+set}" = set; then : 7330if test "${pt_cv_can_pass_fds+set}" = set; then :
7280 $as_echo_n "(cached) " >&6 7331 $as_echo_n "(cached) " >&6
7281else 7332else
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h. */ 7334/* end confdefs.h. */
7284 7335
7285#include <cstddef> // broken bsds (is that redundant?) need this 7336#include <stddef.h> // broken bsds (is that redundant?) need this
7286#include <sys/types.h> 7337#include <sys/types.h>
7287#include <sys/socket.h> 7338#include <sys/socket.h>
7288#include <sys/uio.h> 7339#include <sys/uio.h>
7289 7340
7290int 7341int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines