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.96 by ayin, Tue Dec 11 17:42:04 2007 UTC vs.
Revision 1.100 by root, Sun Dec 23 05:03:52 2007 UTC

482 sys/sockio.h \ 482 sys/sockio.h \
483 sys/strredir.h \ 483 sys/strredir.h \
484 stdint.h \ 484 stdint.h \
485 wchar.h \ 485 wchar.h \
486 cwchar \ 486 cwchar \
487 clocale \
488) 487)
489 488
490dnl# check to allow both <termios.h> and <sys/ioctl.h> 489dnl# check to allow both <termios.h> and <sys/ioctl.h>
491AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, 490AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl,
492[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> 491[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
518dnl# -------------------------------------------------------------------------- 517dnl# --------------------------------------------------------------------------
519dnl# CHECKING FOR MISSING TYPEDEFS 518dnl# CHECKING FOR MISSING TYPEDEFS
520dnl# -------------------------------------------------------------------------- 519dnl# --------------------------------------------------------------------------
521dnl# Missing typedefs and replacements 520dnl# Missing typedefs and replacements
522AC_TYPE_MODE_T 521AC_TYPE_MODE_T
523dnl> AC_CHECK_TYPE(umode_t, int)
524dnl> AC_CHECK_TYPE(off_t, long)
525AC_TYPE_PID_T 522AC_TYPE_PID_T
526AC_TYPE_UID_T 523AC_TYPE_UID_T
527 524AC_TYPE_INT16_T
528AC_CHECK_SIZEOF(short, 2) 525AC_TYPE_UINT16_T
529AC_CHECK_SIZEOF(int, 4) 526AC_TYPE_INT32_T
530dnl AC_CHECK_SIZEOF(long, 4) 527AC_TYPE_UINT32_T
531AC_CHECK_SIZEOF(long long, 8)
532AC_CHECK_SIZEOF(int *, 4)
533
534dnl# see usage below
535AC_DEFUN([RXVT_CHECK_SIZE],
536 [AC_CACHE_CHECK([for $2], $1,
537 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
538if test "$ac_cv_sizeof_char" -ge $3; then
539 $1="$4 char"
540else
541 if test "$ac_cv_sizeof_short" -ge $3; then
542 $1="$4 short"
543 else
544 if test "$ac_cv_sizeof_int" -ge $3; then
545 $1="$4 int"
546 else
547 if test "$ac_cv_sizeof_long" -ge $3; then
548 $1="$4 long"
549 else
550 if test "$ac_cv_sizeof_long_long" -ge $3; then
551 $1="$4 long long"
552 else
553 $1="$4 $5" # we _must_ have a (possibly wrong) default
554 fi
555 fi
556 fi
557 fi
558fi])])]
559if test x"$$1" != xyes; then
560 $6="typedef $$1 $2;"
561else
562 if test x"$4" = x; then
563 $6="/* typedef $5 $2; */"
564 else
565 $6="/* typedef $4 $5 $2; */"
566 fi
567fi dnl
568)
569dnl#
570dnl# Look for types the system may know about anyway.
571dnl#
572RXVT_CHECK_SIZE(rxvt_cv_int16_t, int16_t, 2, , short, rxvt_int16_typedef)
573AC_SUBST(rxvt_int16_typedef)
574RXVT_CHECK_SIZE(rxvt_cv_uint16_t, uint16_t, 2, unsigned, short, rxvt_uint16_typedef)
575AC_SUBST(rxvt_uint16_typedef)
576RXVT_CHECK_SIZE(rxvt_cv_int32_t, int32_t, 4, , int, rxvt_int32_typedef)
577AC_SUBST(rxvt_int32_typedef)
578RXVT_CHECK_SIZE(rxvt_cv_uint32_t, uint32_t, 4, unsigned, int, rxvt_uint32_typedef)
579AC_SUBST(rxvt_uint32_typedef)
580dnl RXVT_CHECK_SIZE(rxvt_cv_int64_t, int64_t, 8, , long long, rxvt_int64_typedef)
581dnl AC_SUBST(rxvt_int64_typedef)
582dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef)
583dnl AC_SUBST(rxvt_uint64_typedef)
584 528
585dnl# -------------------------------------------------------------------------- 529dnl# --------------------------------------------------------------------------
586dnl# CHECKING FOR LIBRARY FUNCTIONS 530dnl# CHECKING FOR LIBRARY FUNCTIONS
587dnl# -------------------------------------------------------------------------- 531dnl# --------------------------------------------------------------------------
588AC_CHECK_FUNCS(unsetenv) 532AC_CHECK_FUNCS(unsetenv)
776 720
777 save_CXXFLAGS="$CXXFLAGS" 721 save_CXXFLAGS="$CXXFLAGS"
778 save_LIBS="$LIBS" 722 save_LIBS="$LIBS"
779 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 723 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
780 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 724 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
781 AC_TRY_LINK([ 725 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
782#include <EXTERN.h> 726#include <EXTERN.h>
783#include <perl.h> 727#include <perl.h>
784#include <XSUB.h> 728#include <XSUB.h>
785],[ 729]], [[
786 PerlInterpreter *perl = perl_alloc (); 730 PerlInterpreter *perl = perl_alloc ();
787],[rxvt_perl_link=yes],[rxvt_perl_link=no]) 731]])],[rxvt_perl_link=yes],[rxvt_perl_link=no])
788 CXXFLAGS="$save_CXXFLAGS" 732 CXXFLAGS="$save_CXXFLAGS"
789 LIBS="$save_LIBS" 733 LIBS="$save_LIBS"
790 734
791 if test x$rxvt_perl_link = xyes; then 735 if test x$rxvt_perl_link = xyes; then
792 AC_MSG_RESULT(ok) 736 AC_MSG_RESULT(ok)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines