aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
blob: d3f83734d4f8faad53ab61de2e279147e5b75611 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# evolution/acinclude.m4
# shared configure.in hacks between Evolution and Connector


# EVO_PURIFY_SUPPORT
# Add --enable-purify. If the user turns it on, subst PURIFY and set
# the automake conditional ENABLE_PURIFY
AC_DEFUN([EVO_PURIFY_SUPPORT], [
    AC_ARG_ENABLE(purify, 
    [  --enable-purify=[no/yes]      Enable support for building executables with Purify.],,enable_purify=no)
    AC_PATH_PROG(PURIFY, purify, impure)
    AC_ARG_WITH(purify-options, [  --with-purify-options=OPTIONS      Options passed to the purify command line (defaults to PURIFYOPTIONS variable).])
    if test "x$with_purify_options" = "xno"; then
        with_purify_options="-always-use-cache-dir=yes -cache-dir=/gnome/lib/purify"
    fi
    if test "x$PURIFYOPTIONS" = "x"; then
        PURIFYOPTIONS=$with_purify_options
    fi
    AC_SUBST(PURIFY)
    AM_CONDITIONAL(ENABLE_PURIFY, test "x$enable_purify" = "xyes" -a "x$PURIFY" != "ximpure")
    PURIFY="$PURIFY $PURIFYOPTIONS"
])


# EVO_LDAP_CHECK(default)
# Add --with-openldap and --with-static-ldap options. --with-openldap
# defaults to the given value if not specified. If LDAP support is
# configured, HAVE_LDAP will be defined and the automake conditional
# ENABLE_LDAP will be set. LDAP_CFLAGS and LDAP_LIBS will be set
# appropriately.
AC_DEFUN([EVO_LDAP_CHECK], [
    default="$1"

    AC_ARG_WITH(openldap,     [  --with-openldap=[no/yes/PREFIX]      Enable LDAP support in evolution])
    AC_ARG_WITH(static-ldap,  [  --with-static-ldap=[no/yes]          Link LDAP support statically into evolution ])
    AC_CACHE_CHECK([for OpenLDAP], ac_cv_with_openldap, ac_cv_with_openldap="${with_openldap:=$default}")
    case $ac_cv_with_openldap in
    no|"")
        with_openldap=no
        ;;
    yes)
        with_openldap=/usr
        ;;
    *)
        with_openldap=$ac_cv_with_openldap
        LDAP_CFLAGS="-I$ac_cv_with_openldap/include"
        LDAP_LDFLAGS="-L$ac_cv_with_openldap/lib"
        ;;
    esac

    if test "$with_openldap" != no; then
        AC_DEFINE(HAVE_LDAP,1,[Define if you have LDAP support])

        case $with_static_ldap in
        no|"")
            with_static_ldap=no
            ;;
        *)
            with_static_ldap=yes
            ;;
        esac

        AC_CACHE_CHECK(if OpenLDAP is version 2.x, ac_cv_openldap_version2, [
            CPPFLAGS_save="$CPPFLAGS"
            CPPFLAGS="$CPPFLAGS $LDAP_CFLAGS"
            AC_EGREP_CPP(yes, [
                #include "ldap.h"
                #if LDAP_VENDOR_VERSION > 20000
                yes
                #endif
            ], ac_cv_openldap_version2=yes, ac_cv_openldap_version2=no)
            CPPFLAGS="$CPPFLAGS_save"
        ])
        if test "$ac_cv_openldap_version2" = no; then
            AC_MSG_ERROR(evolution requires OpenLDAP version >= 2)
        fi

        AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="-lresolv")
        AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
        AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
        AC_CHECK_LIB(lber, ber_get_tag, [
            if test "$with_static_ldap" = "yes"; then
                LDAP_LIBS="$with_openldap/lib/liblber.a $LDAP_LIBS"

                # libldap might depend on OpenSSL... We need to pull
                # in the dependency libs explicitly here since we're
                # not using libtool for the configure test.
                if test -f $with_openldap/lib/libldap.la; then
                    LDAP_LIBS="`. $with_openldap/lib/libldap.la; echo $dependency_libs` $LDAP_LIBS"
                fi
            else
                LDAP_LIBS="-llber $LDAP_LIBS"
            fi
            AC_CHECK_LIB(ldap, ldap_open, [
                    if test $with_static_ldap = "yes"; then
                        LDAP_LIBS="$with_openldap/lib/libldap.a $LDAP_LIBS"
                    else
                        LDAP_LIBS="-lldap $LDAP_LIBS"
                    fi],
                LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)
            LDAP_LIBS="$LDAP_LDFLAGS $LDAP_LIBS"
        ], LDAP_LIBS="", $LDAP_LDFLAGS $LDAP_LIBS)

        if test -z "$LDAP_LIBS"; then
            AC_MSG_ERROR(could not find OpenLDAP libraries)
        fi

        AC_SUBST(LDAP_CFLAGS)
        AC_SUBST(LDAP_LIBS)
    fi
    AM_CONDITIONAL(ENABLE_LDAP, test $with_openldap != no)
])


