dnl When changing the version below, also change the CDE_VERSION_* macros dnl to match further below dnl MCDE: the tarname stays "cde" for now -- pkgdatadir (share/cde) and dnl sysconfdir/cde come from it, and the install paths move together with the dnl dt/ prefix in a later step, not in the rename. AC_INIT([Makronix Common Desktop Environment], [0.1.0], [https://sourceforge.net/projects/cdesktopenv], [cde], [https://sourceforge.net/projects/cdesktopenv]) AC_CONFIG_HEADERS([include/cde_config.h]) AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([foreign subdir-objects no-define]) dnl global CDE versioning CDE_VERSION_MAJOR=2 CDE_VERSION_MINOR=5 CDE_VERSION_MICRO=3 dnl this is blank for a release, or contains an alpha character to indicate a dnl dev release. CDE_VERSION_DEV= AC_SUBST(CDE_VERSION_MAJOR) AC_SUBST(CDE_VERSION_MINOR) AC_SUBST(CDE_VERSION_MICRO) AC_SUBST(CDE_VERSION_DEV) dnl MCDE: its own version; the CDE_VERSION_* above stay the API level of the dnl CDE it is forked from (DtVERSION in Dt.h), which programs test against. MCDE_VERSION=0.1.0 AC_SUBST(MCDE_VERSION) dnl released in 2012, this should be sufficient AC_PREREQ([2.69]) AC_CANONICAL_HOST AC_CANONICAL_BUILD dnl These must be up here for the compiler search list to actually work AC_PROG_CC([cc gcc clang]) AC_PROG_CXX([c++ g++ clang++]) dnl MCDE: the C dialect. CDE declares functions K&R style (`int f();`), which dnl C23 reads as `int f(void)`; GCC 15 defaults to C23. gnu11 is the dialect dnl NetBSD builds its own tree with (share/mk/bsd.sys.mk). GCC 14 also made dnl five old diagnostics errors that CDE trips; they stay warnings here. New dnl MCDE code must be valid C99 and POSIX on its own (AGENTS.md). dnl MCDE_DIALECT_CFLAGS: the accepted flags, for builds that ignore CFLAGS. MCDE_DIALECT_CFLAGS= for mcde_flag in -std=gnu11 -Wno-error=implicit-function-declaration \ -Wno-error=implicit-int -Wno-error=int-conversion \ -Wno-error=incompatible-pointer-types -Wno-error=return-mismatch; do mcde_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $mcde_flag" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [MCDE_DIALECT_CFLAGS="$MCDE_DIALECT_CFLAGS $mcde_flag"], [CFLAGS=$mcde_save_CFLAGS]) done AC_SUBST(MCDE_DIALECT_CFLAGS) LT_INIT dnl MCDE: Xft (from MakroDE): anti-aliased fonts in dtterm through fontconfig. dnl On by default -- the desktop draws Hack (fonts/) -- and --disable-xft keeps dnl the classic fontset renderer for machines without freetype. AC_ARG_ENABLE([xft], AS_HELP_STRING([--disable-xft], [no Xft text renderer in dtterm (default: enabled)]), [enable_xft="$enableval"], [enable_xft=yes]) XFTLIB="" XFT_CFLAGS="" if test "$enable_xft" = yes; then PKG_CHECK_MODULES([XFT], [xft fontconfig]) XFTLIB="$XFT_LIBS" AC_DEFINE([HAVE_XFT], [1], [dtterm can draw through Xft]) fi AC_SUBST(XFTLIB) AC_SUBST(XFT_CFLAGS) AC_PREFIX_DEFAULT(/usr/mdt) PKG_PROG_PKG_CONFIG dnl SOURCE_DEFINES - start with CDE project default SOURCE_CPP_DEFINES="-DANSICPP -DMULTIBYTE -DNLS16" dnl CPP_COMPILER_FLAGS - CPP/C/C++ compiler flags CPP_COMPILER_FLAGS="" dnl CXX_COMPILER_FLAGS - C++ compiler flags CXX_COMPILER_FLAGS="" dnl C_COMPILER_FLAGS - C compiler flags C_COMPILER_FLAGS="" dnl These OS version checks are deprecated and should be replaced with dnl feature checks where appropriate build_linux=no bsd=no build_freebsd=no build_openbsd=no build_netbsd=no build_solaris=no build_aix=no dnl locations of libs/includes if not in 'standard' places like on dnl linux (/usr/...). We build these up based on where X11 is, and dnl other things as we go along. EXTRA_LIBS="" EXTRA_INCS="" # pam currently only works on netbsd (9.2 tested) and linux supports_pam=no # The OS decides the TARGET's feature-test macros and which sources are built, # so it must be the host's (--host) OS, not the OS of the machine running # configure. In a cross build from Linux for NetBSD the two differ: build_os # was linux-gnu, the Linux branch added -D_POSIX_SOURCE, which hides NetBSD's # u_short, and the build stopped in lib/tt/mini_isam ("unknown type name # 'u_short'", build/logs/userland-2026-11-14g.log:7124ff). In a native build # host_os is build_os, so nothing changes there. case "${host_os}" in linux*) build_linux=yes mcde_config_os_ident=__linux__ SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \ -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE" supports_pam=yes ;; freebsd*) build_freebsd=yes mcde_config_os_ident=__FreeBSD__ bsd=yes # fbsd needs the iconv plug to avoid conflict with libiconv # and libc implementations. We prefer the libc impl. SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DLIBICONV_PLUG" ;; openbsd*) build_openbsd=yes mcde_config_os_ident=__OpenBSD__ bsd=yes ;; netbsd*) build_netbsd=yes mcde_config_os_ident=__NetBSD__ bsd=yes supports_pam=yes ;; solaris*|sun*) build_solaris=yes mcde_config_os_ident=__sun ;; aix*) build_aix=yes mcde_config_os_ident=_AIX ;; esac AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"]) AM_CONDITIONAL([BSD], [test "$bsd" = "yes"]) AM_CONDITIONAL([FREEBSD], [test "$build_freebsd" = "yes"]) AM_CONDITIONAL([OPENBSD], [test "$build_openbsd" = "yes"]) AM_CONDITIONAL([NETBSD], [test "$build_netbsd" = "yes"]) AM_CONDITIONAL([SOLARIS], [test "$build_solaris" = "yes"]) AM_CONDITIONAL([AIX], [test "$build_aix" = "yes"]) dnl tradcpp (util/tradcpp) is a build tool: it runs on the machine that builds dnl MCDE, but the files it preprocesses (programs/dtlogin/config/*.src and the dnl other .src templates) are for the TARGET. Left to itself its config.h names dnl the OS it was compiled on, so a cross build from Linux for NetBSD dnl preprocessed the Linux branch -- and Xservers.src tests __linux__ before dnl __NetBSD__: the installed dt/config/Xservers said "Local local_uid@tty1 root dnl /usr/bin/X :0", a server NetBSD does not have, so dtlogin found nothing to dnl start (measured 2026-11-15 in dnl build/pkgsrc-work/wm/mcde/work.NetBSD-11.99.9-x86_64: build_os linux-gnu, dnl host_os netbsd, config.log:4216/4226). The value is the macro NAME, dnl unquoted -- config.h stringifies it; a quoted one would have to survive the dnl shell, make and the compiler. No value (an OS this case does not know) dnl keeps config.h's own detection. MCDE_TRADCPP_CPPFLAGS= if test -n "$mcde_config_os_ident" ; then MCDE_TRADCPP_CPPFLAGS="-DCONFIG_OS_IDENT=\\\"$mcde_config_os_ident\\\"" fi AC_SUBST([MCDE_TRADCPP_CPPFLAGS]) dnl set CSRG_BASED define for the BSD's. if test "$bsd" = "yes" then SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DCSRG_BASED" fi is_x86_64=no is_i386=no is_sparc=no is_mips=no is_arm=no is_ppc=no is_riscv=no is_aarch64=no case "${host_cpu}" in i[3456]86*) is_i386=yes ;; x86_64* | amd64*) is_x86_64=yes ;; arm*) is_arm=yes ;; mips*) is_mips=yes ;; sparc*) is_sparc=yes ;; ppc* | powerpc*) is_ppc=yes ;; riscv*) is_riscv=yes ;; aarch64*) is_aarch64=yes ;; esac AM_CONDITIONAL([I386], [test "$is_i386" = yes]) AM_CONDITIONAL([X86_64], [test "$is_x86_64" = yes]) AM_CONDITIONAL([ARM], [test "$is_arm" = yes]) AM_CONDITIONAL([SPARC], [test "$is_sparc" = yes]) AM_CONDITIONAL([MIPS], [test "is_mips" = yes]) AM_CONDITIONAL([PPC], [test "is_ppc" = yes]) AM_CONDITIONAL([RISCV], [test "is_riscv" = yes]) AM_CONDITIONAL([AARCH64], [test "is_aarch64" = yes]) dnl our main libraries dnl we use single quotes so that $top_buildir is evaluated in the makefiles, dnl not here. AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la') AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.la') AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la') dnl MCDE: libDtTerm and libMcdeSound need the libraries below them named dnl to every program that links them: a libtool that does not hand on dnl indirect libraries (Debian's) let the linker take an older installed dnl libMcdeSys through the RUNPATH (dtterm, 2026-11-13) AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la $(LIBMCDESOUND)') AC_SUBST(LIBMCDESOUND, '$(top_builddir)/lib/McdeSound/libMcdeSound.la $(LIBMCDESYS)') AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.la') AC_SUBST(LIBMCDESYS, '$(top_builddir)/lib/McdeSys/libMcdeSys.la') AC_SUBST(LIBSEARCH, '$(top_builddir)/lib/DtSearch/libDtSearch.la') AC_SUBST(LIBPRINT, '$(top_builddir)/lib/DtPrint/libDtPrint.la') AC_SUBST(LIBMRM, '$(top_builddir)/lib/DtMrm/libDtMrm.la') AC_SUBST(LIBMMDB, '$(top_builddir)/lib/DtMmdb/libDtMmdb.la') AC_SUBST(LIBHELP, '$(top_builddir)/lib/DtHelp/libDtHelp.la') AC_SUBST(LIBCSA, '$(top_builddir)/lib/csa/libcsa.la') AC_SUBST(DTCLIENTLIBS, '$(LIBPRINT) $(LIBHELP) $(LIBWIDGET) $(LIBSVC) \ $(LIBTT) $(LIBXIN)') dnl set up come convenience replacements for global include dirs AC_SUBST(DT_INCDIR, '-I$(top_builddir)/include/Dt') AC_SUBST(DTI_INCDIR, '-I$(top_builddir)/include/DtI') AC_SUBST(TT_INCDIR, '-I$(top_builddir)/include/Tt') AC_SUBST(XM_INCDIR, '-I$(top_builddir)/include/Xm') AC_SUBST(CSA_INCDIR, '-I$(top_builddir)/include/csa') AC_SUBST(SPC_INCDIR, '-I$(top_builddir)/include/SPC') dnl language enables AC_ARG_ENABLE([german], AS_HELP_STRING([--enable-german], [Build German locale (default=no)]), [enable_de="yes"], [enable_de=""] ) AM_CONDITIONAL([GERMAN], [test -n "$enable_de"]) AC_ARG_ENABLE([italian], AS_HELP_STRING([--enable-italian], [Build Italian locale (default=no)]), [enable_it="yes"], [enable_it=""] ) AM_CONDITIONAL([ITALIAN], [test -n "$enable_it"]) AC_ARG_ENABLE([french], AS_HELP_STRING([--enable-french], [Build French locale (default=no)]), [enable_fr="yes"], [enable_fr=""] ) AM_CONDITIONAL([FRENCH], [test -n "$enable_fr"]) AC_ARG_ENABLE([spanish], AS_HELP_STRING([--enable-spanish], [Build Spanish locale (default=no)]), [enable_es="yes"], [enable_es=""] ) AM_CONDITIONAL([SPANISH], [test -n "$enable_es"]) AC_ARG_ENABLE([japanese], AS_HELP_STRING([--enable-japanese], [Build Japanese locale (default=no)]), [enable_ja="yes"], [enable_ja=""] ) AM_CONDITIONAL([JAPANESE], [test -n "$enable_ja"]) dnl interface font AC_ARG_ENABLE([misc-fixed], AS_HELP_STRING([--enable-misc-fixed], [Set interface font to misc-fixed (default=no)]), [enable_misc_fixed="yes"], [enable_misc_fixed=""] ) AM_CONDITIONAL([MISC_FIXED], [test -n "$enable_misc_fixed"]) dnl Build the help and dtinfo docs? AC_ARG_ENABLE([docs], AS_HELP_STRING([--disable-docs], [Disable building help/dtinfo docs (default=no)]), [disable_docs="yes"], [disable_docs=""] ) AM_CONDITIONAL([BUILD_DOCS], [test -z "$disable_docs"]) dnl Build the application builder (dtappbuilder) and ttsnoop? They run dtcodegen dnl while building, so a cross build cannot have them. AC_ARG_ENABLE([appbuilder], AS_HELP_STRING([--disable-appbuilder], [Disable building dtappbuilder and ttsnoop (default=no)]), [disable_appbuilder="yes"], [disable_appbuilder=""] ) AM_CONDITIONAL([APPBUILDER], [test -z "$disable_appbuilder"]) dnl Compile the ToolTalk types (types.xdr) while building? tt_type_comp runs for dnl that, so a cross build cannot; the types are then compiled on the target. AC_ARG_ENABLE([tttypes-build], AS_HELP_STRING([--disable-tttypes-build], [Do not compile the ToolTalk types while building (default=no)]), [disable_tttypes="yes"], [disable_tttypes=""] ) AM_CONDITIONAL([TTTYPES_BUILD], [test -z "$disable_tttypes"]) dnl Xrender usage AC_ARG_ENABLE([xrender], AS_HELP_STRING([--disable-xrender], [Disable use of the Xrender extension (default=auto)]), [disable_xrender="yes"], [disable_xrender=""] ) dnl copied from xdm... AC_ARG_WITH(utmp_file, AS_HELP_STRING([--with-utmp-file=], [specify file to pass to sessreg -u for current logins]) AS_HELP_STRING([--without-utmp-file], [specify passing "none" to sessreg -u to not record logins in utmp]), [UTMP_FILE="$withval"]) if test "x$UTMP_FILE" = "xyes" ; then UTMP_FILE="" elif test "x$UTMP_FILE" = "xno" ; then UTMP_FILE="none" fi AC_MSG_CHECKING([for path to file listing current logins for sessreg]) if test "x$UTMP_FILE" = "x" ; then AC_MSG_RESULT([use sessreg default]) else AC_MSG_RESULT([$UTMP_FILE]) fi AM_CONDITIONAL(SET_UTMP_FILE, test x$UTMP_FILE != x) AC_SUBST(UTMP_FILE) AC_ARG_WITH(wtmp_file, AS_HELP_STRING([--with-wtmp-file=], [specify file to pass to sessreg -w for login history]) AS_HELP_STRING([--without-wtmp-file], [specify passing "none" to sessreg -w to not record logins in wtmp]), [WTMP_FILE="$withval"]) if test "x$WTMP_FILE" = "xyes" ; then WTMP_FILE="" elif test "x$WTMP_FILE" = "xno" ; then WTMP_FILE="none" fi AC_MSG_CHECKING([for path to file listing login history for sessreg]) if test "x$WTMP_FILE" = "x" ; then AC_MSG_RESULT([use sessreg default]) else AC_MSG_RESULT([$WTMP_FILE]) fi AM_CONDITIONAL(SET_WTMP_FILE, test x$WTMP_FILE != x) AC_SUBST(WTMP_FILE) dnl hmmm... RM="rm -f" AC_SUBST(RM) CP="cp -f" AC_SUBST(CP) dnl these should be configurable someday... dnl MCDE: where CDE keeps its files, as configure options (pkgsrc used to dnl patch placeholders into this file). The installation top is --prefix. CDE_INSTALLATION_TOP="$prefix" test "x$CDE_INSTALLATION_TOP" = xNONE && CDE_INSTALLATION_TOP="$ac_default_prefix" AC_ARG_WITH([logfiles-dir], [AS_HELP_STRING([--with-logfiles-dir=DIR], [dtlogin logs and state (default /var/dt)])], [CDE_LOGFILES_TOP=$withval], [CDE_LOGFILES_TOP=/var/dt]) AC_ARG_WITH([config-dir], [AS_HELP_STRING([--with-config-dir=DIR], [site configuration (default /etc/dt)])], [CDE_CONFIGURATION_TOP=$withval], [CDE_CONFIGURATION_TOP=/etc/dt]) AC_ARG_WITH([local-bindir], [AS_HELP_STRING([--with-local-bindir=DIR], [added to the PATH of a dtlogin session (default /usr/local/bin)])], [MCDE_LOCAL_BINDIR=$withval], [MCDE_LOCAL_BINDIR=/usr/local/bin]) AC_SUBST(MCDE_LOCAL_BINDIR) dnl where pkgsrc puts the programs McdeSys runs (borg, pactl, sshfs, lpadmin, dnl samba, netatalk ...) and their configuration; the recipe passes PREFIX and dnl PKG_SYSCONFDIR (tasksd t0081: no fixed /usr/pkg in lib/McdeSys) AC_ARG_WITH([pkg-prefix], [AS_HELP_STRING([--with-pkg-prefix=DIR], [where pkgsrc installs the programs McdeSys runs (default /usr/pkg)])], [MCDE_PKG_PREFIX=$withval], [MCDE_PKG_PREFIX=/usr/pkg]) AC_SUBST(MCDE_PKG_PREFIX) AC_ARG_WITH([pkg-sysconfdir], [AS_HELP_STRING([--with-pkg-sysconfdir=DIR], [where pkgsrc keeps the configuration of those programs (default $MCDE_PKG_PREFIX/etc)])], [MCDE_PKG_SYSCONFDIR=$withval], [MCDE_PKG_SYSCONFDIR=$MCDE_PKG_PREFIX/etc]) AC_SUBST(MCDE_PKG_SYSCONFDIR) dnl where dtlogin's PAM file goes; the defaults are what the Makefile.am had AC_ARG_WITH([pamdir], [AS_HELP_STRING([--with-pamdir=DIR], [PAM configuration (default /etc/pam.d; /usr/local/etc/pam.d on FreeBSD)])], [MCDE_PAMDIR=$withval], [case "$host_os" in freebsd*) MCDE_PAMDIR=/usr/local/etc/pam.d ;; *) MCDE_PAMDIR=/etc/pam.d ;; esac]) AC_SUBST(MCDE_PAMDIR) dnl the calendar server's spool (rpc.cmsd, programs/dtcm/server/log.h) AC_ARG_WITH([calendar-dir], [AS_HELP_STRING([--with-calendar-dir=DIR], [calendar spool of rpc.cmsd (default /var/spool/calendar)])], [MCDE_CALENDAR_DIR=$withval], [MCDE_CALENDAR_DIR=/var/spool/calendar]) AC_SUBST(MCDE_CALENDAR_DIR) dnl the system's fontconfig, which config/fonts.conf includes before adding the dnl MCDE fonts (fonts/Makefile.am) MCDE_FC_CONFDIR=`$PKG_CONFIG --variable=confdir fontconfig 2>/dev/null` test -n "$MCDE_FC_CONFDIR" || MCDE_FC_CONFDIR=/etc/fonts AC_SUBST(MCDE_FC_CONFDIR) CDE_USER_TOP=.dt AC_SUBST(CDE_INSTALLATION_TOP) AC_SUBST(CDE_CONFIGURATION_TOP) AC_SUBST(CDE_LOGFILES_TOP) AC_SUBST(CDE_USER_TOP) dnl This variable will contain a list of programs that were not found, dnl but are required to build CDE. At the end, if the variable is dnl non-empty, an error message will be printed, listing the missing dnl programs. We don't bother with the simple expected commands like dnl ln, cp, etc... MISSING_PROGS="" AC_PROG_CPP dnl we need a real preprocessor, not gcc -E. We will call it GENCPP. dnl We will go with BSD's tradcpp here... This is used for dnl pre-processing during building of CDE - in the way imake used to dnl do. This is not a replacement for cpp, used at runtime by dnl software such as tt_type_comp. AC_SUBST(GENCPP, '$(top_builddir)/util/tradcpp/tradcpp') LT_INIT dnl make sure it's installed AC_PROG_YACC if test -z "$ac_cv_prog_YACC"; then MISSING_PROGS="[bison or byacc] ${MISSING_PROGS}" fi AC_PROG_LEX(noyywrap) if test -z "$ac_cv_prog_LEX"; then MISSING_PROGS="[flex or lex] ${MISSING_PROGS}" fi AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_SED AC_PROG_AWK AC_PROG_GREP dnl AC_PROG_AR AC_PROG_RANLIB AC_C_CONST AC_C_BIGENDIAN AC_C_INLINE AC_C_CHAR_UNSIGNED AC_C_FLEXIBLE_ARRAY_MEMBER AC_SYS_POSIX_TERMIOS AX_PTHREAD AC_PATH_X AC_PATH_XTRA dnl check some compiler flags C_FLAG_CHECK([-Wno-format-truncation]) CXX_FLAG_CHECK([-Wno-format-truncation]) C_FLAG_CHECK([-fno-strict-aliasing]) CXX_FLAG_CHECK([-fno-strict-aliasing]) C_FLAG_CHECK([-Wno-write-strings]) CXX_FLAG_CHECK([-Wno-write-strings]) C_FLAG_CHECK([-Wno-unused-result]) CXX_FLAG_CHECK([-Wno-unused-result]) dnl Add X11 goodies here EXTRA_LIBS="${X_LIBS} ${EXTRA_LIBS}" EXTRA_INCS="${X_CFLAGS} ${EXTRA_INCS}" AC_FUNC_FORK dnl programs with full paths dnl - KSH, some systems call it as ksh93 AC_PATH_PROG(KSH, ksh) if test -z "$ac_cv_path_KSH"; then AC_PATH_PROG(KSH, ksh93) if test -z "$ac_cv_path_KSH"; then AC_PATH_PROG(KSH, mksh) if test -z "$ac_cv_path_KSH"; then MISSING_PROGS="[ksh or ksh93] ${MISSING_PROGS}" fi fi fi dnl - the ksh that runs scripts while building (programs/dtprintinfo: sym2num). dnl KSH above is the target's when cross building (KSH is a path in the dnl installed system), and cannot run here; look on the build host. AC_PATH_PROGS(KSH_FOR_BUILD, [ksh93 ksh mksh], [$KSH], [/usr/bin:/bin:/usr/local/bin:/usr/pkg/bin]) AC_PATH_PROG(XRDB, xrdb) if test -z "$ac_cv_path_XRDB"; then MISSING_PROGS="xrdb ${MISSING_PROGS}" fi AC_PATH_PROG(PERL, perl) if test -z "$ac_cv_path_PERL"; then MISSING_PROGS="perl ${MISSING_PROGS}" fi dnl we need to use cpp for some things, like tooltalk and other dnl runtime uses. So look for the system's cpp. NOTE: this is NOT dnl the CPP (gcc -E) set by AC_PROG_CPP. At this point I don't know dnl if we should even bother looking for that as we can't really use dnl it. AC_PATH_PROG(CPP_PROGRAM, cpp, , [/lib:/usr/bin:/usr/ccs/lib/:/usr/lib:/usr/libexec:/opt/langtools/lbin:$PATH]) if test -z "$ac_cv_path_CPP_PROGRAM"; then MISSING_PROGS="cpp ${MISSING_PROGS}" fi dnl major external program dependencies AC_CHECK_PROGS(BDFTOPCF, bdftopcf) if test -z "$ac_cv_prog_BDFTOPCF"; then MISSING_PROGS="bdftopcf ${MISSING_PROGS}" fi AC_CHECK_PROGS(MKFONTDIR, mkfontdir) if test -z "$ac_cv_prog_MKFONTDIR"; then MISSING_PROGS="mkfontdir ${MISSING_PROGS}" fi AC_CHECK_PROGS(GZIP, gzip) if test -z "$ac_cv_prog_GZIP"; then MISSING_PROGS="gzip ${MISSING_PROGS}" fi AC_CHECK_PROGS(M4, m4) if test -z "$ac_cv_prog_M4"; then MISSING_PROGS="m4 ${MISSING_PROGS}" fi AC_CHECK_PROGS(RPCGEN, rpcgen) if test -z "$ac_cv_prog_RPCGEN"; then MISSING_PROGS="rpcgen ${MISSING_PROGS}" fi AC_CHECK_PROGS(GENCAT, gencat) if test -z "$ac_cv_prog_GENCAT"; then MISSING_PROGS="gencat ${MISSING_PROGS}" fi AC_CHECK_PROGS(ONSGMLS, onsgmls) if test -z "$ac_cv_prog_ONSGMLS"; then MISSING_PROGS="ONSGMLS ${MISSING_PROGS}" fi AC_CHECK_PROGS(SESSREG, sessreg) if test -z "$ac_cv_prog_SESSREG"; then MISSING_PROGS="SESSREG ${MISSING_PROGS}" fi dnl Used to check if program 'tic' is available to install terminfo files AC_CHECK_PROGS(TIC, tic, :) dnl headers AC_CHECK_HEADERS([locale.h security/pam_appl.h utempter.h]) dnl Xrender header AC_CHECK_HEADERS([X11/extensions/Xrender.h], [], [ disable_xrender="yes"], [#include ]) dnl libraries AC_CHECK_LIB(m, cosf) AC_SEARCH_LIBS(dlopen, [dl dld], [], []) AC_CHECK_LIB(crypt, crypt) dnl MCDE: libcrypto (OpenSSL) for dtchat's Ed25519 identity, TLS pins and dnl the local peer's X25519/HKDF/ChaCha20-Poly1305. NetBSD has it in base, dnl Linux in libssl-dev/libcrypto-dev. CRYPTOLIB="" AC_CHECK_LIB(crypto, EVP_PKEY_new_raw_private_key, [CRYPTOLIB="-lcrypto"], [AC_MSG_ERROR([libcrypto (OpenSSL 1.1.1+) not found])]) AC_SUBST(CRYPTOLIB) dnl MCDE: TDLib for dtchat's Telegram adapter (T8.1). Debian installs it dnl under versioned directories (/usr/include/TDLibX.Y.Z, .../TDLibX.Y.Z), dnl so the header and library are looked for there as well; without TDLib dnl the adapter is still built and reports the missing library. TDLIB_CPPFLAGS="" TDLIBLIB="" TDLIB_LDFLAGS="" have_tdlib=no for d in /usr/include/TDLib* /usr/local/include/TDLib* /usr/pkg/include/TDLib*; do if test -f "$d/td/telegram/td_json_client.h"; then TDLIB_CPPFLAGS="-I$d" fi done for d in /usr/lib/TDLib* /usr/lib/*/TDLib* /usr/local/lib/TDLib* /usr/pkg/lib/TDLib*; do if test -f "$d/libtdjson.so"; then TDLIB_LDFLAGS="-L$d" fi done save_CPPFLAGS="$CPPFLAGS" save_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $TDLIB_CPPFLAGS" LDFLAGS="$LDFLAGS $TDLIB_LDFLAGS" AC_CHECK_HEADERS([td/telegram/td_json_client.h]) AC_CHECK_LIB([tdjson], [td_json_client_create], [TDLIBLIB="$TDLIB_LDFLAGS -ltdjson" have_tdlib=yes], [AC_MSG_WARN([libtdjson not found: dtchat-telegram is built without TDLib])]) CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" if test "$have_tdlib" = "yes"; then TDLIB_CPPFLAGS="$TDLIB_CPPFLAGS -DHAVE_TDLIB" fi AM_CONDITIONAL([MCDE_TDLIB], [test "$have_tdlib" = "yes"]) AC_SUBST(TDLIB_CPPFLAGS) AC_SUBST(TDLIBLIB) dnl MCDE: Go and whatsmeow for dtchat's WhatsApp adapter (T9.1). The dnl sources and go.sum are in programs/dtchat/whatsapp_adapter; without Go dnl the adapter is simply not built. AC_PATH_PROG([GO], [go], [no]) AM_CONDITIONAL([MCDE_GO], [test "$GO" != "no"]) dnl MCDE: a cross build (pkgsrc for NetBSD on Linux) builds no test programs dnl with `make': they are binaries of the target that nothing runs, and dnl tools/check-buildtools.sh rightly stops on them (build/logs/ dnl userland-2026-11-17f.log:22437). A native build keeps building them, so dnl tools/mcde-tests.sh finds them in build/mcde-host. AM_CONDITIONAL([MCDE_CROSS], [test "$cross_compiling" = "yes"]) dnl MCDE: V4L2 for dtchat's camera on Linux (media_capture.c). NetBSD's dnl video(4) has another API; there the test pattern is used until it is dnl written. if test "$build_netbsd" = "yes"; then AC_CHECK_HEADERS([sys/videoio.h], [AC_DEFINE(HAVE_VIDEOIO, 1, [video(4) via sys/videoio.h is available])]) else AC_CHECK_HEADERS([linux/videodev2.h], [AC_DEFINE(HAVE_V4L2, 1, [V4L2 (Linux video) is available])]) fi dnl MCDE: libvpx for dtchat's VP8 video (T7). Optional at build time, as dnl the ADR says: without it the video calls answer MCDE_SYS_ENOTSUP. VPXLIB="" VPX_CPPFLAGS="" AC_CHECK_HEADERS([vpx/vpx_encoder.h]) AC_CHECK_LIB(vpx, vpx_codec_enc_init_ver, [VPXLIB="-lvpx" VPX_CPPFLAGS="-DHAVE_VPX"], [AC_MSG_WARN([libvpx not found: dtchat will have no video])]) AC_SUBST(VPXLIB) AC_SUBST(VPX_CPPFLAGS) dnl MCDE: libstrophe for dtchat's XMPP adapter. Without it the adapter is dnl not built; the rest of the desktop is unaffected. STROPHELIB="" have_strophe=no AC_CHECK_HEADERS([strophe.h], [], [have_strophe=no]) AC_CHECK_LIB(strophe, xmpp_initialize, [STROPHELIB="-lstrophe" have_strophe=yes], [AC_MSG_WARN([libstrophe not found: dtchat-xmpp is not built])]) AM_CONDITIONAL([MCDE_STROPHE], [test "$have_strophe" = "yes"]) AC_SUBST(STROPHELIB) dnl MCDE: avahi-client for DNS-SD announce/watch on Linux (dtchat's local dnl mode); NetBSD uses libdns_sd from base. Without it mdns_stub.c answers dnl MCDE_SYS_ENOTSUP and peers are configured by hand. AVAHILIB="" have_avahi=no if test "$build_netbsd" != "yes"; then AC_CHECK_HEADERS([avahi-client/client.h avahi-common/simple-watch.h], [], [have_avahi=no]) AC_CHECK_LIB(avahi-client, avahi_client_new, [AC_CHECK_LIB(avahi-common, avahi_simple_poll_new, [AVAHILIB="-lavahi-client -lavahi-common" have_avahi=yes])], [AC_MSG_WARN([avahi-client not found: dtchat will have no DNS-SD discovery])]) fi AM_CONDITIONAL([MCDE_AVAHI], [test "$have_avahi" = "yes"]) AC_SUBST(AVAHILIB) dnl MCDE: ALSA for McdeSys' PCM streams on Linux (audio_linux.c). NetBSD dnl uses audio(4) and needs no library. Without ALSA the desktop still dnl builds: the device stream answers MCDE_SYS_ENOTSUP and the null stream dnl remains, so dtchat calls are silent there. ALSALIB="" ALSA_CPPFLAGS="" if test "$build_netbsd" != "yes"; then AC_CHECK_HEADERS([alsa/asoundlib.h]) AC_CHECK_LIB(asound, snd_pcm_open, [ALSALIB="-lasound" ALSA_CPPFLAGS="-DHAVE_ALSA"], [AC_MSG_WARN([ALSA not found: dtchat audio will have no device on this system])]) fi AC_SUBST(ALSALIB) AC_SUBST(ALSA_CPPFLAGS) dnl MCDE: libopus for dtchat's audio (48 kHz mono, 20 ms, 24 kbit/s). OPUSLIB="" AC_CHECK_LIB(opus, opus_encoder_create, [OPUSLIB="-lopus"], [AC_MSG_ERROR([libopus not found; dtchat needs it for audio])]) AC_SUBST(OPUSLIB) dnl MCDE: libtls (libretls) for the dtchat IRC adapter. Without it the dnl adapter reports a clear error for tls:true accounts and plain dnl connections keep working. LIBTLS="" TLS_CPPFLAGS="" AC_CHECK_HEADERS([tls.h]) AC_CHECK_LIB(tls, tls_init, [LIBTLS="-ltls" TLS_CPPFLAGS="-DHAVE_LIBTLS" AC_DEFINE(HAVE_LIBTLS, 1, [libtls is available])], [AC_MSG_ERROR([libtls (libretls) not found; dtchat needs it])]) AC_SUBST(LIBTLS) AC_SUBST(TLS_CPPFLAGS) dnl this should be configurable, for now it is required AC_CHECK_LIB(Xinerama, XineramaQueryScreens, [SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DUSE_XINERAMA"], [AC_MSG_ERROR([libXinerama not found])], $X_LIBS) dnl MCDE: RandR 1.3 for the Displays pane of dtsystemsettings; without it dnl the pane says so and the rest builds XRANDRLIB="" AC_CHECK_LIB(Xrandr, XRRGetScreenResourcesCurrent, [XRANDRLIB="-lXrandr" AC_DEFINE(HAVE_XRANDR, 1, [libXrandr 1.3 is there])], [], $X_LIBS) AC_SUBST(XRANDRLIB) dnl Special check for tirpc... AC_CHECK_LIB(tirpc, svc_register, [CFLAGS="${CFLAGS} -DOPT_TIRPC -I/usr/include/tirpc"; CXXFLAGS="${CXXFLAGS} -DOPT_TIRPC -I/usr/include/tirpc"; TIRPCLIB=-ltirpc]) AC_SUBST(TIRPCLIB) dnl see if the rpc_inline_t type exists AC_CHECK_TYPE(rpc_inline_t, [], [AC_DEFINE_UNQUOTED([rpc_inline_t], [int32_t], [Define to int32_t if not defined by including rpc/rpc.h])], [ AC_INCLUDES_DEFAULT #include ]) dnl check sizeof time_t for RPC AC_CHECK_SIZEOF([int]) AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([long long]) AC_CHECK_SIZEOF([time_t]) AC_STRUCT_TIMEZONE AC_CHECK_DECLS([timezone],,, [#include ]) AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,, [#include ]) dnl MCDE: libpng reads PNG pictures (lib/DtSvc/DtUtil2/McdeImage.c); Motif dnl 2.3.8's own reader loses red and green of a PNG without alpha PKG_CHECK_MODULES([PNG], [libpng >= 1.6]) AC_SUBST(PNG_CFLAGS) AC_SUBST(PNG_LIBS) dnl jpeg AC_CHECK_LIB(jpeg, jpeg_read_header, [JPEGLIB="-ljpeg"], [AC_MSG_ERROR([libjpeg not found, please install it])], [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_SUBST(JPEGLIB) dnl lmdb AC_CHECK_LIB(lmdb, mdb_version, [LMDBLIB="-llmdb"], [AC_MSG_ERROR([liblmdb not found, please install it])], [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_SUBST(LMDBLIB) dnl Setup XTOOLLIB - we do it in this specific order to avoid ordering dnl issues XTOOLLIB="" AC_CHECK_LIB(X11, XOpenDisplay, [XTOOLLIB="-lX11"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_CHECK_LIB(Xext, XextFindDisplay, [XTOOLLIB="-lXext ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) if test "x$disable_xrender" != "xyes" ; then AC_CHECK_LIB(Xrender, XRenderComposite, [XTOOLLIB="-lXrender ${XTOOLLIB}"; SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DUSE_XRENDER"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) fi AC_CHECK_LIB(Xau, XauReadAuth, [XTOOLLIB="-lXau ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_CHECK_LIB(Xpm, XpmLibraryVersion, [XTOOLLIB="-lXpm ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_CHECK_LIB(Xt, XtInitialize, [XTOOLLIB="-lXt ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_CHECK_LIB(Xmu, XmuMakeAtom, [XTOOLLIB="-lXmu ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) dnl MCDE: dtlaunch is told of a new clipboard owner by XFixes instead of asking dnl for the clipboard every second (tasksd t0080); without libXfixes it asks dnl every 5 s. Only dtlaunch uses it: XFIXESLIB and XFIXES_CPPFLAGS are its own dnl (not a define in config.h: that would recompile every file of the tree). XFIXESLIB="" XFIXES_CPPFLAGS="" AC_CHECK_LIB(Xfixes, XFixesSelectSelectionInput, [XFIXESLIB="-lXfixes"; XFIXES_CPPFLAGS="-DHAVE_XFIXES"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_SUBST(XFIXESLIB) AC_SUBST(XFIXES_CPPFLAGS) AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"], , [${EXTRA_INCS} ${EXTRA_LIBS}]) dnl MCDE: Motif is MCDE's toolkit and comes from this tree (motif/, IMPORT). dnl On Makronix it is the system's Motif, the package x11/motif built from dnl motif/, and MCDE links it like any program (--without-private-motif, the dnl pkgsrc recipe). Anywhere else MCDE builds motif/ itself and installs it dnl in ${prefix}/lib, for its own programs only: the system's Motif stays as dnl it is (Konrad, 2026-11-11). AC_ARG_WITH([private-motif], [AS_HELP_STRING([--without-private-motif], [link the system's Motif (on Makronix x11/motif, built from motif/) instead of building motif/ into ${prefix}/lib (default: build it)])], [], [with_private_motif=yes]) AM_CONDITIONAL([PRIVATE_MOTIF], [test "x$with_private_motif" != xno]) dnl Programs that MCDE builds and then RUNS while it builds (util/tradcpp for dnl the *.cpp.in templates, Motif's makestrs/wml when Motif is built in-tree): dnl they belong to the build machine, so they are compiled with its tools. dnl These have to be substituted whether or not Motif is built here -- without dnl them AM_MAKEFLAGS in Makefile.am expands them empty and a cross build hands dnl the target compiler to those programs (measured 2026-11-14: util/tradcpp dnl became a NetBSD binary, "not found" when the build ran it, dnl build/logs/userland-2026-11-14j.log:7715ff). : ${CC_FOR_BUILD:=$CC} : ${CFLAGS_FOR_BUILD:="$CFLAGS $MCDE_DIALECT_CFLAGS"} : ${CPPFLAGS_FOR_BUILD:="$CPPFLAGS $X_CFLAGS -DHAVE_FCNTL_H"} : ${LDFLAGS_FOR_BUILD:="$LDFLAGS $X_LIBS"} : ${AR_FOR_BUILD:=ar} : ${RANLIB_FOR_BUILD:=ranlib} AC_SUBST(CC_FOR_BUILD) AC_SUBST(CFLAGS_FOR_BUILD) AC_SUBST(CPPFLAGS_FOR_BUILD) AC_SUBST(LDFLAGS_FOR_BUILD) AC_SUBST(AR_FOR_BUILD) AC_SUBST(RANLIB_FOR_BUILD) if test "x$with_private_motif" != xno; then dnl what Motif reads pictures with; never a Motif without them AC_CHECK_LIB(jpeg, jpeg_read_header, [:], [AC_MSG_ERROR([libjpeg not found: Motif needs it for JPEG pictures])]) XTOOLLIB='$(top_builddir)/motif/lib/Xm/libXm.la '"${XTOOLLIB}" MOTIF_UIL_LIBS='$(top_builddir)/motif/clients/uil/libUil.la $(top_builddir)/motif/lib/Mrm/libMrm.la' else AC_CHECK_LIB(Xm, XmTextSetString, [XTOOLLIB="-lXm ${XTOOLLIB}"], [AC_MSG_ERROR([no Motif (libXm) to link with])], [${EXTRA_INCS} ${EXTRA_LIBS}]) MOTIF_UIL_LIBS='-lUil -lMrm' fi AC_SUBST(MOTIF_UIL_LIBS) XTOOLLIB="${EXTRA_INCS} ${EXTRA_LIBS} ${X_EXTRA_LIBS} ${XTOOLLIB}" AC_SUBST([XTOOLLIB]) dnl only needed by dtlogin AC_CHECK_LIB(Xdmcp, XdmcpFlush, [XDMCPLIB="-lXdmcp"], [XDMCPLIB=""], [${EXTRA_INCS} ${EXTRA_LIBS}]) AC_SUBST(XDMCPLIB) dnl iconv AM_ICONV dnl figure out pam support dnl Right now this only works on linux and netbsd (9.2 tested) if test "$supports_pam" = "yes" then AC_CHECK_LIB(pam, pam_start, [SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_PAM_LIBRARY"; PAMLIB="-lpam"]) AC_SUBST(PAMLIB) else AC_CHECK_LIB(pam, NOTSUPPORTED) fi AM_CONDITIONAL([HAS_PAM_LIBRARY], [test "x$ac_cv_lib_pam_pam_start" = "xyes"]) dnl figure out utempter support AC_CHECK_LIB(utempter, utempter_add_record, [SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_UTEMPTER_LIBRARY"]) AM_CONDITIONAL([HAS_UTEMPTER_LIBRARY], [test "x$ac_cv_lib_utempter_utempter_add_record" = "xyes"]) dnl Figure out TCL SC_PATH_TCLCONFIG SC_LOAD_TCLCONFIG dnl check MISSING_PROGS - error out here if there's stuff in it. if test -n "$MISSING_PROGS"; then AC_MSG_ERROR([Please install the following REQUIRED programs: ${MISSING_PROGS}]) fi dnl set CPPFLAGS, CFLAGS, and CXXFLAGS. dnl The Autoconf manual says that these are user variables and dnl shouldn't be modified. It suggests that you create a special dnl variable and presumably add those to your Makefile.am files. We dnl have 192 of these currently, so... The user will just have to dnl deal, or modify them here directly. CPPFLAGS="${CPPFLAGS} ${SOURCE_CPP_DEFINES} ${CPP_COMPILER_FLAGS}" CFLAGS="${CFLAGS} ${C_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}" CXXFLAGS="${CXXFLAGS} ${CXX_COMPILER_FLAGS} ${EXTRA_INCS} ${PTHREAD_CFLAGS}" LIBS="${EXTRA_LIBS} ${LIBS} ${PTHREAD_LIBS}" dnl All of the makefiles we need to generate go here... AC_CONFIG_FILES([ Makefile fonts/Makefile util/Makefile util/tradcpp/Makefile lib/Makefile lib/McdeSys/Makefile lib/McdeSound/Makefile lib/libDtChat/Makefile lib/DtXinerama/Makefile lib/tt/Makefile lib/tt/mini_isam/Makefile lib/tt/slib/Makefile lib/tt/lib/Makefile lib/tt/lib/api/Makefile lib/tt/lib/api/dnd/Makefile lib/tt/lib/api/c/Makefile lib/tt/lib/tttk/Makefile lib/tt/lib/db/Makefile lib/tt/lib/mp/Makefile lib/tt/lib/util/Makefile lib/tt/bin/Makefile lib/tt/bin/shell/Makefile lib/tt/bin/ttauth/Makefile lib/tt/bin/scripts/Makefile lib/tt/bin/tttar/Makefile lib/tt/bin/tt_type_comp/Makefile lib/tt/bin/tttrace/Makefile lib/tt/bin/dbck/Makefile lib/tt/bin/ttdbserverd/Makefile lib/tt/bin/ttsession/Makefile lib/DtSvc/Makefile lib/DtSearch/Makefile lib/DtSearch/raima/Makefile lib/DtWidget/Makefile lib/DtHelp/Makefile lib/DtHelp/il/Makefile lib/DtPrint/Makefile lib/DtTerm/Term/Makefile lib/DtTerm/Makefile lib/DtTerm/TermView/Makefile lib/DtTerm/util/Makefile lib/DtTerm/TermPrim/Makefile lib/DtMrm/Makefile lib/csa/Makefile lib/DtMmdb/Makefile lib/DtMmdb/HardCopy/Makefile lib/DtMmdb/StyleSheet/Makefile lib/DtMmdb/api/Makefile lib/DtMmdb/btree/Makefile lib/DtMmdb/compression/Makefile lib/DtMmdb/diskhash/Makefile lib/DtMmdb/dstr/Makefile lib/DtMmdb/dti_cc/Makefile lib/DtMmdb/dti_excs/Makefile lib/DtMmdb/dynhash/Makefile lib/DtMmdb/hmphf/Makefile lib/DtMmdb/index/Makefile lib/DtMmdb/mgrs/Makefile lib/DtMmdb/misc/Makefile lib/DtMmdb/object/Makefile lib/DtMmdb/oliasdb/Makefile lib/DtMmdb/schema/Makefile lib/DtMmdb/storage/Makefile lib/DtMmdb/utility/Makefile programs/Makefile programs/backdrops/Makefile programs/palettes/Makefile programs/icons/Makefile programs/dsdm/Makefile programs/dthelp/Makefile programs/dthelp/dthelpview/Makefile programs/dthelp/dthelpgen/Makefile programs/dthelp/dthelpprint/Makefile programs/dthelp/parser/Makefile programs/dthelp/parser/pass1/Makefile programs/dthelp/parser/pass1/util/Makefile programs/dthelp/parser/pass1/build/Makefile programs/dthelp/parser/pass1/eltdef/Makefile programs/dthelp/parser/pass1/helptag/Makefile programs/dthelp/parser/pass1/parser/Makefile programs/dthelp/parser/canon1/Makefile programs/dthelp/parser/canon1/util/Makefile programs/dthelp/parser/canon1/build/Makefile programs/dthelp/parser/canon1/eltdef/Makefile programs/dthelp/parser/canon1/helptag/Makefile programs/dthelp/parser/canon1/parser/Makefile programs/dthelp/parser/pass2/Makefile programs/dthelp/parser/pass2/util/Makefile programs/dthelp/parser/pass2/build/Makefile programs/dthelp/parser/pass2/eltdef/Makefile programs/dthelp/parser/pass2/htag2/Makefile programs/dthelp/parser/pass2/parser/Makefile programs/dthelp/parser/helptag/Makefile programs/dtmail/Makefile programs/dtmail/dtmail/Makefile programs/dtmail/MotifApp/Makefile programs/dtmail/dtmailpr/Makefile programs/dtmail/libDtMail/Makefile programs/dtmail/libDtMail/RFC/Makefile programs/dtmail/libDtMail/Common/Makefile programs/dtpad/Makefile programs/dtfile/Makefile programs/dtfile/dtcopy/Makefile programs/dtwm/Makefile programs/dtlogin/Makefile programs/dtlogin/config/Makefile programs/dtsession/Makefile programs/dtsession/config/Makefile programs/dthello/Makefile programs/dtstyle/Makefile programs/dtexec/Makefile programs/dtdbcache/Makefile programs/dticon/Makefile programs/dtterm/Makefile programs/dtcalc/Makefile programs/dtlaunch/Makefile programs/dtbar/Makefile programs/dtsystemsettings/Makefile programs/dtdiskutility/Makefile programs/dtbackup/Makefile programs/dtphoto/Makefile programs/dtconsole/Makefile programs/dtnetutility/Makefile programs/dtimage/Makefile programs/dtactivity/Makefile programs/dtscreenshot/Makefile programs/dtchat/Makefile programs/dtcmprefs/Makefile programs/dtpaint/Makefile programs/dttoolbox/Makefile programs/mcdesoundd/Makefile programs/dtcursor/Makefile programs/cursors/Makefile programs/fonts/Makefile programs/dtappscan/Makefile programs/dtkeys/Makefile programs/dtthemesync/Makefile programs/dtaction/Makefile programs/dtspcd/Makefile programs/dtscreen/Makefile programs/dterror/Makefile programs/dtcm/Makefile programs/dtcm/libDtCmP/Makefile programs/dtcm/server/Makefile programs/dtcm/dtcm/Makefile programs/dtsearchpath/Makefile programs/dtsearchpath/libCliSrv/Makefile programs/dtsearchpath/dtsp/Makefile programs/dtsearchpath/dtappg/Makefile programs/dtappbuilder/Makefile programs/dtappbuilder/src/Makefile programs/dtappbuilder/src/libAButil/Makefile programs/dtappbuilder/src/libABobj/Makefile programs/dtappbuilder/src/libABobjXm/Makefile programs/dtappbuilder/src/libABil/Makefile programs/dtappbuilder/src/abmf/Makefile programs/dtappbuilder/src/ab/Makefile programs/dtappintegrate/Makefile programs/dtprintegrate/Makefile programs/dtconfig/Makefile programs/dtconfig/sun/Makefile programs/dtcreate/Makefile programs/dtprintinfo/Makefile programs/fontaliases/Makefile programs/dtdspmsg/Makefile programs/ttsnoop/Makefile programs/dtimsstart/Makefile programs/dtpdm/Makefile programs/dtsr/Makefile programs/dtpdmd/Makefile programs/dtinfo/Makefile programs/dtinfo/tools/Makefile programs/dtinfo/tools/misc/Makefile programs/dtinfo/clients/Makefile programs/dtinfo/clients/dtinfo_start/Makefile programs/dtinfo/dtinfo/Makefile programs/dtinfo/dtinfo/wwl/Makefile programs/dtinfo/dtinfo/wwl/src/Makefile programs/dtinfo/dtinfo/src/Makefile programs/dtinfo/dtinfo/src/Widgets/Makefile programs/dtinfo/dtinfo/src/Support/Makefile programs/dtinfo/dtinfo/src/UAS/Makefile programs/dtinfo/dtinfo/src/UAS/Base/Makefile programs/dtinfo/dtinfo/src/UAS/MMDB/Makefile programs/dtinfo/dtinfo/src/UAS/DtSR/Makefile programs/dtinfo/dtinfo/src/Basic/Makefile programs/dtinfo/dtinfo/src/OliasSearch/Makefile programs/dtinfo/dtinfo/src/Marks/Makefile programs/dtinfo/dtinfo/src/Graphics/Makefile programs/dtinfo/dtinfo/src/Preferences/Makefile programs/dtinfo/dtinfo/src/Managers/Makefile programs/dtinfo/dtinfo/src/Other/Makefile programs/dtinfo/dtinfo/src/Query/Makefile programs/dtinfo/dtinfo/src/Agents/Makefile programs/dtinfo/dtinfo/src/OnlineRender/Makefile programs/dtinfo/dtinfo/src/Messages/Makefile programs/dtinfo/dtinfo/src/cgm/Makefile programs/dtinfo/dtinfo/install/Makefile programs/dtinfo/dtinfo/install/lib/Makefile programs/dtinfo/dtinfo/install/lib/bitmaps/Makefile programs/types/Makefile programs/tttypes/Makefile programs/util/Makefile programs/util/dttypes/Makefile programs/dtopen/Makefile programs/dtdocbook/Makefile programs/dtdocbook/dtdocbook2man programs/dtdocbook/dtdocbook2sdl programs/dtdocbook/doc_utils/Makefile programs/dtdocbook/dtsr/Makefile programs/dtdocbook/infolib/Makefile programs/dtdocbook/instant/Makefile programs/dtdocbook/locales/Makefile programs/dtdocbook/locales/de_DE.UTF-8/Makefile programs/dtdocbook/locales/el_GR.UTF-8/Makefile programs/dtdocbook/locales/en_US.UTF-8/Makefile programs/dtdocbook/locales/es_ES.UTF-8/Makefile programs/dtdocbook/locales/fr_FR.UTF-8/Makefile programs/dtdocbook/locales/it_IT.UTF-8/Makefile programs/dtdocbook/locales/ja_JP.UTF-8/Makefile programs/dtdocbook/sgml/Makefile programs/dtdocbook/spec/Makefile programs/dtdocbook/tcl/Makefile programs/dtdocbook/tpt/Makefile programs/localized/Makefile programs/localized/util/Makefile programs/localized/C/Makefile programs/localized/C/app-defaults/Makefile programs/localized/C/config/Makefile programs/localized/C/backdrops/Makefile programs/localized/C/types/Makefile programs/localized/C/palettes/Makefile programs/localized/C/msg/Makefile programs/localized/C/appmanager/Makefile programs/localized/de_DE.UTF-8/Makefile programs/localized/de_DE.UTF-8/app-defaults/Makefile programs/localized/de_DE.UTF-8/config/Makefile programs/localized/de_DE.UTF-8/backdrops/Makefile programs/localized/de_DE.UTF-8/types/Makefile programs/localized/de_DE.UTF-8/palettes/Makefile programs/localized/de_DE.UTF-8/msg/Makefile programs/localized/de_DE.UTF-8/appmanager/Makefile programs/localized/fr_FR.UTF-8/Makefile programs/localized/fr_FR.UTF-8/app-defaults/Makefile programs/localized/fr_FR.UTF-8/config/Makefile programs/localized/fr_FR.UTF-8/backdrops/Makefile programs/localized/fr_FR.UTF-8/types/Makefile programs/localized/fr_FR.UTF-8/palettes/Makefile programs/localized/fr_FR.UTF-8/msg/Makefile programs/localized/fr_FR.UTF-8/appmanager/Makefile programs/localized/it_IT.UTF-8/Makefile programs/localized/it_IT.UTF-8/app-defaults/Makefile programs/localized/it_IT.UTF-8/config/Makefile programs/localized/it_IT.UTF-8/backdrops/Makefile programs/localized/it_IT.UTF-8/types/Makefile programs/localized/it_IT.UTF-8/palettes/Makefile programs/localized/it_IT.UTF-8/msg/Makefile programs/localized/it_IT.UTF-8/appmanager/Makefile programs/localized/es_ES.UTF-8/Makefile programs/localized/es_ES.UTF-8/app-defaults/Makefile programs/localized/es_ES.UTF-8/config/Makefile programs/localized/es_ES.UTF-8/backdrops/Makefile programs/localized/es_ES.UTF-8/types/Makefile programs/localized/es_ES.UTF-8/palettes/Makefile programs/localized/es_ES.UTF-8/msg/Makefile programs/localized/es_ES.UTF-8/appmanager/Makefile programs/localized/ja_JP.UTF-8/Makefile programs/localized/ja_JP.UTF-8/app-defaults/Makefile programs/localized/ja_JP.UTF-8/config/Makefile programs/localized/ja_JP.UTF-8/backdrops/Makefile programs/localized/ja_JP.UTF-8/types/Makefile programs/localized/ja_JP.UTF-8/palettes/Makefile programs/localized/ja_JP.UTF-8/msg/Makefile programs/localized/ja_JP.UTF-8/appmanager/Makefile doc/Makefile doc/en_US.UTF-8/Makefile doc/en_US.UTF-8/help/Makefile doc/en_US.UTF-8/help/common/Desktop.hf doc/en_US.UTF-8/help/common/DesktopIntro.hf doc/en_US.UTF-8/man/Makefile doc/en_US.UTF-8/guides/Makefile doc/en_US.UTF-8/m-guides/Makefile doc/de_DE.UTF-8/Makefile doc/de_DE.UTF-8/guides/Makefile doc/de_DE.UTF-8/help/Makefile doc/de_DE.UTF-8/help/common/Desktop.hf doc/de_DE.UTF-8/help/common/DesktopIntro.hf doc/es_ES.UTF-8/Makefile doc/es_ES.UTF-8/guides/Makefile doc/es_ES.UTF-8/help/Makefile doc/es_ES.UTF-8/help/common/Desktop.hf doc/es_ES.UTF-8/help/common/DesktopIntro.hf doc/fr_FR.UTF-8/Makefile doc/fr_FR.UTF-8/guides/Makefile doc/fr_FR.UTF-8/help/Makefile doc/fr_FR.UTF-8/help/common/Desktop.hf doc/fr_FR.UTF-8/help/common/DesktopIntro.hf doc/it_IT.UTF-8/Makefile doc/it_IT.UTF-8/guides/Makefile doc/it_IT.UTF-8/help/Makefile doc/it_IT.UTF-8/help/common/Desktop.hf doc/it_IT.UTF-8/help/common/DesktopIntro.hf doc/ja_JP.UTF-8/Makefile doc/ja_JP.UTF-8/guides/Makefile doc/ja_JP.UTF-8/help/Makefile doc/ja_JP.UTF-8/help/common/Desktop.hf doc/ja_JP.UTF-8/help/common/DesktopIntro.hf include/Makefile copyright doc/common/help/HELPEnt.sgm include/Dt/Dt.h lib/tt/bin/ttauth/ttauth.man ]) if test "x$with_private_motif" != xno; then dnl MCDE: Motif (motif/) is configured as a package of its own, with the dnl options of pkgsrc x11/motif, and built by our Makefile.am in the parts dnl MCDE uses (libXm, libMrm, libUil and uil; not mwm, xmbind, the demos). dnl Motif's sources are C of the 1990s (int f(); declarations): the dialect dnl MCDE is built with (MCDE_DIALECT_CFLAGS, above), not the compiler's C23. ac_configure_args="$ac_configure_args --enable-xft --enable-png --enable-jpeg --disable-printing 'CFLAGS=$CFLAGS $MCDE_DIALECT_CFLAGS'" AC_CONFIG_SUBDIRS([motif]) dnl Motif builds programs it runs during the build (makestrs, wml): with the dnl build machine's compiler. pkgsrc's patches to its Makefile.in use these dnl and x11/motif passes them as MAKE_FLAGS; Makefile.am passes them on in dnl AM_MAKEFLAGS. A cross build sets them to the build machine's tools. : ${LIBS_FOR_BUILD:=-lXt} AC_SUBST(LIBS_FOR_BUILD) dnl its headers before any other Motif's (after every test: make expands dnl these, the shell would not) CPPFLAGS='-I$(top_builddir)/motif/lib -I$(top_srcdir)/motif/lib '"$CPPFLAGS" fi AC_OUTPUT