Updated all pot/po files (via make update-po). Added new menus to rcstrings.c.
[geda-gaf/peter-b.git] / docs / configure.ac
blob452f50f6d811377520e36b45833a2f01cb80f29d
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT
3 AC_CONFIG_SRCDIR([wiki/index.html])
4 AC_PREREQ(2.54)
6 DOTTED_VERSION=1.1.0
7 DATE_VERSION=20070705
8 PACKAGE=geda-docs
9 echo Configuring $PACKAGE version $DOTTED_VERSION.$DATE_VERSION
11 # Init automake
12 AM_INIT_AUTOMAKE($PACKAGE, $DOTTED_VERSION, no-define)
14 # Check for programs.
16 # Checks for libraries.
18 # Checks for header files.
20 # Checks for typedefs, structures, and compiler characteristics.
22 # Checks for library functions.
25 # Other variables
28 # Expand the prefix variable
29 # I don't like the way this is done, but it works (I hope).
30 if eval "test x$prefix = xNONE"; then
31  dprefix=$ac_default_prefix
32 else
33  dprefix=$prefix
36 gedadocdir=$dprefix/share/doc/geda-doc
37 # --with-docdir : tells where to store documentation if not default
38 AC_ARG_WITH(docdir,
39     [  --with-docdir      Where to store documentation if not default.],
40         gedadocdir=$withval)
41 expandgedadocdir=`echo $gedadocdir`
42 GEDADOCDIR=$expandgedadocdir
43 AC_SUBST(GEDADOCDIR)
45 AC_SUBST(DATE_VERSION)
46 AC_SUBST(DOTTED_VERSION)
48 AC_DEFUN([GEDA_DECLARE_DOCS],
49  [
50         data$1=`find $srcdir/$1 -name \* -print \
51                                  | sed "s%\.\./wiki/%%" \
52                                  | sed "s%\.\./wiki%%" \
53                                  | sed "s%\./wiki/%%" \
54                                  | sed "s%\./wiki%%" \
55                                  | grep -v Makefile | grep -v ChangeLog \
56                                  | grep -v CVS | grep -v "\\.cvsignore" \
57                                  | grep -v README \
58                                  | grep -v "\\~" | grep -v "\\.orig"`
59         data$1=`echo $data$1`
60         AC_SUBST(data$1)
61  ])
63 GEDA_DECLARE_DOCS(wiki)
65 AC_CONFIG_FILES([Makefile 
66                  toplevel/Makefile 
67                  toplevel/gedadocs.html 
68                  scripts/Makefile 
69                  wiki/Makefile 
70                  wiki/_detail/Makefile
71                  wiki/_media/Makefile
72                  wiki/lib/exe/Makefile
73                  wiki/lib/images/interwiki/Makefile
74                  wiki/lib/images/fileicons/Makefile
75                  wiki/lib/images/smileys/Makefile
76                  wiki/lib/images/Makefile
77                  wiki/lib/tpl/default/images/Makefile
78                  wiki/lib/tpl/default/Makefile
79                  wiki/lib/tpl/Makefile
80                  wiki/lib/plugins/note/images/Makefile
81                  wiki/lib/plugins/note/Makefile
82                  wiki/lib/plugins/definitionlist/images/Makefile
83                  wiki/lib/plugins/definitionlist/Makefile
84                  wiki/lib/plugins/Makefile
85                  wiki/lib/Makefile ])
86 AC_OUTPUT
88 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
90 AC_MSG_RESULT([
91 ** Configuration summary for $PACKAGE $DOTTED_VERSION.$DATE_VERSION:
93    documentation directory:          $expandedGEDADOCDIR