]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - configure.ac
Kill noisy debug message
[paraslash.git] / configure.ac
index f6b8733eb06e9f84f7e4810934b0acd3b89168d0..ec30d88b8c4eab9ff28df73c70bcd470fa09406d 100644 (file)
@@ -51,8 +51,6 @@ AC_CHECK_FUNCS([atexit dup2 gethostbyname inet_ntoa memchr memmove memset \
 AC_CHECK_LIB([ncurses], [initscr], [], 
        [AC_MSG_ERROR([libncurses not found])])
 
-AC_CHECK_LIB([readline], [readline], [], 
-       [AC_MSG_ERROR([libreadline not found])])
 AC_CHECK_LIB([menu], [new_menu], [extras="$extras para_dbadm"],
        [AC_MSG_WARN([libmenu not found,  cannot build para_dbadm])])
 
@@ -126,6 +124,20 @@ if test "$enable_ssldir" = "yes"; then enable_ssldir=""; fi
 CHECK_SSL($enable_ssldir)
 server_ldflags="$srver_ldflags $SSL_LDFLAGS $SSL_LIBS"
 
+########################################################################### ucred
+
+AC_MSG_CHECKING(for struct ucred)
+AC_TRY_LINK([
+       #include <sys/types.h>
+       #include <sys/socket.h>
+],[
+       struct ucred sucred; sucred.pid=0;
+],[have_ucred=yes],[have_ucred=no])
+AC_MSG_RESULT($have_ucred)
+if test ${have_ucred} = yes; then
+       AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred)
+fi
+
 ########################################################################### gtk2
 
 pkg_modules="gtk+-2.0 >= 2.0.0"
@@ -296,6 +308,15 @@ AC_SUBST(server_objs, add_dot_o($server_objs))
 AC_SUBST(server_ldflags, $server_ldflags)
 AC_DEFINE_UNQUOTED(INIT_SERVER_ERRLISTS, 
        objlist_to_errlist($server_errlist_objs), errors used by para_server)
+
+gui_cmdline_objs="gui.cmdline"
+gui_errlist_objs="exec close_on_fork signal string stat ringbuffer fd"
+gui_other_objs="gui gui_common gui_theme"
+gui_objs="$gui_cmdline_objs $gui_errlist_objs $gui_other_objs"
+AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS,
+       objlist_to_errlist($gui_errlist_objs), errors used by para_gui)
+AC_SUBST(gui_objs, add_dot_o($gui_objs))
+
 AC_OUTPUT
 AC_MSG_NOTICE([creating Makefile.deps])
 gcc -MM -MG *.c > Makefile.deps
@@ -306,4 +327,5 @@ mysql support: $have_mysql
 ogg vorbis support: $have_ogg
 mp3dec support (libmad): $have_mad
 ortp support: $have_ortp
+unix socket credentials: $have_ucred
 ])