Kaydet (Commit) 3bb81f25 authored tarafından Enrico Tröger's avatar Enrico Tröger

added check for mkfifo(), made it also an option


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@202 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst ccf5ffea
......@@ -50,7 +50,7 @@ AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([gethostname ftruncate fgetpos getcwd gettimeofday isascii mblen memmove memset munmap putenv realpath regcomp setenv strcasecmp strchr strdup strerror strrchr strspn strstr strtol])
AC_CHECK_FUNCS([gethostname ftruncate fgetpos getcwd gettimeofday isascii mblen memset munmap putenv realpath regcomp setenv strcasecmp strchr strdup strerror strrchr strspn strstr strtol])
# autoscan end
......@@ -59,13 +59,29 @@ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
# fifo support
AC_CHECK_FUNC([mkfifo], [have_mkfifo="1"])
want_pipe=yes
AC_ARG_ENABLE(pipe, [ --enable-pipe enable if you want to detect a running instance [[default=yes]]],
[want_pipe="$enableval"])
if test "x$want_pipe" = "xyes"; then
if test "x$have_mkfifo" = "x1"; then
AC_DEFINE(HAVE_FIFO, 1, [Define if you want to detect a running instance])
else
want_pipe=no
fi
fi
# VTE support
want_vte=yes
AC_ARG_ENABLE(vte, [ --enable-vte enable if you want virtual termninal support [[default=yes]]],
[want_vte="$enableval"])
if test "$want_vte" = "yes"; then
if test "x$want_vte" = "xyes"; then
AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])
fi
# if test "$want_vte" = "yes"; then
# PKG_CHECK_MODULES(VTE, [vte],
# [AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])],
......@@ -75,7 +91,7 @@ fi
# [AC_MSG_ERROR([VTE support enabled, but VTE not found])], [])
# fi
dnl Check for random number paths
# Check for random number paths
AC_CHECK_FILE([/dev/urandom], AC_DEFINE([HAVE_DEVURANDOM], [1], [Define that you found /dev/urandom]))
AC_CHECK_FILE([/dev/random], AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random]))
......@@ -86,7 +102,7 @@ GETTEXT_PACKAGE=geany
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
dnl Add the languages which your application supports here.
# Add the languages which your application supports here.
ALL_LINGUAS="de"
AM_GLIB_GNU_GETTEXT
......@@ -115,7 +131,9 @@ geany.desktop
echo "----------------------------------------"
echo "Install Geany in : ${prefix}"
echo "Using GTK version : $GTK_VERSION"
echo "Using GTK version : ${GTK_VERSION}"
echo "Use virtual terminal support : ${want_vte}"
echo "Use named pipe support : ${want_pipe}"
echo ""
echo "Configuration is done OK."
echo ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment