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.86 by ayin, Tue Dec 4 01:20:49 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
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
443 439
444dnl# -------------------------------------------------------------------------- 440dnl# --------------------------------------------------------------------------
445 441
446AC_PATH_PROG(TIC, tic, :) 442AC_PATH_PROG(TIC, tic, :)
447 443
448dnl# need a neat way to detect SVR4 or its features
449dnl# in src/command.c we use these functions:
450dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
451dnl# - but are these also defined for other systems?
452
453dnl# hack to find if this is SVR4 -- who knows?
454dnl## AC_MSG_CHECKING(for SVR4)
455dnl## AC_EGREP_CPP(yes,
456dnl## [#if defined (SVR4) || defined (_SVR4) || defined (__svr4__)
457dnl## yes;
458dnl## #endif
459dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?))
460
461AC_PATH_XTRA 444AC_PATH_XTRA
462 445
463AFTERIMAGE_CFLAGS= 446AFTERIMAGE_CFLAGS=
464AFTERIMAGE_LIBS= 447AFTERIMAGE_LIBS=
465AFTERIMAGE_VERSION= 448AFTERIMAGE_VERSION=
496fi 479fi
497 480
498dnl# -------------------------------------------------------------------------- 481dnl# --------------------------------------------------------------------------
499dnl# CHECKING FOR HEADER FILES 482dnl# CHECKING FOR HEADER FILES
500dnl# -------------------------------------------------------------------------- 483dnl# --------------------------------------------------------------------------
501AC_HEADER_SYS_WAIT
502AC_CHECK_HEADERS( \ 484AC_CHECK_HEADERS( \
503 assert.h \ 485 assert.h \
504 fcntl.h \ 486 fcntl.h \
505 stdarg.h \ 487 stdarg.h \
506 stdlib.h \ 488 stdlib.h \
517 wchar.h \ 499 wchar.h \
518 cwchar \ 500 cwchar \
519 clocale \ 501 clocale \
520) 502)
521 503
522AC_HEADER_TIME
523
524dnl# check to allow both <termios.h> and <sys/ioctl.h> 504dnl# check to allow both <termios.h> and <sys/ioctl.h>
525AC_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,
526[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> 506[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
527#include <sys/ioctl.h> 507#include <sys/ioctl.h>
528#ifdef HAVE_TERMIOS_H 508#ifdef HAVE_TERMIOS_H
547 [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] 527 [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no]
548)]) 528)])
549if test x$rxvt_xlib_illegal_access = xyes; then 529if test x$rxvt_xlib_illegal_access = xyes; then
550 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)
551fi 531fi
552
553AC_C_CONST
554AC_C_INLINE
555
556dnl> AC_HEADER_STDC dnl# skip this test, Sun always fails anyhow.
557 532
558dnl# -------------------------------------------------------------------------- 533dnl# --------------------------------------------------------------------------
559dnl# CHECKING FOR MISSING TYPEDEFS 534dnl# CHECKING FOR MISSING TYPEDEFS
560dnl# -------------------------------------------------------------------------- 535dnl# --------------------------------------------------------------------------
561dnl# Missing typedefs and replacements 536dnl# Missing typedefs and replacements
645AC_SUBST(rxvt_u_intp_define) 620AC_SUBST(rxvt_u_intp_define)
646 621
647dnl# -------------------------------------------------------------------------- 622dnl# --------------------------------------------------------------------------
648dnl# CHECKING FOR LIBRARY FUNCTIONS 623dnl# CHECKING FOR LIBRARY FUNCTIONS
649dnl# -------------------------------------------------------------------------- 624dnl# --------------------------------------------------------------------------
650AC_TYPE_SIGNAL
651dnl> AC_FUNC_VPRINTF
652
653AC_CHECK_FUNCS(unsetenv) 625AC_CHECK_FUNCS(unsetenv)
654 626
655UTMP_CHECK 627UTMP_CHECK
656 628
657dnl# -------------------------------------------------------------------------- 629dnl# --------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines