show the difference between two versions for a specified path
[tfs.git] / configure.in
blobb3def256cb84987fb7827d3a6ef30ae0a5732bc6
1 AC_INIT(opentf, [0.6.0])
3 PKG_PROG_PKG_CONFIG
5 AC_ARG_ENABLE(gtk, 
6         [  --disable-gtk           disable gtk gui support],
7         HAVE_GTK=no,
8   PKG_CHECK_EXISTS(gtk-sharp-2.0, HAVE_GTK=yes, HAVE_GTK=no)
11 AC_ARG_ENABLE(md, 
12         [  --disable-md           disable monodevelop support],
13         HAVE_MD=no,
14         PKG_CHECK_EXISTS(monodevelop, HAVE_MD=yes, HAVE_MD=no)
17 HAVE_DOC_TOOLS=no
18 AC_CHECK_PROG(ASCIIDOC, [asciidoc], yes)
19 AC_CHECK_PROG(XMLTO, [xmlto], yes)
21 if test "x$ASCIIDOC" = "xyes"; then 
22   if test "x$XMLTO" = "xyes"; then 
23          HAVE_DOC_TOOLS=yes
24   fi
27 AC_ARG_ENABLE(highlight, 
28         [  --enable-highlight      enable syntax highlighting support],
29   PKG_CHECK_EXISTS(gtksourceview-sharp-2.0, HAVE_GTK_SOURCEVIEW=yes, HAVE_GTK_SOURCEVIEW=no)
30   PKG_CHECK_EXISTS(gnome-vfs-sharp-2.0, HAVE_GNOME_VFS=yes, HAVE_GNOME_VFS=no)
33 AC_ARG_ENABLE(keyring, 
34         [  --disable-keyring       disable gnome keyring support],
35         HAVE_GNOME_KEYRING=no,
36         PKG_CHECK_EXISTS(gnome-keyring-sharp, HAVE_GNOME_KEYRING=yes, HAVE_GNOME_KEYRING=no)
39 AC_ARG_WITH(mslibs, 
40         [  --with-mslibs=<dir>     location of Microsoft's Team Foundation Assemblies],
41         HAVE_MSLIBS=$withval,
42         HAVE_MSLIBS=no
45 AC_PATH_PROG(MONO, [mono])
46 AC_SUBST([MONO])
48 MONO_VERSION=`pkg-config --modversion mono`
49 HAVE_ATLEAST_GTK_210=`pkg-config --atleast-version=2.10 gtk-sharp-2.0 && echo 1`
50 MD_LIBPATH=`pkg-config monodevelop --variable libdir`
52 HAVE_MAGIC=maybe
54 AC_ARG_ENABLE(magic, 
55         [  --disable-magic         disable libmagic file attributes],
56         HAVE_MAGIC=no,
59 if test "x$HAVE_MAGIC" = "xmaybe"; then 
60   AC_CHECK_LIB(magic, magic_open, HAVE_MAGIC=yes, HAVE_MAGIC=no) 
63 if test "x$prefix" = "xNONE"; then 
64          prefix=/usr/local
67 # assume on windows for now
68 if test "x$MONO_VERSION" = "x"; then 
69          MONO_VERSION=csc-2.0
72 HAVE_SYNTAX_HIGHLIGHTING=no
73 if test "x$HAVE_GNOME_VFS" = "xyes" && test "x$HAVE_GTK_SOURCEVIEW" = "xyes"; then
74   HAVE_SYNTAX_HIGHLIGHTING=yes
77 echo "prefix=$prefix" > build/config.make
78 echo "exec_prefix=\${prefix}" >> build/config.make
79 echo "mono_libdir=\${exec_prefix}/lib" >> build/config.make
80 echo "RUNTIME=mono" >> build/config.make
81 echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> build/config.make
82 echo "MONO_VERSION=$MONO_VERSION" >> build/config.make
83 echo "MONODEVELOP_LIBPATH=$MD_LIBPATH" >> build/config.make
84 echo "MCS_FLAGS=-debug+" >> build/config.make
85 echo "HAVE_GTK=$HAVE_GTK" >> build/config.make
86 echo "HAVE_SYNTAX_HIGHLIGHTING=$HAVE_SYNTAX_HIGHLIGHTING" >> build/config.make
87 echo "HAVE_ATLEAST_GTK_210=$HAVE_ATLEAST_GTK_210" >> build/config.make
88 echo "HAVE_MAGIC=$HAVE_MAGIC" >> build/config.make
89 echo "HAVE_MONODEVELOP=$HAVE_MD" >> build/config.make
90 echo "HAVE_GNOME_KEYRING=$HAVE_GNOME_KEYRING" >> build/config.make
91 echo "HAVE_DOC_TOOLS=$HAVE_DOC_TOOLS" >> build/config.make
92 echo "HAVE_MSLIBS=$HAVE_MSLIBS" >> build/config.make
94 AC_CONFIG_FILES([
95   tools/opentf/tf.sh
96   tools/wit/wit.sh
97         tfs.spec
100 AC_OUTPUT
102 echo
103 echo "Configuration Summary"
104 echo "----------------------------------"
105 echo 
106 echo "     File Type Support: " $HAVE_MAGIC
107 echo "   Man Page Generation: " $HAVE_DOC_TOOLS
108 echo "     MonoDevelop Addin: " $HAVE_MD
109 echo " Gnome Keyring Support: " $HAVE_GNOME_KEYRING
110 echo "           Gui Support: " $HAVE_GTK
111 echo "   Syntax Highlighting: " $HAVE_SYNTAX_HIGHLIGHTING
112 echo 
114 if test "${enable_highlight+set}" = set; then
115   if test "x$HAVE_SYNTAX_HIGHLIGHTING" = "xno"; then
116           echo Note: install libgnome-vfs2.0-cil and libgtksourceview2.0-cil
117           echo       for syntax highlighting support in the "explore" command
118   fi
121 if test "x$HAVE_MAGIC" = "xno"; then
122   echo Note: Team Foundation does not natively track file attributes.
123         echo       Install libmagic on debian-based systems, or file-devel on suse-based
124         echo       for automagic file attribute support.
125   echo
128 if test "x$HAVE_DOC_TOOLS" = "xno"; then
129   echo Note: install asciidoc and xmlto for man page generation.
130         echo