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

Comparing rxvt-unicode/autoconf/configure.in (file contents):
Revision 1.45 by root, Tue Jan 11 04:44:57 2005 UTC vs.
Revision 1.49 by root, Sun Feb 13 08:56:27 2005 UTC

1dnl# -*- sh -*- 1dnl# -*- sh -*-
2dnl# 2dnl#
3dnl# Process this file with autoconf to produce a configure script. 3dnl# Process this file with autoconf to produce a configure script.
4dnl# 4dnl#
5orig_CXXFLAGS="$CXXFLAGS"
6
5AC_INIT 7AC_INIT
6AC_CONFIG_SRCDIR([src/feature.h]) 8AC_CONFIG_SRCDIR([src/feature.h])
7AC_CONFIG_AUX_DIR(autoconf) 9AC_CONFIG_AUX_DIR(autoconf)
8AC_CONFIG_HEADER(config.h:autoconf/config.h.in) 10AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
9 11
32AC_PROG_CPP 34AC_PROG_CPP
33AC_PROG_INSTALL 35AC_PROG_INSTALL
34AC_PROG_AWK 36AC_PROG_AWK
35 37
36AC_LANG(C) 38AC_LANG(C)
39
40dnl# --------------------------------------------------------------------------
41dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
42dnl#
43if test -z "$orig_CXXFLAGS"; then
44 CXXFLAGS='-O'
45 if test x$GCC = xyes && test "x$GXX" = xyes; then
46 CXXFLAGS="-g -O3"
47 fi
48 CFLAGS="$CXXFLAGS"
49fi
37 50
38LINKER="$CXX" 51LINKER="$CXX"
39if test x$GCC = xyes && test x$GXX = xyes; then 52if test x$GCC = xyes && test x$GXX = xyes; then
40 AC_CHECK_LIB(supc++, main, [ 53 AC_CHECK_LIB(supc++, main, [
41 LINKER="$CC" 54 LINKER="$CC"
445 458
446dnl# -------------------------------------------------------------------------- 459dnl# --------------------------------------------------------------------------
447 460
448AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) 461AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes)
449 462
450dnl# --------------------------------------------------------------------------
451dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
452dnl#
453if test -z "$CFLAGS"; then
454 if test -z "$CCOPTS"; then
455 CCOPTS='-O'
456dnl> if test "x$GCC" = xyes; then
457dnl> if test x$system = xLinux; then
458dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce'
459dnl> fi
460dnl> fi
461 fi
462 CFLAGS="$CCOPTS"
463fi
464
465AC_PATH_PROG(MV, mv, mv) 463AC_PATH_PROG(MV, mv, mv)
466AC_PATH_PROG(RM, rm, rm) 464AC_PATH_PROG(RM, rm, rm)
467AC_PATH_PROG(CP, cp, cp) 465AC_PATH_PROG(CP, cp, cp)
468AC_PATH_PROG(LN, ln, ln) 466AC_PATH_PROG(LN, ln, ln)
469AC_PATH_PROG(SED, sed, sed) 467AC_PATH_PROG(SED, sed, sed)
521 sys/time.h \ 519 sys/time.h \
522 utmp.h \ 520 utmp.h \
523 utmpx.h \ 521 utmpx.h \
524 stdint.h \ 522 stdint.h \
525 pty.h \ 523 pty.h \
524 wchar.h \
525 cwchar \
526 clocale \
526) 527)
527 528
528AC_HEADER_TIME 529AC_HEADER_TIME
529 530
530dnl# check to allow both <termios.h> and <sys/ioctl.h> 531dnl# check to allow both <termios.h> and <sys/ioctl.h>
608 609
609dnl# see usage below 610dnl# see usage below
610AC_DEFUN(RXVT_CHECK_SIZE, 611AC_DEFUN(RXVT_CHECK_SIZE,
611 [AC_CACHE_CHECK([for $2], $1, 612 [AC_CACHE_CHECK([for $2], $1,
612 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl 613 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
613if test $ac_cv_sizeof_char -ge $3; then 614if test "$ac_cv_sizeof_char" -ge $3; then
614 $1="$4 char" 615 $1="$4 char"
615else 616else
616 if test $ac_cv_sizeof_short -ge $3; then 617 if test "$ac_cv_sizeof_short" -ge $3; then
617 $1="$4 short" 618 $1="$4 short"
618 else 619 else
619 if test $ac_cv_sizeof_int -ge $3; then 620 if test "$ac_cv_sizeof_int" -ge $3; then
620 $1="$4 int" 621 $1="$4 int"
621 else 622 else
622 if test $ac_cv_sizeof_long -ge $3; then 623 if test "$ac_cv_sizeof_long" -ge $3; then
623 $1="$4 long" 624 $1="$4 long"
624 else 625 else
625 if test $ac_cv_sizeof_long_long -ge $3; then 626 if test "$ac_cv_sizeof_long_long" -ge $3; then
626 $1="$4 long long" 627 $1="$4 long long"
627 else 628 else
628 $1="$4 $5" # we _must_ have a (possibly wrong) default 629 $1="$4 $5" # we _must_ have a (possibly wrong) default
629 fi 630 fi
630 fi 631 fi
657dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) 658dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef)
658dnl AC_SUBST(rxvt_uint64_typedef) 659dnl AC_SUBST(rxvt_uint64_typedef)
659dnl# 660dnl#
660dnl# Now look for another we use 661dnl# Now look for another we use
661dnl# 662dnl#
662if test $ac_cv_sizeof_int_p -eq 8; then 663if test "$ac_cv_sizeof_int_p" -eq 8; then
663 rxvt_intp_define="#define intp_t int64_t" 664 rxvt_intp_define="#define intp_t int64_t"
664 rxvt_u_intp_define="#define u_intp_t u_int64_t" 665 rxvt_u_intp_define="#define u_intp_t u_int64_t"
665else 666else
666 if test $ac_cv_sizeof_int_p -eq 4; then 667 if test "$ac_cv_sizeof_int_p" -eq 4; then
667 rxvt_intp_define="#define intp_t int32_t" 668 rxvt_intp_define="#define intp_t int32_t"
668 rxvt_u_intp_define="#define u_intp_t u_int32_t" 669 rxvt_u_intp_define="#define u_intp_t u_int32_t"
669 else 670 else
670 if test $ac_cv_sizeof_int_p -eq 2; then 671 if test "$ac_cv_sizeof_int_p" -eq 2; then
671 rxvt_intp_define="#define intp_t int16_t" 672 rxvt_intp_define="#define intp_t int16_t"
672 rxvt_u_intp_define="#define u_intp_t u_int16_t" 673 rxvt_u_intp_define="#define u_intp_t u_int16_t"
673 else 674 else
674 rxvt_intp_define="#error set intp_t" 675 rxvt_intp_define="#error set intp_t"
675 rxvt_u_intp_define="#error set u_intp_t" 676 rxvt_u_intp_define="#error set u_intp_t"
1363 1364
1364AC_CONFIG_FILES([autoconf/Make.common \ 1365AC_CONFIG_FILES([autoconf/Make.common \
1365Makefile \ 1366Makefile \
1366doc/Makefile \ 1367doc/Makefile \
1367src/Makefile \ 1368src/Makefile \
1368src/test/Makefile \
1369src/rxvtlib.h \ 1369src/rxvtlib.h \
1370W11/Makefile \
1371]) 1370])
1372AC_OUTPUT 1371AC_OUTPUT
1373 1372
1374echo "Configuration: 1373echo "Configuration:
1375 1374

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines