aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-xml-check.m4
blob: 1caad1009fba8076a0a8a9549278420b0c0dac82 (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
dnl
dnl GNOME_XML_HOOK (script-if-xml-found, failflag)
dnl
dnl If failflag is "failure", script aborts due to lack of XML
dnl 
dnl Check for availability of the libxml library
dnl the XML parser uses libz if available too
dnl

AC_DEFUN([GNOME_XML_HOOK],[
    AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
    if test "$GNOME_CONFIG" = no; then
        if test x$2 = xfailure; then
            AC_MSG_ERROR(Could not find gnome-config)
        fi
    fi
    GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml`
    AC_SUBST(GNOME_XML_CFLAGS)
    AC_CHECK_LIB(xml, xmlNewDoc, [
        $1
        GNOME_XML_LIB=`$GNOME_CONFIG --libs xml`
    ], [
        if test x$2 = xfailure; then 
            AC_MSG_ERROR(Could not link sample xml program)
        fi
    ], `$GNOME_CONFIG --libs xml`)
    AC_SUBST(GNOME_XML_LIB)
])

AC_DEFUN([GNOME_XML_CHECK], [
    GNOME_XML_HOOK([],failure)
])
=90259cbaa7566f1f9df60d5da5ae7173bedeae22'>cling
Commit message (Expand)AuthorAgeFilesLines
* Add missing USES={gnome,php,sdl} to the resttobik2019-11-081-2/+2
* devel/google{test,mock}: update to 1.10.0jbeich2019-10-051-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2019-07-271-1/+1
* Change cmake default behaviour to outsource.tcberner2018-12-261-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-12-121-1/+1
* devel/google{test,mock}: update to 1.8.1jbeich2018-09-011-0/+1
* lang/cling: Move `LIB_DEPENDS` to the right place according to porters-handbookmmokhi2018-08-161-2/+3
* lang/cling: Update port to new release 0.5-2018-08-13mmokhi2018-08-157-404/+1439
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-07-301-1/+1
* Re-try ports affected by bug 193528 on powerpc* after r449590jbeich2017-12-121-1/+0
* For ports that are marked BROKEN on armv6, and also fail to build onlinimon2017-11-301-0/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2017-09-111-1/+1
* Mark some ports failing on power64. In cases where the error messagelinimon2017-05-231-0/+3
* Fix shebangs.tcberner2017-05-171-2/+6
* Bump PORTREVISIONs for ports depending on the canonical version of GCC andgerald2017-04-011-1/+1
* Updating the ports I maintain to my FreeBSD.org address.mmokhi2017-02-111-1/+1