15104ee6eSmrgdnl $XTermId: configure.in,v 1.403 2025/01/03 01:02:13 tom Exp $ 2d522f475Smrgdnl 320d2c4d2Smrgdnl ----------------------------------------------------------------------------- 420d2c4d2Smrgdnl this file is part of xterm 5d522f475Smrgdnl 65104ee6eSmrgdnl Copyright 1997-2024,2025 by Thomas E. Dickey 7f2e35a3aSmrgdnl 8d522f475Smrgdnl All Rights Reserved 9f2e35a3aSmrgdnl 1020d2c4d2Smrgdnl Permission is hereby granted, free of charge, to any person obtaining a 1120d2c4d2Smrgdnl copy of this software and associated documentation files (the 1220d2c4d2Smrgdnl "Software"), to deal in the Software without restriction, including 1320d2c4d2Smrgdnl without limitation the rights to use, copy, modify, merge, publish, 1420d2c4d2Smrgdnl distribute, sublicense, and/or sell copies of the Software, and to 1520d2c4d2Smrgdnl permit persons to whom the Software is furnished to do so, subject to 1620d2c4d2Smrgdnl the following conditions: 17f2e35a3aSmrgdnl 1820d2c4d2Smrgdnl The above copyright notice and this permission notice shall be included 1920d2c4d2Smrgdnl in all copies or substantial portions of the Software. 20f2e35a3aSmrgdnl 2120d2c4d2Smrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2220d2c4d2Smrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2320d2c4d2Smrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 2420d2c4d2Smrgdnl IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 2520d2c4d2Smrgdnl CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 2620d2c4d2Smrgdnl TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 2720d2c4d2Smrgdnl SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28f2e35a3aSmrgdnl 2920d2c4d2Smrgdnl Except as contained in this notice, the name(s) of the above copyright 3020d2c4d2Smrgdnl holders shall not be used in advertising or otherwise to promote the 3120d2c4d2Smrgdnl sale, use or other dealings in this Software without prior written 3220d2c4d2Smrgdnl authorization. 33d522f475Smrgdnl --------------------------------------------------------------------------- 34d522f475Smrgdnl Process this file with autoconf to produce a configure script. 35d522f475Smrgdnl 364419d26bSmrgAC_PREREQ(2.52.20210509) 37894e0ac8SmrgAC_INIT 38894e0ac8SmrgAC_CONFIG_SRCDIR([charproc.c]) 39d522f475SmrgAC_CONFIG_HEADER(xtermcfg.h:xtermcfg.hin) 40d522f475SmrgCF_CHECK_CACHE 41d522f475Smrg 42d522f475Smrg### checks for alternative programs 43d522f475Smrg 44d522f475Smrgdnl Only add to this case statement when a system has a compiler that is not 45d522f475Smrgdnl detected by AC_PROG_CC. 46d522f475Smrgcase "$host_os" in 47f2e35a3aSmrg(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 48f2e35a3aSmrg : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 49f2e35a3aSmrg : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 50f2e35a3aSmrg : "${CC=c89}";; 5101037d57Smrg(darwin*) 52f2e35a3aSmrg : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 53d522f475Smrgesac 54d522f475Smrg 550bd37d32SmrgCF_PROG_CC 56d522f475SmrgAC_PROG_CPP 57d522f475SmrgAC_PROG_AWK 58d522f475SmrgAC_PROG_INSTALL 59d522f475SmrgAC_PROG_LN_S 60d522f475SmrgAC_ARG_PROGRAM 612e4f8982SmrgCF_PROG_LINT 62d522f475Smrg 63d522f475Smrg### checks for compiler characteristics 64913cc679SmrgCF_XOPEN_SOURCE(700) 65d522f475SmrgCF_SIGWINCH 66d522f475Smrg 67d522f475Smrg### checks for header files 685307cd1aSmrgAC_CHECK_DECL(exit) 69d522f475SmrgAC_CHECK_HEADERS( \ 700bd37d32Smrgncurses/curses.h \ 71d522f475Smrgncurses/term.h \ 725307cd1aSmrgsys/ptem.h \ 735307cd1aSmrgsys/ttydefaults.h \ 74d522f475Smrgterm.h \ 75d522f475Smrgtermios.h \ 76d522f475Smrgwchar.h \ 77d522f475Smrg) 78d522f475SmrgAC_HEADER_TIME 79d522f475SmrgAM_LANGINFO_CODESET 80d522f475Smrg 81d522f475Smrg### checks for typedefs 82d522f475SmrgCF_SIG_ATOMIC_T 83d522f475SmrgAC_CHECK_TYPE(time_t, long) 840bd37d32SmrgCF_TYPE_CC_T 855307cd1aSmrgCF_TYPE_NFDS_T 86d522f475SmrgAC_TYPE_MODE_T 87d522f475SmrgAC_TYPE_PID_T 88d522f475SmrgAC_TYPE_UID_T 89d522f475SmrgAC_TYPE_OFF_T 90d522f475Smrg 91d522f475Smrg### checks for library functions 92d522f475SmrgAC_CHECK_FUNCS( \ 93d522f475Smrg gethostname \ 94f2e35a3aSmrg getusershell \ 95f2e35a3aSmrg endusershell \ 96d522f475Smrg getlogin \ 97e0a2b6dfSmrg initgroups \ 98e0a2b6dfSmrg mkdtemp \ 99d522f475Smrg putenv \ 1000bd37d32Smrg unsetenv \ 101d522f475Smrg sched_yield \ 1020bd37d32Smrg setpgid \ 10304b94745Smrg setsid \ 104d522f475Smrg tcgetattr \ 105d522f475Smrg waitpid \ 106d522f475Smrg wcswidth \ 107d522f475Smrg wcwidth ) 10804b94745SmrgCF_FUNC_GETTIME 10904b94745SmrgCF_FUNC_STRFTIME 1105307cd1aSmrgCF_MKSTEMP 1115307cd1aSmrgCF_SETITIMER 112d522f475SmrgCF_UTMP 113d522f475SmrgCF_STRUCT_LASTLOG 114d522f475SmrgCF_POSIX_SAVED_IDS 115d522f475Smrg 116d522f475SmrgCF_HELP_MESSAGE(Compile/Install Options:) 117d522f475SmrgCF_FUNC_TGETENT 118d522f475Smrg 119e39b573cSmrgCF_WITH_APP_CLASS(XTerm) 120e39b573cSmrgCF_WITH_APP_DEFAULTS 121f2e35a3aSmrgCF_WITH_ICON_NAME(mini.xterm) 1220bd37d32SmrgCF_WITH_ICON_SYMLINK(xterm) 123f2e35a3aSmrg 124f2e35a3aSmrg# Install all icons except for the overused "terminal". 125f2e35a3aSmrgcf_cv_icon_list= 126f2e35a3aSmrgfor my_item in $srcdir/icons/*.svg 127f2e35a3aSmrgdo 128f2e35a3aSmrg test -f "$my_item" || continue 129f2e35a3aSmrg cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 130f2e35a3aSmrg case $cf_icon_name in 131f2e35a3aSmrg (*_48x48) 132f2e35a3aSmrg continue 133f2e35a3aSmrg ;; 134f2e35a3aSmrg esac 135f2e35a3aSmrg CF_VERBOSE(adding $cf_icon_name to icon-list) 136f2e35a3aSmrg cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 137f2e35a3aSmrg if test -f "${cf_icon_name}_48x48.png" 138f2e35a3aSmrg then 139f2e35a3aSmrg CF_VERBOSE(adding ${cf_icon_name}_48x48 to icon-list) 140f2e35a3aSmrg cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 141f2e35a3aSmrg fi 142f2e35a3aSmrgdone 143f2e35a3aSmrgCF_WITH_ICON_THEME([$cf_cv_icon_list],,,icons/${ICON_NAME}_48x48) 144f2e35a3aSmrg 145e39b573cSmrgCF_DISABLE_DESKTOP(xterm) 1460bd37d32SmrgCF_WITH_DESKTOP_CATEGORY(xterm, 147913cc679Smrg [*rxvt*|*konsole|*[[Tt]]erminal], 148913cc679Smrg [System|TerminalEmulator|*]) 149d522f475Smrg 150d522f475SmrgAC_MSG_CHECKING(for install-permissions reference) 151d522f475SmrgAC_ARG_WITH(reference, 152d522f475Smrg [ --with-reference=XXX program to use as permissions-reference], 153d522f475Smrg [with_reference=$withval], 154d522f475Smrg [with_reference=xterm]) 155d522f475SmrgAC_MSG_RESULT($with_reference) 156d522f475Smrg 157d522f475Smrgwith_full_paths=yes 158d522f475SmrgCF_PATH_PROG(XTERM_PATH,$with_reference) 159d522f475Smrg 160d522f475Smrg# If any of --program-prefix, --program-suffix or --program-transform-name is 161d522f475Smrg# given, accept an option tell the makefile to create a symbolic link, e.g., 162d522f475Smrg# to "xterm" on install. 163d522f475SmrgXTERM_SYMLINK=NONE 164d522f475SmrgAC_SUBST(XTERM_SYMLINK) 165d522f475Smrgif test "$program_transform_name" != "'s,,,'" ; then 166d522f475Smrgcf_name=`echo "$program_transform_name" | sed -e '[s,\\$\\$,$,g]'` 167d522f475Smrgcf_name=`echo xterm |sed -e "$cf_name"` 168d522f475SmrgAC_MSG_CHECKING(for symbolic link to create to $cf_name) 169d522f475SmrgAC_ARG_WITH(xterm-symlink, 17004b94745Smrg [[ --with-xterm-symlink[=XXX] make symbolic link to installed xterm]], 171d522f475Smrg [with_symlink=$withval], 172d522f475Smrg [with_symlink=xterm]) 173d522f475SmrgAC_MSG_RESULT($with_symlink) 174d522f475Smrgtest "$with_symlink" = yes && with_symlink=xterm 175d522f475Smrgtest -n "$with_symlink" && \ 176d522f475Smrg test "$with_symlink" != no && \ 177f2e35a3aSmrg test "$with_symlink" != "$cf_name" && \ 178d522f475Smrg XTERM_SYMLINK="$with_symlink" 179d522f475Smrgfi 180d522f475Smrg 1810bd37d32SmrgAC_MSG_CHECKING(if you want to disable openpty) 1820bd37d32SmrgCF_ARG_DISABLE(openpty, 1830bd37d32Smrg [ --disable-openpty disable openpty, prefer other interfaces], 1840bd37d32Smrg [disable_openpty=yes], 1850bd37d32Smrg [disable_openpty=no], 1860bd37d32Smrg no) 1870bd37d32SmrgAC_MSG_RESULT($disable_openpty) 1880bd37d32Smrg 189d522f475SmrgAC_MSG_CHECKING(if you want to disable setuid) 190d522f475SmrgCF_ARG_DISABLE(setuid, 191d522f475Smrg [ --disable-setuid disable setuid in xterm, do not install setuid/setgid], 192d522f475Smrg [disable_setuid=yes], 193d522f475Smrg [disable_setuid=no], 194d522f475Smrg no) 195d522f475SmrgAC_MSG_RESULT($disable_setuid) 196d522f475Smrg 197d522f475SmrgAC_MSG_CHECKING(if you want to disable setgid) 198d522f475SmrgCF_ARG_DISABLE(setgid, 199d522f475Smrg [ --disable-setgid disable setgid in xterm, do not install setuid/setgid], 200d522f475Smrg [disable_setgid=yes], 201d522f475Smrg [disable_setgid=no], 202d522f475Smrg no) 203d522f475SmrgAC_MSG_RESULT($disable_setgid) 204d522f475Smrg 205d522f475SmrgAC_MSG_CHECKING(if you want to run xterm setuid to a given user) 206d522f475SmrgAC_ARG_WITH(setuid, 20704b94745Smrg [[ --with-setuid[=XXX] use the given setuid user]], 208d522f475Smrg [use_given_setuid=$withval], 209d522f475Smrg [use_given_setuid=no]) 210d522f475SmrgAC_MSG_RESULT($use_given_setuid) 211d522f475Smrg 212d522f475Smrgif test "$use_given_setuid" != no ; then 213d522f475Smrg if test "$use_given_setuid" = yes ; then 214d522f475Smrg cf_cv_given_setuid=root 215d522f475Smrg else 216d522f475Smrg cf_cv_given_setuid=$use_given_setuid 217d522f475Smrg fi 218e39b573cSmrg # inherit SINSTALL_OPTS from environment to allow packager to customize it. 219d522f475Smrg SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 220d522f475Smrgfi 221d522f475Smrg 222d522f475SmrgAC_MSG_CHECKING(if you want to run xterm setgid to match utmp/utmpx file) 223d522f475SmrgAC_ARG_WITH(utmp-setgid, 22404b94745Smrg [[ --with-utmp-setgid[=XXX] use setgid to match utmp/utmpx file]], 225d522f475Smrg [use_utmp_setgid=$withval], 226d522f475Smrg [use_utmp_setgid=no]) 227d522f475SmrgAC_MSG_RESULT($use_utmp_setgid) 228d522f475Smrg 229d522f475Smrgif test "$use_utmp_setgid" != no ; then 230d522f475Smrg if test "$use_utmp_setgid" = yes ; then 231d522f475Smrg CF_UTMP_GROUP 232d522f475Smrg else 233d522f475Smrg cf_cv_utmp_group=$use_utmp_setgid 234d522f475Smrg fi 235d522f475Smrg if test "$cf_cv_posix_saved_ids" != yes ; then 236d522f475Smrg AC_MSG_ERROR(Your system does not support POSIX saved-ids) 237d522f475Smrg fi 2380bd37d32Smrg AC_DEFINE(USE_UTMP_SETGID,1,[Define to 1 if we should use setgid to access utmp/utmpx]) 239d522f475Smrg SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 240d522f475Smrgfi 241d522f475Smrg 242d522f475SmrgAC_SUBST(SINSTALL_OPTS) 243d522f475Smrg 244d522f475SmrgAC_MSG_CHECKING(if you want to link with utempter) 245d522f475SmrgAC_ARG_WITH(utempter, 246d522f475Smrg [ --with-utempter use utempter library for access to utmp], 247d522f475Smrg [use_utempter=$withval], 248d522f475Smrg [use_utempter=no]) 249d522f475SmrgAC_MSG_RESULT($use_utempter) 250d522f475Smrg 251d522f475Smrgif test "$use_utempter" = yes ; then 252d522f475Smrg CF_UTEMPTER 253d522f475Smrg test "$cf_cv_have_utempter" != yes && use_utempter=no 254d522f475Smrgelse 255d522f475Smrg use_utempter=no 256d522f475Smrgfi 257d522f475Smrg 258d522f475Smrg# Some configurations permit (or require) either setuid or setgid mode. 259d522f475Smrg# Let the user decide. 260d522f475Smrgif test "$use_utempter" = yes ; then 261d522f475Smrg if test "${enable_setuid+set}" != set ; then 262d522f475Smrg disable_setuid=yes 263d522f475Smrg CF_VERBOSE([No --disable-setuid option given, force to yes]) 264d522f475Smrg fi 265d522f475Smrgfi 266d522f475Smrg 26704b94745Smrg# We use these for the manpage: 26804b94745SmrgCF_WITH_UTMP_PATH 26904b94745SmrgCF_WITH_WTMP_PATH 27004b94745Smrg 271d522f475Smrg### checks for external data 272d522f475SmrgCF_ERRNO 273d522f475SmrgCF_TTY_GROUP 274d522f475Smrg 275d522f475Smrg### checks for system services and user specified options 276d522f475Smrg 277f2e35a3aSmrgAC_PATH_XTRA 278d522f475SmrgCF_POSIX_WAIT 279d522f475SmrgCF_SYSV 280d522f475SmrgCF_SVR4 281d522f475SmrgCF_X_TOOLKIT 282d522f475Smrg 283d522f475SmrgAC_CHECK_HEADERS( \ 284d522f475Smrg X11/DECkeysym.h \ 285d522f475Smrg X11/Sunkeysym.h \ 286d522f475Smrg X11/XF86keysym.h \ 28720d2c4d2Smrg X11/XKBlib.h \ 288f2e35a3aSmrg X11/TranslateI.h \ 289d522f475Smrg X11/Xpoll.h \ 29020d2c4d2Smrg X11/extensions/XKB.h \ 291d522f475Smrg ) 292d522f475Smrg 2930bd37d32SmrgCF_WITH_XPM 2942e4f8982SmrgCF_WITH_XINERAMA 295d522f475SmrgCF_X_ATHENA 296d522f475SmrgCF_TYPE_FD_MASK 297d522f475SmrgCF_TERMIO_C_ISPEED 298f2e35a3aSmrgCF_TERMIOS_TYPES 299d522f475Smrg 300ad37e533Smrg# The Xcursor library is normally (weakly) linked via the X11 library rather 301ad37e533Smrg# than directly to applications. xterm can select a cursor theme; users can 302ad37e533Smrg# also use environment variables to select cursor size. We would only notice 303ad37e533Smrg# the library if there are development files for it. Provide a way to disable 304ad37e533Smrg# the feature if it is unwanted. 305ad37e533SmrgAC_MSG_CHECKING(if we expect to use the Xcursor library) 306ad37e533SmrgCF_ARG_DISABLE(xcursor, 30704b94745Smrg [ --disable-xcursor disable cursorTheme resource], 308ad37e533Smrg [enable_xcursor=no], 309ad37e533Smrg [enable_xcursor=yes]) 310ad37e533SmrgAC_MSG_RESULT($enable_xcursor) 311ad37e533Smrgif test "$enable_xcursor" = yes; then 312ad37e533Smrg AC_DEFINE(HAVE_LIB_XCURSOR,1,[Define to 1 if we expect to use the Xcursor library]) 313ad37e533Smrgfi 314e0a2b6dfSmrg 315d522f475SmrgLIBS="$LIBS $X_EXTRA_LIBS" 316d522f475Smrg 3170bd37d32SmrgCF_FUNC_GRANTPT 3180bd37d32SmrgCF_XKB_QUERY_EXTENSION 3190bd37d32SmrgCF_XKB_KEYCODE_TO_KEYSYM 320d522f475SmrgCF_XKB_BELL_EXT 32120d2c4d2Smrg 322d522f475SmrgAC_CHECK_FUNCS(Xutf8LookupString, [],[ 323d522f475Smrg EXTRAHDRS="$EXTRAHDRS xutf8.h" 324d522f475Smrg EXTRASRCS="$EXTRASRCS xutf8.c" 325d522f475Smrg EXTRAOBJS="$EXTRAOBJS xutf8.o" 326d522f475Smrg]) 327d522f475Smrg 328d522f475SmrgCF_WITH_IMAKE_CFLAGS($(MAIN_DEFINES) $(VENDORMANDEFS)) 32901037d57SmrgCF_WITH_MAN2HTML 330d522f475Smrg 331e39b573cSmrg# If we have already established that there is a full termcap implementation, 332e39b573cSmrg# suppress the definitions for terminfo that we make have imported from the 333e39b573cSmrg# imake-file. 3340bd37d32Smrgif test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 335e39b573cSmrg case "$IMAKE_CFLAGS" in 33601037d57Smrg (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 337e39b573cSmrg CF_UNDO_CFLAGS(IMAKE_CFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 338e39b573cSmrg CF_UNDO_CFLAGS(CPPFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 339e39b573cSmrg ;; 340e39b573cSmrg esac 341e39b573cSmrgfi 342e39b573cSmrg 343d522f475SmrgCF_HELP_MESSAGE(Terminal Configuration:) 344d522f475Smrg 345d522f475SmrgAC_MSG_CHECKING(for default terminal-id) 346d522f475SmrgAC_ARG_WITH(terminal-id, 3470bd37d32Smrg [ --with-terminal-id=V set default decTerminalID (default: vt420)], 348d522f475Smrg [default_termid=$withval], 3490bd37d32Smrg [default_termid=vt420]) 350d522f475SmrgAC_MSG_RESULT($default_termid) 351d522f475Smrgcase $default_termid in 35201037d57Smrg(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 353d522f475Smrg ;; 35404b94745Smrg([[1-9]][[0-9]][[0-9]]|[[1-9]][[0-9]]) 35504b94745Smrg ;; 35604b94745Smrg(*) 35704b94745Smrg AC_MSG_ERROR([expected a number, not $default_termid]) 35804b94745Smrg ;; 359d522f475Smrgesac 3600bd37d32SmrgAC_DEFINE_UNQUOTED(DFT_DECID,"$default_termid",[default terminal-id]) 3610bd37d32SmrgAC_SUBST(default_termid) 362d522f475Smrg 363d522f475SmrgAC_MSG_CHECKING(for default terminal-type) 364d522f475SmrgAC_ARG_WITH(terminal-type, 365d522f475Smrg [ --with-terminal-type=T set default $TERM (default: xterm)], 366d522f475Smrg [default_TERM=$withval], 367d522f475Smrg [default_TERM=xterm]) 368d522f475SmrgAC_MSG_RESULT($default_TERM) 3690bd37d32SmrgAC_DEFINE_UNQUOTED(DFT_TERMTYPE,"$default_TERM",[default terminal-type]) 3700bd37d32SmrgAC_SUBST(default_TERM) 371d522f475Smrg 3720bd37d32Smrg############################################################################### 3730bd37d32SmrgAC_MSG_CHECKING(if backarrow-key should be BS) 3740bd37d32SmrgCF_ARG_DISABLE(backarrow-key, 3750bd37d32Smrg [ --enable-backarrow-key set default backarrowKey resource (default: true)], 3760bd37d32Smrg [backarrow_is_bs=$enableval], 3770bd37d32Smrg [backarrow_is_bs=yes]) 3780bd37d32SmrgCF_XBOOL_RESULT(DEF_BACKARO_BS,backarrow_is_bs,[Define to 1 if backarrow-key should be BS]) 3790bd37d32Smrg 3800bd37d32SmrgAC_MSG_CHECKING(if backarrow-key should be treated as erase) 3810bd37d32SmrgCF_ARG_ENABLE(backarrow-is-erase, 3820bd37d32Smrg [ --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)], 3830bd37d32Smrg [backarrow_is_erase=$enableval], 3840bd37d32Smrg [backarrow_is_erase=no]) 3850bd37d32SmrgCF_XBOOL_RESULT(DEF_BACKARO_ERASE,backarrow_is_erase,[Define to 1 if backarrow-key should be treated as erase]) 3860bd37d32Smrg 3870bd37d32SmrgAC_MSG_CHECKING(for default backspace/DEL setting) 3880bd37d32SmrgAC_ARG_ENABLE(delete-is-del, 3890bd37d32Smrg [ --enable-delete-is-del set default deleteIsDEL resource (default: maybe)], 3900bd37d32Smrg [delete_is_del=$enableval], 3910bd37d32Smrg [delete_is_del=maybe]) 3920bd37d32SmrgCF_XBOOL_RESULT(DEFDELETE_DEL,delete_is_del,[Define to 1 if default backspace/DEL setting is DEL]) 3930bd37d32Smrg 39401037d57SmrgAC_MSG_CHECKING(for default pty initial erase setting) 39501037d57SmrgAC_ARG_ENABLE(pty-erase, 39601037d57Smrg [ --enable-pty-erase set default ptyInitialErase resource (default: maybe)], 39701037d57Smrg [initial_erase=$enableval], 39801037d57Smrg [initial_erase=False]) 39901037d57SmrgCF_XBOOL_RESULT(DEF_INITIAL_ERASE,initial_erase,[Define to 1 if default pty initial erase setting is TRUE]) 40001037d57Smrg 4010bd37d32SmrgAC_MSG_CHECKING(if alt should send ESC) 4020bd37d32SmrgCF_ARG_ENABLE(alt-sends-esc, 4030bd37d32Smrg [ --enable-alt-sends-esc set default altSendsEscape resource (default: no)], 4040bd37d32Smrg [alt_sends_esc=$enableval], 4050bd37d32Smrg [alt_sends_esc=no]) 4060bd37d32SmrgCF_XBOOL_RESULT(DEF_ALT_SENDS_ESC,alt_sends_esc,[Define to 1 if alt should send ESC]) 4070bd37d32Smrg 4080bd37d32SmrgAC_MSG_CHECKING(if meta should send ESC) 4090bd37d32SmrgCF_ARG_ENABLE(meta-sends-esc, 4100bd37d32Smrg [ --enable-meta-sends-esc set default metaSendsEscape resource (default: no)], 4110bd37d32Smrg [meta_sends_esc=$enableval], 4120bd37d32Smrg [meta_sends_esc=no]) 4130bd37d32SmrgCF_XBOOL_RESULT(DEF_META_SENDS_ESC,meta_sends_esc,[Define to 1 if meta should send ESC]) 4140bd37d32Smrg 4150bd37d32Smrg############################################################################### 41620d2c4d2SmrgAC_CHECK_PROG(cf_tic_prog,tic,yes,no) 41720d2c4d2Smrgif test "$cf_tic_prog" = yes ; then 418f2e35a3aSmrg if test -n "$TERMINFO" 419f2e35a3aSmrg then 420f2e35a3aSmrg case "$TERMINFO" in 421f2e35a3aSmrg (/*) 422f2e35a3aSmrg test -d "$TERMINFO" || unset TERMINFO 423f2e35a3aSmrg ;; 424f2e35a3aSmrg (*) 425f2e35a3aSmrg unset TERMINFO 426f2e35a3aSmrg ;; 427f2e35a3aSmrg esac 428f2e35a3aSmrg fi 42920d2c4d2Smrg AC_MSG_CHECKING(for private terminfo-directory) 43020d2c4d2Smrg AC_ARG_WITH(own-terminfo, 43104b94745Smrg [[ --with-own-terminfo[=P] set default $TERMINFO (default: from environment)]], 43220d2c4d2Smrg [TERMINFO_DIR=$withval], 43320d2c4d2Smrg [TERMINFO_DIR=${TERMINFO-none}]) 43420d2c4d2Smrg AC_MSG_RESULT($TERMINFO_DIR) 43520d2c4d2Smrg if test "$TERMINFO_DIR" = yes ; then 43620d2c4d2Smrg AC_MSG_WARN(no value given) 43720d2c4d2Smrg elif test "$TERMINFO_DIR" != none ; then 438f2e35a3aSmrg if test -d "$TERMINFO_DIR" ; then 4390bd37d32Smrg AC_DEFINE_UNQUOTED(OWN_TERMINFO_DIR,"$TERMINFO_DIR",[Define to override default TERMINFO value]) 440913cc679Smrg AC_MSG_CHECKING(if \$TERMINFO should also be set) 441913cc679Smrg AC_ARG_ENABLE(env-terminfo, 442913cc679Smrg [ --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value], 443913cc679Smrg [cf_env_terminfo=yes], 444913cc679Smrg [cf_env_terminfo=no]) 445913cc679Smrg AC_MSG_RESULT($cf_env_terminfo) 446913cc679Smrg test $cf_env_terminfo = yes && 447913cc679Smrg AC_DEFINE(OWN_TERMINFO_ENV,1,[Define to 1 to enable setenv of $TERMINFO value]) 44820d2c4d2Smrg else 44920d2c4d2Smrg AC_MSG_WARN(not a directory) 45020d2c4d2Smrg fi 45120d2c4d2Smrg elif test "$prefix" != NONE ; then 45220d2c4d2Smrg TERMINFO_DIR='${prefix}/lib/terminfo' 45320d2c4d2Smrg elif test -d /usr/lib/terminfo ; then 45420d2c4d2Smrg TERMINFO_DIR=/usr/lib/terminfo 455d522f475Smrg else 45620d2c4d2Smrg TERMINFO_DIR= 45720d2c4d2Smrg fi 45820d2c4d2Smrg SET_TERMINFO= 45920d2c4d2Smrg if test -n "$TERMINFO_DIR" ; then 4605307cd1aSmrg TERMINFO_DIR='${DESTDIR}'$TERMINFO_DIR 4615307cd1aSmrg SET_TERMINFO='TERMINFO=${TERMINFO_DIR}' 462d522f475Smrg fi 46320d2c4d2Smrg no_ticprog= 464d522f475Smrgelse 46520d2c4d2Smrg no_ticprog="#" 466d522f475Smrg TERMINFO_DIR= 46720d2c4d2Smrg SET_TERMINFO= 468d522f475Smrgfi 46920d2c4d2SmrgAC_SUBST(no_ticprog) 470d522f475SmrgAC_SUBST(TERMINFO_DIR) 471d522f475SmrgAC_SUBST(SET_TERMINFO) 472d522f475Smrg 473d522f475Smrg############################################################################### 474d522f475SmrgCF_HELP_MESSAGE(Optional Features:) 475d522f475Smrg 476d522f475SmrgAC_MSG_CHECKING(if you want active-icons) 477d522f475SmrgCF_ARG_DISABLE(active-icon, 478d522f475Smrg [ --disable-active-icon disable X11R6.3 active-icon feature], 479d522f475Smrg [enable_active_icon=no], 480d522f475Smrg [enable_active_icon=yes]) 481d522f475SmrgAC_MSG_RESULT($enable_active_icon) 482d522f475Smrgif test "$enable_active_icon" = no ; then 4830bd37d32Smrg AC_DEFINE(NO_ACTIVE_ICON,1,[Define to 1 to disable X11R6.3 active-icon feature]) 484d522f475Smrgfi 485d522f475Smrg 486d522f475SmrgAC_MSG_CHECKING(if you want ANSI color) 487d522f475SmrgCF_ARG_DISABLE(ansi-color, 488d522f475Smrg [ --disable-ansi-color disable ANSI color], 489d522f475Smrg [enable_ansi_color=no], 490d522f475Smrg [enable_ansi_color=yes]) 491d522f475SmrgAC_MSG_RESULT($enable_ansi_color) 4920bd37d32Smrgtest "$enable_ansi_color" = no && AC_DEFINE(OPT_ISO_COLORS,0,[Define to 0 to disable ANSI color]) 493d522f475Smrg 494d522f475Smrgif test "$enable_ansi_color" = yes ; then 495d522f475Smrg 496d522f475Smrg AC_MSG_CHECKING(if you want 16 colors like aixterm) 497d522f475Smrg CF_ARG_DISABLE(16-color, 498d522f475Smrg [ --disable-16-color disable 16-color support], 499d522f475Smrg [enable_16_color=no], 500d522f475Smrg [enable_16_color=yes]) 501d522f475Smrg AC_MSG_RESULT($enable_16_color) 5020bd37d32Smrg test "$enable_16_color" = no && AC_DEFINE(OPT_AIX_COLORS,0,[Define to 0 to disable 16-color support]) 503d522f475Smrg 504d522f475Smrg AC_MSG_CHECKING(if you want 256 colors) 505f2e35a3aSmrg CF_ARG_DISABLE(256-color, 506f2e35a3aSmrg [ --disable-256-color disable 256-color support], 507f2e35a3aSmrg [enable_256_color=no], 508f2e35a3aSmrg [enable_256_color=yes]) 509d522f475Smrg AC_MSG_RESULT($enable_256_color) 510f2e35a3aSmrg 511d522f475Smrg if test "$enable_256_color" = yes ; then 512f2e35a3aSmrg 513d522f475Smrg CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 514d522f475Smrg EXTRAHDRS="$EXTRAHDRS 256colres.h" 5150bd37d32Smrg AC_DEFINE(OPT_256_COLORS,1,[Define to 1 to enable 256-color support]) 516f2e35a3aSmrg 517f2e35a3aSmrg AC_MSG_CHECKING(if you want direct-color support) 518f2e35a3aSmrg CF_ARG_DISABLE(direct-color, 519f2e35a3aSmrg [ --disable-direct-color disable direct-color support], 520f2e35a3aSmrg [enable_direct_color=no], 521f2e35a3aSmrg [enable_direct_color=yes]) 522f2e35a3aSmrg AC_MSG_RESULT($enable_direct_color) 523f2e35a3aSmrg if test "$enable_direct_color" = yes ; then 524f2e35a3aSmrg AC_DEFINE(OPT_DIRECT_COLOR,1,[Define to 1 to enable direct-color support]) 525f2e35a3aSmrg fi 526f2e35a3aSmrg 527d522f475Smrg else 528f2e35a3aSmrg 529f2e35a3aSmrg AC_MSG_CHECKING(if you want 88 colors) 530f2e35a3aSmrg CF_ARG_DISABLE(88-color, 531f2e35a3aSmrg [ --disable-88-color disable 88-color support], 532f2e35a3aSmrg [enable_88_color=no], 533f2e35a3aSmrg [enable_88_color=yes]) 534f2e35a3aSmrg AC_MSG_RESULT($enable_88_color) 535f2e35a3aSmrg if test "$enable_88_color" = yes ; then 536f2e35a3aSmrg CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 537f2e35a3aSmrg EXTRAHDRS="$EXTRAHDRS 88colres.h" 538f2e35a3aSmrg AC_DEFINE(OPT_88_COLORS,1,[Define to 1 to enable 88-color support]) 539f2e35a3aSmrg fi 540f2e35a3aSmrg 541d522f475Smrg fi 542d522f475Smrg 543d522f475Smrgfi 544d522f475Smrg 545d522f475SmrgAC_MSG_CHECKING(if you want blinking cursor) 546d522f475SmrgCF_ARG_DISABLE(blink-cursor, 547d522f475Smrg [ --disable-blink-cursor disable support for blinking cursor], 548d522f475Smrg [enable_blink_curs=no], 549d522f475Smrg [enable_blink_curs=yes]) 550d522f475SmrgAC_MSG_RESULT($enable_blink_curs) 5510bd37d32Smrgtest "$enable_blink_curs" = no && AC_DEFINE(OPT_BLINK_CURS,0,[Define to 0 to disable support for blinking cursor]) 552d522f475Smrg 5535104ee6eSmrgAC_MSG_CHECKING(if you want support for block-selection) 5545104ee6eSmrgCF_ARG_OPTION(block-select, 5555104ee6eSmrg [ --enable-block-select meta-button1 begins block-selection], 5565104ee6eSmrg [enable_block_select=$enableval], 5575104ee6eSmrg [enable_block_select=$enableval], 5585104ee6eSmrg [$assume_broken_osc]) 5595104ee6eSmrgAC_MSG_RESULT($enable_block_select) 5605104ee6eSmrgif test "$enable_block_select" = yes ; then 5615104ee6eSmrg AC_DEFINE(OPT_BLOCK_SELECT,1,[Define to 1 to allow block-selections]) 5625104ee6eSmrgelse 5635104ee6eSmrg AC_DEFINE(OPT_BLOCK_SELECT,0,[Define to 0 to disallow block-selections]) 5645104ee6eSmrgfi 5655104ee6eSmrg 566d522f475SmrgAC_MSG_CHECKING(if you want to ignore Linux's broken palette-strings) 567d522f475Smrg 56801037d57Smrgcase $host_os in 56901037d57Smrg(linux*) 57001037d57Smrg assume_broken_osc=yes ;; 57101037d57Smrg(*) 572d522f475Smrg assume_broken_osc=no ;; 573d522f475Smrgesac 574d522f475Smrg 575d522f475SmrgCF_ARG_OPTION(broken-osc, 576d522f475Smrg [ --enable-broken-osc allow broken Linux OSC-strings], 577d522f475Smrg [enable_broken_osc=$enableval], 578d522f475Smrg [enable_broken_osc=$enableval], 579d522f475Smrg [$assume_broken_osc]) 580d522f475SmrgAC_MSG_RESULT($enable_broken_osc) 581d522f475Smrgif test "$enable_broken_osc" = yes ; then 5820bd37d32Smrg AC_DEFINE(OPT_BROKEN_OSC,1,[Define to 1 to allow broken Linux OSC-strings]) 583d522f475Smrgelse 5845104ee6eSmrg AC_DEFINE(OPT_BROKEN_OSC,0,[Define to 0 to disallow broken Linux OSC-strings]) 585d522f475Smrgfi 586d522f475Smrg 587d522f475SmrgAC_MSG_CHECKING(if you want to allow broken string-terminators) 588d522f475SmrgCF_ARG_ENABLE(broken-st, 58920d2c4d2Smrg [ --disable-broken-st disallow broken string-terminators], 59020d2c4d2Smrg [enable_broken_st=no], 59120d2c4d2Smrg [enable_broken_st=yes]) 592d522f475SmrgAC_MSG_RESULT($enable_broken_st) 5930bd37d32Smrgtest "$enable_broken_st" = no && AC_DEFINE(OPT_BROKEN_ST,0,[Define to 0 to disallow broken string-terminators]) 594d522f475Smrg 59501037d57SmrgAC_MSG_CHECKING(if you want to compile-in icon data) 59601037d57SmrgCF_ARG_ENABLE(builtin-xpms, 59701037d57Smrg [ --enable-builtin-xpms compile-in icon data], 5982e4f8982Smrg [enable_builtin_xpms=yes], 5992e4f8982Smrg [enable_builtin_xpms=no]) 60001037d57SmrgAC_MSG_RESULT($enable_builtin_xpms) 60101037d57Smrgtest "$enable_builtin_xpms" = yes && AC_DEFINE(OPT_BUILTIN_XPMS,1,[Define to 1 to compile-in icon data]) 60201037d57Smrg 603d522f475SmrgAC_MSG_CHECKING(if you want printable 128-159) 604d522f475SmrgCF_ARG_DISABLE(c1-print, 605d522f475Smrg [ --disable-c1-print disallow -k8 option for printable 128-159], 606d522f475Smrg [enable_c1_print=no], 607d522f475Smrg [enable_c1_print=yes]) 608d522f475SmrgAC_MSG_RESULT($enable_c1_print) 6090bd37d32Smrgtest "$enable_c1_print" = no && AC_DEFINE(OPT_C1_PRINT,0,[Define to 0 to disallow -k8 option for printable 128-159]) 610d522f475Smrg 611d522f475Smrgif test "$enable_ansi_color" = yes ; then 612d522f475Smrg 613d522f475Smrg AC_MSG_CHECKING(if you want bold colors mapped like IBM PC) 614d522f475Smrg CF_ARG_DISABLE(bold-color, 615d522f475Smrg [ --disable-bold-color disable PC-style mapping of bold colors], 616d522f475Smrg [enable_pc_color=no], 617d522f475Smrg [enable_pc_color=yes]) 618d522f475Smrg AC_MSG_RESULT($enable_pc_color) 6190bd37d32Smrg test "$enable_pc_color" = no && AC_DEFINE(OPT_PC_COLORS,0,[Define to 0 to disable PC-style mapping of bold colors]) 620d522f475Smrg 621d522f475Smrg AC_MSG_CHECKING(if you want separate color-classes) 622d522f475Smrg CF_ARG_DISABLE(color-class, 623d522f475Smrg [ --disable-color-class disable separate color class resources], 624d522f475Smrg [enable_color_class=no], 625d522f475Smrg [enable_color_class=yes]) 626d522f475Smrg AC_MSG_RESULT($enable_color_class) 6270bd37d32Smrg test "$enable_color_class" = no && AC_DEFINE(OPT_COLOR_CLASS,0,[Define to 0 to disable separate color class resources]) 628d522f475Smrg 629d522f475Smrg AC_MSG_CHECKING(if you want color-mode enabled by default) 630d522f475Smrg CF_ARG_DISABLE(color-mode, 631d522f475Smrg [ --disable-color-mode disable default colorMode resource], 632d522f475Smrg [default_colormode=no], 633d522f475Smrg [default_colormode=yes]) 634d522f475Smrg AC_MSG_RESULT($default_colormode) 6350bd37d32Smrg test "$default_colormode" = no && AC_DEFINE(DFT_COLORMODE,0,[Define to 0 if you want color-mode enabled by default]) 636d522f475Smrg 637d522f475Smrgfi 638d522f475Smrg 639d522f475SmrgAC_MSG_CHECKING(if you want support for color highlighting) 640d522f475SmrgCF_ARG_DISABLE(highlighting, 641d522f475Smrg [ --disable-highlighting disable support for color highlighting], 642d522f475Smrg [default_highlight=no], 643d522f475Smrg [default_highlight=yes]) 644d522f475SmrgAC_MSG_RESULT($default_highlight) 6450bd37d32Smrgtest "$default_highlight" = no && AC_DEFINE(OPT_HIGHLIGHT_COLOR,0,[Define to 1 if you want support for color highlighting]) 646d522f475Smrg 647d522f475SmrgAC_MSG_CHECKING(if you want support for doublesize characters) 648d522f475SmrgCF_ARG_DISABLE(doublechars, 649d522f475Smrg [ --disable-doublechars disable support for double-size chars], 650d522f475Smrg [enable_doublechars=no], 651d522f475Smrg [enable_doublechars=yes]) 652d522f475SmrgAC_MSG_RESULT($enable_doublechars) 6530bd37d32Smrgtest "$enable_doublechars" = no && AC_DEFINE(OPT_DEC_CHRSET,0,[Define to 0 to disable support for double-size chars]) 654d522f475Smrg 655d522f475SmrgAC_MSG_CHECKING(if you want fallback-support for box characters) 656d522f475SmrgCF_ARG_DISABLE(boxchars, 657d522f475Smrg [ --disable-boxchars disable fallback-support for box chars], 658d522f475Smrg [enable_boxchars=no], 659d522f475Smrg [enable_boxchars=yes]) 660d522f475SmrgAC_MSG_RESULT($enable_boxchars) 6610bd37d32Smrgtest "$enable_boxchars" = no && AC_DEFINE(OPT_BOX_CHARS,0,[Define to 0 to disable fallback-support for box chars]) 662d522f475Smrg 6635307cd1aSmrgAC_MSG_CHECKING(if you want to allow spawning commands to process selections) 6645307cd1aSmrgCF_ARG_DISABLE(exec-selection, 6655307cd1aSmrg [ --disable-exec-selection disable "exec-formatted" and "exec-selection" actions], 6665307cd1aSmrg [enable_exec_selection=no], 6675307cd1aSmrg [enable_exec_selection=yes]) 6685307cd1aSmrgAC_MSG_RESULT($enable_exec_selection) 6695307cd1aSmrgif test "$enable_exec_selection" = no ; then 6705307cd1aSmrg AC_DEFINE(OPT_EXEC_SELECTION,0,[Define to 0 to disable "exec-selection" action]) 6715307cd1aSmrgfi 6725307cd1aSmrg 673d522f475SmrgAC_MSG_CHECKING(if you want to allow spawning new xterms) 674d522f475SmrgCF_ARG_ENABLE(exec-xterm, 675d522f475Smrg [ --enable-exec-xterm enable "spawn-new-terminal" action], 676d522f475Smrg [enable_exec_xterm=yes], 677d522f475Smrg [enable_exec_xterm=no]) 678d522f475SmrgAC_MSG_RESULT($enable_exec_xterm) 679d522f475Smrgif test "$enable_exec_xterm" = yes ; then 680d522f475Smrg CF_PROCFS_CWD 681d522f475Smrg if test "$cf_cv_procfs_cwd" = no ; then 682d522f475Smrg AC_MSG_WARN(no suitable proc filesystem found) 683d522f475Smrg else 6840bd37d32Smrg AC_DEFINE_UNQUOTED(PROCFS_ROOT,"$cf_cv_procfs_cwd",[This is defined via the --enable-exec-xterm option]) 6850bd37d32Smrg AC_DEFINE(OPT_EXEC_XTERM,1,[Define to 1 to enable "spawn-new-terminal" action]) 686d522f475Smrg fi 687d522f475Smrgfi 688d522f475Smrg 689f2e35a3aSmrgCF_X_EXT 690f2e35a3aSmrgCF_X_EXT_DOUBLE_BUFFER 691f2e35a3aSmrgdouble_buffer=False 692f2e35a3aSmrgif test "$cf_x_ext_double_buffer" = yes ; then 693f2e35a3aSmrg AC_MSG_CHECKING(if you want to enable double-buffering in default resources) 694f2e35a3aSmrg CF_ARG_ENABLE(double-buffer, 695f2e35a3aSmrg [ --enable-double-buffer enable double-buffering in default resources], 696f2e35a3aSmrg [enable_double_bfr=yes], 697f2e35a3aSmrg [enable_double_bfr=no]) 698f2e35a3aSmrg AC_MSG_RESULT($enable_double_bfr) 699f2e35a3aSmrg if test "$enable_double_bfr" = yes ; then 700f2e35a3aSmrg AC_DEFINE(OPT_DOUBLE_BUFFER,1,[Define to 1 to enable double-buffering in default resources]) 701f2e35a3aSmrg double_buffer=True 702f2e35a3aSmrg fi 7030bd37d32Smrgfi 704f2e35a3aSmrgAC_SUBST(double_buffer) 7050bd37d32Smrg 706d522f475SmrgAC_MSG_CHECKING(if you want to use FreeType library) 707d522f475SmrgCF_ARG_DISABLE(freetype, 708d522f475Smrg [ --disable-freetype disable freetype library-support], 709d522f475Smrg [enable_freetype=no], 710d522f475Smrg [enable_freetype=yes]) 711d522f475SmrgAC_MSG_RESULT($enable_freetype) 712d522f475Smrgif test "$enable_freetype" = yes ; then 7136879286fSmrg CF_X_FONTCONFIG 714d522f475Smrgelse 715d522f475Smrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 716d522f475Smrgfi 717d522f475Smrg 718d522f475SmrgAC_MSG_CHECKING(if you want support for HP-style function keys) 719d522f475SmrgCF_ARG_ENABLE(hp-fkeys, 720d522f475Smrg [ --enable-hp-fkeys enable support for HP-style function keys], 721d522f475Smrg [enable_hp_fkeys=yes], 722d522f475Smrg [enable_hp_fkeys=no]) 723d522f475SmrgAC_MSG_RESULT($enable_hp_fkeys) 724d522f475Smrgif test "$enable_hp_fkeys" = yes ; then 7250bd37d32Smrg AC_DEFINE(OPT_HP_FUNC_KEYS,1,[Define to 1 to enable support for HP-style function keys]) 726d522f475Smrgfi 727d522f475Smrg 728d522f475SmrgAC_MSG_CHECKING(if you want support for SCO-style function keys) 729d522f475SmrgCF_ARG_ENABLE(sco-fkeys, 730d522f475Smrg [ --enable-sco-fkeys enable support for SCO-style function keys], 731d522f475Smrg [enable_sco_fkeys=yes], 732d522f475Smrg [enable_sco_fkeys=no]) 733d522f475SmrgAC_MSG_RESULT($enable_sco_fkeys) 734d522f475Smrgif test "$enable_sco_fkeys" = yes ; then 7350bd37d32Smrg AC_DEFINE(OPT_SCO_FUNC_KEYS,1,[Define to 1 to enable support for SCO-style function keys]) 736d522f475Smrgfi 737d522f475Smrg 738d522f475SmrgAC_MSG_CHECKING(if you want support for Sun-style function keys) 739d522f475SmrgCF_ARG_DISABLE(sun-fkeys, 740d522f475Smrg [ --disable-sun-fkeys disable support for Sun-style function keys], 741d522f475Smrg [enable_sun_fkeys=no], 742d522f475Smrg [enable_sun_fkeys=yes]) 743d522f475SmrgAC_MSG_RESULT($enable_sun_fkeys) 744d522f475Smrgif test "$enable_sun_fkeys" = no ; then 7450bd37d32Smrg AC_DEFINE(OPT_SUN_FUNC_KEYS,0,[Define to 0 to disable support for Sun-style function keys]) 746d522f475Smrgfi 747d522f475Smrg 748956cc18dSsnjAC_MSG_CHECKING(if you want saved-lines stored as a FIFO) 749956cc18dSsnjCF_ARG_DISABLE(fifo-lines, 75020d2c4d2Smrg [ --disable-fifo-lines disable FIFO-storage for saved-lines], 751956cc18dSsnj [enable_fifo_lines=no], 752956cc18dSsnj [enable_fifo_lines=yes]) 753956cc18dSsnjAC_MSG_RESULT($enable_fifo_lines) 754a5ae21e4Smrgif test "$enable_fifo_lines" != yes ; then 755a5ae21e4Smrg AC_MSG_WARN(this option has been deprecated) 756956cc18dSsnjfi 757956cc18dSsnj 758d522f475SmrgAC_MSG_CHECKING(if you want support for internationalization) 759d522f475SmrgCF_ARG_DISABLE(i18n, 760d522f475Smrg [ --disable-i18n disable internationalization], 761d522f475Smrg [enable_i18n=no], 762d522f475Smrg [enable_i18n=yes]) 763d522f475SmrgAC_MSG_RESULT($enable_i18n) 764d522f475Smrgif test "$enable_i18n" = no ; then 7650bd37d32Smrg AC_DEFINE(OPT_I18N_SUPPORT,0,[Define to 0 to disable internationalization]) 766d522f475Smrgfi 767d522f475Smrg 768d522f475SmrgAC_MSG_CHECKING(if you want support for initial-erase setup) 769d522f475SmrgCF_ARG_DISABLE(initial-erase, 770d522f475Smrg [ --disable-initial-erase disable setup for stty erase], 771d522f475Smrg [enable_ie=no], 772d522f475Smrg [enable_ie=yes]) 773d522f475SmrgAC_MSG_RESULT($enable_ie) 774d522f475Smrgif test "$enable_ie" = no ; then 7750bd37d32Smrg AC_DEFINE(OPT_INITIAL_ERASE,0,[Define to 0 to disable setup for stty erase]) 776d522f475Smrgfi 777d522f475Smrg 778d522f475SmrgAC_MSG_CHECKING(if you want support for input-method) 779d522f475SmrgCF_ARG_DISABLE(input-method, 780d522f475Smrg [ --disable-input-method disable input-method], 781d522f475Smrg [enable_ximp=no], 782f2e35a3aSmrg [enable_ximp=$enable_i18n]) 783d522f475SmrgAC_MSG_RESULT($enable_ximp) 784d522f475SmrgCF_INPUT_METHOD 785d522f475Smrgtest "$cf_cv_input_method" = no && enable_ximp=no 786f2e35a3aSmrgif test "$enable_ximp" != no ; then 787f2e35a3aSmrg if test "$enable_i18n" = no ; then 78804b94745Smrg AC_MSG_WARN(input-method relies upon internationalization) 789f2e35a3aSmrg enable_ximp=no 790f2e35a3aSmrg fi 791f2e35a3aSmrgfi 792d522f475Smrgif test "$enable_ximp" = no ; then 7930bd37d32Smrg AC_DEFINE(OPT_INPUT_METHOD,0,[Define to 0 to disable input-method]) 794d522f475Smrgfi 795d522f475Smrg 796d522f475SmrgAC_MSG_CHECKING(if you want support for load-vt-fonts) 797d522f475SmrgCF_ARG_ENABLE(load-vt-fonts, 798d522f475Smrg [ --enable-load-vt-fonts enable load-vt-fonts() action], 799d522f475Smrg [enable_load_vt_fonts=yes], 800d522f475Smrg [enable_load_vt_fonts=no]) 801d522f475SmrgAC_MSG_RESULT($enable_load_vt_fonts) 802d522f475Smrgif test "$enable_load_vt_fonts" = yes ; then 8030bd37d32Smrg AC_DEFINE(OPT_LOAD_VTFONTS,1,[Define to 1 to enable load-vt-fonts() action]) 804d522f475Smrgfi 805d522f475Smrg 806d522f475SmrgAC_MSG_CHECKING(if you want support for logging) 807d522f475SmrgCF_ARG_ENABLE(logging, 808d522f475Smrg [ --enable-logging enable logging], 809d522f475Smrg [enable_logging=yes], 810d522f475Smrg [enable_logging=no]) 811d522f475SmrgAC_MSG_RESULT($enable_logging) 812d522f475Smrgif test "$enable_logging" = yes ; then 8130bd37d32Smrg AC_DEFINE(ALLOWLOGGING,1,[if you want support for logging]) 814d522f475Smrg AC_MSG_CHECKING(if you want to allow logging via a pipe) 815d522f475Smrg CF_ARG_ENABLE(logfile-exec, 816d522f475Smrg [ --enable-logfile-exec enable exec'd logfile filter], 817d522f475Smrg [enable_log_exec=yes], 818d522f475Smrg [enable_log_exec=no]) 819d522f475Smrg AC_MSG_RESULT($enable_log_exec) 820d522f475Smrg if test "$enable_log_exec" = yes ; then 8210bd37d32Smrg AC_DEFINE(ALLOWLOGFILEEXEC,1,[if you want to allow logging via a pipe]) 822d522f475Smrg fi 823d522f475Smrgfi 824d522f475Smrg 825d522f475SmrgAC_MSG_CHECKING(if you want support for iconify/maximize translations) 826d522f475SmrgCF_ARG_DISABLE(maximize, 827d522f475Smrg [ --disable-maximize disable actions for iconify/deiconify/maximize/restore], 828d522f475Smrg [enable_maximize=no], 829d522f475Smrg [enable_maximize=yes]) 830d522f475SmrgAC_MSG_RESULT($enable_maximize) 8310bd37d32Smrgtest "$enable_maximize" = no && AC_DEFINE(OPT_MAXIMIZE,0,[Define to 0 to disable actions for iconify/deiconify/maximize/restore]) 832d522f475Smrg 833d522f475SmrgAC_MSG_CHECKING(if you want NumLock to override keyboard tables) 834d522f475SmrgCF_ARG_DISABLE(num-lock, 835d522f475Smrg [ --disable-num-lock disable NumLock keypad support], 836d522f475Smrg [enable_numlock=no], 837d522f475Smrg [enable_numlock=yes]) 838d522f475SmrgAC_MSG_RESULT($enable_numlock) 8390bd37d32Smrgtest "$enable_numlock" = no && AC_DEFINE(OPT_NUM_LOCK,0,[Define to 0 to disable NumLock keypad support]) 840d522f475Smrg 841d522f475SmrgAC_MSG_CHECKING(if you want support for get/set of base64 selection data) 842d522f475Smrg 8432eaa94a1SchristosCF_ARG_DISABLE(paste64, 8442eaa94a1Schristos [ --disable-paste64 disable get/set base64 selection data], 8452eaa94a1Schristos [enable_paste64=no], 8462eaa94a1Schristos [enable_paste64=yes]) 847d522f475SmrgAC_MSG_RESULT($enable_paste64) 848d522f475Smrgif test "$enable_paste64" = yes ; then 8490bd37d32Smrg AC_DEFINE(OPT_PASTE64,1,[Define to 1 to disable get/set base64 selection data]) 850d522f475Smrgelse 8510bd37d32Smrg AC_DEFINE(OPT_PASTE64,0,[Define to 0 to disable get/set base64 selection data]) 852d522f475Smrgfi 853d522f475Smrg 854d522f475SmrgAC_MSG_CHECKING(if you want support for pty-handshaking) 855d522f475Smrg 856d522f475SmrgCF_ARG_DISABLE(pty-handshake, 857d522f475Smrg [ --disable-pty-handshake disable pty-handshake support], 858d522f475Smrg [enable_pty_handshake=no], 859d522f475Smrg [enable_pty_handshake=yes]) 860d522f475SmrgAC_MSG_RESULT($enable_pty_handshake) 861d522f475Smrgif test "$enable_pty_handshake" = yes ; then 8620bd37d32Smrg AC_DEFINE(OPT_PTY_HANDSHAKE,1,[Define to 1 to disable pty-handshake support]) 863d522f475Smrgelse 8640bd37d32Smrg AC_DEFINE(OPT_PTY_HANDSHAKE,0,[Define to 0 to disable pty-handshake support]) 865d522f475Smrgfi 866d522f475Smrg 867d522f475SmrgAC_MSG_CHECKING(if you want support for mouse in readline applications) 8685307cd1aSmrgCF_ARG_DISABLE(readline-mouse, 8695307cd1aSmrg [ --disable-readline-mouse disable support for mouse in readline applications], 8705307cd1aSmrg [enable_readline_mouse=no], 8715307cd1aSmrg [enable_readline_mouse=yes]) 872d522f475SmrgAC_MSG_RESULT($enable_readline_mouse) 873d522f475Smrgif test "$enable_readline_mouse" = yes ; then 8740bd37d32Smrg AC_DEFINE(OPT_READLINE,1,[Define to 1 to enable support for mouse in readline applications]) 875d522f475Smrgfi 876d522f475Smrg 877d522f475SmrgAC_MSG_CHECKING(if you want support for regular-expression selections) 878d522f475SmrgCF_ARG_DISABLE(regex, 879d522f475Smrg [ --disable-regex disable regular-expression selections], 880d522f475Smrg [enable_regex=no], 881d522f475Smrg [enable_regex=yes]) 882d522f475SmrgAC_MSG_RESULT($enable_regex) 883d522f475Smrgif test "$enable_regex" = yes ; then 884f2e35a3aSmrg CF_WITH_PCRE2 885f2e35a3aSmrg if test "$with_pcre2" = no ; then 886f2e35a3aSmrg CF_WITH_PCRE 887f2e35a3aSmrg if test "$with_pcre" = no ; then 888f2e35a3aSmrg CF_REGEX 889f2e35a3aSmrg if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 890f2e35a3aSmrg AC_MSG_ERROR([Only POSIX, PCRE, or PCRE2 regular expressions are supported]) 891f2e35a3aSmrg fi 892d522f475Smrg fi 893d522f475Smrg fi 8940bd37d32Smrg AC_DEFINE(OPT_SELECT_REGEX,1,[Define to 1 to enable regular-expression selections]) 895d522f475Smrgfi 896d522f475Smrg 897d522f475SmrgAC_MSG_CHECKING(if you want support for right-scrollbar) 898d522f475SmrgCF_ARG_DISABLE(rightbar, 899d522f475Smrg [ --disable-rightbar disable right-scrollbar support], 900d522f475Smrg [enable_rightbar=no], 901d522f475Smrg [enable_rightbar=yes]) 902d522f475SmrgAC_MSG_RESULT($enable_rightbar) 903d522f475Smrgif test "$enable_rightbar" = yes ; then 9040bd37d32Smrg AC_DEFINE(SCROLLBAR_RIGHT,1,[Define to 1 to enable right-scrollbar support]) 905d522f475Smrgfi 906d522f475Smrg 907d522f475SmrgAC_MSG_CHECKING(if you want check for redundant name-change) 908d522f475SmrgCF_ARG_DISABLE(samename, 909d522f475Smrg [ --disable-samename disable check for redundant name-change], 910d522f475Smrg [enable_samename=no], 911d522f475Smrg [enable_samename=yes]) 912d522f475SmrgAC_MSG_RESULT($enable_samename) 9130bd37d32Smrgtest "$enable_samename" = no && AC_DEFINE(OPT_SAME_NAME,0,[Define to 0 to disable check for redundant name-change]) 9140bd37d32Smrg 9150bd37d32SmrgAC_MSG_CHECKING(if you want support for selection-actions) 9160bd37d32SmrgCF_ARG_DISABLE(selection-ops, 9170bd37d32Smrg [ --disable-selection-ops disable selection-action operations], 9180bd37d32Smrg [enable_selection_ops=no], 9190bd37d32Smrg [enable_selection_ops=yes]) 9200bd37d32SmrgAC_MSG_RESULT($enable_selection_ops) 9210bd37d32Smrgtest "$enable_selection_ops" = no && AC_DEFINE(OPT_SELECTION_OPS,0,[Define to 0 disable selection-action operations]) 922d522f475Smrg 923d522f475SmrgAC_MSG_CHECKING(if you want support for session management) 924d522f475SmrgCF_ARG_DISABLE(session-mgt, 925d522f475Smrg [ --disable-session-mgt disable support for session management], 926d522f475Smrg [enable_session_mgt=no], 927d522f475Smrg [enable_session_mgt=yes]) 928d522f475SmrgAC_MSG_RESULT($enable_session_mgt) 9290bd37d32Smrgtest "$enable_session_mgt" = no && AC_DEFINE(OPT_SESSION_MGT,0,[Define to 0 to disable support for session management]) 930d522f475Smrg 9314419d26bSmrgAC_MSG_CHECKING(if you want support for status-line) 9324419d26bSmrgCF_ARG_ENABLE(status-line, 9334419d26bSmrg [ --enable-status-line enable support for status-line], 9344419d26bSmrg [enable_status_line=yes], 9354419d26bSmrg [enable_status_line=no]) 9364419d26bSmrgAC_MSG_RESULT($enable_status_line) 9374419d26bSmrgtest "$enable_status_line" = yes && AC_DEFINE(OPT_STATUS_LINE,1,[Define to 1 to enable support for status-line]) 9384419d26bSmrg 939d522f475SmrgAC_MSG_CHECKING(if you want to use termcap function-keys) 940d522f475SmrgCF_ARG_DISABLE(tcap-fkeys, 941d522f475Smrg [ --disable-tcap-fkeys disable termcap function-keys support], 942d522f475Smrg [enable_tcap_fkeys=no], 943d522f475Smrg [enable_tcap_fkeys=yes]) 944d522f475SmrgAC_MSG_RESULT($enable_tcap_fkeys) 9454419d26bSmrgtest "$enable_tcap_fkeys" = no && AC_DEFINE(OPT_TCAP_FKEYS,0,[Define to 0 to disable termcap function-keys support]) 946d522f475Smrg 947d522f475SmrgAC_MSG_CHECKING(if you want to use termcap-query/report) 9482eaa94a1SchristosCF_ARG_DISABLE(tcap-query, 9492eaa94a1Schristos [ --disable-tcap-query disable compiled-in termcap-query support], 9502eaa94a1Schristos [enable_tcap_query=no], 9512eaa94a1Schristos [enable_tcap_query=yes]) 952d522f475SmrgAC_MSG_RESULT($enable_tcap_query) 9534419d26bSmrgtest "$enable_tcap_query" = no && AC_DEFINE(OPT_TCAP_QUERY,0,[Define to 0 to disable compiled-in termcap-query support]) 954d522f475Smrg 955d522f475SmrgAC_MSG_CHECKING(if you want support for tek4014) 956d522f475SmrgCF_ARG_DISABLE(tek4014, 957d522f475Smrg [ --disable-tek4014 disable tek4014 emulation], 958d522f475Smrg [enable_tek4014=no], 959d522f475Smrg [enable_tek4014=yes]) 960d522f475SmrgAC_MSG_RESULT($enable_tek4014) 961d522f475Smrgif test "$enable_tek4014" = no ; then 9620bd37d32Smrg AC_DEFINE(OPT_TEK4014,0,[Define to 0 to disable tek4014 emulation]) 963d522f475Smrgelse 964d522f475Smrg EXTRAHDRS="$EXTRAHDRS Tekparse.h" 965d522f475Smrg EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 966d522f475Smrg EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 967d522f475Smrgfi 968d522f475Smrg 969d522f475SmrgAC_MSG_CHECKING(if you want pulldown menus with a toolbar) 970d522f475SmrgCF_ARG_ENABLE(toolbar, 971d522f475Smrg [ --enable-toolbar compile-in toolbar for pulldown menus], 972d522f475Smrg [enable_toolbar=yes], 973d522f475Smrg [enable_toolbar=no]) 974d522f475SmrgAC_MSG_RESULT($enable_toolbar) 975d522f475Smrgif test "$enable_toolbar" = yes ; then 9760bd37d32Smrg AC_DEFINE(OPT_TOOLBAR,1,[Define to 1 to compile-in toolbar for pulldown menus]) 977d522f475Smrgfi 978d522f475Smrg 979d522f475SmrgAC_MSG_CHECKING(if you want VT52 emulation) 980d522f475SmrgCF_ARG_DISABLE(vt52, 981d522f475Smrg [ --disable-vt52 disable VT52 emulation], 982d522f475Smrg [enable_vt52=no], 983d522f475Smrg [enable_vt52=yes]) 984d522f475SmrgAC_MSG_RESULT($enable_vt52) 9850bd37d32Smrgtest "$enable_vt52" = no && AC_DEFINE(OPT_VT52_MODE,0,[Define to 0 to disable VT52 emulation]) 986d522f475Smrg 987894e0ac8SmrgAC_MSG_CHECKING(if you want wide-attribute support) 988894e0ac8SmrgCF_ARG_DISABLE(wide-attrs, 989894e0ac8Smrg [ --disable-wide-attrs disable wide-attribute support], 990894e0ac8Smrg [enable_wattr=no], 991894e0ac8Smrg [enable_wattr=yes]) 992894e0ac8SmrgAC_MSG_RESULT($enable_wattr) 993894e0ac8Smrg 994f2e35a3aSmrgif test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 995f2e35a3aSmrg AC_MSG_WARN(overriding wide-attributes to support direct color) 996f2e35a3aSmrg enable_wattr=yes 997f2e35a3aSmrgfi 998f2e35a3aSmrg 999e0a2b6dfSmrgAC_MSG_CHECKING(if you want wide-character support) 1000e0a2b6dfSmrgCF_ARG_DISABLE(wide-chars, 1001e0a2b6dfSmrg [ --disable-wide-chars disable wide-character support], 1002e0a2b6dfSmrg [enable_wchar=no], 1003e0a2b6dfSmrg [enable_wchar=yes]) 1004e0a2b6dfSmrgAC_MSG_RESULT($enable_wchar) 1005f2e35a3aSmrgtest "x$enable_wattr" = xno && AC_DEFINE(OPT_WIDE_ATTRS,0,[Define to 0 to disable rarely-used SGR features]) 1006e0a2b6dfSmrg 1007e0a2b6dfSmrgAC_MSG_CHECKING(if you want only 16-bit character support) 1008e0a2b6dfSmrgCF_ARG_ENABLE(16bit-chars, 1009e0a2b6dfSmrg [ --enable-16bit-chars enable 16-bit character support], 1010e0a2b6dfSmrg [enable_16bit_chars=yes], 1011e0a2b6dfSmrg [enable_16bit_chars=no]) 1012e0a2b6dfSmrgAC_MSG_RESULT($enable_16bit_chars) 1013e0a2b6dfSmrg 1014e0a2b6dfSmrgif test "$enable_16bit_chars" = yes ; then 1015e0a2b6dfSmrg AC_DEFINE(OPT_WIDER_ICHAR,0,[Define to 0 to enable 16-bit character support]) 1016e0a2b6dfSmrg enable_wchar=yes 1017e0a2b6dfSmrgfi 1018e0a2b6dfSmrg 1019e0a2b6dfSmrgif test "$enable_wchar" = yes ; then 1020e0a2b6dfSmrg 1021d522f475SmrgAC_MSG_CHECKING(if you want to use mini-luit/Latin9 built-in support) 1022d522f475SmrgCF_ARG_ENABLE(mini-luit, 1023d522f475Smrg [ --enable-mini-luit enable mini-luit (built-in Latin9 support)], 1024d522f475Smrg [enable_mini_luit=yes], 1025d522f475Smrg [enable_mini_luit=no]) 1026d522f475SmrgAC_MSG_RESULT($enable_mini_luit) 1027d522f475Smrgif test "$enable_mini_luit" = yes ; then 10280bd37d32Smrg AC_DEFINE(OPT_MINI_LUIT,1,[Define to 1 to enable mini-luit (built-in Latin9 support)]) 1029d522f475Smrgfi 1030d522f475Smrg 1031d522f475SmrgAC_MSG_CHECKING(if you want to use luit) 1032e0a2b6dfSmrgCF_ARG_DISABLE(luit, 1033e0a2b6dfSmrg [ --disable-luit enable luit filter (Unicode translation)], 1034e0a2b6dfSmrg [enable_luit=no], 1035e0a2b6dfSmrg [enable_luit=yes]) 1036d522f475SmrgAC_MSG_RESULT($enable_luit) 1037d522f475Smrgif test "$enable_luit" = yes ; then 10380bd37d32Smrg AC_DEFINE(OPT_LUIT_PROG,1,[Define to 1 to enable luit filter (Unicode translation)]) 103920d2c4d2Smrg CF_PATH_PROG(LUIT,xterm-filter,bluit luit) 1040d522f475Smrgfi 1041d522f475Smrg 10420bd37d32Smrg AC_DEFINE(OPT_WIDE_CHARS,1,[Define to 1 to enable wide-character support]) 1043d522f475Smrg EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 1044d522f475Smrg EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 1045d522f475Smrg EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 1046d522f475Smrgfi 1047d522f475Smrg 1048d522f475SmrgAC_MSG_CHECKING(if you want dynamic-abbreviation support) 1049d522f475SmrgCF_ARG_ENABLE(dabbrev, 1050d522f475Smrg [ --enable-dabbrev enable dynamic-abbreviation support], 1051d522f475Smrg [enable_dabbrev=yes], 1052d522f475Smrg [enable_dabbrev=no]) 1053d522f475SmrgAC_MSG_RESULT($enable_dabbrev) 1054d522f475Smrgif test "$enable_dabbrev" = yes ; then 10550bd37d32Smrg AC_DEFINE(OPT_DABBREV,1,[Define to 1 to enable dynamic-abbreviation support]) 1056d522f475Smrgfi 1057d522f475Smrg 1058d522f475SmrgAC_MSG_CHECKING(if you want DECterm Locator support) 1059d522f475SmrgCF_ARG_ENABLE(dec-locator, 1060d522f475Smrg [ --enable-dec-locator enable DECterm Locator support], 1061d522f475Smrg [enable_dec_locator=yes], 1062d522f475Smrg [enable_dec_locator=no]) 1063d522f475SmrgAC_MSG_RESULT($enable_dec_locator) 1064d522f475Smrgif test "$enable_dec_locator" = yes ; then 10650bd37d32Smrg AC_DEFINE(OPT_DEC_LOCATOR,1,[Define to 1 to enable DECterm Locator support]) 1066d522f475Smrgfi 1067d522f475Smrg 10682e4f8982SmrgAC_MSG_CHECKING(if you want XHTML and SVG screen dump support) 1069f2e35a3aSmrgCF_ARG_DISABLE(screen-dumps, 1070f2e35a3aSmrg [ --disable-screen-dumps disable XHTML and SVG screen dumps], 1071f2e35a3aSmrg [enable_screen_dumps=no], 1072f2e35a3aSmrg [enable_screen_dumps=yes]) 10732e4f8982SmrgAC_MSG_RESULT($enable_screen_dumps) 10742e4f8982Smrgif test "$enable_screen_dumps" = yes ; then 10752e4f8982Smrg EXTRASRCS="$EXTRASRCS html.c svg.c" 10762e4f8982Smrg EXTRAOBJS="$EXTRAOBJS html.o svg.o" 1077f2e35a3aSmrgelse 1078f2e35a3aSmrg AC_DEFINE(OPT_SCREEN_DUMPS,0,[Define to 0 to disable XHTML and SVG screen dump support]) 10792e4f8982Smrgfi 10802e4f8982Smrg 1081894e0ac8SmrgAC_MSG_CHECKING(if you want ReGIS graphics support) 1082894e0ac8SmrgCF_ARG_ENABLE(regis-graphics, 1083894e0ac8Smrg [ --enable-regis-graphics enable ReGIS graphics support], 1084894e0ac8Smrg [enable_regis_graphics=yes], 1085894e0ac8Smrg [enable_regis_graphics=no]) 1086894e0ac8SmrgAC_MSG_RESULT($enable_regis_graphics) 1087894e0ac8Smrgif test "$enable_regis_graphics" = yes ; then 1088894e0ac8Smrg AC_DEFINE(OPT_REGIS_GRAPHICS,1,[Define to 1 to enable ReGIS graphics support]) 1089894e0ac8Smrg EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 1090894e0ac8Smrg EXTRASRCS="$EXTRASRCS graphics_regis.c" 1091894e0ac8Smrg EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 1092894e0ac8Smrg CF_MATH_LIB 1093894e0ac8Smrgfi 1094894e0ac8Smrg 1095e0a2b6dfSmrgAC_MSG_CHECKING(if you want sixel graphics support) 1096f2e35a3aSmrgCF_ARG_DISABLE(sixel-graphics, 1097f2e35a3aSmrg [ --disable-sixel-graphics disable sixel graphics support], 1098f2e35a3aSmrg [enable_sixel_graphics=no], 1099f2e35a3aSmrg [enable_sixel_graphics=yes]) 1100e0a2b6dfSmrgAC_MSG_RESULT($enable_sixel_graphics) 1101e0a2b6dfSmrgif test "$enable_sixel_graphics" = yes ; then 1102e0a2b6dfSmrg AC_DEFINE(OPT_SIXEL_GRAPHICS,1,[Define to 1 to enable sixel graphics support]) 1103894e0ac8Smrg EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 1104894e0ac8Smrg EXTRASRCS="$EXTRASRCS graphics_sixel.c" 1105894e0ac8Smrg EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 1106894e0ac8Smrgfi 1107894e0ac8Smrg 1108894e0ac8Smrgif test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 1109894e0ac8Smrg AC_DEFINE(OPT_GRAPHICS,1,[Defined to 1 to if any graphics mode is enabled]) 1110e0a2b6dfSmrg EXTRAHDRS="$EXTRAHDRS graphics.h" 1111e0a2b6dfSmrg EXTRASRCS="$EXTRASRCS graphics.c" 1112e0a2b6dfSmrg EXTRAOBJS="$EXTRAOBJS graphics.o" 111304b94745Smrg STRINGS_MAX=600000 111404b94745Smrgelse 111504b94745Smrg STRINGS_MAX=20000 1116e0a2b6dfSmrgfi 111704b94745SmrgAC_SUBST(STRINGS_MAX) 1118e0a2b6dfSmrg 1119f2e35a3aSmrgAC_MSG_CHECKING(if you want sixel screen dump support) 1120f2e35a3aSmrgCF_ARG_DISABLE(print-graphics, 1121f2e35a3aSmrg [ --disable-print-graphics disable screen dump to sixel support], 1122f2e35a3aSmrg [enable_print_graphics=no], 1123f2e35a3aSmrg [enable_print_graphics=$enable_regis_graphics]) 1124f2e35a3aSmrgAC_MSG_RESULT($enable_print_graphics) 1125f2e35a3aSmrgif test "$enable_print_graphics" = yes ; then 1126f2e35a3aSmrg AC_DEFINE(OPT_PRINT_GRAPHICS,1,[Define to 1 to enable screen dump to sixel support]) 1127f2e35a3aSmrgfi 1128f2e35a3aSmrg 1129d522f475SmrgAC_MSG_CHECKING(if you want VT420 rectangle support) 1130d522f475SmrgCF_ARG_DISABLE(rectangles, 1131d522f475Smrg [ --disable-rectangles disable VT420 rectangle support], 1132d522f475Smrg [enable_rectangles=no], 1133d522f475Smrg [enable_rectangles=yes]) 1134d522f475SmrgAC_MSG_RESULT($enable_rectangles) 11354419d26bSmrgif test "$enable_rectangles" = no ; then 11364419d26bSmrg AC_DEFINE(OPT_DEC_RECTOPS,0,[Define to 0 to disable VT420 rectangle support]) 1137d522f475Smrgfi 1138d522f475Smrg 1139d522f475SmrgAC_MSG_CHECKING(if you want -ziconbeep option) 1140d522f475SmrgCF_ARG_DISABLE(ziconbeep, 1141d522f475Smrg [ --disable-ziconbeep disable -ziconbeep option], 1142d522f475Smrg [enable_ziconbeep=no], 1143d522f475Smrg [enable_ziconbeep=yes]) 1144d522f475SmrgAC_MSG_RESULT($enable_ziconbeep) 11450bd37d32Smrgtest "$enable_ziconbeep" = no && AC_DEFINE(OPT_ZICONBEEP,0,[Define to 0 to disable -ziconbeep option]) 1146d522f475Smrg 1147d522f475Smrg############################################################################### 1148d522f475SmrgCF_HELP_MESSAGE(Testing/development Options:) 1149d522f475Smrg 1150d522f475SmrgAC_MSG_CHECKING(if you want debugging traces) 1151d522f475SmrgCF_ARG_ENABLE(trace, 1152d522f475Smrg [ --enable-trace test: set to enable debugging traces], 1153d522f475Smrg [enable_trace=yes], 1154d522f475Smrg [enable_trace=no]) 1155d522f475SmrgAC_MSG_RESULT($enable_trace) 1156d522f475Smrgif test "$enable_trace" = yes ; then 11570bd37d32Smrg AC_DEFINE(OPT_TRACE,1,[Define to 1 to enable debugging traces]) 1158d522f475Smrg EXTRASRCS="$EXTRASRCS trace.c" 1159d522f475Smrg EXTRAOBJS="$EXTRAOBJS trace.o" 1160d522f475Smrgfi 1161d522f475Smrg 11620bd37d32SmrgCF_DISABLE_LEAKS 1163d522f475SmrgCF_DISABLE_ECHO 1164d522f475Smrg 1165d522f475SmrgAC_MSG_CHECKING(if you want magic cookie emulation) 1166d522f475SmrgCF_ARG_ENABLE(xmc-glitch, 1167d522f475Smrg [ --enable-xmc-glitch test: enable xmc magic-cookie emulation], 1168d522f475Smrg [enable_xmc=yes], 1169d522f475Smrg [enable_xmc=no]) 1170d522f475SmrgAC_MSG_RESULT($enable_xmc) 1171d522f475Smrgif test "$enable_xmc" = yes ; then 11720bd37d32Smrg AC_DEFINE(OPT_XMC_GLITCH,1,[Define to 1 to enable xmc magic-cookie emulation]) 1173d522f475Smrg EXTRASRCS="$EXTRASRCS testxmc.c" 1174d522f475Smrg EXTRAOBJS="$EXTRAOBJS testxmc.o" 1175d522f475Smrgfi 1176d522f475Smrg 1177d522f475Smrgdnl FIXME - extra test needed to make tcap-fkeys work on HPUX 1178d522f475SmrgAC_CHECK_FUNCS(tigetstr) 1179d522f475Smrg 11802eaa94a1Schristosdnl only check for ncurses' use_extended_names if really not using termcap 11812eaa94a1Schristosif test -n "$cf_cv_lib_part_tgetent"; then 11822eaa94a1Schristos AC_CHECK_FUNCS(use_extended_names) 11832eaa94a1Schristosfi 11842eaa94a1Schristos 11855307cd1aSmrgCF_ENABLE_WARNINGS(Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual,yes) 1186d522f475Smrg 1187d522f475SmrgAC_SUBST(EXTRA_CFLAGS) 1188d522f475SmrgAC_SUBST(CHARPROC_DEPS) 1189d522f475SmrgAC_SUBST(EXTRAHDRS) 1190d522f475SmrgAC_SUBST(EXTRASRCS) 1191d522f475SmrgAC_SUBST(EXTRAOBJS) 1192d522f475Smrg 11930bd37d32Smrgtest "$disable_setuid" = yes && AC_DEFINE(DISABLE_SETUID,1,[Define to 1 if you want to disable setuid]) 11940bd37d32Smrgtest "$disable_setgid" = yes && AC_DEFINE(DISABLE_SETGID,1,[Define to 1 if you want to disable setgid]) 1195d522f475Smrg 1196d522f475Smrgif test $disable_setuid = yes ; then 1197d522f475Smrg MAY_SETUID="#" 1198d522f475Smrg NOT_SETUID= 1199d522f475Smrgelif test $disable_setgid = yes ; then 1200d522f475Smrg MAY_SETUID="#" 1201d522f475Smrg NOT_SETUID= 1202d522f475Smrgelse 1203d522f475Smrg MAY_SETUID= 1204d522f475Smrg NOT_SETUID="#" 1205d522f475Smrgfi 1206d522f475Smrg 1207d522f475SmrgAC_SUBST(MAY_SETUID) 1208d522f475SmrgAC_SUBST(NOT_SETUID) 1209d522f475Smrg 1210d522f475Smrg### remove from CPPFLAGS the optional features we define in xtermcfg.h 1211d522f475Smrg### or other conflicting symbols that may be defined via imake: 1212d522f475Smrgfor cf_def in \ 1213d522f475Smrg __STDC__ \ 1214d522f475Smrg ALLOWLOGGING \ 1215d522f475Smrg ALLOWLOGFILEEXEC \ 1216d522f475Smrg OPT_LUIT_PROG \ 1217d522f475Smrg OPT_WIDE_CHARS \ 1218d522f475Smrg SCROLLBAR_RIGHT \ 1219d522f475Smrg USE_TTY_GROUP \ 1220d522f475Smrg USE_UTEMPTER \ 1221d522f475Smrg XRENDERFONT 1222d522f475Smrgdo 1223d522f475Smrg CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 1224d522f475Smrgdone 1225d522f475Smrg 122620d2c4d2SmrgCF_MAKE_TAGS 122720d2c4d2SmrgCF_DISABLE_RPATH_HACK 122820d2c4d2Smrg 122920d2c4d2Smrg# Force plink.sh to not trim pcre's libraries, which have the same symbol 123020d2c4d2Smrg# names as the system regexp. 123120d2c4d2Smrgif test "$with_pcre" != no 123220d2c4d2Smrgthen 123320d2c4d2Smrg LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 123420d2c4d2Smrgfi 123520d2c4d2Smrg 1236e39b573cSmrg### output xtermcfg.h, etc 12375307cd1aSmrgAC_CONFIG_FILES([Makefile df-install minstall:minstall.in run-tic.sh:run-tic.in]) 1238894e0ac8SmrgAC_OUTPUT 1239