1dnl $XTermId: configure.in,v 1.380 2021/08/22 19:49:13 tom Exp $ 2dnl 3dnl ----------------------------------------------------------------------------- 4dnl this file is part of xterm 5dnl 6dnl Copyright 1997-2020,2021 by Thomas E. Dickey 7dnl 8dnl All Rights Reserved 9dnl 10dnl Permission is hereby granted, free of charge, to any person obtaining a 11dnl copy of this software and associated documentation files (the 12dnl "Software"), to deal in the Software without restriction, including 13dnl without limitation the rights to use, copy, modify, merge, publish, 14dnl distribute, sublicense, and/or sell copies of the Software, and to 15dnl permit persons to whom the Software is furnished to do so, subject to 16dnl the following conditions: 17dnl 18dnl The above copyright notice and this permission notice shall be included 19dnl in all copies or substantial portions of the Software. 20dnl 21dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 22dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 24dnl IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 25dnl CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 26dnl TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 27dnl SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28dnl 29dnl Except as contained in this notice, the name(s) of the above copyright 30dnl holders shall not be used in advertising or otherwise to promote the 31dnl sale, use or other dealings in this Software without prior written 32dnl authorization. 33dnl --------------------------------------------------------------------------- 34dnl Process this file with autoconf to produce a configure script. 35dnl 36AC_PREREQ(2.52.20210105) 37AC_INIT 38AC_CONFIG_SRCDIR([charproc.c]) 39AC_CONFIG_HEADER(xtermcfg.h:xtermcfg.hin) 40CF_CHECK_CACHE 41 42### checks for alternative programs 43 44dnl Only add to this case statement when a system has a compiler that is not 45dnl detected by AC_PROG_CC. 46case "$host_os" in 47(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" 48 : "${CPPFLAGS=\"-D_ALL_SOURCE\"}" 49 : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x\"}" 50 : "${CC=c89}";; 51(darwin*) 52 : "${LDFLAGS}=\"${LDFLAGS} -Wl,-bind_at_load\"";; 53esac 54 55CF_PROG_CC 56AC_PROG_CPP 57AC_PROG_AWK 58AC_PROG_INSTALL 59AC_PROG_LN_S 60AC_ARG_PROGRAM 61CF_PROG_LINT 62 63### checks for compiler characteristics 64CF_XOPEN_SOURCE(700) 65CF_SIGWINCH 66 67### checks for header files 68AC_CHECK_HEADERS( \ 69ncurses/curses.h \ 70ncurses/term.h \ 71stdlib.h \ 72sys/ptem.h sys/ttydefaults.h \ 73term.h \ 74termios.h \ 75unistd.h \ 76wchar.h \ 77) 78AC_HEADER_TIME 79AM_LANGINFO_CODESET 80 81### checks for typedefs 82CF_SIG_ATOMIC_T 83AC_CHECK_TYPE(time_t, long) 84CF_TYPE_CC_T 85AC_TYPE_MODE_T 86AC_TYPE_PID_T 87AC_TYPE_UID_T 88AC_TYPE_OFF_T 89 90### checks for library functions 91AC_CHECK_FUNCS( \ 92 gethostname \ 93 getusershell \ 94 endusershell \ 95 getlogin \ 96 initgroups \ 97 mkdtemp \ 98 putenv \ 99 unsetenv \ 100 sched_yield \ 101 setpgid \ 102 strftime \ 103 tcgetattr \ 104 waitpid \ 105 wcswidth \ 106 wcwidth ) 107CF_UTMP 108CF_STRUCT_LASTLOG 109CF_POSIX_SAVED_IDS 110 111CF_HELP_MESSAGE(Compile/Install Options:) 112CF_FUNC_TGETENT 113 114CF_WITH_APP_CLASS(XTerm) 115CF_WITH_APP_DEFAULTS 116CF_WITH_ICON_NAME(mini.xterm) 117CF_WITH_ICON_SYMLINK(xterm) 118 119# Install all icons except for the overused "terminal". 120cf_cv_icon_list= 121for my_item in $srcdir/icons/*.svg 122do 123 test -f "$my_item" || continue 124 cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` 125 case $cf_icon_name in 126 (*_48x48) 127 continue 128 ;; 129 esac 130 CF_VERBOSE(adding $cf_icon_name to icon-list) 131 cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" 132 if test -f "${cf_icon_name}_48x48.png" 133 then 134 CF_VERBOSE(adding ${cf_icon_name}_48x48 to icon-list) 135 cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" 136 fi 137done 138CF_WITH_ICON_THEME([$cf_cv_icon_list],,,icons/${ICON_NAME}_48x48) 139 140CF_DISABLE_DESKTOP(xterm) 141CF_WITH_DESKTOP_CATEGORY(xterm, 142 [*rxvt*|*konsole|*[[Tt]]erminal], 143 [System|TerminalEmulator|*]) 144 145AC_MSG_CHECKING(for install-permissions reference) 146AC_ARG_WITH(reference, 147 [ --with-reference=XXX program to use as permissions-reference], 148 [with_reference=$withval], 149 [with_reference=xterm]) 150AC_MSG_RESULT($with_reference) 151 152with_full_paths=yes 153CF_PATH_PROG(XTERM_PATH,$with_reference) 154 155# If any of --program-prefix, --program-suffix or --program-transform-name is 156# given, accept an option tell the makefile to create a symbolic link, e.g., 157# to "xterm" on install. 158XTERM_SYMLINK=NONE 159AC_SUBST(XTERM_SYMLINK) 160if test "$program_transform_name" != "'s,,,'" ; then 161cf_name=`echo "$program_transform_name" | sed -e '[s,\\$\\$,$,g]'` 162cf_name=`echo xterm |sed -e "$cf_name"` 163AC_MSG_CHECKING(for symbolic link to create to $cf_name) 164AC_ARG_WITH(xterm-symlink, 165 [ --with-xterm-symlink=XXX make symbolic link to installed xterm], 166 [with_symlink=$withval], 167 [with_symlink=xterm]) 168AC_MSG_RESULT($with_symlink) 169test "$with_symlink" = yes && with_symlink=xterm 170test -n "$with_symlink" && \ 171 test "$with_symlink" != no && \ 172 test "$with_symlink" != "$cf_name" && \ 173 XTERM_SYMLINK="$with_symlink" 174fi 175 176AC_MSG_CHECKING(if you want to disable openpty) 177CF_ARG_DISABLE(openpty, 178 [ --disable-openpty disable openpty, prefer other interfaces], 179 [disable_openpty=yes], 180 [disable_openpty=no], 181 no) 182AC_MSG_RESULT($disable_openpty) 183 184AC_MSG_CHECKING(if you want to disable setuid) 185CF_ARG_DISABLE(setuid, 186 [ --disable-setuid disable setuid in xterm, do not install setuid/setgid], 187 [disable_setuid=yes], 188 [disable_setuid=no], 189 no) 190AC_MSG_RESULT($disable_setuid) 191 192AC_MSG_CHECKING(if you want to disable setgid) 193CF_ARG_DISABLE(setgid, 194 [ --disable-setgid disable setgid in xterm, do not install setuid/setgid], 195 [disable_setgid=yes], 196 [disable_setgid=no], 197 no) 198AC_MSG_RESULT($disable_setgid) 199 200AC_MSG_CHECKING(if you want to run xterm setuid to a given user) 201AC_ARG_WITH(setuid, 202 [ --with-setuid=XXX use the given setuid user], 203 [use_given_setuid=$withval], 204 [use_given_setuid=no]) 205AC_MSG_RESULT($use_given_setuid) 206 207if test "$use_given_setuid" != no ; then 208 if test "$use_given_setuid" = yes ; then 209 cf_cv_given_setuid=root 210 else 211 cf_cv_given_setuid=$use_given_setuid 212 fi 213 # inherit SINSTALL_OPTS from environment to allow packager to customize it. 214 SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" 215fi 216 217AC_MSG_CHECKING(if you want to run xterm setgid to match utmp/utmpx file) 218AC_ARG_WITH(utmp-setgid, 219 [ --with-utmp-setgid=XXX use setgid to match utmp/utmpx file], 220 [use_utmp_setgid=$withval], 221 [use_utmp_setgid=no]) 222AC_MSG_RESULT($use_utmp_setgid) 223 224if test "$use_utmp_setgid" != no ; then 225 if test "$use_utmp_setgid" = yes ; then 226 CF_UTMP_GROUP 227 else 228 cf_cv_utmp_group=$use_utmp_setgid 229 fi 230 if test "$cf_cv_posix_saved_ids" != yes ; then 231 AC_MSG_ERROR(Your system does not support POSIX saved-ids) 232 fi 233 AC_DEFINE(USE_UTMP_SETGID,1,[Define to 1 if we should use setgid to access utmp/utmpx]) 234 SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" 235fi 236 237AC_SUBST(SINSTALL_OPTS) 238 239AC_MSG_CHECKING(if you want to link with utempter) 240AC_ARG_WITH(utempter, 241 [ --with-utempter use utempter library for access to utmp], 242 [use_utempter=$withval], 243 [use_utempter=no]) 244AC_MSG_RESULT($use_utempter) 245 246if test "$use_utempter" = yes ; then 247 CF_UTEMPTER 248 test "$cf_cv_have_utempter" != yes && use_utempter=no 249else 250 use_utempter=no 251fi 252 253# Some configurations permit (or require) either setuid or setgid mode. 254# Let the user decide. 255if test "$use_utempter" = yes ; then 256 if test "${enable_setuid+set}" != set ; then 257 disable_setuid=yes 258 CF_VERBOSE([No --disable-setuid option given, force to yes]) 259 fi 260fi 261 262### checks for external data 263CF_ERRNO 264CF_TTY_GROUP 265 266### checks for system services and user specified options 267 268AC_PATH_XTRA 269CF_POSIX_WAIT 270CF_SYSV 271CF_SVR4 272CF_X_TOOLKIT 273 274AC_CHECK_HEADERS( \ 275 X11/DECkeysym.h \ 276 X11/Sunkeysym.h \ 277 X11/XF86keysym.h \ 278 X11/XKBlib.h \ 279 X11/TranslateI.h \ 280 X11/Xpoll.h \ 281 X11/extensions/XKB.h \ 282 ) 283 284CF_WITH_XPM 285CF_WITH_XINERAMA 286CF_X_ATHENA 287CF_TYPE_FD_MASK 288CF_TERMIO_C_ISPEED 289CF_TERMIOS_TYPES 290 291# The Xcursor library is normally (weakly) linked via the X11 library rather 292# than directly to applications. xterm can select a cursor theme; users can 293# also use environment variables to select cursor size. We would only notice 294# the library if there are development files for it. Provide a way to disable 295# the feature if it is unwanted. 296AC_MSG_CHECKING(if we expect to use the Xcursor library) 297CF_ARG_DISABLE(xcursor, 298 [ --disable-xcursor disable cursorTheme resource], 299 [enable_xcursor=no], 300 [enable_xcursor=yes]) 301AC_MSG_RESULT($enable_xcursor) 302if test "$enable_xcursor" = yes; then 303 AC_DEFINE(HAVE_LIB_XCURSOR,1,[Define to 1 if we expect to use the Xcursor library]) 304fi 305 306LIBS="$LIBS $X_EXTRA_LIBS" 307 308CF_FUNC_GRANTPT 309CF_XKB_QUERY_EXTENSION 310CF_XKB_KEYCODE_TO_KEYSYM 311CF_XKB_BELL_EXT 312 313AC_CHECK_FUNCS(Xutf8LookupString, [],[ 314 EXTRAHDRS="$EXTRAHDRS xutf8.h" 315 EXTRASRCS="$EXTRASRCS xutf8.c" 316 EXTRAOBJS="$EXTRAOBJS xutf8.o" 317]) 318 319CF_WITH_IMAKE_CFLAGS($(MAIN_DEFINES) $(VENDORMANDEFS)) 320CF_WITH_MAN2HTML 321 322# If we have already established that there is a full termcap implementation, 323# suppress the definitions for terminfo that we make have imported from the 324# imake-file. 325if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then 326 case "$IMAKE_CFLAGS" in 327 (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*) 328 CF_UNDO_CFLAGS(IMAKE_CFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 329 CF_UNDO_CFLAGS(CPPFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*]) 330 ;; 331 esac 332fi 333 334CF_HELP_MESSAGE(Terminal Configuration:) 335 336AC_MSG_CHECKING(for default terminal-id) 337AC_ARG_WITH(terminal-id, 338 [ --with-terminal-id=V set default decTerminalID (default: vt420)], 339 [default_termid=$withval], 340 [default_termid=vt420]) 341AC_MSG_RESULT($default_termid) 342case $default_termid in 343(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'` 344 ;; 345esac 346AC_DEFINE_UNQUOTED(DFT_DECID,"$default_termid",[default terminal-id]) 347AC_SUBST(default_termid) 348 349AC_MSG_CHECKING(for default terminal-type) 350AC_ARG_WITH(terminal-type, 351 [ --with-terminal-type=T set default $TERM (default: xterm)], 352 [default_TERM=$withval], 353 [default_TERM=xterm]) 354AC_MSG_RESULT($default_TERM) 355AC_DEFINE_UNQUOTED(DFT_TERMTYPE,"$default_TERM",[default terminal-type]) 356AC_SUBST(default_TERM) 357 358############################################################################### 359AC_MSG_CHECKING(if backarrow-key should be BS) 360CF_ARG_DISABLE(backarrow-key, 361 [ --enable-backarrow-key set default backarrowKey resource (default: true)], 362 [backarrow_is_bs=$enableval], 363 [backarrow_is_bs=yes]) 364CF_XBOOL_RESULT(DEF_BACKARO_BS,backarrow_is_bs,[Define to 1 if backarrow-key should be BS]) 365 366AC_MSG_CHECKING(if backarrow-key should be treated as erase) 367CF_ARG_ENABLE(backarrow-is-erase, 368 [ --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)], 369 [backarrow_is_erase=$enableval], 370 [backarrow_is_erase=no]) 371CF_XBOOL_RESULT(DEF_BACKARO_ERASE,backarrow_is_erase,[Define to 1 if backarrow-key should be treated as erase]) 372 373AC_MSG_CHECKING(for default backspace/DEL setting) 374AC_ARG_ENABLE(delete-is-del, 375 [ --enable-delete-is-del set default deleteIsDEL resource (default: maybe)], 376 [delete_is_del=$enableval], 377 [delete_is_del=maybe]) 378CF_XBOOL_RESULT(DEFDELETE_DEL,delete_is_del,[Define to 1 if default backspace/DEL setting is DEL]) 379 380AC_MSG_CHECKING(for default pty initial erase setting) 381AC_ARG_ENABLE(pty-erase, 382 [ --enable-pty-erase set default ptyInitialErase resource (default: maybe)], 383 [initial_erase=$enableval], 384 [initial_erase=False]) 385CF_XBOOL_RESULT(DEF_INITIAL_ERASE,initial_erase,[Define to 1 if default pty initial erase setting is TRUE]) 386 387AC_MSG_CHECKING(if alt should send ESC) 388CF_ARG_ENABLE(alt-sends-esc, 389 [ --enable-alt-sends-esc set default altSendsEscape resource (default: no)], 390 [alt_sends_esc=$enableval], 391 [alt_sends_esc=no]) 392CF_XBOOL_RESULT(DEF_ALT_SENDS_ESC,alt_sends_esc,[Define to 1 if alt should send ESC]) 393 394AC_MSG_CHECKING(if meta should send ESC) 395CF_ARG_ENABLE(meta-sends-esc, 396 [ --enable-meta-sends-esc set default metaSendsEscape resource (default: no)], 397 [meta_sends_esc=$enableval], 398 [meta_sends_esc=no]) 399CF_XBOOL_RESULT(DEF_META_SENDS_ESC,meta_sends_esc,[Define to 1 if meta should send ESC]) 400 401############################################################################### 402AC_CHECK_PROG(cf_tic_prog,tic,yes,no) 403if test "$cf_tic_prog" = yes ; then 404 if test -n "$TERMINFO" 405 then 406 case "$TERMINFO" in 407 (/*) 408 test -d "$TERMINFO" || unset TERMINFO 409 ;; 410 (*) 411 unset TERMINFO 412 ;; 413 esac 414 fi 415 AC_MSG_CHECKING(for private terminfo-directory) 416 AC_ARG_WITH(own-terminfo, 417 [ --with-own-terminfo=P set default $TERMINFO (default: from environment)], 418 [TERMINFO_DIR=$withval], 419 [TERMINFO_DIR=${TERMINFO-none}]) 420 AC_MSG_RESULT($TERMINFO_DIR) 421 if test "$TERMINFO_DIR" = yes ; then 422 AC_MSG_WARN(no value given) 423 elif test "$TERMINFO_DIR" != none ; then 424 if test -d "$TERMINFO_DIR" ; then 425 AC_DEFINE_UNQUOTED(OWN_TERMINFO_DIR,"$TERMINFO_DIR",[Define to override default TERMINFO value]) 426 AC_MSG_CHECKING(if \$TERMINFO should also be set) 427 AC_ARG_ENABLE(env-terminfo, 428 [ --enable-env-terminfo setenv $TERMINFO if --with-own-terminfo gives value], 429 [cf_env_terminfo=yes], 430 [cf_env_terminfo=no]) 431 AC_MSG_RESULT($cf_env_terminfo) 432 test $cf_env_terminfo = yes && 433 AC_DEFINE(OWN_TERMINFO_ENV,1,[Define to 1 to enable setenv of $TERMINFO value]) 434 else 435 AC_MSG_WARN(not a directory) 436 fi 437 elif test "$prefix" != NONE ; then 438 TERMINFO_DIR='${prefix}/lib/terminfo' 439 elif test -d /usr/lib/terminfo ; then 440 TERMINFO_DIR=/usr/lib/terminfo 441 else 442 TERMINFO_DIR= 443 fi 444 SET_TERMINFO= 445 if test -n "$TERMINFO_DIR" ; then 446 TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR 447 SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)' 448 fi 449 no_ticprog= 450else 451 no_ticprog="#" 452 TERMINFO_DIR= 453 SET_TERMINFO= 454fi 455AC_SUBST(no_ticprog) 456AC_SUBST(TERMINFO_DIR) 457AC_SUBST(SET_TERMINFO) 458 459############################################################################### 460CF_HELP_MESSAGE(Optional Features:) 461 462AC_MSG_CHECKING(if you want active-icons) 463CF_ARG_DISABLE(active-icon, 464 [ --disable-active-icon disable X11R6.3 active-icon feature], 465 [enable_active_icon=no], 466 [enable_active_icon=yes]) 467AC_MSG_RESULT($enable_active_icon) 468if test "$enable_active_icon" = no ; then 469 AC_DEFINE(NO_ACTIVE_ICON,1,[Define to 1 to disable X11R6.3 active-icon feature]) 470fi 471 472AC_MSG_CHECKING(if you want ANSI color) 473CF_ARG_DISABLE(ansi-color, 474 [ --disable-ansi-color disable ANSI color], 475 [enable_ansi_color=no], 476 [enable_ansi_color=yes]) 477AC_MSG_RESULT($enable_ansi_color) 478test "$enable_ansi_color" = no && AC_DEFINE(OPT_ISO_COLORS,0,[Define to 0 to disable ANSI color]) 479 480if test "$enable_ansi_color" = yes ; then 481 482 AC_MSG_CHECKING(if you want 16 colors like aixterm) 483 CF_ARG_DISABLE(16-color, 484 [ --disable-16-color disable 16-color support], 485 [enable_16_color=no], 486 [enable_16_color=yes]) 487 AC_MSG_RESULT($enable_16_color) 488 test "$enable_16_color" = no && AC_DEFINE(OPT_AIX_COLORS,0,[Define to 0 to disable 16-color support]) 489 490 AC_MSG_CHECKING(if you want 256 colors) 491 CF_ARG_DISABLE(256-color, 492 [ --disable-256-color disable 256-color support], 493 [enable_256_color=no], 494 [enable_256_color=yes]) 495 AC_MSG_RESULT($enable_256_color) 496 497 if test "$enable_256_color" = yes ; then 498 499 CHARPROC_DEPS="$CHARPROC_DEPS 256colres.h" 500 EXTRAHDRS="$EXTRAHDRS 256colres.h" 501 AC_DEFINE(OPT_256_COLORS,1,[Define to 1 to enable 256-color support]) 502 503 AC_MSG_CHECKING(if you want direct-color support) 504 CF_ARG_DISABLE(direct-color, 505 [ --disable-direct-color disable direct-color support], 506 [enable_direct_color=no], 507 [enable_direct_color=yes]) 508 AC_MSG_RESULT($enable_direct_color) 509 if test "$enable_direct_color" = yes ; then 510 AC_DEFINE(OPT_DIRECT_COLOR,1,[Define to 1 to enable direct-color support]) 511 fi 512 513 else 514 515 AC_MSG_CHECKING(if you want 88 colors) 516 CF_ARG_DISABLE(88-color, 517 [ --disable-88-color disable 88-color support], 518 [enable_88_color=no], 519 [enable_88_color=yes]) 520 AC_MSG_RESULT($enable_88_color) 521 if test "$enable_88_color" = yes ; then 522 CHARPROC_DEPS="$CHARPROC_DEPS 88colres.h" 523 EXTRAHDRS="$EXTRAHDRS 88colres.h" 524 AC_DEFINE(OPT_88_COLORS,1,[Define to 1 to enable 88-color support]) 525 fi 526 527 fi 528 529fi 530 531AC_MSG_CHECKING(if you want blinking cursor) 532CF_ARG_DISABLE(blink-cursor, 533 [ --disable-blink-cursor disable support for blinking cursor], 534 [enable_blink_curs=no], 535 [enable_blink_curs=yes]) 536AC_MSG_RESULT($enable_blink_curs) 537test "$enable_blink_curs" = no && AC_DEFINE(OPT_BLINK_CURS,0,[Define to 0 to disable support for blinking cursor]) 538 539AC_MSG_CHECKING(if you want to ignore Linux's broken palette-strings) 540 541case $host_os in 542(linux*) 543 assume_broken_osc=yes ;; 544(*) 545 assume_broken_osc=no ;; 546esac 547 548CF_ARG_OPTION(broken-osc, 549 [ --enable-broken-osc allow broken Linux OSC-strings], 550 [enable_broken_osc=$enableval], 551 [enable_broken_osc=$enableval], 552 [$assume_broken_osc]) 553AC_MSG_RESULT($enable_broken_osc) 554if test "$enable_broken_osc" = yes ; then 555 AC_DEFINE(OPT_BROKEN_OSC,1,[Define to 1 to allow broken Linux OSC-strings]) 556else 557 AC_DEFINE(OPT_BROKEN_OSC,0,[Define to 0 to allow broken Linux OSC-strings]) 558fi 559 560AC_MSG_CHECKING(if you want to allow broken string-terminators) 561CF_ARG_ENABLE(broken-st, 562 [ --disable-broken-st disallow broken string-terminators], 563 [enable_broken_st=no], 564 [enable_broken_st=yes]) 565AC_MSG_RESULT($enable_broken_st) 566test "$enable_broken_st" = no && AC_DEFINE(OPT_BROKEN_ST,0,[Define to 0 to disallow broken string-terminators]) 567 568AC_MSG_CHECKING(if you want to compile-in icon data) 569CF_ARG_ENABLE(builtin-xpms, 570 [ --enable-builtin-xpms compile-in icon data], 571 [enable_builtin_xpms=yes], 572 [enable_builtin_xpms=no]) 573AC_MSG_RESULT($enable_builtin_xpms) 574test "$enable_builtin_xpms" = yes && AC_DEFINE(OPT_BUILTIN_XPMS,1,[Define to 1 to compile-in icon data]) 575 576AC_MSG_CHECKING(if you want printable 128-159) 577CF_ARG_DISABLE(c1-print, 578 [ --disable-c1-print disallow -k8 option for printable 128-159], 579 [enable_c1_print=no], 580 [enable_c1_print=yes]) 581AC_MSG_RESULT($enable_c1_print) 582test "$enable_c1_print" = no && AC_DEFINE(OPT_C1_PRINT,0,[Define to 0 to disallow -k8 option for printable 128-159]) 583 584if test "$enable_ansi_color" = yes ; then 585 586 AC_MSG_CHECKING(if you want bold colors mapped like IBM PC) 587 CF_ARG_DISABLE(bold-color, 588 [ --disable-bold-color disable PC-style mapping of bold colors], 589 [enable_pc_color=no], 590 [enable_pc_color=yes]) 591 AC_MSG_RESULT($enable_pc_color) 592 test "$enable_pc_color" = no && AC_DEFINE(OPT_PC_COLORS,0,[Define to 0 to disable PC-style mapping of bold colors]) 593 594 AC_MSG_CHECKING(if you want separate color-classes) 595 CF_ARG_DISABLE(color-class, 596 [ --disable-color-class disable separate color class resources], 597 [enable_color_class=no], 598 [enable_color_class=yes]) 599 AC_MSG_RESULT($enable_color_class) 600 test "$enable_color_class" = no && AC_DEFINE(OPT_COLOR_CLASS,0,[Define to 0 to disable separate color class resources]) 601 602 AC_MSG_CHECKING(if you want color-mode enabled by default) 603 CF_ARG_DISABLE(color-mode, 604 [ --disable-color-mode disable default colorMode resource], 605 [default_colormode=no], 606 [default_colormode=yes]) 607 AC_MSG_RESULT($default_colormode) 608 test "$default_colormode" = no && AC_DEFINE(DFT_COLORMODE,0,[Define to 0 if you want color-mode enabled by default]) 609 610fi 611 612AC_MSG_CHECKING(if you want support for color highlighting) 613CF_ARG_DISABLE(highlighting, 614 [ --disable-highlighting disable support for color highlighting], 615 [default_highlight=no], 616 [default_highlight=yes]) 617AC_MSG_RESULT($default_highlight) 618test "$default_highlight" = no && AC_DEFINE(OPT_HIGHLIGHT_COLOR,0,[Define to 1 if you want support for color highlighting]) 619 620AC_MSG_CHECKING(if you want support for doublesize characters) 621CF_ARG_DISABLE(doublechars, 622 [ --disable-doublechars disable support for double-size chars], 623 [enable_doublechars=no], 624 [enable_doublechars=yes]) 625AC_MSG_RESULT($enable_doublechars) 626test "$enable_doublechars" = no && AC_DEFINE(OPT_DEC_CHRSET,0,[Define to 0 to disable support for double-size chars]) 627 628AC_MSG_CHECKING(if you want fallback-support for box characters) 629CF_ARG_DISABLE(boxchars, 630 [ --disable-boxchars disable fallback-support for box chars], 631 [enable_boxchars=no], 632 [enable_boxchars=yes]) 633AC_MSG_RESULT($enable_boxchars) 634test "$enable_boxchars" = no && AC_DEFINE(OPT_BOX_CHARS,0,[Define to 0 to disable fallback-support for box chars]) 635 636AC_MSG_CHECKING(if you want to allow spawning new xterms) 637CF_ARG_ENABLE(exec-xterm, 638 [ --enable-exec-xterm enable "spawn-new-terminal" action], 639 [enable_exec_xterm=yes], 640 [enable_exec_xterm=no]) 641AC_MSG_RESULT($enable_exec_xterm) 642if test "$enable_exec_xterm" = yes ; then 643 CF_PROCFS_CWD 644 if test "$cf_cv_procfs_cwd" = no ; then 645 AC_MSG_WARN(no suitable proc filesystem found) 646 else 647 AC_DEFINE_UNQUOTED(PROCFS_ROOT,"$cf_cv_procfs_cwd",[This is defined via the --enable-exec-xterm option]) 648 AC_DEFINE(OPT_EXEC_XTERM,1,[Define to 1 to enable "spawn-new-terminal" action]) 649 fi 650fi 651 652CF_X_EXT 653CF_X_EXT_DOUBLE_BUFFER 654double_buffer=False 655if test "$cf_x_ext_double_buffer" = yes ; then 656 AC_MSG_CHECKING(if you want to enable double-buffering in default resources) 657 CF_ARG_ENABLE(double-buffer, 658 [ --enable-double-buffer enable double-buffering in default resources], 659 [enable_double_bfr=yes], 660 [enable_double_bfr=no]) 661 AC_MSG_RESULT($enable_double_bfr) 662 if test "$enable_double_bfr" = yes ; then 663 AC_DEFINE(OPT_DOUBLE_BUFFER,1,[Define to 1 to enable double-buffering in default resources]) 664 double_buffer=True 665 fi 666fi 667AC_SUBST(double_buffer) 668 669AC_MSG_CHECKING(if you want to use FreeType library) 670CF_ARG_DISABLE(freetype, 671 [ --disable-freetype disable freetype library-support], 672 [enable_freetype=no], 673 [enable_freetype=yes]) 674AC_MSG_RESULT($enable_freetype) 675if test "$enable_freetype" = yes ; then 676 CF_X_FONTCONFIG 677else 678 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-DXRENDERFONT//` 679fi 680 681AC_MSG_CHECKING(if you want support for HP-style function keys) 682CF_ARG_ENABLE(hp-fkeys, 683 [ --enable-hp-fkeys enable support for HP-style function keys], 684 [enable_hp_fkeys=yes], 685 [enable_hp_fkeys=no]) 686AC_MSG_RESULT($enable_hp_fkeys) 687if test "$enable_hp_fkeys" = yes ; then 688 AC_DEFINE(OPT_HP_FUNC_KEYS,1,[Define to 1 to enable support for HP-style function keys]) 689fi 690 691AC_MSG_CHECKING(if you want support for SCO-style function keys) 692CF_ARG_ENABLE(sco-fkeys, 693 [ --enable-sco-fkeys enable support for SCO-style function keys], 694 [enable_sco_fkeys=yes], 695 [enable_sco_fkeys=no]) 696AC_MSG_RESULT($enable_sco_fkeys) 697if test "$enable_sco_fkeys" = yes ; then 698 AC_DEFINE(OPT_SCO_FUNC_KEYS,1,[Define to 1 to enable support for SCO-style function keys]) 699fi 700 701AC_MSG_CHECKING(if you want support for Sun-style function keys) 702CF_ARG_DISABLE(sun-fkeys, 703 [ --disable-sun-fkeys disable support for Sun-style function keys], 704 [enable_sun_fkeys=no], 705 [enable_sun_fkeys=yes]) 706AC_MSG_RESULT($enable_sun_fkeys) 707if test "$enable_sun_fkeys" = no ; then 708 AC_DEFINE(OPT_SUN_FUNC_KEYS,0,[Define to 0 to disable support for Sun-style function keys]) 709fi 710 711AC_MSG_CHECKING(if you want saved-lines stored as a FIFO) 712CF_ARG_DISABLE(fifo-lines, 713 [ --disable-fifo-lines disable FIFO-storage for saved-lines], 714 [enable_fifo_lines=no], 715 [enable_fifo_lines=yes]) 716AC_MSG_RESULT($enable_fifo_lines) 717if test "$enable_fifo_lines" != yes ; then 718 AC_MSG_WARN(this option has been deprecated) 719fi 720 721AC_MSG_CHECKING(if you want support for internationalization) 722CF_ARG_DISABLE(i18n, 723 [ --disable-i18n disable internationalization], 724 [enable_i18n=no], 725 [enable_i18n=yes]) 726AC_MSG_RESULT($enable_i18n) 727if test "$enable_i18n" = no ; then 728 AC_DEFINE(OPT_I18N_SUPPORT,0,[Define to 0 to disable internationalization]) 729fi 730 731AC_MSG_CHECKING(if you want support for initial-erase setup) 732CF_ARG_DISABLE(initial-erase, 733 [ --disable-initial-erase disable setup for stty erase], 734 [enable_ie=no], 735 [enable_ie=yes]) 736AC_MSG_RESULT($enable_ie) 737if test "$enable_ie" = no ; then 738 AC_DEFINE(OPT_INITIAL_ERASE,0,[Define to 0 to disable setup for stty erase]) 739fi 740 741AC_MSG_CHECKING(if you want support for input-method) 742CF_ARG_DISABLE(input-method, 743 [ --disable-input-method disable input-method], 744 [enable_ximp=no], 745 [enable_ximp=$enable_i18n]) 746AC_MSG_RESULT($enable_ximp) 747CF_INPUT_METHOD 748test "$cf_cv_input_method" = no && enable_ximp=no 749if test "$enable_ximp" != no ; then 750 if test "$enable_i18n" = no ; then 751 AC_MSG_WARN(input-methor relies upon internationalization) 752 enable_ximp=no 753 fi 754fi 755if test "$enable_ximp" = no ; then 756 AC_DEFINE(OPT_INPUT_METHOD,0,[Define to 0 to disable input-method]) 757fi 758 759AC_MSG_CHECKING(if you want support for load-vt-fonts) 760CF_ARG_ENABLE(load-vt-fonts, 761 [ --enable-load-vt-fonts enable load-vt-fonts() action], 762 [enable_load_vt_fonts=yes], 763 [enable_load_vt_fonts=no]) 764AC_MSG_RESULT($enable_load_vt_fonts) 765if test "$enable_load_vt_fonts" = yes ; then 766 AC_DEFINE(OPT_LOAD_VTFONTS,1,[Define to 1 to enable load-vt-fonts() action]) 767fi 768 769AC_MSG_CHECKING(if you want support for logging) 770CF_ARG_ENABLE(logging, 771 [ --enable-logging enable logging], 772 [enable_logging=yes], 773 [enable_logging=no]) 774AC_MSG_RESULT($enable_logging) 775if test "$enable_logging" = yes ; then 776 AC_DEFINE(ALLOWLOGGING,1,[if you want support for logging]) 777 AC_MSG_CHECKING(if you want to allow logging via a pipe) 778 CF_ARG_ENABLE(logfile-exec, 779 [ --enable-logfile-exec enable exec'd logfile filter], 780 [enable_log_exec=yes], 781 [enable_log_exec=no]) 782 AC_MSG_RESULT($enable_log_exec) 783 if test "$enable_log_exec" = yes ; then 784 AC_DEFINE(ALLOWLOGFILEEXEC,1,[if you want to allow logging via a pipe]) 785 fi 786fi 787 788AC_MSG_CHECKING(if you want support for iconify/maximize translations) 789CF_ARG_DISABLE(maximize, 790 [ --disable-maximize disable actions for iconify/deiconify/maximize/restore], 791 [enable_maximize=no], 792 [enable_maximize=yes]) 793AC_MSG_RESULT($enable_maximize) 794test "$enable_maximize" = no && AC_DEFINE(OPT_MAXIMIZE,0,[Define to 0 to disable actions for iconify/deiconify/maximize/restore]) 795 796AC_MSG_CHECKING(if you want NumLock to override keyboard tables) 797CF_ARG_DISABLE(num-lock, 798 [ --disable-num-lock disable NumLock keypad support], 799 [enable_numlock=no], 800 [enable_numlock=yes]) 801AC_MSG_RESULT($enable_numlock) 802test "$enable_numlock" = no && AC_DEFINE(OPT_NUM_LOCK,0,[Define to 0 to disable NumLock keypad support]) 803 804AC_MSG_CHECKING(if you want support for get/set of base64 selection data) 805 806CF_ARG_DISABLE(paste64, 807 [ --disable-paste64 disable get/set base64 selection data], 808 [enable_paste64=no], 809 [enable_paste64=yes]) 810AC_MSG_RESULT($enable_paste64) 811if test "$enable_paste64" = yes ; then 812 AC_DEFINE(OPT_PASTE64,1,[Define to 1 to disable get/set base64 selection data]) 813else 814 AC_DEFINE(OPT_PASTE64,0,[Define to 0 to disable get/set base64 selection data]) 815fi 816 817AC_MSG_CHECKING(if you want support for pty-handshaking) 818 819CF_ARG_DISABLE(pty-handshake, 820 [ --disable-pty-handshake disable pty-handshake support], 821 [enable_pty_handshake=no], 822 [enable_pty_handshake=yes]) 823AC_MSG_RESULT($enable_pty_handshake) 824if test "$enable_pty_handshake" = yes ; then 825 AC_DEFINE(OPT_PTY_HANDSHAKE,1,[Define to 1 to disable pty-handshake support]) 826else 827 AC_DEFINE(OPT_PTY_HANDSHAKE,0,[Define to 0 to disable pty-handshake support]) 828fi 829 830AC_MSG_CHECKING(if you want support for mouse in readline applications) 831CF_ARG_ENABLE(readline-mouse, 832 [ --enable-readline-mouse enable support for mouse in readline applications], 833 [enable_readline_mouse=yes], 834 [enable_readline_mouse=no]) 835AC_MSG_RESULT($enable_readline_mouse) 836if test "$enable_readline_mouse" = yes ; then 837 AC_DEFINE(OPT_READLINE,1,[Define to 1 to enable support for mouse in readline applications]) 838fi 839 840AC_MSG_CHECKING(if you want support for regular-expression selections) 841CF_ARG_DISABLE(regex, 842 [ --disable-regex disable regular-expression selections], 843 [enable_regex=no], 844 [enable_regex=yes]) 845AC_MSG_RESULT($enable_regex) 846if test "$enable_regex" = yes ; then 847 CF_WITH_PCRE2 848 if test "$with_pcre2" = no ; then 849 CF_WITH_PCRE 850 if test "$with_pcre" = no ; then 851 CF_REGEX 852 if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then 853 AC_MSG_ERROR([Only POSIX, PCRE, or PCRE2 regular expressions are supported]) 854 fi 855 fi 856 fi 857 AC_DEFINE(OPT_SELECT_REGEX,1,[Define to 1 to enable regular-expression selections]) 858fi 859 860AC_MSG_CHECKING(if you want support for right-scrollbar) 861CF_ARG_DISABLE(rightbar, 862 [ --disable-rightbar disable right-scrollbar support], 863 [enable_rightbar=no], 864 [enable_rightbar=yes]) 865AC_MSG_RESULT($enable_rightbar) 866if test "$enable_rightbar" = yes ; then 867 AC_DEFINE(SCROLLBAR_RIGHT,1,[Define to 1 to enable right-scrollbar support]) 868fi 869 870AC_MSG_CHECKING(if you want check for redundant name-change) 871CF_ARG_DISABLE(samename, 872 [ --disable-samename disable check for redundant name-change], 873 [enable_samename=no], 874 [enable_samename=yes]) 875AC_MSG_RESULT($enable_samename) 876test "$enable_samename" = no && AC_DEFINE(OPT_SAME_NAME,0,[Define to 0 to disable check for redundant name-change]) 877 878AC_MSG_CHECKING(if you want support for selection-actions) 879CF_ARG_DISABLE(selection-ops, 880 [ --disable-selection-ops disable selection-action operations], 881 [enable_selection_ops=no], 882 [enable_selection_ops=yes]) 883AC_MSG_RESULT($enable_selection_ops) 884test "$enable_selection_ops" = no && AC_DEFINE(OPT_SELECTION_OPS,0,[Define to 0 disable selection-action operations]) 885 886AC_MSG_CHECKING(if you want support for session management) 887CF_ARG_DISABLE(session-mgt, 888 [ --disable-session-mgt disable support for session management], 889 [enable_session_mgt=no], 890 [enable_session_mgt=yes]) 891AC_MSG_RESULT($enable_session_mgt) 892test "$enable_session_mgt" = no && AC_DEFINE(OPT_SESSION_MGT,0,[Define to 0 to disable support for session management]) 893 894AC_MSG_CHECKING(if you want to use termcap function-keys) 895CF_ARG_DISABLE(tcap-fkeys, 896 [ --disable-tcap-fkeys disable termcap function-keys support], 897 [enable_tcap_fkeys=no], 898 [enable_tcap_fkeys=yes]) 899AC_MSG_RESULT($enable_tcap_fkeys) 900test "$enable_tcap_fkeys" = yes && AC_DEFINE(OPT_TCAP_FKEYS,1,[Define to 1 to disable termcap function-keys support]) 901 902AC_MSG_CHECKING(if you want to use termcap-query/report) 903CF_ARG_DISABLE(tcap-query, 904 [ --disable-tcap-query disable compiled-in termcap-query support], 905 [enable_tcap_query=no], 906 [enable_tcap_query=yes]) 907AC_MSG_RESULT($enable_tcap_query) 908test "$enable_tcap_query" = yes && AC_DEFINE(OPT_TCAP_QUERY,1,[Define to 1 to disable compiled-in termcap-query support]) 909 910AC_MSG_CHECKING(if you want support for tek4014) 911CF_ARG_DISABLE(tek4014, 912 [ --disable-tek4014 disable tek4014 emulation], 913 [enable_tek4014=no], 914 [enable_tek4014=yes]) 915AC_MSG_RESULT($enable_tek4014) 916if test "$enable_tek4014" = no ; then 917 AC_DEFINE(OPT_TEK4014,0,[Define to 0 to disable tek4014 emulation]) 918else 919 EXTRAHDRS="$EXTRAHDRS Tekparse.h" 920 EXTRASRCS="$EXTRASRCS TekPrsTbl.c Tekproc.c" 921 EXTRAOBJS="$EXTRAOBJS TekPrsTbl.o Tekproc.o" 922fi 923 924AC_MSG_CHECKING(if you want pulldown menus with a toolbar) 925CF_ARG_ENABLE(toolbar, 926 [ --enable-toolbar compile-in toolbar for pulldown menus], 927 [enable_toolbar=yes], 928 [enable_toolbar=no]) 929AC_MSG_RESULT($enable_toolbar) 930if test "$enable_toolbar" = yes ; then 931 AC_DEFINE(OPT_TOOLBAR,1,[Define to 1 to compile-in toolbar for pulldown menus]) 932fi 933 934AC_MSG_CHECKING(if you want VT52 emulation) 935CF_ARG_DISABLE(vt52, 936 [ --disable-vt52 disable VT52 emulation], 937 [enable_vt52=no], 938 [enable_vt52=yes]) 939AC_MSG_RESULT($enable_vt52) 940test "$enable_vt52" = no && AC_DEFINE(OPT_VT52_MODE,0,[Define to 0 to disable VT52 emulation]) 941 942AC_MSG_CHECKING(if you want wide-attribute support) 943CF_ARG_DISABLE(wide-attrs, 944 [ --disable-wide-attrs disable wide-attribute support], 945 [enable_wattr=no], 946 [enable_wattr=yes]) 947AC_MSG_RESULT($enable_wattr) 948 949if test x$enable_wattr = xno && test x$enable_direct_color = xyes ; then 950 AC_MSG_WARN(overriding wide-attributes to support direct color) 951 enable_wattr=yes 952fi 953 954AC_MSG_CHECKING(if you want wide-character support) 955CF_ARG_DISABLE(wide-chars, 956 [ --disable-wide-chars disable wide-character support], 957 [enable_wchar=no], 958 [enable_wchar=yes]) 959AC_MSG_RESULT($enable_wchar) 960test "x$enable_wattr" = xno && AC_DEFINE(OPT_WIDE_ATTRS,0,[Define to 0 to disable rarely-used SGR features]) 961 962AC_MSG_CHECKING(if you want only 16-bit character support) 963CF_ARG_ENABLE(16bit-chars, 964 [ --enable-16bit-chars enable 16-bit character support], 965 [enable_16bit_chars=yes], 966 [enable_16bit_chars=no]) 967AC_MSG_RESULT($enable_16bit_chars) 968 969if test "$enable_16bit_chars" = yes ; then 970 AC_DEFINE(OPT_WIDER_ICHAR,0,[Define to 0 to enable 16-bit character support]) 971 enable_wchar=yes 972fi 973 974if test "$enable_wchar" = yes ; then 975 976AC_MSG_CHECKING(if you want to use mini-luit/Latin9 built-in support) 977CF_ARG_ENABLE(mini-luit, 978 [ --enable-mini-luit enable mini-luit (built-in Latin9 support)], 979 [enable_mini_luit=yes], 980 [enable_mini_luit=no]) 981AC_MSG_RESULT($enable_mini_luit) 982if test "$enable_mini_luit" = yes ; then 983 AC_DEFINE(OPT_MINI_LUIT,1,[Define to 1 to enable mini-luit (built-in Latin9 support)]) 984fi 985 986AC_MSG_CHECKING(if you want to use luit) 987CF_ARG_DISABLE(luit, 988 [ --disable-luit enable luit filter (Unicode translation)], 989 [enable_luit=no], 990 [enable_luit=yes]) 991AC_MSG_RESULT($enable_luit) 992if test "$enable_luit" = yes ; then 993 AC_DEFINE(OPT_LUIT_PROG,1,[Define to 1 to enable luit filter (Unicode translation)]) 994 CF_PATH_PROG(LUIT,xterm-filter,bluit luit) 995fi 996 997 AC_DEFINE(OPT_WIDE_CHARS,1,[Define to 1 to enable wide-character support]) 998 EXTRAHDRS="$EXTRAHDRS charclass.h precompose.h wcwidth.h" 999 EXTRASRCS="$EXTRASRCS charclass.c precompose.c wcwidth.c" 1000 EXTRAOBJS="$EXTRAOBJS charclass.o precompose.o wcwidth.o" 1001fi 1002 1003AC_MSG_CHECKING(if you want dynamic-abbreviation support) 1004CF_ARG_ENABLE(dabbrev, 1005 [ --enable-dabbrev enable dynamic-abbreviation support], 1006 [enable_dabbrev=yes], 1007 [enable_dabbrev=no]) 1008AC_MSG_RESULT($enable_dabbrev) 1009if test "$enable_dabbrev" = yes ; then 1010 AC_DEFINE(OPT_DABBREV,1,[Define to 1 to enable dynamic-abbreviation support]) 1011fi 1012 1013AC_MSG_CHECKING(if you want DECterm Locator support) 1014CF_ARG_ENABLE(dec-locator, 1015 [ --enable-dec-locator enable DECterm Locator support], 1016 [enable_dec_locator=yes], 1017 [enable_dec_locator=no]) 1018AC_MSG_RESULT($enable_dec_locator) 1019if test "$enable_dec_locator" = yes ; then 1020 AC_DEFINE(OPT_DEC_LOCATOR,1,[Define to 1 to enable DECterm Locator support]) 1021fi 1022 1023AC_MSG_CHECKING(if you want XHTML and SVG screen dump support) 1024CF_ARG_DISABLE(screen-dumps, 1025 [ --disable-screen-dumps disable XHTML and SVG screen dumps], 1026 [enable_screen_dumps=no], 1027 [enable_screen_dumps=yes]) 1028AC_MSG_RESULT($enable_screen_dumps) 1029if test "$enable_screen_dumps" = yes ; then 1030 EXTRASRCS="$EXTRASRCS html.c svg.c" 1031 EXTRAOBJS="$EXTRAOBJS html.o svg.o" 1032else 1033 AC_DEFINE(OPT_SCREEN_DUMPS,0,[Define to 0 to disable XHTML and SVG screen dump support]) 1034fi 1035 1036AC_MSG_CHECKING(if you want ReGIS graphics support) 1037CF_ARG_ENABLE(regis-graphics, 1038 [ --enable-regis-graphics enable ReGIS graphics support], 1039 [enable_regis_graphics=yes], 1040 [enable_regis_graphics=no]) 1041AC_MSG_RESULT($enable_regis_graphics) 1042if test "$enable_regis_graphics" = yes ; then 1043 AC_DEFINE(OPT_REGIS_GRAPHICS,1,[Define to 1 to enable ReGIS graphics support]) 1044 EXTRAHDRS="$EXTRAHDRS graphics_regis.h" 1045 EXTRASRCS="$EXTRASRCS graphics_regis.c" 1046 EXTRAOBJS="$EXTRAOBJS graphics_regis.o" 1047 CF_MATH_LIB 1048fi 1049 1050AC_MSG_CHECKING(if you want sixel graphics support) 1051CF_ARG_DISABLE(sixel-graphics, 1052 [ --disable-sixel-graphics disable sixel graphics support], 1053 [enable_sixel_graphics=no], 1054 [enable_sixel_graphics=yes]) 1055AC_MSG_RESULT($enable_sixel_graphics) 1056if test "$enable_sixel_graphics" = yes ; then 1057 AC_DEFINE(OPT_SIXEL_GRAPHICS,1,[Define to 1 to enable sixel graphics support]) 1058 EXTRAHDRS="$EXTRAHDRS graphics_sixel.h" 1059 EXTRASRCS="$EXTRASRCS graphics_sixel.c" 1060 EXTRAOBJS="$EXTRAOBJS graphics_sixel.o" 1061fi 1062 1063if test "$enable_regis_graphics" = yes || test "$enable_sixel_graphics" = yes ; then 1064 AC_DEFINE(OPT_GRAPHICS,1,[Defined to 1 to if any graphics mode is enabled]) 1065 EXTRAHDRS="$EXTRAHDRS graphics.h" 1066 EXTRASRCS="$EXTRASRCS graphics.c" 1067 EXTRAOBJS="$EXTRAOBJS graphics.o" 1068fi 1069 1070AC_MSG_CHECKING(if you want sixel screen dump support) 1071CF_ARG_DISABLE(print-graphics, 1072 [ --disable-print-graphics disable screen dump to sixel support], 1073 [enable_print_graphics=no], 1074 [enable_print_graphics=$enable_regis_graphics]) 1075AC_MSG_RESULT($enable_print_graphics) 1076if test "$enable_print_graphics" = yes ; then 1077 AC_DEFINE(OPT_PRINT_GRAPHICS,1,[Define to 1 to enable screen dump to sixel support]) 1078fi 1079 1080AC_MSG_CHECKING(if you want VT420 rectangle support) 1081CF_ARG_DISABLE(rectangles, 1082 [ --disable-rectangles disable VT420 rectangle support], 1083 [enable_rectangles=no], 1084 [enable_rectangles=yes]) 1085AC_MSG_RESULT($enable_rectangles) 1086if test "$enable_rectangles" = yes ; then 1087 AC_DEFINE(OPT_DEC_RECTOPS,1,[Define to 1 to disable VT420 rectangle support]) 1088fi 1089 1090AC_MSG_CHECKING(if you want -ziconbeep option) 1091CF_ARG_DISABLE(ziconbeep, 1092 [ --disable-ziconbeep disable -ziconbeep option], 1093 [enable_ziconbeep=no], 1094 [enable_ziconbeep=yes]) 1095AC_MSG_RESULT($enable_ziconbeep) 1096test "$enable_ziconbeep" = no && AC_DEFINE(OPT_ZICONBEEP,0,[Define to 0 to disable -ziconbeep option]) 1097 1098############################################################################### 1099CF_HELP_MESSAGE(Testing/development Options:) 1100 1101AC_MSG_CHECKING(if you want debugging traces) 1102CF_ARG_ENABLE(trace, 1103 [ --enable-trace test: set to enable debugging traces], 1104 [enable_trace=yes], 1105 [enable_trace=no]) 1106AC_MSG_RESULT($enable_trace) 1107if test "$enable_trace" = yes ; then 1108 AC_DEFINE(OPT_TRACE,1,[Define to 1 to enable debugging traces]) 1109 EXTRASRCS="$EXTRASRCS trace.c" 1110 EXTRAOBJS="$EXTRAOBJS trace.o" 1111fi 1112 1113CF_DISABLE_LEAKS 1114CF_DISABLE_ECHO 1115 1116AC_MSG_CHECKING(if you want magic cookie emulation) 1117CF_ARG_ENABLE(xmc-glitch, 1118 [ --enable-xmc-glitch test: enable xmc magic-cookie emulation], 1119 [enable_xmc=yes], 1120 [enable_xmc=no]) 1121AC_MSG_RESULT($enable_xmc) 1122if test "$enable_xmc" = yes ; then 1123 AC_DEFINE(OPT_XMC_GLITCH,1,[Define to 1 to enable xmc magic-cookie emulation]) 1124 EXTRASRCS="$EXTRASRCS testxmc.c" 1125 EXTRAOBJS="$EXTRAOBJS testxmc.o" 1126fi 1127 1128dnl FIXME - extra test needed to make tcap-fkeys work on HPUX 1129AC_CHECK_FUNCS(tigetstr) 1130 1131dnl only check for ncurses' use_extended_names if really not using termcap 1132if test -n "$cf_cv_lib_part_tgetent"; then 1133 AC_CHECK_FUNCS(use_extended_names) 1134fi 1135 1136CF_ENABLE_WARNINGS(Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum Wno-cast-qual) 1137 1138AC_SUBST(EXTRA_CFLAGS) 1139AC_SUBST(CHARPROC_DEPS) 1140AC_SUBST(EXTRAHDRS) 1141AC_SUBST(EXTRASRCS) 1142AC_SUBST(EXTRAOBJS) 1143 1144test "$disable_setuid" = yes && AC_DEFINE(DISABLE_SETUID,1,[Define to 1 if you want to disable setuid]) 1145test "$disable_setgid" = yes && AC_DEFINE(DISABLE_SETGID,1,[Define to 1 if you want to disable setgid]) 1146 1147if test $disable_setuid = yes ; then 1148 MAY_SETUID="#" 1149 NOT_SETUID= 1150elif test $disable_setgid = yes ; then 1151 MAY_SETUID="#" 1152 NOT_SETUID= 1153else 1154 MAY_SETUID= 1155 NOT_SETUID="#" 1156fi 1157 1158AC_SUBST(MAY_SETUID) 1159AC_SUBST(NOT_SETUID) 1160 1161### remove from CPPFLAGS the optional features we define in xtermcfg.h 1162### or other conflicting symbols that may be defined via imake: 1163for cf_def in \ 1164 __STDC__ \ 1165 ALLOWLOGGING \ 1166 ALLOWLOGFILEEXEC \ 1167 OPT_LUIT_PROG \ 1168 OPT_WIDE_CHARS \ 1169 SCROLLBAR_RIGHT \ 1170 USE_TTY_GROUP \ 1171 USE_UTEMPTER \ 1172 XRENDERFONT 1173do 1174 CPPFLAGS=`echo "$CPPFLAGS" | sed -e s/-D$cf_def//` 1175done 1176 1177CF_MAKE_TAGS 1178CF_DISABLE_RPATH_HACK 1179 1180# Force plink.sh to not trim pcre's libraries, which have the same symbol 1181# names as the system regexp. 1182if test "$with_pcre" != no 1183then 1184 LIBS=`echo "$LIBS" | sed -e 's/-lpcre/-kpcre/g'` 1185fi 1186 1187### output xtermcfg.h, etc 1188AC_CONFIG_FILES([Makefile df-install minstall:minstall.in]) 1189AC_OUTPUT 1190