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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
dnl $Id$
dnl An autoconf script to automatically configure TAO.
dnl Process this file with autoconf to produce a configure script.
dnl Statically (i.e. at autoconf-time) determine the version of TAO.
dnl This is necessary since the version argument to AC_INIT is
dnl supposed to be a static value, not a dynamic (e.g. a shell
dnl variable).
dnl
dnl Note that this macro removes the newline output by the M4
dnl "esyscmd" built-in. Unless you understand what you're doing,
dnl particularly with M4, do not modify this macro definition.
define([TAO_VERSION], patsubst(esyscmd(grep TAO_VERSION tao/Version.h | sed 's/.*\"\(.*\)\".*/\1/'), [
]))dnl remove newline ending every `esyscmd' answer
AC_INIT([TAO],
TAO_VERSION,
[tao-bugs@cs.wustl.edu],
[tao])
AC_REVISION([$Id$])
AC_COPYRIGHT([ACE(TM) and TAO(TM) are copyrighted by Douglas C. Schmidt and
his research group at Washington University, University of California,
Irvine, and Vanderbilt University Copyright (c) 1993-2004, all rights
reserved. Since ACE and TAO are open-source, free software, you are
free to use, modify, and distribute the ACE and TAO source code and
object code produced from the source, as long as you include this
copyright statement along with code built using ACE and TAO.
Please see the file `COPYING' in the top level ACE directory for
additional details.])
dnl Require GNU Autoconf 2.58 or better. Previous versions did not
dnl correctly support HP-UX.
AC_PREREQ([2.58])
AC_CONFIG_SRCDIR([tao/TAO_Internal.cpp])
AC_CONFIG_AUX_DIR([../aux_config])
AC_CONFIG_MACRO_DIR([../m4])
dnl Check what platform we are running on.
AC_CANONICAL_TARGET([])
dnl Initialize GNU Automake, and require Automake 1.7 or better.
AM_INIT_AUTOMAKE([1.7])
dnl Add maintainer mode option to the option list.
dnl AM_MAINTAINER_MODE
dnl The maintainer of this configure script.
ACE_CONFIGURE_MAINTAINER='tao-users@cs.wustl.edu'
dnl Until autoconf support in ACE is complete, prevent this script
dnl from running unless the user explictly forces the configure script
dnl to run using the "--enable-maintainer-mode" configure script
dnl option.
dnl if test $USE_MAINTAINER_MODE != yes; then
dnl AC_MSG_ERROR([
dnl ACE autoconf support is currently disabled by default since it is
dnl still under development. Please use the stock ACE build procedure
dnl detailed in the file \`ACE-INSTALL.html'.
dnl
dnl If you wish to experiment with ACE's autoconf support then use the
dnl \"--enable-maintainer-mode\" configure script option to enable
dnl autoconf support. For more details see the file
dnl \`ACE-configuration.txt'.])
dnl fi dnl test $USE_MAINTAINER_MODE != yes
dnl Should we use "egrep" or "grep -E"? This sets the "$EGREP" shell
dnl variable.
AC_PROG_EGREP
dnl If we are configuring in a CVS controlled directory then don't
dnl continue any further. The idea is to prevent automatically
dnl generated files from being checked into the repository. This
dnl will prevent accidental overwrites of ACE's current Makefiles by
dnl the automatically generated ones, for example.
dnl ACE_CHECK_FOR_CVS_DIR
dnl Prevent the configure script from continuing any further if
dnl configuration is being performed in the top-level directory. The
dnl idea is to prevent files generated during configuration and build
dnl from overwriting the stock files of the same name.
ACE_CHECK_TOP_SRCDIR
dnl Prepare the `tao/config.h.in' header template.
ACE_PREP_CONFIG_HEADER
dnl Allow the standard program name transformations.
dnl We probably don't need AC_ARG_PROGRAM any longer since AM_INIT_AUTOMAKE
dnl handles this functionality. -- Ossama
dnl AC_ARG_PROGRAM
dnl Generate a header file with all settings.
AC_CONFIG_HEADERS([tao/config.h])
dnl Move before the AC_ARG_ENABLE stuff to prevent autoconf complaints.
dnl This is a bit messy but it makes life easier for me.
dnl -Ossama
dnl
dnl SECTION: checks for programs
dnl
dnl Check if system supports "#! /bin/sh" line in scripts
AC_SYS_INTERPRETER
dnl Check the C compiler and preprocessor.
dnl AC_PROG_CC
dnl AC_PROG_CPP
dnl AC_PROG_CC_C_O
dnl Check the C++ compiler and preprocessor.
AC_PROG_CXX
AC_PROG_CXXCPP
dnl Configure libtool
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
ACE_CHECK_THREADS
dnl Set the test language as C++
AC_LANG([C++])
dnl If we are cross compiling disable certain things in the Makefiles.
AM_CONDITIONAL([ACE_CROSS_COMPILED], [test X$cross_compiling = Xyes])
dnl Look for the best awk-style program available.
AC_PROG_AWK
dnl Parse the version information argument.
dnl Note that "TAO_VERSION" is an m4 macro.
tao_version_temp=TAO_VERSION
tao_save_ifs="$IFS"; IFS='.'
set dummy $tao_version_temp 0 0 0
IFS="$tao_save_ifs"
TAO_MAJOR=$2
TAO_MINOR=$3
TAO_BETA=$4
AC_SUBST([TAO_MAJOR])
AC_SUBST([TAO_MINOR])
AC_SUBST([TAO_BETA])
AM_CONDITIONAL(TEMPLATES_REQUIRE_SOURCE, false)
dnl
dnl SECTION 16: AC_CONFIG_FILES([FILE...])
dnl
dnl
dnl We can finally create all the files listed here; Makefile is
dnl created from Makefile.in, etc. Top-level Makefiles should be
dnl created first.
AC_CONFIG_FILES([
tao-config
tao-config.1
taoConf.sh
Makefile
TAO_IDL/Makefile
tao/Makefile
orbsvcs/Makefile
orbsvcs/PSS/Makefile
orbsvcs/TAO_Service/Makefile
])
dnl Note that the "TAO_VERSION" in the message below is an M4 macro
dnl that expands to the version of TAO being configured.
AC_CONFIG_COMMANDS([default],[
echo ""
echo "Configuration of TAO TAO_VERSION is now complete."
echo ""
],[])
AC_OUTPUT
|