diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /konsole/configure.in.in | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole/configure.in.in')
-rw-r--r-- | konsole/configure.in.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/konsole/configure.in.in b/konsole/configure.in.in new file mode 100644 index 000000000..d68c0f9fc --- /dev/null +++ b/konsole/configure.in.in @@ -0,0 +1,41 @@ +dnl beta tests for openpty support +AC_MSG_CHECKING(whether we can use openpty) +ac_use_openpty="yes" +AC_ARG_ENABLE(openpty, + AC_HELP_STRING([--disable-openpty],[disable openpty (UNIX98 terminals) support [default=enabled]]), + [ac_use_openpty="no"]) +if test "$ac_use_openpty" = "yes"; then + kde_safe_LIBS=$LIBS + LIBS="$LIBS $LIBUTIL" + AC_TRY_RUN([ +#include <pty.h> + +int main(int argc, char* argv) { + int master_fd, slave_fd; + int result; + + result = openpty(&master_fd, &slave_fd, 0, 0, 0); + + return 0; +} +], [ac_use_openpty="yes"], [ac_use_openpty="no"]) + LIBS=$kde_safe_LIBS +fi +if test "$ac_use_openpty" = "yes"; then + AC_DEFINE(HAVE_OPENPTY, 1, [Defines whether we can use the openpty() function]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Set preprocessor variable of how to get cwd from a process +AC_MSG_CHECKING(how cwd can be be found by seperate process) +case "$host" in + *-*-linux*) cwd_method='proc' ;; + *) cwd_method='no' ;; +esac +AC_MSG_RESULT($cwd_method) + +case "$cwd_method" in + proc) AC_DEFINE(HAVE_PROC_CWD, 1, [Defines whether /proc/`pid`/cwd exists]) ;; +esac |