-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
106 lines (83 loc) · 2.99 KB
/
configure.ac
File metadata and controls
106 lines (83 loc) · 2.99 KB
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
dnl
dnl BulkRays Copyright (C) 2013 Jean-Daniel Pauget
dnl A whole set of http tcp sessions
dnl
dnl bulkrays@nekodune.com - http://bulkrays.nekodune.com/
dnl This file is part of BulkRays
dnl
dnl BulkRays is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl BulkRays is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with BulkRays; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
dnl you can also try the web at http://www.gnu.org/
dnl
dnl
dnl bulkrays@nekodune.com - http://bulkrays.nekodune.com/
dnl Process this file with autoconf to produce a configure script.
AC_INIT([bulkrays], [0.0.6], [bulkrays@nekodune.com])
AC_CONFIG_SRCDIR([./bulkrays.hcpp])
dnl Detect the canonical host and target build environment
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
dnl quieten some complains from missing files
AM_INIT_AUTOMAKE([foreign])
dnl the magic of additionnal local m4 ?
AC_CONFIG_MACRO_DIR([m4])
dnl autoheader
AM_CONFIG_HEADER(config.h)
dnl Check for tools
AC_PROG_CC
AC_PROG_CXX
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
dnl Check for compiler environment
AC_C_CONST
dnl JD's standard minimum CFLAG
dnl CHANGED for JD's ENterGroup default nasty warnings
CFLAGS="$CFLAGS -O2 -Wall -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
dnl CXXFLAGS="$CXXFLAGS -O2 -Wall -Woverloaded-virtual -Wcast-qual -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Winline"
CXXFLAGS="$CXXFLAGS -O2 -Wall -Woverloaded-virtual -Wcast-qual -Wwrite-strings -Wredundant-decls"
dnl check for qiconn sources
AC_MSG_CHECKING(for qiconn sources)
if test -f qiconn/include/qiconn/qiconn.h ; then
INCPATH="$INCPATH -Iqiconn/include"
QICONNSOURCE=qiconn
AC_MSG_RESULT(found)
else
AC_MSG_ERROR(Unable to find qiconn sources)
fi
AC_SUBST(QICONNSOURCE)
dnl badly look for bulkrays includes ...
AC_MSG_CHECKING(for bulkrays headers)
if test -f include/bulkrays/bulkrays.h ; then
INCPATH="$INCPATH -Iinclude"
AC_MSG_RESULT(found)
else
AC_MSG_ERROR(Unable to find bulkrays hearders)
fi
dnl check for mac-osX file scheme
case "$target" in
*-apple-darwin*)
AC_DEFINE(OSXFILESCHEME, 1, a macosX file scheme flavour is used)
;;
*)
AC_DEFINE(OSXFILESCHEME, 0, a regular unix file scheme flavour is used)
;;
esac
dnl concatenation of include dirs
CFLAGS="$CFLAGS $INCPATH -DBULKRAYSVERSION=\"\\\"$PACKAGE_VERSION\\\"\""
CXXFLAGS="$CXXFLAGS $INCPATH -DBULKRAYSVERSION=\"\\\"$PACKAGE_VERSION\\\"\""
dnl Finally create all the generated files
AC_OUTPUT([
Makefile
])