]> andersk Git - moira.git/blobdiff - configure.in
Unpack tarfile in a temporary directory to avoid changing the
[moira.git] / configure.in
index cbe44a170a8c99a0090ddcb5b4c5ddd32ba9cca8..f913a4cf37182f6d3c66d0796efc76883332293c 100755 (executable)
@@ -10,6 +10,25 @@ AC_DEFUN(MR_EXTEND, [
     esac
 ])
 
+AC_CANONICAL_HOST
+# SO_LDFLAGS setting below is a great big ick.
+# But it beats sucking in libtool for one small part of the source tree.
+case $host_os in
+solaris*)
+       short_os=solaris
+       SO_LDFLAGS="-G"
+       ;;
+irix*)
+       short_os=irix
+       SO_LDFLAGS="-shared"
+       ;;
+linux*)
+       short_os=linux
+       SO_LDFLAGS="-shared"
+       ;;
+esac
+AC_SUBST(SO_LDFLAGS)
+
 dnl Define for both C and Pro*C
 AC_DEFUN(MR_DEFINE, [
     AC_DEFINE($1)
@@ -242,6 +261,29 @@ AC_SUBST(PRO_C_OPTS)
 AC_SUBST(SQL_LIBS)
 AC_SUBST(SVRSUBDIRS)
 
+# Java support, for webmoira
+AC_MSG_CHECKING(for Java)
+AC_ARG_WITH(java,
+    [ --with-java=PREFIX       Specify location of Java libs and headers],
+    [ java="$withval"],
+    [if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
+       java=$JAVA_HOME
+     else
+       java=no
+     fi])
+AC_MSG_RESULT($java)
+if test "$java" != no; then
+    if test "$java" != yes; then
+       JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
+    fi
+    MR_DEFINE(HAVE_JAVA)
+
+    WEBMOIRA_SUBDIRS="webmoira"
+    WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
+fi
+AC_SUBST(JAVA_CPPFLAGS)
+AC_SUBST(WEBMOIRA_SUBDIRS)
+
 # LDAP support
 AC_MSG_CHECKING(for LDAP)
 AC_ARG_WITH(ldap,
@@ -380,7 +422,7 @@ AC_SUBST(CURSES_LIBS)
 AC_SUBST(CURSES_SUBDIRS)
 
 
-AC_CHECK_FUNCS(getusershell strlcpy strlcat uname)
+AC_CHECK_FUNCS(getusershell strlcpy strlcat uname strvis)
 
 AC_CHECK_FUNC(sigaction, AC_DEFINE(HAVE_POSIX_SIGNALS))
 
@@ -419,6 +461,7 @@ AC_OUTPUT(Makefile lib/Makefile include/Makefile clients/Makefile \
          clients/chpobox/Makefile clients/chsh/Makefile \
          clients/mailmaint/Makefile clients/moira/Makefile \
          clients/mrcheck/Makefile clients/mrtest/Makefile \
-         clients/stella/Makefile update/Makefile man/Makefile \
+         clients/stanley/Makefile clients/stella/Makefile \
+          update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES \
          $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES \
          $RSAREF_OUTPUT_FILES)
This page took 0.036386 seconds and 4 git commands to generate.