File: configure.in

package info (click to toggle)
libmimedir-gnome 0.4.2-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,628 kB
  • ctags: 1,281
  • sloc: ansic: 13,376; sh: 8,876; makefile: 210
file content (113 lines) | stat: -rw-r--r-- 2,892 bytes parent folder | download | duplicates (3)
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
# $Id: configure.in,v 1.37 2006/12/19 04:18:07 pgeyleg Exp $

AC_INIT(MIME Directory Library, 0.4.2, mailto:gpe-list@linuxtogo.org, libmimedir)
AC_PREREQ(2.53)
AC_CONFIG_SRCDIR(mimedir/mimedir-attribute.c)
AM_INIT_AUTOMAKE(libmimedir, AC_PACKAGE_VERSION)
AC_PROG_INTLTOOL
AM_CONFIG_HEADER(config.h)

MIMEDIR_MAJOR_VERSION=0
MIMEDIR_MINOR_VERSION=4
MIMEDIR_MICRO_VERSION=0
AC_SUBST(MIMEDIR_MAJOR_VERSION)
AC_SUBST(MIMEDIR_MINOR_VERSION)
AC_SUBST(MIMEDIR_MICRO_VERSION)
MIMEDIR_VERSION=$MIMEDIR_MAJOR_VERSION.$MIMEDIR_MINOR_VERSION.$MIMEDIR_MICRO_VERSION

LT_CURRENT=0
LT_REVISION=0
LT_AGE=0
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)

AM_MAINTAINER_MODE

AC_PROG_CC
AC_ISC_POSIX
AM_PROG_LIBTOOL

AC_STDC_HEADERS
AC_PROG_INSTALL

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_HEADER_TIME
AC_STRUCT_TIMEZONE

dnl Check for Gnome Packages
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.0.0 gobject-2.0 >= 2.0.0)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)

GLIB_GENMARSHAL="`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`"
AC_SUBST(GLIB_GENMARSHAL)

dnl gettext Related Stuff
GETTEXT_PACKAGE=libmimedir
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name to be used by gettext.])
ALL_LINGUAS="ar az ca cs de dz el en_CA en_GB es fi fr ga hr ml ne nl pl pt pt_BR rw sr sr@Latn sv uk vi zh_CN"
AM_GLIB_GNU_GETTEXT

##################################################
# Check for gtk-doc
##################################################

AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])

if test "x$with_html_dir" = "x" ; then
  HTML_DIR='${datadir}/gtk-doc/html'
else
  HTML_DIR=$with_html_dir
fi

AC_SUBST(HTML_DIR)

AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)

gtk_doc_min_version=0.6
if $GTKDOC ; then 
    gtk_doc_version=`gtkdoc-mkdb --version`
    AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
    if perl <<EOF ; then
      exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
EOF
      AC_MSG_RESULT(yes)
   else
      AC_MSG_RESULT(no)
      GTKDOC=false
   fi
fi

dnl Let people disable the gtk-doc stuff.
AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)

if test x$enable_gtk_doc = xauto ; then
  if test x$GTKDOC = xtrue ; then
    enable_gtk_doc=yes
  else
    enable_gtk_doc=no 
  fi
fi

AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)

##################################################
# Output
##################################################

dnl Final Output
AC_CONFIG_FILES([
	Makefile
	po/Makefile.in
	mimedir/Makefile
	bin/Makefile
	docs/Makefile
	docs/reference/Makefile
	docs/reference/mimedir/Makefile
	mimedir-1.0.pc])
AC_OUTPUT