configure.ac 4.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ------------------------------------------------------------------
# Copyright (C) 2004 INRA <eugene@ossau.toulouse.inra.fr>
#
# This program is open source; you can redistribute it and/or modify
# it under the terms of the Artistic License (see LICENSE file).
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
#
# You should have received a copy of Artistic License along with
# this program; if not, please see http://www.opensource.org
#
# $Id$
# ------------------------------------------------------------------
# File:     configure.ac
# Contents: compilation configuration
# ------------------------------------------------------------------

# Autoconf requirements
AC_INIT(, , [EuGene Team eugene@ossau.toulouse.inra.fr])
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
sallet's avatar
v4.3    
sallet committed
24
AM_INIT_AUTOMAKE(eugene, 4.3)
25
26
27
28
29
30
31
32

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_AWK
AC_PROG_LN_S 
AC_PROG_RANLIB

33

34
# Checks for libraries.
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
AC_CHECK_LIB([c], [main], [], [ \
	echo "Error! You need to have the c library to compile eugene."
        exit -1
        ])
AC_CHECK_LIB([dl], [main], [], [ \
	echo "Error! You need to have the dl library to compile eugene."
        exit -1
        ])
AC_CHECK_LIB([gcc], [main], [], [ \
	echo "Error! You need to have the gcc library to compile eugene."
        exit -1
        ])
AC_CHECK_LIB([gd], [main], [], [ \
	echo "Error! You need to have the gd library (>= 2.0) to compile eugene."
	echo "See http://www.boutell.com/gd/http/ for a download."
        exit -1
        ])
AC_CHECK_LIB([m], [main], [], [ \
	echo "Error! You need to have the m library to compile eugene."
        exit -1
        ])
AC_CHECK_LIB([png], [main], [], [ \
	echo "Error! You need to have the png library for the gd library."
        exit -1
        ])
AC_CHECK_LIB([z], [main], [], [ \
	echo "Error! You need to have the z library for the gd library."
        exit -1
        ])
64
65
66
67
68
69
70
71
72
73
74
75
76
77

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([netdb.h stdlib.h string.h strings.h unistd.h values.h getopt.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_STRUCT_TM
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
78
AC_CHECK_FUNCS([floor pow sqrt strchr strspn uname getopt])
79

80
81
82
83
#check for OS
AM_CONDITIONAL(SOLARIS_OS, test "$OSTYPE" = solaris)
AM_CONDITIONAL(MACOS_OS, test "$OSTYPE" = darwin)

84
85
86
87
88
89
90
91
92
AC_ARG_ENABLE([transl_table_6],
     [  --enable-transl_table_6    Use codon translation table number 6],
     [case "${enableval}" in
       yes) transl_table_6=true ;;
       no)  transl_table_6=false ;;
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-transl_table_6]) ;;
     esac],[transl_table_6=false])
     AM_CONDITIONAL([TRANSL_TABLE_6], [test x$transl_table_6 = xtrue])

93

94
95
96
97
98
99
100
101
102
AC_CONFIG_FILES([ 
	Makefile
	README
	src/Makefile
	src/GDIF/Makefile
	src/Parametrization/Makefile
	src/SensorPlugins/Makefile
	src/SensorPlugins/0_SensorTk/Makefile
	src/SensorPlugins/0_SensorTk/GetData/Makefile
103
	src/SensorPlugins/AnnotaStruct/Makefile
104
105
106
107
108
109
110
111
112
113
114
115
116
117
	src/SensorPlugins/BlastX/Makefile
	src/SensorPlugins/Est/Makefile
	src/SensorPlugins/EuStop/Makefile
	src/SensorPlugins/FrameShift/Makefile
	src/SensorPlugins/GCPlot/Makefile
	src/SensorPlugins/GFF/Makefile
	src/SensorPlugins/GSplicer/Makefile
	src/SensorPlugins/Homology/Makefile
	src/SensorPlugins/IfElse/Makefile
	src/SensorPlugins/MarkovConst/Makefile
	src/SensorPlugins/MarkovIMM/Makefile
	src/SensorPlugins/MarkovIMM/GetData/Makefile
	src/SensorPlugins/MarkovProt/Makefile
	src/SensorPlugins/MarkovProt/GetData/Makefile
118
	src/SensorPlugins/NcRNA/Makefile
119
120
	src/SensorPlugins/NG2/Makefile
	src/SensorPlugins/NStart/Makefile
121
	src/SensorPlugins/NStretch/Makefile
122
	src/SensorPlugins/PatConst/Makefile
Philippe Bardou's avatar
Philippe Bardou committed
123
	src/SensorPlugins/PepSignal/Makefile
124
	src/SensorPlugins/ProStart/Makefile
125
	src/SensorPlugins/Plotter/Makefile
126
	src/SensorPlugins/QualData/Makefile
127
	src/SensorPlugins/Repeat/Makefile
128
	src/SensorPlugins/RibosomalFrameShift/Makefile
129
130
131
132
133
	src/SensorPlugins/Riken/Makefile
	src/SensorPlugins/SMachine/Makefile
	src/SensorPlugins/SPred/Makefile
	src/SensorPlugins/SpliceWAM/Makefile
	src/SensorPlugins/StartWAM/Makefile
Erika Sallet's avatar
Erika Sallet committed
134
        src/SensorPlugins/SignalWAM/Makefile
135
136
	src/SensorPlugins/Tester/Makefile
	src/SensorPlugins/Transcript/Makefile
137
138
139
140




Marie-Josee Cros's avatar
   
Marie-Josee Cros committed
141
	plugins/Makefile
142
143
144
145
	doc/Makefile
])

AC_OUTPUT