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.83 by root, Sun Nov 18 01:02:09 2007 UTC vs.
Revision 1.89 by ayin, Mon Dec 10 23:36:05 2007 UTC

15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
17changequote([, ])dnl 17changequote([, ])dnl
18AC_SUBST(VERSION)dnl 18AC_SUBST(VERSION)dnl
19AC_SUBST(DATE)dnl 19AC_SUBST(DATE)dnl
20AC_SUBST(LSMDATE)dnl
21AC_SUBST(LIBVERSION)dnl 20dnl AC_SUBST(LIBVERSION)dnl
22 21
23echo "" 22echo ""
24echo "configuring for rxvt $VERSION" 23echo "configuring for rxvt $VERSION"
25echo "" 24echo ""
26 25
27orig_CXXFLAGS="$CXXFLAGS" 26orig_CXXFLAGS="$CXXFLAGS"
28 27
29dnl# Checks for programs. 28dnl# Checks for programs.
30dnl AC_MAKE_SET
31
32AC_PROG_CC 29AC_PROG_CC
33AC_PROG_CXX 30AC_PROG_CXX
34AC_PROG_CPP 31AC_PROG_CPP
35AC_PROG_INSTALL 32AC_PROG_INSTALL
36 33
63dnl# -------------------------------------------------------------------------- 60dnl# --------------------------------------------------------------------------
64dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' 61dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
65dnl# 62dnl#
66if test -z "$orig_CXXFLAGS"; then 63if test -z "$orig_CXXFLAGS"; then
67 if test x$GCC = xyes && test "x$GXX" = xyes; then 64 if test x$GCC = xyes && test "x$GXX" = xyes; then
68 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 65 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
69 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) 66 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"])
70 else 67 else
71 CXXFLAGS="-O" 68 CXXFLAGS="-O"
72 fi 69 fi
73 CFLAGS="$CXXFLAGS" 70 CFLAGS="$CXXFLAGS"
123 120
124dnl# -------------------------------------------------------------------------- 121dnl# --------------------------------------------------------------------------
125dnl# CHECKING COMMAND LINE OPTIONS 122dnl# CHECKING COMMAND LINE OPTIONS
126dnl# -------------------------------------------------------------------------- 123dnl# --------------------------------------------------------------------------
127 124
128if test "x$enable_shared" = xyes; then 125dnl if test "x$enable_shared" = xyes; then
129 AC_DEFINE(LIBRXVT, 1, Build shared library version - specify via configure only) 126dnl AC_DEFINE(LIBRXVT, 1, Build shared library version - specify via configure only)
130 INSTALL_LIBRXVT=yes 127dnl INSTALL_LIBRXVT=yes
131fi 128dnl fi
132AC_SUBST(INSTALL_LIBRXVT) 129dnl AC_SUBST(INSTALL_LIBRXVT)
133 130
134AC_ARG_ENABLE(everything, 131AC_ARG_ENABLE(everything,
135 [ --enable-everything enable standard non-multichoice features 132 [ --enable-everything enable standard non-multichoice features
136 NOTE: this option is order dependent 133 NOTE: this option is order dependent],
137 NOTE: automatically enabled with --enable-shared],
138 [ 134 [
139 if test x$enableval = xno; then 135 if test x$enableval = xno; then
140 support_frills=no 136 support_frills=no
141 support_inheritpixmap=no 137 support_inheritpixmap=no
142 support_fading=no 138 support_fading=no
282 [ --enable-xterm-scroll enable Xterm style scrollbar], 278 [ --enable-xterm-scroll enable Xterm style scrollbar],
283 [if test x$enableval = xyes -o x$enableval = xno; then 279 [if test x$enableval = xyes -o x$enableval = xno; then
284 support_scroll_xterm=$enableval 280 support_scroll_xterm=$enableval
285 fi]) 281 fi])
286 282
283AC_ARG_ENABLE(plain-scroll,
284 [ --enable-plain-scroll enable plain style scrollbar],
285 [if test x$enableval = xyes -o x$enableval = xno; then
286 support_scroll_plain=$enableval
287 fi])
288
287AC_ARG_ENABLE(perl, 289AC_ARG_ENABLE(perl,
288 [ --enable-perl enable embedded perl interpreter], 290 [ --enable-perl enable embedded perl interpreter],
289 [if test x$enableval = xyes -o x$enableval = xno; then 291 [if test x$enableval = xyes -o x$enableval = xno; then
290 support_perl=$enableval 292 support_perl=$enableval
291 fi])
292
293AC_ARG_ENABLE(plain-scroll,
294 [ --enable-plain-scroll enable plain style scrollbar],
295 [if test x$enableval = xyes -o x$enableval = xno; then
296 support_scroll_plain=$enableval
297 fi]) 293 fi])
298 294
299AC_ARG_WITH(codesets, 295AC_ARG_WITH(codesets,
300 [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], 296 [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
301 [codesets="$withval"]) 297 [codesets="$withval"])
436 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 432 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
437 fi]) 433 fi])
438 434
439dnl# -------------------------------------------------------------------------- 435dnl# --------------------------------------------------------------------------
440 436
437LIBEV_M4_AVOID_LIBRT=1
441m4_include([libev/libev.m4]) 438m4_include([libev/libev.m4])
442 439
443dnl# -------------------------------------------------------------------------- 440dnl# --------------------------------------------------------------------------
444 441
445AC_PATH_PROG(TIC, tic, :) 442AC_PATH_PROG(TIC, tic, :)
446
447dnl# need a neat way to detect SVR4 or its features
448dnl# in src/command.c we use these functions:
449dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
450dnl# - but are these also defined for other systems?
451
452dnl# hack to find if this is SVR4 -- who knows?
453dnl## AC_MSG_CHECKING(for SVR4)
454dnl## AC_EGREP_CPP(yes,
455dnl## [#if defined (SVR4) || defined (_SVR4) || defined (__svr4__)
456dnl## yes;
457dnl## #endif
458dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?))
459 443
460AC_PATH_XTRA 444AC_PATH_XTRA
461 445
462AFTERIMAGE_CFLAGS= 446AFTERIMAGE_CFLAGS=
463AFTERIMAGE_LIBS= 447AFTERIMAGE_LIBS=
495fi 479fi
496 480
497dnl# -------------------------------------------------------------------------- 481dnl# --------------------------------------------------------------------------
498dnl# CHECKING FOR HEADER FILES 482dnl# CHECKING FOR HEADER FILES
499dnl# -------------------------------------------------------------------------- 483dnl# --------------------------------------------------------------------------
500AC_HEADER_SYS_WAIT
501AC_CHECK_HEADERS( \ 484AC_CHECK_HEADERS( \
502 assert.h \ 485 assert.h \
503 fcntl.h \ 486 fcntl.h \
504 stdarg.h \ 487 stdarg.h \
505 stdlib.h \ 488 stdlib.h \
516 wchar.h \ 499 wchar.h \
517 cwchar \ 500 cwchar \
518 clocale \ 501 clocale \
519) 502)
520 503
521AC_HEADER_TIME
522
523dnl# check to allow both <termios.h> and <sys/ioctl.h> 504dnl# check to allow both <termios.h> and <sys/ioctl.h>
524AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, 505AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl,
525[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> 506[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
526#include <sys/ioctl.h> 507#include <sys/ioctl.h>
527#ifdef HAVE_TERMIOS_H 508#ifdef HAVE_TERMIOS_H
546 [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] 527 [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no]
547)]) 528)])
548if test x$rxvt_xlib_illegal_access = xyes; then 529if test x$rxvt_xlib_illegal_access = xyes; then
549 AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) 530 AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it)
550fi 531fi
551
552AC_C_CONST
553AC_C_INLINE
554
555dnl> AC_HEADER_STDC dnl# skip this test, Sun always fails anyhow.
556 532
557dnl# -------------------------------------------------------------------------- 533dnl# --------------------------------------------------------------------------
558dnl# CHECKING FOR MISSING TYPEDEFS 534dnl# CHECKING FOR MISSING TYPEDEFS
559dnl# -------------------------------------------------------------------------- 535dnl# --------------------------------------------------------------------------
560dnl# Missing typedefs and replacements 536dnl# Missing typedefs and replacements
644AC_SUBST(rxvt_u_intp_define) 620AC_SUBST(rxvt_u_intp_define)
645 621
646dnl# -------------------------------------------------------------------------- 622dnl# --------------------------------------------------------------------------
647dnl# CHECKING FOR LIBRARY FUNCTIONS 623dnl# CHECKING FOR LIBRARY FUNCTIONS
648dnl# -------------------------------------------------------------------------- 624dnl# --------------------------------------------------------------------------
649AC_TYPE_SIGNAL
650dnl> AC_FUNC_VPRINTF
651
652AC_CHECK_FUNCS(unsetenv) 625AC_CHECK_FUNCS(unsetenv)
653 626
654UTMP_CHECK 627UTMP_CHECK
655 628
656dnl# -------------------------------------------------------------------------- 629dnl# --------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines