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

Comparing rxvt-unicode/configure (file contents):
Revision 1.152 by root, Thu Jan 19 17:10:54 2012 UTC vs.
Revision 1.153 by root, Sat Jan 21 12:44:11 2012 UTC

617CXXCPP 617CXXCPP
618RXVTNAME 618RXVTNAME
619LINKER 619LINKER
620EGREP 620EGREP
621GREP 621GREP
622CPP
622INSTALL_DATA 623INSTALL_DATA
623INSTALL_SCRIPT 624INSTALL_SCRIPT
624INSTALL_PROGRAM 625INSTALL_PROGRAM
625CPP
626ac_ct_CXX 626ac_ct_CXX
627CXXFLAGS 627CXXFLAGS
628CXX 628CXX
629OBJEXT 629OBJEXT
630EXEEXT 630EXEEXT
3794ac_cpp='$CPP $CPPFLAGS' 3794ac_cpp='$CPP $CPPFLAGS'
3795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 3798
3799ac_ext=c
3800ac_cpp='$CPP $CPPFLAGS'
3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3805$as_echo_n "checking how to run the C preprocessor... " >&6; }
3806# On Suns, sometimes $CPP names a directory.
3807if test -n "$CPP" && test -d "$CPP"; then
3808 CPP=
3809fi
3810if test -z "$CPP"; then
3811 if test "${ac_cv_prog_CPP+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813else
3814 # Double quotes because CPP needs to be expanded
3815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3816 do
3817 ac_preproc_ok=false
3818for ac_c_preproc_warn_flag in '' yes
3819do
3820 # Use a header file that comes with gcc, so configuring glibc
3821 # with a fresh cross-compiler works.
3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823 # <limits.h> exists even on freestanding compilers.
3824 # On the NeXT, cc -E runs the code through the compiler's parser,
3825 # not just through cpp. "Syntax error" is here to catch this case.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h. */
3828#ifdef __STDC__
3829# include <limits.h>
3830#else
3831# include <assert.h>
3832#endif
3833 Syntax error
3834_ACEOF
3835if ac_fn_c_try_cpp "$LINENO"; then :
3836
3837else
3838 # Broken: fails on valid input.
3839continue
3840fi
3841rm -f conftest.err conftest.i conftest.$ac_ext
3842
3843 # OK, works on sane cases. Now check whether nonexistent headers
3844 # can be detected and how.
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847#include <ac_nonexistent.h>
3848_ACEOF
3849if ac_fn_c_try_cpp "$LINENO"; then :
3850 # Broken: success on invalid input.
3851continue
3852else
3853 # Passes both tests.
3854ac_preproc_ok=:
3855break
3856fi
3857rm -f conftest.err conftest.i conftest.$ac_ext
3858
3859done
3860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861rm -f conftest.i conftest.err conftest.$ac_ext
3862if $ac_preproc_ok; then :
3863 break
3864fi
3865
3866 done
3867 ac_cv_prog_CPP=$CPP
3868
3869fi
3870 CPP=$ac_cv_prog_CPP
3871else
3872 ac_cv_prog_CPP=$CPP
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3875$as_echo "$CPP" >&6; }
3876ac_preproc_ok=false
3877for ac_c_preproc_warn_flag in '' yes
3878do
3879 # Use a header file that comes with gcc, so configuring glibc
3880 # with a fresh cross-compiler works.
3881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 # <limits.h> exists even on freestanding compilers.
3883 # On the NeXT, cc -E runs the code through the compiler's parser,
3884 # not just through cpp. "Syntax error" is here to catch this case.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h. */
3887#ifdef __STDC__
3888# include <limits.h>
3889#else
3890# include <assert.h>
3891#endif
3892 Syntax error
3893_ACEOF
3894if ac_fn_c_try_cpp "$LINENO"; then :
3895
3896else
3897 # Broken: fails on valid input.
3898continue
3899fi
3900rm -f conftest.err conftest.i conftest.$ac_ext
3901
3902 # OK, works on sane cases. Now check whether nonexistent headers
3903 # can be detected and how.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h. */
3906#include <ac_nonexistent.h>
3907_ACEOF
3908if ac_fn_c_try_cpp "$LINENO"; then :
3909 # Broken: success on invalid input.
3910continue
3911else
3912 # Passes both tests.
3913ac_preproc_ok=:
3914break
3915fi
3916rm -f conftest.err conftest.i conftest.$ac_ext
3917
3918done
3919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920rm -f conftest.i conftest.err conftest.$ac_ext
3921if $ac_preproc_ok; then :
3922
3923else
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3927See \`config.log' for more details" "$LINENO" 5 ; }
3928fi
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936# Find a good install program. We prefer a C program (faster), 3799# Find a good install program. We prefer a C program (faster),
3937# so one script is as good as another. But avoid the broken or 3800# so one script is as good as another. But avoid the broken or
3938# incompatible versions: 3801# incompatible versions:
3939# SysV /etc/install, /usr/sbin/install 3802# SysV /etc/install, /usr/sbin/install
3940# SunOS /usr/etc/install 3803# SunOS /usr/etc/install
4025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3888test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4026 3889
4027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3890test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4028 3891
4029 3892
3893
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3900$as_echo_n "checking how to run the C preprocessor... " >&6; }
3901# On Suns, sometimes $CPP names a directory.
3902if test -n "$CPP" && test -d "$CPP"; then
3903 CPP=
3904fi
3905if test -z "$CPP"; then
3906 if test "${ac_cv_prog_CPP+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908else
3909 # Double quotes because CPP needs to be expanded
3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3911 do
3912 ac_preproc_ok=false
3913for ac_c_preproc_warn_flag in '' yes
3914do
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923#ifdef __STDC__
3924# include <limits.h>
3925#else
3926# include <assert.h>
3927#endif
3928 Syntax error
3929_ACEOF
3930if ac_fn_c_try_cpp "$LINENO"; then :
3931
3932else
3933 # Broken: fails on valid input.
3934continue
3935fi
3936rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938 # OK, works on sane cases. Now check whether nonexistent headers
3939 # can be detected and how.
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h. */
3942#include <ac_nonexistent.h>
3943_ACEOF
3944if ac_fn_c_try_cpp "$LINENO"; then :
3945 # Broken: success on invalid input.
3946continue
3947else
3948 # Passes both tests.
3949ac_preproc_ok=:
3950break
3951fi
3952rm -f conftest.err conftest.i conftest.$ac_ext
3953
3954done
3955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956rm -f conftest.i conftest.err conftest.$ac_ext
3957if $ac_preproc_ok; then :
3958 break
3959fi
3960
3961 done
3962 ac_cv_prog_CPP=$CPP
3963
3964fi
3965 CPP=$ac_cv_prog_CPP
3966else
3967 ac_cv_prog_CPP=$CPP
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3970$as_echo "$CPP" >&6; }
3971ac_preproc_ok=false
3972for ac_c_preproc_warn_flag in '' yes
3973do
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */
3982#ifdef __STDC__
3983# include <limits.h>
3984#else
3985# include <assert.h>
3986#endif
3987 Syntax error
3988_ACEOF
3989if ac_fn_c_try_cpp "$LINENO"; then :
3990
3991else
3992 # Broken: fails on valid input.
3993continue
3994fi
3995rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
4001#include <ac_nonexistent.h>
4002_ACEOF
4003if ac_fn_c_try_cpp "$LINENO"; then :
4004 # Broken: success on invalid input.
4005continue
4006else
4007 # Passes both tests.
4008ac_preproc_ok=:
4009break
4010fi
4011rm -f conftest.err conftest.i conftest.$ac_ext
4012
4013done
4014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015rm -f conftest.i conftest.err conftest.$ac_ext
4016if $ac_preproc_ok; then :
4017
4018else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4022See \`config.log' for more details" "$LINENO" 5 ; }
4023fi
4024
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 4030
4031 4031
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4033$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4033$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4034if test "${ac_cv_path_GREP+set}" = set; then : 4034if test "${ac_cv_path_GREP+set}" = set; then :
7194 7194
7195fi 7195fi
7196LIBS=$save_LIBS 7196LIBS=$save_LIBS
7197CFLAGS=$save_CFLAGS 7197CFLAGS=$save_CFLAGS
7198 7198
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7200$as_echo_n "checking for working plain setlocale... " >&6; }
7201if test "${rxvt_cv_func_setlocale+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h. */
7206#include <locale.h>
7207int
7208main ()
7209{
7210setlocale(LC_CTYPE, "");
7211 ;
7212 return 0;
7213}
7214_ACEOF
7215if ac_fn_cxx_try_link "$LINENO"; then :
7216 rxvt_cv_func_setlocale=yes
7217else
7218 rxvt_cv_func_setlocale=no
7219fi
7220rm -f core conftest.err conftest.$ac_objext \
7221 conftest$ac_exeext conftest.$ac_ext
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7224$as_echo "$rxvt_cv_func_setlocale" >&6; }
7225if test x$rxvt_cv_func_setlocale = xyes; then
7226
7227$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7228
7229fi
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7232$as_echo_n "checking for working nl_langinfo... " >&6; } 7200$as_echo_n "checking for working nl_langinfo... " >&6; }
7233if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : 7201if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7234 $as_echo_n "(cached) " >&6 7202 $as_echo_n "(cached) " >&6
7235else 7203else
7393for ac_header in \ 7361for ac_header in \
7394 pty.h \ 7362 pty.h \
7395 util.h \ 7363 util.h \
7396 libutil.h \ 7364 libutil.h \
7397 sys/ioctl.h \ 7365 sys/ioctl.h \
7398 sys/stropts.h \
7399 stropts.h \ 7366 stropts.h \
7400 7367
7401do : 7368do :
7402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7370ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines