123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936 |
- dnl When changing the version below, also change the CDE_VERSION_* macros
- dnl to match further below
- AC_INIT([Common Desktop Environment],
- [2.5.2],
- [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=2
- 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 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++])
- LT_INIT
- AC_PREFIX_DEFAULT(/usr/dt)
- 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
- case "${build_os}" in
- linux*)
- build_linux=yes
- 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
- 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
- bsd=yes
- ;;
- netbsd*)
- build_netbsd=yes
- bsd=yes
- supports_pam=yes
- ;;
- solaris*|sun*)
- build_solaris=yes
- ;;
- aix*)
- build_aix=yes
- ;;
- 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 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')
- AC_SUBST(LIBTERM, '$(top_builddir)/lib/DtTerm/libDtTerm.la')
- AC_SUBST(LIBSVC, '$(top_builddir)/lib/DtSvc/libDtSvc.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 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=<pathname>],
- [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=<pathname>],
- [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...
- CDE_INSTALLATION_TOP="$ac_default_prefix"
- CDE_LOGFILES_TOP=/var/dt
- CDE_CONFIGURATION_TOP=/etc/dt
- 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
- MISSING_PROGS="[ksh or ksh93] ${MISSING_PROGS}"
- fi
- fi
- 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 <X11/Xlib.h>])
- dnl libraries
- AC_CHECK_LIB(m, cosf)
- AC_SEARCH_LIBS(dlopen, [dl dld], [], [])
- AC_CHECK_LIB(crypt, crypt)
- 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 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 <rpc/rpc.h>
- ])
- 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 <time.h>])
- AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,
- [#include <time.h>])
- 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 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}])
- AC_CHECK_LIB(ICE, IceCloseConnection, [XTOOLLIB="-lICE ${XTOOLLIB}"], ,
- [${EXTRA_INCS} ${EXTRA_LIBS}])
- AC_CHECK_LIB(SM, SmcOpenConnection, [XTOOLLIB="-lSM ${XTOOLLIB}"], ,
- [${EXTRA_INCS} ${EXTRA_LIBS}])
- AC_CHECK_LIB(Xm, XmTextSetString, [XTOOLLIB="-lXm ${XTOOLLIB}"], ,
- [${EXTRA_INCS} ${EXTRA_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
- util/Makefile
- util/tradcpp/Makefile
- lib/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/btree_berkeley/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/dtaction/Makefile
- programs/dtspcd/Makefile
- programs/dtscreen/Makefile
- programs/dtksh/Makefile
- programs/dtksh/examples/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
- ])
- AC_OUTPUT
|