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.43 by root, Mon Jan 3 12:00:50 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
33AC_PROG_INSTALL 35AC_PROG_INSTALL
34AC_PROG_AWK 36AC_PROG_AWK
35 37
36AC_LANG(C) 38AC_LANG(C)
37 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
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"
42 LIBS="$LIBS -lsupc++" 55 LIBS="$LIBS -lsupc++"
76AC_PROG_LIBTOOL()dnl# libtool 89AC_PROG_LIBTOOL()dnl# libtool
77 90
78MALLOC_TYPE=S 91MALLOC_TYPE=S
79support_addstrings=no 92support_addstrings=no
80support_frills=no 93support_frills=no
81support_linespace=no
82support_inheritpixmap=no 94support_inheritpixmap=no
83support_tinting=no 95support_tinting=no
84support_fading=no 96support_fading=no
85support_keepscrolling=no 97support_keepscrolling=no
86support_selectionscrolling=no 98support_selectionscrolling=no
122 NOTE: this option is order dependent 134 NOTE: this option is order dependent
123 NOTE: automatically enabled with --enable-shared], 135 NOTE: automatically enabled with --enable-shared],
124 [if test x$enableval = xyes; then 136 [if test x$enableval = xyes; then
125 support_24bit=yes 137 support_24bit=yes
126 support_frills=yes 138 support_frills=yes
127 support_linespace=yes
128 support_inheritpixmap=yes 139 support_inheritpixmap=yes
129 support_tinting=yes 140 support_tinting=yes
130 support_fading=yes 141 support_fading=yes
131 support_keepscrolling=yes 142 support_keepscrolling=yes
132 support_selectionscrolling=yes 143 support_selectionscrolling=yes
358 [ --enable-frills enable support for rarely used features], 369 [ --enable-frills enable support for rarely used features],
359 [if test x$enableval = xyes -o x$enableval = xno; then 370 [if test x$enableval = xyes -o x$enableval = xno; then
360 support_frills=$enableval 371 support_frills=$enableval
361 fi]) 372 fi])
362 373
363AC_ARG_ENABLE(linespace,
364 [ --enable-linespace enable support for linespace],
365 [if test x$enableval = xyes -o x$enableval = xno; then
366 support_linespace=$enableval
367 fi])
368
369AC_ARG_ENABLE(24bit, 374AC_ARG_ENABLE(24bit,
370 [ --enable-24bit enable support for using 24bit visuals if available], 375 [ --enable-24bit enable support for using 24bit visuals if available],
371 [if test x$enableval = xyes -o x$enableval = xno; then 376 [if test x$enableval = xyes -o x$enableval = xno; then
372 support_24bit=$enableval 377 support_24bit=$enableval
373 fi]) 378 fi])
452 fi]) 457 fi])
453 458
454dnl# -------------------------------------------------------------------------- 459dnl# --------------------------------------------------------------------------
455 460
456AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) 461AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes)
457
458dnl# --------------------------------------------------------------------------
459dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
460dnl#
461if test -z "$CFLAGS"; then
462 if test -z "$CCOPTS"; then
463 CCOPTS='-O'
464dnl> if test "x$GCC" = xyes; then
465dnl> if test x$system = xLinux; then
466dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce'
467dnl> fi
468dnl> fi
469 fi
470 CFLAGS="$CCOPTS"
471fi
472 462
473AC_PATH_PROG(MV, mv, mv) 463AC_PATH_PROG(MV, mv, mv)
474AC_PATH_PROG(RM, rm, rm) 464AC_PATH_PROG(RM, rm, rm)
475AC_PATH_PROG(CP, cp, cp) 465AC_PATH_PROG(CP, cp, cp)
476AC_PATH_PROG(LN, ln, ln) 466AC_PATH_PROG(LN, ln, ln)
528 sys/stropts.h \ 518 sys/stropts.h \
529 sys/time.h \ 519 sys/time.h \
530 utmp.h \ 520 utmp.h \
531 utmpx.h \ 521 utmpx.h \
532 stdint.h \ 522 stdint.h \
523 pty.h \
524 wchar.h \
525 cwchar \
526 clocale \
533) 527)
534 528
535AC_HEADER_TIME 529AC_HEADER_TIME
536 530
537dnl# check to allow both <termios.h> and <sys/ioctl.h> 531dnl# check to allow both <termios.h> and <sys/ioctl.h>
615 609
616dnl# see usage below 610dnl# see usage below
617AC_DEFUN(RXVT_CHECK_SIZE, 611AC_DEFUN(RXVT_CHECK_SIZE,
618 [AC_CACHE_CHECK([for $2], $1, 612 [AC_CACHE_CHECK([for $2], $1,
619 [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
620if test $ac_cv_sizeof_char -ge $3; then 614if test "$ac_cv_sizeof_char" -ge $3; then
621 $1="$4 char" 615 $1="$4 char"
622else 616else
623 if test $ac_cv_sizeof_short -ge $3; then 617 if test "$ac_cv_sizeof_short" -ge $3; then
624 $1="$4 short" 618 $1="$4 short"
625 else 619 else
626 if test $ac_cv_sizeof_int -ge $3; then 620 if test "$ac_cv_sizeof_int" -ge $3; then
627 $1="$4 int" 621 $1="$4 int"
628 else 622 else
629 if test $ac_cv_sizeof_long -ge $3; then 623 if test "$ac_cv_sizeof_long" -ge $3; then
630 $1="$4 long" 624 $1="$4 long"
631 else 625 else
632 if test $ac_cv_sizeof_long_long -ge $3; then 626 if test "$ac_cv_sizeof_long_long" -ge $3; then
633 $1="$4 long long" 627 $1="$4 long long"
634 else 628 else
635 $1="$4 $5" # we _must_ have a (possibly wrong) default 629 $1="$4 $5" # we _must_ have a (possibly wrong) default
636 fi 630 fi
637 fi 631 fi
664dnl 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)
665dnl AC_SUBST(rxvt_uint64_typedef) 659dnl AC_SUBST(rxvt_uint64_typedef)
666dnl# 660dnl#
667dnl# Now look for another we use 661dnl# Now look for another we use
668dnl# 662dnl#
669if test $ac_cv_sizeof_int_p -eq 8; then 663if test "$ac_cv_sizeof_int_p" -eq 8; then
670 rxvt_intp_define="#define intp_t int64_t" 664 rxvt_intp_define="#define intp_t int64_t"
671 rxvt_u_intp_define="#define u_intp_t u_int64_t" 665 rxvt_u_intp_define="#define u_intp_t u_int64_t"
672else 666else
673 if test $ac_cv_sizeof_int_p -eq 4; then 667 if test "$ac_cv_sizeof_int_p" -eq 4; then
674 rxvt_intp_define="#define intp_t int32_t" 668 rxvt_intp_define="#define intp_t int32_t"
675 rxvt_u_intp_define="#define u_intp_t u_int32_t" 669 rxvt_u_intp_define="#define u_intp_t u_int32_t"
676 else 670 else
677 if test $ac_cv_sizeof_int_p -eq 2; then 671 if test "$ac_cv_sizeof_int_p" -eq 2; then
678 rxvt_intp_define="#define intp_t int16_t" 672 rxvt_intp_define="#define intp_t int16_t"
679 rxvt_u_intp_define="#define u_intp_t u_int16_t" 673 rxvt_u_intp_define="#define u_intp_t u_int16_t"
680 else 674 else
681 rxvt_intp_define="#error set intp_t" 675 rxvt_intp_define="#error set intp_t"
682 rxvt_u_intp_define="#error set u_intp_t" 676 rxvt_u_intp_define="#error set u_intp_t"
1233 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) 1227 AC_DEFINE(MENUBAR, 1, Define if you want Menubar support)
1234fi 1228fi
1235if test x$support_frills = xyes; then 1229if test x$support_frills = xyes; then
1236 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) 1230 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
1237fi 1231fi
1238if test x$support_linespace = xno; then
1239 AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace)
1240fi
1241if test x$support_24bit = xyes; then 1232if test x$support_24bit = xyes; then
1242 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) 1233 AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit)
1243fi 1234fi
1244if test x$support_mousewheel = xyes; then 1235if test x$support_mousewheel = xyes; then
1245 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 1236 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
1373 1364
1374AC_CONFIG_FILES([autoconf/Make.common \ 1365AC_CONFIG_FILES([autoconf/Make.common \
1375Makefile \ 1366Makefile \
1376doc/Makefile \ 1367doc/Makefile \
1377src/Makefile \ 1368src/Makefile \
1378src/test/Makefile \
1379src/rxvtlib.h \ 1369src/rxvtlib.h \
1380W11/Makefile \
1381]) 1370])
1382AC_OUTPUT 1371AC_OUTPUT
1383 1372
1384echo "Configuration: 1373echo "Configuration:
1385 1374

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines