utempter: complete the implementation
Liang Chang added utempter support to the dtterm widget in pre-autoconf CDE. While the code itself was merged, it was still not "turned on" for autoconf builds. This commit completes the implementation allowing dtterm on Linux and the BSDs to be installed without having to be setuid root -- as long as the libutempter headers and libraries are installed.
This commit is contained in:
@@ -21,4 +21,8 @@ if SOLARIS
|
||||
libDtTerm_la_LIBADD += -ldl -lgen
|
||||
endif
|
||||
|
||||
if HAS_UTEMPTER_LIBRARY
|
||||
libDtTerm_la_LIBADD += -lutempter
|
||||
endif
|
||||
|
||||
libDtTerm_la_LDFLAGS = -version-info 2:1:0
|
||||
|
||||
@@ -42,9 +42,14 @@ libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
|
||||
AM_CPPFLAGS += -DSUN_ARCHITECTURE
|
||||
endif
|
||||
|
||||
# uses CSRG_BASED...
|
||||
# Use the posix pts api, like linux
|
||||
if BSD
|
||||
libTermPrim_la_SOURCES += TermPrimGetPty-bsd.c
|
||||
libTermPrim_la_SOURCES += TermPrimGetPty-pts.c
|
||||
# uses CSRG_BASED global define
|
||||
endif
|
||||
|
||||
if FREEBSD
|
||||
AM_CPPFLAGS += -DFREEBSD_ARCHITECTURE
|
||||
endif
|
||||
|
||||
if OPENBSD
|
||||
@@ -52,6 +57,6 @@ AM_CPPFLAGS += -DOPENBSD_ARCHITECTURE
|
||||
endif
|
||||
|
||||
if LINUX
|
||||
libTermPrim_la_SOURCES += TermPrimGetPty-svr4.c
|
||||
libTermPrim_la_SOURCES += TermPrimGetPty-pts.c
|
||||
AM_CPPFLAGS += -DLINUX_ARCHITECTURE
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user