source: ether_eccad/trunk/API_EXTRACT/configure.ac @ 68

Last change on this file since 68 was 68, checked in by cbipsl, 14 years ago

commit v1 eccad

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4# Init
5
6        AC_PREREQ(2.5)
7        AC_INIT([eccad_bd_api],[1.2],[Renaud.Bodichon@ipsl.jussieu.fr])
8        AC_CONFIG_SRCDIR([src/eccad.c])
9        AM_INIT_AUTOMAKE
10        AC_SUBST(VERSION)
11        AC_CONFIG_HEADER([config.h])
12        AC_CONFIG_FILES([Makefile
13                             src/Makefile])
14                             
15        AC_ARG_WITH(blankline,
16                                AS_HELP_STRING([ ],
17                                           [ ]))
18
19# Includes
20
21        m4_include(ac-macros/pgsql.m4)
22        m4_include(ac-macros/libxml2.m4)
23
24
25# Checks for programs.
26
27        AC_PROG_LIBTOOL
28        AC_PROG_CC
29        AC_PROG_INSTALL
30        AC_PROG_MAKE_SET
31
32
33# Checks for libraries.
34
35    LDFLAGS="-L/usr/lib64 $LDFLAGS"
36     
37        AC_LIB_PGSQL([
38                LIBS="$LIBS $WZD_PGSQL_LIBS"
39                INCLUDES="$LIBS $WZD_PGSQL_INCLUDES"
40                ],[
41                echo "*** Use --with-pgsql to define an alternate location of PostgreSQL headers and libs."
42                AC_MSG_ERROR([libpq is required.])
43                ])
44         AM_PATH_XML2([2.0.0],[
45                LIBS="$LIBS $XML_LIBS"
46                CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
47                ],[
48                echo ""
49                echo "*** You can use the --with-xml2-config switch to specify the path to the xml2-config program."
50                AC_MSG_ERROR([libxml2 is required.])
51                ])
52
53# Checks for typedefs, structures, and compiler characteristics.
54
55        AC_HEADER_STDBOOL
56        AC_C_CONST
57        AC_C_INLINE
58
59# le chemin des fichiers de proprietes (ie dtd)
60        DATA_PATH="/home/eccad/eccad2.0.0/src/API_EXTRACT/example"
61        AC_SUBST(DATA_PATH)
62
63# le chemin des fichiers resultats
64        RESULT_PATH="/tmp"
65        AC_SUBST(RESULT_PATH)
66
67
68
69# Checks for library functions.
70
71        AC_CHECK_FUNCS([pow strdup])
72        AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.