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