"Fossies" - the Fresh Open Source Software Archive 
Member "libextractor-1.11/m4/abi-gsf.m4" (20 Jun 2018, 1952 Bytes) of package /linux/privat/libextractor-1.11.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # start: abi/ac-helpers/abi-gsf.m4
2 #
3 # Copyright (C) 2005 Christian Neumair
4 #
5 # This file is free software; you may copy and/or distribute it with
6 # or without modifications, as long as this notice is preserved.
7 # This software is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even
9 # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 # PURPOSE.
11 #
12 # The above license applies to THIS FILE ONLY, the GNUnet code
13 # itself may be copied and distributed under the terms of the GNU
14 # GPL, see COPYING for more details
15 #
16 # Usage: ABI_GSF
17
18 # Check for gsf
19
20 AC_DEFUN([ABI_GSF], [
21
22 test_gsf=true
23 have_gsf=false
24
25 test_gsf_gnome=true
26 have_gsf_gnome=false
27
28 AC_ARG_ENABLE(gsf,[ --disable-gsf Turn off gsf], [
29 if test "x$enableval" = "xno"; then
30 test_gsf=false
31 fi
32 ])
33
34 AC_ARG_ENABLE(gsf-gnome,[ --disable-gnome Turn off gsf-gnome], [
35 if test "x$enableval" = "xno"; then
36 test_gsf_gnome=false
37 fi
38 ])
39
40 if test "x$test_gsf" = "xtrue" ; then
41 PKG_CHECK_MODULES(GSF,[libgsf-1 >= 1.10], [
42 have_gsf=true
43 GSF_CFLAGS="$GSF_CFLAGS -DHAVE_GSF"
44 ],
45 [
46 have_gsf=false
47 ])
48 fi
49
50 if test "x$have_gsf" = "xtrue" -a "x$test_gsf_gnome" = "xtrue" ; then
51 PKG_CHECK_MODULES(GSF_GNOME, [libgsf-gnome-1 >= 1.10], [
52 have_gsf_gnome=true
53 GSF_GNOME_CFLAGS="$GSF_GNOME_CFLAGS -DHAVE_GSF_GNOME"
54 ],
55 [
56 have_gsf_gnome=false
57 ])
58 fi
59
60 AC_SUBST(GSF_CFLAGS)
61 AC_SUBST(GSF_LIBS)
62
63 AC_SUBST(GSF_GNOME_CFLAGS)
64 AC_SUBST(GSF_GNOME_LIBS)
65
66 AM_CONDITIONAL(WITH_GSF, test "x$have_gsf" = "xtrue")
67 AM_CONDITIONAL(WITH_GSF_GNOME, test "x$have_gsf_gnome" = "xtrue")
68
69 if test "x$have_gsf_gnome" = "xtrue" ; then
70 abi_gsf_message="yes, with GNOME support"
71 AC_DEFINE(HAVE_GSF, 1, [Have gsf])
72 else if test "x$have_gsf" = "xtrue" ; then
73 abi_gsf_message="yes, without GNOME support"
74 AC_DEFINE(HAVE_GSF, 1, [Have gsf])
75 else
76 abi_gsf_message="no"
77 AC_DEFINE(HAVE_GSF, 0, [Have gsf])
78 fi
79 fi
80
81 ])