Mercurial > pidgin
diff configure.ac @ 8849:50d0f76639e7
[gaim-migrate @ 9616]
Let there be SILC.
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sat, 01 May 2004 19:34:44 +0000 |
parents | 413aad27f728 |
children | 23bdb4cc0cad |
line wrap: on
line diff
--- a/configure.ac Sat May 01 15:20:25 2004 +0000 +++ b/configure.ac Sat May 01 19:34:44 2004 +0000 @@ -1,5 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT([gaim], [0.78cvs], [gaim-devel@lists.sourceforge.net]) +AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) @@ -102,7 +103,7 @@ fi if test "x$STATIC_PRPLS" = "xall" ; then - STATIC_PRPLS="gg irc jabber msn napster novell oscar yahoo zephyr" + STATIC_PRPLS="gg irc jabber msn napster novell oscar silc yahoo zephyr" fi AC_SUBST(STATIC_PRPLS) STATIC_LINK_LIBS= @@ -121,6 +122,7 @@ novell) static_novell=yes ;; oscar) static_oscar=yes ;; rendezvous) static_rendezvous=yes ;; + silc) static_silc=yes ;; toc) static_toc=yes ;; trepia) static_trepia=yes ;; yahoo) static_yahoo=yes ;; @@ -136,6 +138,7 @@ AM_CONDITIONAL(STATIC_NOVELL, test "x$static_novell" = "xyes") AM_CONDITIONAL(STATIC_OSCAR, test "x$static_oscar" = "xyes") AM_CONDITIONAL(STATIC_RENDEZVOUS, test "x$static_rendezvous" = "xyes") +AM_CONDITIONAL(STATIC_SILC, test "x$static_silc" = "xyes") AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes") AM_CONDITIONAL(STATIC_TREPIA, test "x$static_trepia" = "xyes") AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") @@ -146,7 +149,7 @@ AC_ARG_WITH(dynamic_prpls, [ --with-dynamic-prpls specify which protocols to build dynamically],[DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) if test "x$DYNAMIC_PRPLS" = "xall" ; then - DYNAMIC_PRPLS="gg irc jabber msn napster novell oscar yahoo zephyr" + DYNAMIC_PRPLS="gg irc jabber msn napster novell oscar silc yahoo zephyr" fi AC_SUBST(DYNAMIC_PRPLS) for i in $DYNAMIC_PRPLS ; do @@ -159,6 +162,7 @@ novell) dynamic_novell=yes ;; oscar) dynamic_oscar=yes ;; rendezvous) dynamic_rendezvous=yes ;; + silc) dynamic_silc=yes ;; toc) dynamic_toc=yes ;; trepia) dynamic_trepia=yes ;; yahoo) dynamic_yahoo=yes ;; @@ -174,6 +178,7 @@ AM_CONDITIONAL(DYNAMIC_NOVELL, test "x$dynamic_novell" = "xyes") AM_CONDITIONAL(DYNAMIC_OSCAR, test "x$dynamic_oscar" = "xyes") AM_CONDITIONAL(DYNAMIC_RENDEZVOUS, test "x$dynamic_rendezvous" = "xyes") +AM_CONDITIONAL(DYNAMIC_SILC, test "x$dynamic_silc" = "xyes") AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes") AM_CONDITIONAL(DYNAMIC_TREPIA, test "x$dynamic_trepia" = "xyes") AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes") @@ -193,9 +198,39 @@ AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes) AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") +AC_ARG_WITH(zephyr, [ --with-zephyr=PREFIX Compile Zephyr plugin against external libzephyr],zephyr="$withval",zephyr="no") +AC_ARG_WITH(silc-libs, [ --with-silc-libs=DIR Compile the SILC plugin against the SILC libs in DIR], [ac_silc_libs="$withval"]) +AC_ARG_WITH(silc-includes, [ --with-silc-includes=DIR + Compile the SILC plugin against includes in DIR ], + [ ac_silc_includes="$withval" ]) +AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") -AC_ARG_WITH(zephyr, [ --with-zephyr=PREFIX Compile Zephyr plugin against external libzephyr],zephyr="$withval",zephyr="no") -AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") +# +# SILC Toolkit check for SILC Protocol Plugin +# +SILC_INCLUDES="" +SILC_LIBS="" +ac_silc_includes="" +ac_silc_libs="" + +if test "$ac_silc_includes" != "" ; then +SILC_INCLUDES="-I$ac_silc_includes" +else +static_silc=no +dynamic_silc=no +fi + +if test "$ac_silc_libs" != "" ; then + SILC_LIBS="-L$ac_silc_libs" +else +static_silc=no +dynamic_silc=no +fi +SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread" +AC_SUBST(SILC_INCLUDES) +AC_SUBST(SILC_LIBS) +AC_CHECK_HEADER(sys/utsname.h) +AC_CHECK_FUNC(uname) if test "$enable_debug" = yes ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) @@ -1109,6 +1144,7 @@ src/protocols/trepia/Makefile src/protocols/yahoo/Makefile src/protocols/zephyr/Makefile + src/protocols/silc/Makefile gaim.spec ])