# EVO_PTHREAD_CHECK
AC_DEFUN([EVO_PTHREAD_CHECK],[
    PTHREAD_LIB=""
    AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
        [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
            [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
            [AC_CHECK_LIB(pthread, __pthread_attr_init_system, PTHREAD_LIB="-lpthread",
                [AC_CHECK_FUNC(pthread_create)]
            )]
            )]
        )]
    )
    AC_SUBST(PTHREAD_LIB)
    AC_PROVIDE([EVO_PTHREAD_CHECK])
])
dnl -*- mode: autoconf -*-

# serial 1

dnl Usage:
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
AC_DEFUN([GTK_DOC_CHECK],
[
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
  dnl for overriding the documentation installation directory
  AC_ARG_WITH(html-dir,
    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
    [with_html_dir='${datadir}/gtk-doc/html'])
  HTML_DIR="$with_html_dir"
  AC_SUBST(HTML_DIR)

  dnl enable/disable documentation building
  AC_ARG_ENABLE(gtk-doc,
    AC_HELP_STRING([--enable-gtk-doc],
                   [use gtk-doc to build documentation [default=no]]),,
    enable_gtk_doc=no)

  have_gtk_doc=no
  if test -z "$PKG_CONFIG"; then
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  fi
  if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
    have_gtk_doc=yes
  fi

  dnl do we want to do a version check?
ifelse([$1],[],,
  [gtk_doc_min_version=$1
  if test "$have_gtk_doc" = yes; then
    AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
    if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
      AC_MSG_RESULT(yes)
    else
      AC_MSG_RESULT(no)
      have_gtk_doc=no
    fi
  fi
])
  if test x$enable_gtk_doc = xyes; then
    if test "$have_gtk_doc" != yes; then
      enable_gtk_doc=no
    fi
  fi

  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
])
ame port news/pan2 -> news/panpav2006-05-281-1/+1 * - Rename port misc/gnomeuserdocs2 -> misc/gnome-user-docspav2006-05-282-2/+2 * games/gnomegames2-extra-data -> games/gnome-games-extra-datamezz2006-05-281-1/+1 * - Rename portspav2006-05-281-1/+1 * games/gnomegames2 -> games/gnome-gamesmezz2006-05-281-1/+1 * devel/pkgconfig -> devel/pkg-configmezz2006-05-282-2/+2 * devel/libgtop2 -> devel/libgtopmezz2006-05-282-2/+2 * devel/bugbuddy -> devel/bug-buddymezz2006-05-281-1/+1 * deskutils/gnomeutils2 -> deskutils/gnome-utilsmezz2006-05-282-2/+2 * audio/gnomemedia2 -> audio/gnome-mediamezz2006-05-282-2/+2 * gnomeaudio2 -> gnome-audiomezz2006-05-282-2/+2 * Rename this ports to use the real vendor package name. The advantage of thismezz2006-05-283-3/+3 * Rename this ports to use the real vendor package name. The advantage of thismezz2006-05-281-1/+1 * Update to 2.14.2.marcus2006-05-273-4/+7 * Update to 2.14.7.marcus2006-05-273-16/+9 * - Add WITH_MINI_COMMANDER to OPTIONS, off by defaultahze2006-05-274-0/+106 * Fix the build with Jikes.mezz2006-05-271-0/+4 * Integrate patch written by Andreas Wiese <bzimage (at) gmx.net> fromthierry2006-05-266-8/+133 * Remove expired leaf port:vd2006-05-2611-266/+0 * - Use MASTER_SITE_BERLIOSpav2006-05-261-2/+3 * Update to 3.9.0vs2006-05-244-13/+54 * Mark broken on 4.xedwin2006-05-221-0/+4 * BROKEN: Configure failskris2006-05-221-0/+2 * - Update to 2.9.3. [1]nobutaka2006-05-216-44/+94 * - Mark BROKEN on FreeBSD 4.Xpav2006-05-211-1/+7 * Replace MASTER_SITE with a working oneerwin2006-05-191-1/+1 * - Add pkg-descrahze2006-05-185-0/+15 * Don't chgrp the /var/gdm directory to gdm during the instal phase since themarcus2006-05-171-3/+10 * Make compliant with ${CC}.lawrance2006-05-161-1/+2 * portlint:mezz2006-05-162-286/+286 * Add USE_GETTEXT to appease portlint.mezz2006-05-163-0/+3 * Allow notification icons which use a hacked eggtrayicon.c to have ajylefort2006-05-156-2/+244 * Update mastersites.lawrance2006-05-144-17/+25 * Update to 2.2.1.lawrance2006-05-142-5/+4 * Use the correct configure option to disable PAM.marcus2006-05-141-1/+1 * Allow PAM support to be enabled in gnome-screensaver. g-s will use themarcus2006-05-141-2/+8 * - Update to 1.8.3sat2006-05-143-4/+6 * Add deprecated libXp. This fixes some linux ports.netchild2006-05-139-6/+24 * Remove USE_REINPLACE from categories starting with Xedwin2006-05-1352-58/+0 * Fix packaging with JDK 1.5.marcus2006-05-131-0/+1 * Update to 2.14.6.marcus2006-05-136-54/+9 * Move the gnomepanel programming reference to the gnomepanel-reference port.jylefort2006-05-117-46/+33 * Move the gnomedesktop programming reference to thejylefort2006-05-117-34/+31 * - Correct brazilian portuguese entrypav2006-05-111-1/+1 * Move the libgnome programming reference to the libgnome-reference port.jylefort2006-05-104-34/+17 * Fix rebroken printscreen key in keymaps.lesi2006-05-092-1/+20 * Update to 1.17.3bvs2006-05-092-4/+4 * update to 1.0.1maho2006-05-092-5/+4 * - Update to 1.8.2sat2006-05-084-35/+24 * fireflies is a extention of xscreensaver.pav2006-05-088-0/+101 * - Remove CVS tags and blank lines from distinfo file in unmaintained portssem2006-05-081-1/+0 * Correct a typo in detecting FreeBSD sys source.marcus2006-05-072-30/+34 * - Update to 0.66vs2006-05-052-5/+5 * Mark as broken (easy plist problem, but this port is scheduled for removal).netchild2006-05-041-0/+1 * Update to 2.14.5.marcus2006-05-043-116/+7 * etc/ld.so.conf.d seems to be something new in FC4, at least it doesn'tnetchild2006-05-046-0/+9 * - Switch lua dependency to lang/lua50pav2006-05-032-2/+2 * Fix a crash that can be triggered when searching through man pages.marcus2006-05-032-0/+12 * Mark as deprecated, this is a very outdated version of GNOME (1.4) andnetchild2006-05-021-0/+3 * - convert to use bsd.linux-rpm.mk (get rid of include of linux-gtk/Makefile) [1]netchild2006-05-025-163/+58 * Bump PORTREVISION to get these ports to work under GNOME 2.14.marcus2006-05-021-1/+1 * This port now conflicts with the linux-xorg-libs port.netchild2006-05-011-1/+1 * Update to version 213krion2006-05-012-4/+4 * The PKGMESSAGE is no longer needed sinc D-BUS sessions are the default inmarcus2006-05-012-9/+0 * The new X.org based X11 libs port for the upcomming update of the defaultnetchild2006-05-0113-0/+1036 * Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-3092-835/+2209 * IPager is a X11 pager program that originally was developed for Fluxboxpav2006-04-304-0/+95 * - Update to 5.22pav2006-04-292-6/+4 * Reset inactive maintainer.linimon2006-04-291-1/+1 * dirrm etc/mrxt -> dirrmtry etc/mrxtedwin2006-04-291-1/+1 * Fix pkg-plistedwin2006-04-292-1/+5 * Fix build on 4.xmarkus2006-04-283-0/+100 * Add a missing USE_PERL5_RUN as some of the utility scripts are Perl-based.marcus2006-04-281-1/+2 * Add missing xscreensaver utilities.marcus2006-04-282-1/+26 * Use ftp/wget since fetch(1) is misbehaving with these MASTER_SITESlioux2006-04-282-0/+18 * Add an additional master siteehaupt2006-04-271-1/+2 * Mark port conflicting with x11/mrxvt-develedwin2006-04-271-0/+2 * [New Port] x11/mrxvt-develedwin2006-04-277-0/+155 * fix unfetchable.sanpei2006-04-241-1/+1 * - Add URLvs2006-04-231-1/+3 * Add gsynaptics 0.9.6, is a setting tool fornork2006-04-236-0/+86 * Reset sakai as maintainer due to email bouncing.linimon2006-04-232-2/+2 * Another fix for 4.X.ale2006-04-222-0/+32 * Try to fix build on 4.x.ale2006-04-212-0/+22 * Upgrade to version 4.1.16jmz2006-04-183-7/+10 * - make buildable for all versions of Xdinoex2006-04-162-46/+74 * Change maintainer email address.cperciva2006-04-161-1/+1 * - Chase gle updatepav2006-04-152-3/+4 * Maintainer mailaddress mass changeedwin2006-04-151-1/+1 * Reset kwm due to no response about email.linimon2006-04-151-1/+1 * Reset pat due to no response to email about his status.linimon2006-04-152-2/+2 * Chase tarball reroll with new email address for Valéry Febvreedwin2006-04-141-3/+3 * [PATCH] x11/temperature.app: portlintedwin2006-04-141-2/+2 * [PATCH] x11/wmdrawer: UNBREAKedwin2006-04-145-10/+16 * x11/xfedor: mark BROKEN and DEPRECIATEDedwin2006-04-142-9/+7 * x11/xkeywrap: BROKEN: does not fetchedwin2006-04-143-6/+6 * [PATCH] x11/xmangekyou: marke BORKEN: does not fetch.edwin2006-04-142-1/+4 * [PATCH] x11/xmove: small portlintedwin2006-04-141-1/+0 * [PATCH] x11/xprompt: space --> tabedwin2006-04-141-1/+1 * remove empty pkg-plistedwin2006-04-141-0/+0 * [PATCH] x11/xtset: make it PREFIX-clean; portlintedwin2006-04-143-3/+21 * - Update to 0.65.jmelo2006-04-142-6/+4 * Disable the configure check for valgrind. The valgrind instrumentationlofi2006-04-132-0/+316 * Fix a runtime error that occurs when fbpanel is compiled against GTK > 2.6.ehaupt2006-04-113-18/+12 * Update to 0.6.0 release.ale2006-04-118-48/+16 * - update to 0.5.9.1dinoex2006-04-113-15/+14 * Update to version 212krion2006-04-102-4/+4 * Use OPTIONS.vs2006-04-101-20/+21 * Fix make index error on 7-current(No more NO_MAN).nork2006-04-081-1/+0 * Add stalonetray 0.3, STAnd-aLONE system tray.novel2006-04-085-0/+64 * Fix KDE bug 124826.lofi2006-04-0814-0/+147 * Fix KDE bug 124654.lofi2006-04-084-0/+40 * fix MASTER_SITESoliver2006-04-071-1/+1 * Add gcb 0.2.8, a GTK+ tool for managing x11 cut-buffers.ehaupt2006-04-066-0/+80 * [PATCH] x11/tkXwin: UNBREAK (fix fetch)edwin2006-04-061-1/+2 * Fix a crash that could occur if any of the keyboard layouts had variantsmarcus2006-04-042-0/+14 * Upgrade to 0.9.9.026.vanilla2006-04-022-4/+4 * portlint:mezz2006-04-011-1/+0 * portlint:mezz2006-04-011-0/+1 * Enable --enable-narrowproto configure option to accommodate Xorgkrion2006-03-311-1/+2 * Update to KDE 3.5.2lofi2006-03-3157-370/+256 * Since fontconfig by default generates font cache file in directory wherelesi2006-03-302-1/+4 * Update to 2.12.2.marcus2006-03-292-4/+4 * Trim whitespace.olgeni2006-03-271-11/+11 * Fix WWW.olgeni2006-03-271-1/+1 * - Chase WWW.bland2006-03-242-2/+2 * - Use OPTIONSmnag2006-03-241-19/+22 * - Drop unfetchable MASTER_SITESmnag2006-03-241-2/+1 * Use MASTER_SITE_XORG.sanpei2006-03-241-3/+4 * Use DATADIR macrogarga2006-03-241-3/+3 * Fix WWWgarga2006-03-241-1/+1 * Use DOCSDIR macrogarga2006-03-242-4/+4 * Use DOCSDIR macrogarga2006-03-241-2/+2 * Fix WWWgarga2006-03-241-1/+1 * - Fix WWWgarga2006-03-244-4/+4 * Fix WWWgarga2006-03-244-4/+4 * Fix WWWgarga2006-03-241-1/+1 * Fix WWWgarga2006-03-241-1/+1 * - Drop unusable from mid-2004 MASTER_SITES and WWWgarga2006-03-232-4/+1 * Update to 1.2.4arved2006-03-232-5/+4 * - Remove USE_REINPLACEmnag2006-03-231-1/+0 * - Use GZIP_CMD instead of gzipmnag2006-03-221-3/+3 * - Remove dead WWW and MASTER_SITESmnag2006-03-222-5/+1 * - Update to 0.4bland2006-03-223-6/+6 * o Sanitize MASTER_SITESlioux2006-03-224-16/+15 * Repair distfile fetch variables.cy2006-03-221-2/+3 * Hopefully unbreak on FreeBSD 4.ale2006-03-224-14/+40 * - Use DATADIR macrogarga2006-03-211-10/+10 * - Some Makefile reworkgarga2006-03-211-4/+4 * - Use DATADIR macrogarga2006-03-211-2/+2 * - Fix WWWtdb2006-03-211-1/+1 * - Fix WWWtdb2006-03-212-2/+1 * - Update to 2.8tdb2006-03-212-4/+4 * - Fix MASTER_SITES, make fetchabletdb2006-03-212-4/+2 * Mark BROKEN on FreeBSD 4.X.ale2006-03-212-2/+14 * Drop obsolete master site[1], fix URL to another.tg2006-03-211-2/+1 * Fix composed character handling (broken as described in ports/78234).olgeni2006-03-215-1/+106 * Update to version 211krion2006-03-212-4/+4 * - Xorg 6.9 uses the .so extension instead of .a for the server extensions.danfe2006-03-212-6/+6 * Add libsynaptics 0.14.4d, a library to access the Xorg/XFree86 Synapticsmarkus2006-03-205-0/+47 * Upgrade to 0.9.9.025.vanilla2006-03-182-4/+4 * - Correct path to login(1)ehaupt2006-03-162-2/+2 * Upgrade to 0.9.9.024.vanilla2006-03-162-5/+5 * Update to 2.2.marcus2006-03-162-8/+9 * Update to version 210krion2006-03-162-29/+4 * Remove expired leaf ports:vd2006-03-1517-438/+0 * Repetitive Strain Injury is an illness which can occur as a result ofale2006-03-159-0/+179 * Now builds againkris2006-03-081-7/+1 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-0726-22/+26 * Since fontconfig by default generates font cache files in directories wherelesi2006-03-012-2/+5 * Conversion to a single libtool environment.ade2006-02-23