1 |
27 |
unneback |
#! /bin/sh
|
2 |
|
|
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
# Generated automatically using autoconf version 2.13
|
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
6 |
|
|
#
|
7 |
|
|
# This configure script is free software; the Free Software Foundation
|
8 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
9 |
|
|
|
10 |
|
|
# Defaults:
|
11 |
|
|
ac_help=
|
12 |
|
|
ac_default_prefix=/usr/local
|
13 |
|
|
# Any additions from configure.in:
|
14 |
|
|
ac_help="$ac_help
|
15 |
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
16 |
|
|
(and sometimes confusing) to the casual installer"
|
17 |
|
|
ac_help="$ac_help
|
18 |
|
|
--enable-debug do a debug rather than a release build"
|
19 |
|
|
ac_help="$ac_help
|
20 |
|
|
--enable-ansi do an ANSI rather than a unicode build"
|
21 |
|
|
|
22 |
|
|
# Initialize some variables set by options.
|
23 |
|
|
# The variables have the same names as the options, with
|
24 |
|
|
# dashes changed to underlines.
|
25 |
|
|
build=NONE
|
26 |
|
|
cache_file=./config.cache
|
27 |
|
|
exec_prefix=NONE
|
28 |
|
|
host=NONE
|
29 |
|
|
no_create=
|
30 |
|
|
nonopt=NONE
|
31 |
|
|
no_recursion=
|
32 |
|
|
prefix=NONE
|
33 |
|
|
program_prefix=NONE
|
34 |
|
|
program_suffix=NONE
|
35 |
|
|
program_transform_name=s,x,x,
|
36 |
|
|
silent=
|
37 |
|
|
site=
|
38 |
|
|
srcdir=
|
39 |
|
|
target=NONE
|
40 |
|
|
verbose=
|
41 |
|
|
x_includes=NONE
|
42 |
|
|
x_libraries=NONE
|
43 |
|
|
bindir='${exec_prefix}/bin'
|
44 |
|
|
sbindir='${exec_prefix}/sbin'
|
45 |
|
|
libexecdir='${exec_prefix}/libexec'
|
46 |
|
|
datadir='${prefix}/share'
|
47 |
|
|
sysconfdir='${prefix}/etc'
|
48 |
|
|
sharedstatedir='${prefix}/com'
|
49 |
|
|
localstatedir='${prefix}/var'
|
50 |
|
|
libdir='${exec_prefix}/lib'
|
51 |
|
|
includedir='${prefix}/include'
|
52 |
|
|
oldincludedir='/usr/include'
|
53 |
|
|
infodir='${prefix}/info'
|
54 |
|
|
mandir='${prefix}/man'
|
55 |
|
|
|
56 |
|
|
# Initialize some other variables.
|
57 |
|
|
subdirs=
|
58 |
|
|
MFLAGS= MAKEFLAGS=
|
59 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
60 |
|
|
# Maximum number of lines to put in a shell here document.
|
61 |
|
|
ac_max_here_lines=12
|
62 |
|
|
|
63 |
|
|
ac_prev=
|
64 |
|
|
for ac_option
|
65 |
|
|
do
|
66 |
|
|
|
67 |
|
|
# If the previous option needs an argument, assign it.
|
68 |
|
|
if test -n "$ac_prev"; then
|
69 |
|
|
eval "$ac_prev=\$ac_option"
|
70 |
|
|
ac_prev=
|
71 |
|
|
continue
|
72 |
|
|
fi
|
73 |
|
|
|
74 |
|
|
case "$ac_option" in
|
75 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
76 |
|
|
*) ac_optarg= ;;
|
77 |
|
|
esac
|
78 |
|
|
|
79 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
80 |
|
|
|
81 |
|
|
case "$ac_option" in
|
82 |
|
|
|
83 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
84 |
|
|
ac_prev=bindir ;;
|
85 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
86 |
|
|
bindir="$ac_optarg" ;;
|
87 |
|
|
|
88 |
|
|
-build | --build | --buil | --bui | --bu)
|
89 |
|
|
ac_prev=build ;;
|
90 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
91 |
|
|
build="$ac_optarg" ;;
|
92 |
|
|
|
93 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
94 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
95 |
|
|
ac_prev=cache_file ;;
|
96 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
97 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
98 |
|
|
cache_file="$ac_optarg" ;;
|
99 |
|
|
|
100 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
101 |
|
|
ac_prev=datadir ;;
|
102 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
103 |
|
|
| --da=*)
|
104 |
|
|
datadir="$ac_optarg" ;;
|
105 |
|
|
|
106 |
|
|
-disable-* | --disable-*)
|
107 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
108 |
|
|
# Reject names that are not valid shell variable names.
|
109 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
110 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
111 |
|
|
fi
|
112 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
113 |
|
|
eval "enable_${ac_feature}=no" ;;
|
114 |
|
|
|
115 |
|
|
-enable-* | --enable-*)
|
116 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
117 |
|
|
# Reject names that are not valid shell variable names.
|
118 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
119 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
120 |
|
|
fi
|
121 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
122 |
|
|
case "$ac_option" in
|
123 |
|
|
*=*) ;;
|
124 |
|
|
*) ac_optarg=yes ;;
|
125 |
|
|
esac
|
126 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
127 |
|
|
|
128 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
129 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
130 |
|
|
| --exec | --exe | --ex)
|
131 |
|
|
ac_prev=exec_prefix ;;
|
132 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
133 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
134 |
|
|
| --exec=* | --exe=* | --ex=*)
|
135 |
|
|
exec_prefix="$ac_optarg" ;;
|
136 |
|
|
|
137 |
|
|
-gas | --gas | --ga | --g)
|
138 |
|
|
# Obsolete; use --with-gas.
|
139 |
|
|
with_gas=yes ;;
|
140 |
|
|
|
141 |
|
|
-help | --help | --hel | --he)
|
142 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
143 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
144 |
|
|
cat << EOF
|
145 |
|
|
Usage: configure [options] [host]
|
146 |
|
|
Options: [defaults in brackets after descriptions]
|
147 |
|
|
Configuration:
|
148 |
|
|
--cache-file=FILE cache test results in FILE
|
149 |
|
|
--help print this message
|
150 |
|
|
--no-create do not create output files
|
151 |
|
|
--quiet, --silent do not print \`checking...' messages
|
152 |
|
|
--version print the version of autoconf that created configure
|
153 |
|
|
Directory and file names:
|
154 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
155 |
|
|
[$ac_default_prefix]
|
156 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
157 |
|
|
[same as prefix]
|
158 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
159 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
160 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
161 |
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
162 |
|
|
[PREFIX/share]
|
163 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
164 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
165 |
|
|
[PREFIX/com]
|
166 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
167 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
168 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
169 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
170 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
171 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
172 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
173 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
174 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
175 |
|
|
--program-transform-name=PROGRAM
|
176 |
|
|
run sed PROGRAM on installed program names
|
177 |
|
|
EOF
|
178 |
|
|
cat << EOF
|
179 |
|
|
Host type:
|
180 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
181 |
|
|
--host=HOST configure for HOST [guessed]
|
182 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
183 |
|
|
Features and packages:
|
184 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
185 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
186 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
187 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
188 |
|
|
--x-includes=DIR X include files are in DIR
|
189 |
|
|
--x-libraries=DIR X library files are in DIR
|
190 |
|
|
EOF
|
191 |
|
|
if test -n "$ac_help"; then
|
192 |
|
|
echo "--enable and --with options recognized:$ac_help"
|
193 |
|
|
fi
|
194 |
|
|
exit 0 ;;
|
195 |
|
|
|
196 |
|
|
-host | --host | --hos | --ho)
|
197 |
|
|
ac_prev=host ;;
|
198 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
199 |
|
|
host="$ac_optarg" ;;
|
200 |
|
|
|
201 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
202 |
|
|
| --includ | --inclu | --incl | --inc)
|
203 |
|
|
ac_prev=includedir ;;
|
204 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
205 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
206 |
|
|
includedir="$ac_optarg" ;;
|
207 |
|
|
|
208 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
209 |
|
|
ac_prev=infodir ;;
|
210 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
211 |
|
|
infodir="$ac_optarg" ;;
|
212 |
|
|
|
213 |
|
|
-libdir | --libdir | --libdi | --libd)
|
214 |
|
|
ac_prev=libdir ;;
|
215 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
216 |
|
|
libdir="$ac_optarg" ;;
|
217 |
|
|
|
218 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
219 |
|
|
| --libexe | --libex | --libe)
|
220 |
|
|
ac_prev=libexecdir ;;
|
221 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
222 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
223 |
|
|
libexecdir="$ac_optarg" ;;
|
224 |
|
|
|
225 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
226 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
227 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
228 |
|
|
ac_prev=localstatedir ;;
|
229 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
230 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
231 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
232 |
|
|
localstatedir="$ac_optarg" ;;
|
233 |
|
|
|
234 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
235 |
|
|
ac_prev=mandir ;;
|
236 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
237 |
|
|
mandir="$ac_optarg" ;;
|
238 |
|
|
|
239 |
|
|
-nfp | --nfp | --nf)
|
240 |
|
|
# Obsolete; use --without-fp.
|
241 |
|
|
with_fp=no ;;
|
242 |
|
|
|
243 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
244 |
|
|
| --no-cr | --no-c)
|
245 |
|
|
no_create=yes ;;
|
246 |
|
|
|
247 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
248 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
249 |
|
|
no_recursion=yes ;;
|
250 |
|
|
|
251 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
252 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
253 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
254 |
|
|
ac_prev=oldincludedir ;;
|
255 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
256 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
257 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
258 |
|
|
oldincludedir="$ac_optarg" ;;
|
259 |
|
|
|
260 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
261 |
|
|
ac_prev=prefix ;;
|
262 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
263 |
|
|
prefix="$ac_optarg" ;;
|
264 |
|
|
|
265 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
266 |
|
|
| --program-pre | --program-pr | --program-p)
|
267 |
|
|
ac_prev=program_prefix ;;
|
268 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
269 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
270 |
|
|
program_prefix="$ac_optarg" ;;
|
271 |
|
|
|
272 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
273 |
|
|
| --program-suf | --program-su | --program-s)
|
274 |
|
|
ac_prev=program_suffix ;;
|
275 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
276 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
277 |
|
|
program_suffix="$ac_optarg" ;;
|
278 |
|
|
|
279 |
|
|
-program-transform-name | --program-transform-name \
|
280 |
|
|
| --program-transform-nam | --program-transform-na \
|
281 |
|
|
| --program-transform-n | --program-transform- \
|
282 |
|
|
| --program-transform | --program-transfor \
|
283 |
|
|
| --program-transfo | --program-transf \
|
284 |
|
|
| --program-trans | --program-tran \
|
285 |
|
|
| --progr-tra | --program-tr | --program-t)
|
286 |
|
|
ac_prev=program_transform_name ;;
|
287 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
288 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
289 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
290 |
|
|
| --program-transform=* | --program-transfor=* \
|
291 |
|
|
| --program-transfo=* | --program-transf=* \
|
292 |
|
|
| --program-trans=* | --program-tran=* \
|
293 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
294 |
|
|
program_transform_name="$ac_optarg" ;;
|
295 |
|
|
|
296 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
297 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
298 |
|
|
silent=yes ;;
|
299 |
|
|
|
300 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
301 |
|
|
ac_prev=sbindir ;;
|
302 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
303 |
|
|
| --sbi=* | --sb=*)
|
304 |
|
|
sbindir="$ac_optarg" ;;
|
305 |
|
|
|
306 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
307 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
308 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
309 |
|
|
| --sha | --sh)
|
310 |
|
|
ac_prev=sharedstatedir ;;
|
311 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
312 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
313 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
314 |
|
|
| --sha=* | --sh=*)
|
315 |
|
|
sharedstatedir="$ac_optarg" ;;
|
316 |
|
|
|
317 |
|
|
-site | --site | --sit)
|
318 |
|
|
ac_prev=site ;;
|
319 |
|
|
-site=* | --site=* | --sit=*)
|
320 |
|
|
site="$ac_optarg" ;;
|
321 |
|
|
|
322 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
323 |
|
|
ac_prev=srcdir ;;
|
324 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
325 |
|
|
srcdir="$ac_optarg" ;;
|
326 |
|
|
|
327 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
328 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
329 |
|
|
ac_prev=sysconfdir ;;
|
330 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
331 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
332 |
|
|
sysconfdir="$ac_optarg" ;;
|
333 |
|
|
|
334 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
335 |
|
|
ac_prev=target ;;
|
336 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
337 |
|
|
target="$ac_optarg" ;;
|
338 |
|
|
|
339 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
340 |
|
|
verbose=yes ;;
|
341 |
|
|
|
342 |
|
|
-version | --version | --versio | --versi | --vers)
|
343 |
|
|
echo "configure generated by autoconf version 2.13"
|
344 |
|
|
exit 0 ;;
|
345 |
|
|
|
346 |
|
|
-with-* | --with-*)
|
347 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
348 |
|
|
# Reject names that are not valid shell variable names.
|
349 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
350 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
351 |
|
|
fi
|
352 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
353 |
|
|
case "$ac_option" in
|
354 |
|
|
*=*) ;;
|
355 |
|
|
*) ac_optarg=yes ;;
|
356 |
|
|
esac
|
357 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
358 |
|
|
|
359 |
|
|
-without-* | --without-*)
|
360 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
361 |
|
|
# Reject names that are not valid shell variable names.
|
362 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
363 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
364 |
|
|
fi
|
365 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
366 |
|
|
eval "with_${ac_package}=no" ;;
|
367 |
|
|
|
368 |
|
|
--x)
|
369 |
|
|
# Obsolete; use --with-x.
|
370 |
|
|
with_x=yes ;;
|
371 |
|
|
|
372 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
373 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
374 |
|
|
ac_prev=x_includes ;;
|
375 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
376 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
377 |
|
|
x_includes="$ac_optarg" ;;
|
378 |
|
|
|
379 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
380 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
381 |
|
|
ac_prev=x_libraries ;;
|
382 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
383 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
384 |
|
|
x_libraries="$ac_optarg" ;;
|
385 |
|
|
|
386 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
387 |
|
|
;;
|
388 |
|
|
|
389 |
|
|
*)
|
390 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
391 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
392 |
|
|
fi
|
393 |
|
|
if test "x$nonopt" != xNONE; then
|
394 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
395 |
|
|
fi
|
396 |
|
|
nonopt="$ac_option"
|
397 |
|
|
;;
|
398 |
|
|
|
399 |
|
|
esac
|
400 |
|
|
done
|
401 |
|
|
|
402 |
|
|
if test -n "$ac_prev"; then
|
403 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
404 |
|
|
fi
|
405 |
|
|
|
406 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
407 |
|
|
|
408 |
|
|
# File descriptor usage:
|
409 |
|
|
# 0 standard input
|
410 |
|
|
# 1 file creation
|
411 |
|
|
# 2 errors and warnings
|
412 |
|
|
# 3 some systems may open it to /dev/tty
|
413 |
|
|
# 4 used on the Kubota Titan
|
414 |
|
|
# 6 checking for... messages and results
|
415 |
|
|
# 5 compiler messages saved in config.log
|
416 |
|
|
if test "$silent" = yes; then
|
417 |
|
|
exec 6>/dev/null
|
418 |
|
|
else
|
419 |
|
|
exec 6>&1
|
420 |
|
|
fi
|
421 |
|
|
exec 5>./config.log
|
422 |
|
|
|
423 |
|
|
echo "\
|
424 |
|
|
This file contains any messages produced by compilers while
|
425 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
426 |
|
|
" 1>&5
|
427 |
|
|
|
428 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
429 |
|
|
# Also quote any args containing shell metacharacters.
|
430 |
|
|
ac_configure_args=
|
431 |
|
|
for ac_arg
|
432 |
|
|
do
|
433 |
|
|
case "$ac_arg" in
|
434 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
435 |
|
|
| --no-cr | --no-c) ;;
|
436 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
437 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
438 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
439 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
440 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
441 |
|
|
esac
|
442 |
|
|
done
|
443 |
|
|
|
444 |
|
|
# NLS nuisances.
|
445 |
|
|
# Only set these to C if already set. These must not be set unconditionally
|
446 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
447 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
448 |
|
|
# Non-C LC_CTYPE values break the ctype check.
|
449 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
450 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
451 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
452 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
453 |
|
|
|
454 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
455 |
|
|
rm -rf conftest* confdefs.h
|
456 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
457 |
|
|
echo > confdefs.h
|
458 |
|
|
|
459 |
|
|
# A filename unique to this package, relative to the directory that
|
460 |
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
461 |
|
|
ac_unique_file=rawether.c
|
462 |
|
|
|
463 |
|
|
# Find the source files, if location was not specified.
|
464 |
|
|
if test -z "$srcdir"; then
|
465 |
|
|
ac_srcdir_defaulted=yes
|
466 |
|
|
# Try the directory containing this script, then its parent.
|
467 |
|
|
ac_prog=$0
|
468 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
469 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
470 |
|
|
srcdir=$ac_confdir
|
471 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
472 |
|
|
srcdir=..
|
473 |
|
|
fi
|
474 |
|
|
else
|
475 |
|
|
ac_srcdir_defaulted=no
|
476 |
|
|
fi
|
477 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
478 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
479 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
480 |
|
|
else
|
481 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
482 |
|
|
fi
|
483 |
|
|
fi
|
484 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
485 |
|
|
|
486 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
487 |
|
|
if test -z "$CONFIG_SITE"; then
|
488 |
|
|
if test "x$prefix" != xNONE; then
|
489 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
490 |
|
|
else
|
491 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
492 |
|
|
fi
|
493 |
|
|
fi
|
494 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
495 |
|
|
if test -r "$ac_site_file"; then
|
496 |
|
|
echo "loading site script $ac_site_file"
|
497 |
|
|
. "$ac_site_file"
|
498 |
|
|
fi
|
499 |
|
|
done
|
500 |
|
|
|
501 |
|
|
if test -r "$cache_file"; then
|
502 |
|
|
echo "loading cache $cache_file"
|
503 |
|
|
. $cache_file
|
504 |
|
|
else
|
505 |
|
|
echo "creating cache $cache_file"
|
506 |
|
|
> $cache_file
|
507 |
|
|
fi
|
508 |
|
|
|
509 |
|
|
ac_ext=c
|
510 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
511 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
512 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
513 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
514 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
515 |
|
|
|
516 |
|
|
ac_exeext=
|
517 |
|
|
ac_objext=o
|
518 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
519 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
520 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
521 |
|
|
ac_n= ac_c='
|
522 |
|
|
' ac_t=' '
|
523 |
|
|
else
|
524 |
|
|
ac_n=-n ac_c= ac_t=
|
525 |
|
|
fi
|
526 |
|
|
else
|
527 |
|
|
ac_n= ac_c='\c' ac_t=
|
528 |
|
|
fi
|
529 |
|
|
|
530 |
|
|
|
531 |
|
|
|
532 |
|
|
ac_aux_dir=
|
533 |
|
|
for ac_dir in ../../../../../../../acsupport $srcdir/../../../../../../../acsupport; do
|
534 |
|
|
if test -f $ac_dir/install-sh; then
|
535 |
|
|
ac_aux_dir=$ac_dir
|
536 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
537 |
|
|
break
|
538 |
|
|
elif test -f $ac_dir/install.sh; then
|
539 |
|
|
ac_aux_dir=$ac_dir
|
540 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
541 |
|
|
break
|
542 |
|
|
fi
|
543 |
|
|
done
|
544 |
|
|
if test -z "$ac_aux_dir"; then
|
545 |
|
|
{ echo "configure: error: can not find install-sh or install.sh in ../../../../../../../acsupport $srcdir/../../../../../../../acsupport" 1>&2; exit 1; }
|
546 |
|
|
fi
|
547 |
|
|
ac_config_guess=$ac_aux_dir/config.guess
|
548 |
|
|
ac_config_sub=$ac_aux_dir/config.sub
|
549 |
|
|
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
550 |
|
|
|
551 |
|
|
|
552 |
|
|
|
553 |
|
|
echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
|
554 |
|
|
echo "configure:555: checking that a separate build tree is being used" >&5
|
555 |
|
|
ecos_cwd=`/bin/pwd`
|
556 |
|
|
if test "${srcdir}" = "." ; then
|
557 |
|
|
srcdir=${ecos_cwd}
|
558 |
|
|
fi
|
559 |
|
|
if test "${ecos_cwd}" = "${srcdir}" ; then
|
560 |
|
|
echo "$ac_t""no" 1>&6
|
561 |
|
|
{ echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
|
562 |
|
|
else
|
563 |
|
|
echo "$ac_t""yes" 1>&6
|
564 |
|
|
fi
|
565 |
|
|
|
566 |
|
|
|
567 |
|
|
# Make sure we can run config.sub.
|
568 |
|
|
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
569 |
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
570 |
|
|
fi
|
571 |
|
|
|
572 |
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
573 |
|
|
echo "configure:574: checking host system type" >&5
|
574 |
|
|
|
575 |
|
|
host_alias=$host
|
576 |
|
|
case "$host_alias" in
|
577 |
|
|
NONE)
|
578 |
|
|
case $nonopt in
|
579 |
|
|
NONE)
|
580 |
|
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
581 |
|
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
582 |
|
|
fi ;;
|
583 |
|
|
*) host_alias=$nonopt ;;
|
584 |
|
|
esac ;;
|
585 |
|
|
esac
|
586 |
|
|
|
587 |
|
|
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
588 |
|
|
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
589 |
|
|
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
590 |
|
|
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
591 |
|
|
echo "$ac_t""$host" 1>&6
|
592 |
|
|
|
593 |
|
|
# Find a good install program. We prefer a C program (faster),
|
594 |
|
|
# so one script is as good as another. But avoid the broken or
|
595 |
|
|
# incompatible versions:
|
596 |
|
|
# SysV /etc/install, /usr/sbin/install
|
597 |
|
|
# SunOS /usr/etc/install
|
598 |
|
|
# IRIX /sbin/install
|
599 |
|
|
# AIX /bin/install
|
600 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
601 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
602 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
603 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
604 |
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
605 |
|
|
echo "configure:606: checking for a BSD compatible install" >&5
|
606 |
|
|
if test -z "$INSTALL"; then
|
607 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
608 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
609 |
|
|
else
|
610 |
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
611 |
|
|
for ac_dir in $PATH; do
|
612 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
613 |
|
|
case "$ac_dir/" in
|
614 |
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
615 |
|
|
*)
|
616 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
617 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
618 |
|
|
# by default.
|
619 |
|
|
for ac_prog in ginstall scoinst install; do
|
620 |
|
|
if test -f $ac_dir/$ac_prog; then
|
621 |
|
|
if test $ac_prog = install &&
|
622 |
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
623 |
|
|
# AIX install. It has an incompatible calling convention.
|
624 |
|
|
:
|
625 |
|
|
else
|
626 |
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
627 |
|
|
break 2
|
628 |
|
|
fi
|
629 |
|
|
fi
|
630 |
|
|
done
|
631 |
|
|
;;
|
632 |
|
|
esac
|
633 |
|
|
done
|
634 |
|
|
IFS="$ac_save_IFS"
|
635 |
|
|
|
636 |
|
|
fi
|
637 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
638 |
|
|
INSTALL="$ac_cv_path_install"
|
639 |
|
|
else
|
640 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
641 |
|
|
# path for INSTALL within a source directory, because that will
|
642 |
|
|
# break other packages using the cache if that directory is
|
643 |
|
|
# removed, or if the path is relative.
|
644 |
|
|
INSTALL="$ac_install_sh"
|
645 |
|
|
fi
|
646 |
|
|
fi
|
647 |
|
|
echo "$ac_t""$INSTALL" 1>&6
|
648 |
|
|
|
649 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
650 |
|
|
# It thinks the first close brace ends the variable substitution.
|
651 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
652 |
|
|
|
653 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
654 |
|
|
|
655 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
656 |
|
|
|
657 |
|
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
658 |
|
|
echo "configure:659: checking whether build environment is sane" >&5
|
659 |
|
|
# Just in case
|
660 |
|
|
sleep 1
|
661 |
|
|
echo timestamp > conftestfile
|
662 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
663 |
|
|
# arguments. Must try -L first in case configure is actually a
|
664 |
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
665 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
666 |
|
|
# directory).
|
667 |
|
|
if (
|
668 |
|
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
669 |
|
|
if test "$*" = "X"; then
|
670 |
|
|
# -L didn't work.
|
671 |
|
|
set X `ls -t $srcdir/configure conftestfile`
|
672 |
|
|
fi
|
673 |
|
|
if test "$*" != "X $srcdir/configure conftestfile" \
|
674 |
|
|
&& test "$*" != "X conftestfile $srcdir/configure"; then
|
675 |
|
|
|
676 |
|
|
# If neither matched, then we have a broken ls. This can happen
|
677 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
678 |
|
|
# broken ls alias from the environment. This has actually
|
679 |
|
|
# happened. Such a system could not be considered "sane".
|
680 |
|
|
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
681 |
|
|
alias in your environment" 1>&2; exit 1; }
|
682 |
|
|
fi
|
683 |
|
|
|
684 |
|
|
test "$2" = conftestfile
|
685 |
|
|
)
|
686 |
|
|
then
|
687 |
|
|
# Ok.
|
688 |
|
|
:
|
689 |
|
|
else
|
690 |
|
|
{ echo "configure: error: newly created file is older than distributed files!
|
691 |
|
|
Check your system clock" 1>&2; exit 1; }
|
692 |
|
|
fi
|
693 |
|
|
rm -f conftest*
|
694 |
|
|
echo "$ac_t""yes" 1>&6
|
695 |
|
|
if test "$program_transform_name" = s,x,x,; then
|
696 |
|
|
program_transform_name=
|
697 |
|
|
else
|
698 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
699 |
|
|
cat <<\EOF_SED > conftestsed
|
700 |
|
|
s,\\,\\\\,g; s,\$,$$,g
|
701 |
|
|
EOF_SED
|
702 |
|
|
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
703 |
|
|
rm -f conftestsed
|
704 |
|
|
fi
|
705 |
|
|
test "$program_prefix" != NONE &&
|
706 |
|
|
program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
707 |
|
|
# Use a double $ so make ignores it.
|
708 |
|
|
test "$program_suffix" != NONE &&
|
709 |
|
|
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
710 |
|
|
|
711 |
|
|
# sed with no file args requires a program.
|
712 |
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
713 |
|
|
|
714 |
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
715 |
|
|
echo "configure:716: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
716 |
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
717 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
718 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
719 |
|
|
else
|
720 |
|
|
cat > conftestmake <<\EOF
|
721 |
|
|
all:
|
722 |
|
|
@echo 'ac_maketemp="${MAKE}"'
|
723 |
|
|
EOF
|
724 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
725 |
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
726 |
|
|
if test -n "$ac_maketemp"; then
|
727 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
728 |
|
|
else
|
729 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
730 |
|
|
fi
|
731 |
|
|
rm -f conftestmake
|
732 |
|
|
fi
|
733 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
734 |
|
|
echo "$ac_t""yes" 1>&6
|
735 |
|
|
SET_MAKE=
|
736 |
|
|
else
|
737 |
|
|
echo "$ac_t""no" 1>&6
|
738 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
739 |
|
|
fi
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
PACKAGE=eCos_synthetic_target_ethernet
|
743 |
|
|
|
744 |
|
|
VERSION=0.1
|
745 |
|
|
|
746 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
747 |
|
|
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
748 |
|
|
fi
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
missing_dir=`cd $ac_aux_dir && pwd`
|
753 |
|
|
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
754 |
|
|
echo "configure:755: checking for working aclocal" >&5
|
755 |
|
|
# Run test in a subshell; some versions of sh will print an error if
|
756 |
|
|
# an executable is not found, even if stderr is redirected.
|
757 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
758 |
|
|
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
759 |
|
|
ACLOCAL=aclocal
|
760 |
|
|
echo "$ac_t""found" 1>&6
|
761 |
|
|
else
|
762 |
|
|
ACLOCAL="$missing_dir/missing aclocal"
|
763 |
|
|
echo "$ac_t""missing" 1>&6
|
764 |
|
|
fi
|
765 |
|
|
|
766 |
|
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
767 |
|
|
echo "configure:768: checking for working autoconf" >&5
|
768 |
|
|
# Run test in a subshell; some versions of sh will print an error if
|
769 |
|
|
# an executable is not found, even if stderr is redirected.
|
770 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
771 |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
772 |
|
|
AUTOCONF=autoconf
|
773 |
|
|
echo "$ac_t""found" 1>&6
|
774 |
|
|
else
|
775 |
|
|
AUTOCONF="$missing_dir/missing autoconf"
|
776 |
|
|
echo "$ac_t""missing" 1>&6
|
777 |
|
|
fi
|
778 |
|
|
|
779 |
|
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
780 |
|
|
echo "configure:781: checking for working automake" >&5
|
781 |
|
|
# Run test in a subshell; some versions of sh will print an error if
|
782 |
|
|
# an executable is not found, even if stderr is redirected.
|
783 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
784 |
|
|
if (automake --version) < /dev/null > /dev/null 2>&1; then
|
785 |
|
|
AUTOMAKE=automake
|
786 |
|
|
echo "$ac_t""found" 1>&6
|
787 |
|
|
else
|
788 |
|
|
AUTOMAKE="$missing_dir/missing automake"
|
789 |
|
|
echo "$ac_t""missing" 1>&6
|
790 |
|
|
fi
|
791 |
|
|
|
792 |
|
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
793 |
|
|
echo "configure:794: checking for working autoheader" >&5
|
794 |
|
|
# Run test in a subshell; some versions of sh will print an error if
|
795 |
|
|
# an executable is not found, even if stderr is redirected.
|
796 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
797 |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
798 |
|
|
AUTOHEADER=autoheader
|
799 |
|
|
echo "$ac_t""found" 1>&6
|
800 |
|
|
else
|
801 |
|
|
AUTOHEADER="$missing_dir/missing autoheader"
|
802 |
|
|
echo "$ac_t""missing" 1>&6
|
803 |
|
|
fi
|
804 |
|
|
|
805 |
|
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
806 |
|
|
echo "configure:807: checking for working makeinfo" >&5
|
807 |
|
|
# Run test in a subshell; some versions of sh will print an error if
|
808 |
|
|
# an executable is not found, even if stderr is redirected.
|
809 |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
810 |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
811 |
|
|
MAKEINFO=makeinfo
|
812 |
|
|
echo "$ac_t""found" 1>&6
|
813 |
|
|
else
|
814 |
|
|
MAKEINFO="$missing_dir/missing makeinfo"
|
815 |
|
|
echo "$ac_t""missing" 1>&6
|
816 |
|
|
fi
|
817 |
|
|
|
818 |
|
|
|
819 |
|
|
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
820 |
|
|
echo "configure:821: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
821 |
|
|
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
822 |
|
|
if test "${enable_maintainer_mode+set}" = set; then
|
823 |
|
|
enableval="$enable_maintainer_mode"
|
824 |
|
|
USE_MAINTAINER_MODE=$enableval
|
825 |
|
|
else
|
826 |
|
|
USE_MAINTAINER_MODE=no
|
827 |
|
|
fi
|
828 |
|
|
|
829 |
|
|
echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
830 |
|
|
|
831 |
|
|
|
832 |
|
|
if test $USE_MAINTAINER_MODE = yes; then
|
833 |
|
|
MAINTAINER_MODE_TRUE=
|
834 |
|
|
MAINTAINER_MODE_FALSE='#'
|
835 |
|
|
else
|
836 |
|
|
MAINTAINER_MODE_TRUE='#'
|
837 |
|
|
MAINTAINER_MODE_FALSE=
|
838 |
|
|
fi
|
839 |
|
|
MAINT=$MAINTAINER_MODE_TRUE
|
840 |
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
case "${host}" in
|
844 |
|
|
i[34567]86-*-linux-gnu* ) SUPPORTED="yes";;
|
845 |
|
|
* ) SUPPORTED="no"
|
846 |
|
|
esac
|
847 |
|
|
if test "${SUPPORTED}" = "no" ; then
|
848 |
|
|
echo "configure: warning: Synthetic target ethernet support is only available on x86 Linux hosts" 1>&2
|
849 |
|
|
fi
|
850 |
|
|
|
851 |
|
|
if test "${SUPPORTED}" = "yes" ; then
|
852 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
853 |
|
|
set dummy gcc; ac_word=$2
|
854 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
855 |
|
|
echo "configure:856: checking for $ac_word" >&5
|
856 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
857 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
858 |
|
|
else
|
859 |
|
|
if test -n "$CC"; then
|
860 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
861 |
|
|
else
|
862 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
863 |
|
|
ac_dummy="$PATH"
|
864 |
|
|
for ac_dir in $ac_dummy; do
|
865 |
|
|
test -z "$ac_dir" && ac_dir=.
|
866 |
|
|
if test -f $ac_dir/$ac_word; then
|
867 |
|
|
ac_cv_prog_CC="gcc"
|
868 |
|
|
break
|
869 |
|
|
fi
|
870 |
|
|
done
|
871 |
|
|
IFS="$ac_save_ifs"
|
872 |
|
|
fi
|
873 |
|
|
fi
|
874 |
|
|
CC="$ac_cv_prog_CC"
|
875 |
|
|
if test -n "$CC"; then
|
876 |
|
|
echo "$ac_t""$CC" 1>&6
|
877 |
|
|
else
|
878 |
|
|
echo "$ac_t""no" 1>&6
|
879 |
|
|
fi
|
880 |
|
|
|
881 |
|
|
if test -z "$CC"; then
|
882 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
883 |
|
|
set dummy cc; ac_word=$2
|
884 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
885 |
|
|
echo "configure:886: checking for $ac_word" >&5
|
886 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
887 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
888 |
|
|
else
|
889 |
|
|
if test -n "$CC"; then
|
890 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
891 |
|
|
else
|
892 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
893 |
|
|
ac_prog_rejected=no
|
894 |
|
|
ac_dummy="$PATH"
|
895 |
|
|
for ac_dir in $ac_dummy; do
|
896 |
|
|
test -z "$ac_dir" && ac_dir=.
|
897 |
|
|
if test -f $ac_dir/$ac_word; then
|
898 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
899 |
|
|
ac_prog_rejected=yes
|
900 |
|
|
continue
|
901 |
|
|
fi
|
902 |
|
|
ac_cv_prog_CC="cc"
|
903 |
|
|
break
|
904 |
|
|
fi
|
905 |
|
|
done
|
906 |
|
|
IFS="$ac_save_ifs"
|
907 |
|
|
if test $ac_prog_rejected = yes; then
|
908 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
909 |
|
|
set dummy $ac_cv_prog_CC
|
910 |
|
|
shift
|
911 |
|
|
if test $# -gt 0; then
|
912 |
|
|
# We chose a different compiler from the bogus one.
|
913 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
914 |
|
|
# first if we set CC to just the basename; use the full file name.
|
915 |
|
|
shift
|
916 |
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
917 |
|
|
shift
|
918 |
|
|
ac_cv_prog_CC="$@"
|
919 |
|
|
fi
|
920 |
|
|
fi
|
921 |
|
|
fi
|
922 |
|
|
fi
|
923 |
|
|
CC="$ac_cv_prog_CC"
|
924 |
|
|
if test -n "$CC"; then
|
925 |
|
|
echo "$ac_t""$CC" 1>&6
|
926 |
|
|
else
|
927 |
|
|
echo "$ac_t""no" 1>&6
|
928 |
|
|
fi
|
929 |
|
|
|
930 |
|
|
if test -z "$CC"; then
|
931 |
|
|
case "`uname -s`" in
|
932 |
|
|
*win32* | *WIN32*)
|
933 |
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
934 |
|
|
set dummy cl; ac_word=$2
|
935 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
936 |
|
|
echo "configure:937: checking for $ac_word" >&5
|
937 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
938 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
939 |
|
|
else
|
940 |
|
|
if test -n "$CC"; then
|
941 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
942 |
|
|
else
|
943 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
944 |
|
|
ac_dummy="$PATH"
|
945 |
|
|
for ac_dir in $ac_dummy; do
|
946 |
|
|
test -z "$ac_dir" && ac_dir=.
|
947 |
|
|
if test -f $ac_dir/$ac_word; then
|
948 |
|
|
ac_cv_prog_CC="cl"
|
949 |
|
|
break
|
950 |
|
|
fi
|
951 |
|
|
done
|
952 |
|
|
IFS="$ac_save_ifs"
|
953 |
|
|
fi
|
954 |
|
|
fi
|
955 |
|
|
CC="$ac_cv_prog_CC"
|
956 |
|
|
if test -n "$CC"; then
|
957 |
|
|
echo "$ac_t""$CC" 1>&6
|
958 |
|
|
else
|
959 |
|
|
echo "$ac_t""no" 1>&6
|
960 |
|
|
fi
|
961 |
|
|
;;
|
962 |
|
|
esac
|
963 |
|
|
fi
|
964 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
965 |
|
|
fi
|
966 |
|
|
|
967 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
968 |
|
|
echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
969 |
|
|
|
970 |
|
|
ac_ext=c
|
971 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
972 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
973 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
974 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
975 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
976 |
|
|
|
977 |
|
|
cat > conftest.$ac_ext << EOF
|
978 |
|
|
|
979 |
|
|
#line 980 "configure"
|
980 |
|
|
#include "confdefs.h"
|
981 |
|
|
|
982 |
|
|
main(){return(0);}
|
983 |
|
|
EOF
|
984 |
|
|
if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
985 |
|
|
ac_cv_prog_cc_works=yes
|
986 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
987 |
|
|
if (./conftest; exit) 2>/dev/null; then
|
988 |
|
|
ac_cv_prog_cc_cross=no
|
989 |
|
|
else
|
990 |
|
|
ac_cv_prog_cc_cross=yes
|
991 |
|
|
fi
|
992 |
|
|
else
|
993 |
|
|
echo "configure: failed program was:" >&5
|
994 |
|
|
cat conftest.$ac_ext >&5
|
995 |
|
|
ac_cv_prog_cc_works=no
|
996 |
|
|
fi
|
997 |
|
|
rm -fr conftest*
|
998 |
|
|
ac_ext=c
|
999 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
1000 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1001 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1002 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1003 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1004 |
|
|
|
1005 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
1006 |
|
|
if test $ac_cv_prog_cc_works = no; then
|
1007 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
1008 |
|
|
fi
|
1009 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1010 |
|
|
echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
1011 |
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
1012 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1013 |
|
|
|
1014 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
1015 |
|
|
echo "configure:1016: checking whether we are using GNU C" >&5
|
1016 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
1017 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1018 |
|
|
else
|
1019 |
|
|
cat > conftest.c <
|
1020 |
|
|
#ifdef __GNUC__
|
1021 |
|
|
yes;
|
1022 |
|
|
#endif
|
1023 |
|
|
EOF
|
1024 |
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
1025 |
|
|
ac_cv_prog_gcc=yes
|
1026 |
|
|
else
|
1027 |
|
|
ac_cv_prog_gcc=no
|
1028 |
|
|
fi
|
1029 |
|
|
fi
|
1030 |
|
|
|
1031 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
1032 |
|
|
|
1033 |
|
|
if test $ac_cv_prog_gcc = yes; then
|
1034 |
|
|
GCC=yes
|
1035 |
|
|
else
|
1036 |
|
|
GCC=
|
1037 |
|
|
fi
|
1038 |
|
|
|
1039 |
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
1040 |
|
|
ac_save_CFLAGS="$CFLAGS"
|
1041 |
|
|
CFLAGS=
|
1042 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
1043 |
|
|
echo "configure:1044: checking whether ${CC-cc} accepts -g" >&5
|
1044 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
1045 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1046 |
|
|
else
|
1047 |
|
|
echo 'void f(){}' > conftest.c
|
1048 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
1049 |
|
|
ac_cv_prog_cc_g=yes
|
1050 |
|
|
else
|
1051 |
|
|
ac_cv_prog_cc_g=no
|
1052 |
|
|
fi
|
1053 |
|
|
rm -f conftest*
|
1054 |
|
|
|
1055 |
|
|
fi
|
1056 |
|
|
|
1057 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
1058 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
1059 |
|
|
CFLAGS="$ac_save_CFLAGS"
|
1060 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
1061 |
|
|
if test "$GCC" = yes; then
|
1062 |
|
|
CFLAGS="-g -O2"
|
1063 |
|
|
else
|
1064 |
|
|
CFLAGS="-g"
|
1065 |
|
|
fi
|
1066 |
|
|
else
|
1067 |
|
|
if test "$GCC" = yes; then
|
1068 |
|
|
CFLAGS="-O2"
|
1069 |
|
|
else
|
1070 |
|
|
CFLAGS=
|
1071 |
|
|
fi
|
1072 |
|
|
fi
|
1073 |
|
|
|
1074 |
|
|
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
|
1075 |
|
|
do
|
1076 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
1077 |
|
|
set dummy $ac_prog; ac_word=$2
|
1078 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
1079 |
|
|
echo "configure:1080: checking for $ac_word" >&5
|
1080 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
1081 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1082 |
|
|
else
|
1083 |
|
|
if test -n "$CXX"; then
|
1084 |
|
|
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
1085 |
|
|
else
|
1086 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1087 |
|
|
ac_dummy="$PATH"
|
1088 |
|
|
for ac_dir in $ac_dummy; do
|
1089 |
|
|
test -z "$ac_dir" && ac_dir=.
|
1090 |
|
|
if test -f $ac_dir/$ac_word; then
|
1091 |
|
|
ac_cv_prog_CXX="$ac_prog"
|
1092 |
|
|
break
|
1093 |
|
|
fi
|
1094 |
|
|
done
|
1095 |
|
|
IFS="$ac_save_ifs"
|
1096 |
|
|
fi
|
1097 |
|
|
fi
|
1098 |
|
|
CXX="$ac_cv_prog_CXX"
|
1099 |
|
|
if test -n "$CXX"; then
|
1100 |
|
|
echo "$ac_t""$CXX" 1>&6
|
1101 |
|
|
else
|
1102 |
|
|
echo "$ac_t""no" 1>&6
|
1103 |
|
|
fi
|
1104 |
|
|
|
1105 |
|
|
test -n "$CXX" && break
|
1106 |
|
|
done
|
1107 |
|
|
test -n "$CXX" || CXX="gcc"
|
1108 |
|
|
|
1109 |
|
|
|
1110 |
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
1111 |
|
|
echo "configure:1112: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
1112 |
|
|
|
1113 |
|
|
ac_ext=C
|
1114 |
|
|
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
1115 |
|
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
1116 |
|
|
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1117 |
|
|
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1118 |
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
1119 |
|
|
|
1120 |
|
|
cat > conftest.$ac_ext << EOF
|
1121 |
|
|
|
1122 |
|
|
#line 1123 "configure"
|
1123 |
|
|
#include "confdefs.h"
|
1124 |
|
|
|
1125 |
|
|
int main(){return(0);}
|
1126 |
|
|
EOF
|
1127 |
|
|
if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1128 |
|
|
ac_cv_prog_cxx_works=yes
|
1129 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
1130 |
|
|
if (./conftest; exit) 2>/dev/null; then
|
1131 |
|
|
ac_cv_prog_cxx_cross=no
|
1132 |
|
|
else
|
1133 |
|
|
ac_cv_prog_cxx_cross=yes
|
1134 |
|
|
fi
|
1135 |
|
|
else
|
1136 |
|
|
echo "configure: failed program was:" >&5
|
1137 |
|
|
cat conftest.$ac_ext >&5
|
1138 |
|
|
ac_cv_prog_cxx_works=no
|
1139 |
|
|
fi
|
1140 |
|
|
rm -fr conftest*
|
1141 |
|
|
ac_ext=c
|
1142 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
1143 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1144 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1145 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1146 |
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
1147 |
|
|
|
1148 |
|
|
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
1149 |
|
|
if test $ac_cv_prog_cxx_works = no; then
|
1150 |
|
|
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
1151 |
|
|
fi
|
1152 |
|
|
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
1153 |
|
|
echo "configure:1154: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
1154 |
|
|
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
1155 |
|
|
cross_compiling=$ac_cv_prog_cxx_cross
|
1156 |
|
|
|
1157 |
|
|
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
1158 |
|
|
echo "configure:1159: checking whether we are using GNU C++" >&5
|
1159 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
1160 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1161 |
|
|
else
|
1162 |
|
|
cat > conftest.C <
|
1163 |
|
|
#ifdef __GNUC__
|
1164 |
|
|
yes;
|
1165 |
|
|
#endif
|
1166 |
|
|
EOF
|
1167 |
|
|
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
1168 |
|
|
ac_cv_prog_gxx=yes
|
1169 |
|
|
else
|
1170 |
|
|
ac_cv_prog_gxx=no
|
1171 |
|
|
fi
|
1172 |
|
|
fi
|
1173 |
|
|
|
1174 |
|
|
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
1175 |
|
|
|
1176 |
|
|
if test $ac_cv_prog_gxx = yes; then
|
1177 |
|
|
GXX=yes
|
1178 |
|
|
else
|
1179 |
|
|
GXX=
|
1180 |
|
|
fi
|
1181 |
|
|
|
1182 |
|
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
1183 |
|
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
1184 |
|
|
CXXFLAGS=
|
1185 |
|
|
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
1186 |
|
|
echo "configure:1187: checking whether ${CXX-g++} accepts -g" >&5
|
1187 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
1188 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1189 |
|
|
else
|
1190 |
|
|
echo 'void f(){}' > conftest.cc
|
1191 |
|
|
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
1192 |
|
|
ac_cv_prog_cxx_g=yes
|
1193 |
|
|
else
|
1194 |
|
|
ac_cv_prog_cxx_g=no
|
1195 |
|
|
fi
|
1196 |
|
|
rm -f conftest*
|
1197 |
|
|
|
1198 |
|
|
fi
|
1199 |
|
|
|
1200 |
|
|
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
1201 |
|
|
if test "$ac_test_CXXFLAGS" = set; then
|
1202 |
|
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
1203 |
|
|
elif test $ac_cv_prog_cxx_g = yes; then
|
1204 |
|
|
if test "$GXX" = yes; then
|
1205 |
|
|
CXXFLAGS="-g -O2"
|
1206 |
|
|
else
|
1207 |
|
|
CXXFLAGS="-g"
|
1208 |
|
|
fi
|
1209 |
|
|
else
|
1210 |
|
|
if test "$GXX" = yes; then
|
1211 |
|
|
CXXFLAGS="-O2"
|
1212 |
|
|
else
|
1213 |
|
|
CXXFLAGS=
|
1214 |
|
|
fi
|
1215 |
|
|
fi
|
1216 |
|
|
|
1217 |
|
|
for ac_declaration in \
|
1218 |
|
|
''\
|
1219 |
|
|
'#include ' \
|
1220 |
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
1221 |
|
|
'extern "C" void std::exit (int); using std::exit;' \
|
1222 |
|
|
'extern "C" void exit (int) throw ();' \
|
1223 |
|
|
'extern "C" void exit (int);' \
|
1224 |
|
|
'void exit (int);'
|
1225 |
|
|
do
|
1226 |
|
|
cat > conftest.$ac_ext <
|
1227 |
|
|
#line 1228 "configure"
|
1228 |
|
|
#include "confdefs.h"
|
1229 |
|
|
#include
|
1230 |
|
|
$ac_declaration
|
1231 |
|
|
int main() {
|
1232 |
|
|
exit (42);
|
1233 |
|
|
; return 0; }
|
1234 |
|
|
EOF
|
1235 |
|
|
if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1236 |
|
|
:
|
1237 |
|
|
else
|
1238 |
|
|
echo "configure: failed program was:" >&5
|
1239 |
|
|
cat conftest.$ac_ext >&5
|
1240 |
|
|
rm -rf conftest*
|
1241 |
|
|
continue
|
1242 |
|
|
fi
|
1243 |
|
|
rm -f conftest*
|
1244 |
|
|
cat > conftest.$ac_ext <
|
1245 |
|
|
#line 1246 "configure"
|
1246 |
|
|
#include "confdefs.h"
|
1247 |
|
|
$ac_declaration
|
1248 |
|
|
int main() {
|
1249 |
|
|
exit (42);
|
1250 |
|
|
; return 0; }
|
1251 |
|
|
EOF
|
1252 |
|
|
if { (eval echo configure:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1253 |
|
|
rm -rf conftest*
|
1254 |
|
|
break
|
1255 |
|
|
else
|
1256 |
|
|
echo "configure: failed program was:" >&5
|
1257 |
|
|
cat conftest.$ac_ext >&5
|
1258 |
|
|
fi
|
1259 |
|
|
rm -f conftest*
|
1260 |
|
|
done
|
1261 |
|
|
if test -n "$ac_declaration"; then
|
1262 |
|
|
echo '#ifdef __cplusplus' >>confdefs.h
|
1263 |
|
|
echo $ac_declaration >>confdefs.h
|
1264 |
|
|
echo '#endif' >>confdefs.h
|
1265 |
|
|
fi
|
1266 |
|
|
|
1267 |
|
|
|
1268 |
|
|
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
1269 |
|
|
echo "configure:1270: checking for object suffix" >&5
|
1270 |
|
|
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
1271 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1272 |
|
|
else
|
1273 |
|
|
rm -f conftest*
|
1274 |
|
|
echo 'int i = 1;' > conftest.$ac_ext
|
1275 |
|
|
if { (eval echo configure:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1276 |
|
|
for ac_file in conftest.*; do
|
1277 |
|
|
case $ac_file in
|
1278 |
|
|
*.c) ;;
|
1279 |
|
|
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
1280 |
|
|
esac
|
1281 |
|
|
done
|
1282 |
|
|
else
|
1283 |
|
|
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
1284 |
|
|
fi
|
1285 |
|
|
rm -f conftest*
|
1286 |
|
|
fi
|
1287 |
|
|
|
1288 |
|
|
echo "$ac_t""$ac_cv_objext" 1>&6
|
1289 |
|
|
OBJEXT=$ac_cv_objext
|
1290 |
|
|
ac_objext=$ac_cv_objext
|
1291 |
|
|
|
1292 |
|
|
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
1293 |
|
|
echo "configure:1294: checking for Cygwin environment" >&5
|
1294 |
|
|
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
1295 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1296 |
|
|
else
|
1297 |
|
|
cat > conftest.$ac_ext <
|
1298 |
|
|
#line 1299 "configure"
|
1299 |
|
|
#include "confdefs.h"
|
1300 |
|
|
|
1301 |
|
|
int main() {
|
1302 |
|
|
|
1303 |
|
|
#ifndef __CYGWIN__
|
1304 |
|
|
#define __CYGWIN__ __CYGWIN32__
|
1305 |
|
|
#endif
|
1306 |
|
|
return __CYGWIN__;
|
1307 |
|
|
; return 0; }
|
1308 |
|
|
EOF
|
1309 |
|
|
if { (eval echo configure:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1310 |
|
|
rm -rf conftest*
|
1311 |
|
|
ac_cv_cygwin=yes
|
1312 |
|
|
else
|
1313 |
|
|
echo "configure: failed program was:" >&5
|
1314 |
|
|
cat conftest.$ac_ext >&5
|
1315 |
|
|
rm -rf conftest*
|
1316 |
|
|
ac_cv_cygwin=no
|
1317 |
|
|
fi
|
1318 |
|
|
rm -f conftest*
|
1319 |
|
|
rm -f conftest*
|
1320 |
|
|
fi
|
1321 |
|
|
|
1322 |
|
|
echo "$ac_t""$ac_cv_cygwin" 1>&6
|
1323 |
|
|
CYGWIN=
|
1324 |
|
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
1325 |
|
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
1326 |
|
|
echo "configure:1327: checking for mingw32 environment" >&5
|
1327 |
|
|
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
1328 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1329 |
|
|
else
|
1330 |
|
|
cat > conftest.$ac_ext <
|
1331 |
|
|
#line 1332 "configure"
|
1332 |
|
|
#include "confdefs.h"
|
1333 |
|
|
|
1334 |
|
|
int main() {
|
1335 |
|
|
return __MINGW32__;
|
1336 |
|
|
; return 0; }
|
1337 |
|
|
EOF
|
1338 |
|
|
if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1339 |
|
|
rm -rf conftest*
|
1340 |
|
|
ac_cv_mingw32=yes
|
1341 |
|
|
else
|
1342 |
|
|
echo "configure: failed program was:" >&5
|
1343 |
|
|
cat conftest.$ac_ext >&5
|
1344 |
|
|
rm -rf conftest*
|
1345 |
|
|
ac_cv_mingw32=no
|
1346 |
|
|
fi
|
1347 |
|
|
rm -f conftest*
|
1348 |
|
|
rm -f conftest*
|
1349 |
|
|
fi
|
1350 |
|
|
|
1351 |
|
|
echo "$ac_t""$ac_cv_mingw32" 1>&6
|
1352 |
|
|
MINGW32=
|
1353 |
|
|
test "$ac_cv_mingw32" = yes && MINGW32=yes
|
1354 |
|
|
|
1355 |
|
|
|
1356 |
|
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
1357 |
|
|
echo "configure:1358: checking for executable suffix" >&5
|
1358 |
|
|
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
1359 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1360 |
|
|
else
|
1361 |
|
|
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
1362 |
|
|
ac_cv_exeext=.exe
|
1363 |
|
|
else
|
1364 |
|
|
rm -f conftest*
|
1365 |
|
|
echo 'int main () { return 0; }' > conftest.$ac_ext
|
1366 |
|
|
ac_cv_exeext=
|
1367 |
|
|
if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
1368 |
|
|
for file in conftest.*; do
|
1369 |
|
|
case $file in
|
1370 |
|
|
*.c | *.o | *.obj) ;;
|
1371 |
|
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
1372 |
|
|
esac
|
1373 |
|
|
done
|
1374 |
|
|
else
|
1375 |
|
|
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
1376 |
|
|
fi
|
1377 |
|
|
rm -f conftest*
|
1378 |
|
|
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
1379 |
|
|
fi
|
1380 |
|
|
fi
|
1381 |
|
|
|
1382 |
|
|
EXEEXT=""
|
1383 |
|
|
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
1384 |
|
|
echo "$ac_t""${ac_cv_exeext}" 1>&6
|
1385 |
|
|
ac_exeext=$EXEEXT
|
1386 |
|
|
|
1387 |
|
|
|
1388 |
|
|
ecos_CFLAGS=""
|
1389 |
|
|
ecos_CXXFLAGS=""
|
1390 |
|
|
ecos_LDADD=""
|
1391 |
|
|
ecos_INCLUDES=""
|
1392 |
|
|
ecos_LIBS=""
|
1393 |
|
|
|
1394 |
|
|
|
1395 |
|
|
|
1396 |
|
|
|
1397 |
|
|
|
1398 |
|
|
|
1399 |
|
|
|
1400 |
|
|
|
1401 |
|
|
|
1402 |
|
|
|
1403 |
|
|
|
1404 |
|
|
echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
|
1405 |
|
|
echo "configure:1406: checking "for Visual C++"" >&5
|
1406 |
|
|
MSVC="no";
|
1407 |
|
|
if test "${CC}" = "cl" ; then
|
1408 |
|
|
MSVC="yes"
|
1409 |
|
|
CXX="cl"
|
1410 |
|
|
MSVC_SRCDIR=${srcdir}
|
1411 |
|
|
|
1412 |
|
|
|
1413 |
|
|
|
1414 |
|
|
if test "${MSVC}" = "yes" ; then
|
1415 |
|
|
MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
|
1416 |
|
|
fi
|
1417 |
|
|
|
1418 |
|
|
|
1419 |
|
|
ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
|
1420 |
|
|
ecos_LDADD="-link"
|
1421 |
|
|
ecos_LIBS="advapi32.lib"
|
1422 |
|
|
fi
|
1423 |
|
|
|
1424 |
|
|
|
1425 |
|
|
if test "${MSVC}" = "yes"; then
|
1426 |
|
|
MSVC_TRUE=
|
1427 |
|
|
MSVC_FALSE='#'
|
1428 |
|
|
else
|
1429 |
|
|
MSVC_TRUE='#'
|
1430 |
|
|
MSVC_FALSE=
|
1431 |
|
|
fi
|
1432 |
|
|
if test "${MSVC}" = "yes" ; then
|
1433 |
|
|
echo "$ac_t""unfortunately yes" 1>&6
|
1434 |
|
|
else
|
1435 |
|
|
echo "$ac_t""no" 1>&6
|
1436 |
|
|
fi
|
1437 |
|
|
|
1438 |
|
|
|
1439 |
|
|
|
1440 |
|
|
|
1441 |
|
|
|
1442 |
|
|
|
1443 |
|
|
|
1444 |
|
|
echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
|
1445 |
|
|
echo "configure:1446: checking "the default compiler flags"" >&5
|
1446 |
|
|
|
1447 |
|
|
ecosflags_enable_debug="no"
|
1448 |
|
|
# Check whether --enable-debug or --disable-debug was given.
|
1449 |
|
|
if test "${enable_debug+set}" = set; then
|
1450 |
|
|
enableval="$enable_debug"
|
1451 |
|
|
case "${enableval}" in
|
1452 |
|
|
yes) ecosflags_enable_debug="yes" ;;
|
1453 |
|
|
*) ecosflags_enable_debug="no" ;;
|
1454 |
|
|
esac
|
1455 |
|
|
fi
|
1456 |
|
|
|
1457 |
|
|
|
1458 |
|
|
ecosflags_enable_ansi="no"
|
1459 |
|
|
if test "${MSVC}" = "yes" ; then
|
1460 |
|
|
# Check whether --enable-ansi or --disable-ansi was given.
|
1461 |
|
|
if test "${enable_ansi+set}" = set; then
|
1462 |
|
|
enableval="$enable_ansi"
|
1463 |
|
|
case "${enableval}" in
|
1464 |
|
|
yes) ecosflags_enable_ansi="yes" ;;
|
1465 |
|
|
*) ecosflags_enable_ansi="no" ;;
|
1466 |
|
|
esac
|
1467 |
|
|
fi
|
1468 |
|
|
|
1469 |
|
|
fi
|
1470 |
|
|
|
1471 |
|
|
if test "${GCC}" = "yes" ; then
|
1472 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
|
1473 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
|
1474 |
|
|
elif test "${MSVC}" = "yes" ; then
|
1475 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
|
1476 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
|
1477 |
|
|
else
|
1478 |
|
|
{ echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
|
1479 |
|
|
fi
|
1480 |
|
|
|
1481 |
|
|
if test "${ecosflags_enable_debug}" = "yes" ; then
|
1482 |
|
|
if test "${GCC}" = "yes" ; then
|
1483 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
|
1484 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
|
1485 |
|
|
elif test "${MSVC}" = "yes" ; then
|
1486 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
|
1487 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
|
1488 |
|
|
fi
|
1489 |
|
|
else
|
1490 |
|
|
if test "${GCC}" = "yes" ; then
|
1491 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -O0"
|
1492 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
|
1493 |
|
|
elif test "${MSVC}" = "yes" ; then
|
1494 |
|
|
ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
|
1495 |
|
|
ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
|
1496 |
|
|
fi
|
1497 |
|
|
fi
|
1498 |
|
|
|
1499 |
|
|
CFLAGS="${ac_save_CFLAGS}"
|
1500 |
|
|
CXXFLAGS="${ac_save_CXXFLAGS}"
|
1501 |
|
|
|
1502 |
|
|
echo "$ac_t""done" 1>&6
|
1503 |
|
|
|
1504 |
|
|
|
1505 |
|
|
|
1506 |
|
|
package_dir=`cd ${srcdir} && /bin/pwd`
|
1507 |
|
|
PACKAGE_VERSION=`dirname ${package_dir}`
|
1508 |
|
|
PACKAGE_VERSION=`basename ${PACKAGE_VERSION}`
|
1509 |
|
|
|
1510 |
|
|
package_dir=`dirname ${package_dir}`
|
1511 |
|
|
package_dir=`dirname ${package_dir}`
|
1512 |
|
|
|
1513 |
|
|
possibles="${package_dir}/.. ${package_dir}/../.. ${package_dir}/../../.. ${package_dir}/../../../.."
|
1514 |
|
|
possibles="${possibles} ${package_dir}/../../../../.. ${package_dir}/../../../../../.."
|
1515 |
|
|
|
1516 |
|
|
repository_root=""
|
1517 |
|
|
for i in ${possibles}; do
|
1518 |
|
|
if test -d "$i/"acsupport""; then
|
1519 |
|
|
repository_root=$i
|
1520 |
|
|
break
|
1521 |
|
|
fi
|
1522 |
|
|
done
|
1523 |
|
|
|
1524 |
|
|
if test "${repository_root}" = "" ; then
|
1525 |
|
|
{ echo "configure: error: Failed to identify this package's position within the eCos repository" 1>&2; exit 1; }
|
1526 |
|
|
fi
|
1527 |
|
|
ECOS_REPOSITORY=`cd "${repository_root}/packages/pkgconf/.." && /bin/pwd`
|
1528 |
|
|
|
1529 |
|
|
PACKAGE_DIR=`echo ${package_dir} | sed -e "s:${ECOS_REPOSITORY}/::"`
|
1530 |
|
|
|
1531 |
|
|
PACKAGE_INSTALL="${PACKAGE_DIR}/${PACKAGE_VERSION}"
|
1532 |
|
|
|
1533 |
|
|
|
1534 |
|
|
|
1535 |
|
|
|
1536 |
|
|
|
1537 |
|
|
|
1538 |
|
|
|
1539 |
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
1540 |
|
|
echo "configure:1541: checking how to run the C preprocessor" >&5
|
1541 |
|
|
# On Suns, sometimes $CPP names a directory.
|
1542 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
1543 |
|
|
CPP=
|
1544 |
|
|
fi
|
1545 |
|
|
if test -z "$CPP"; then
|
1546 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
1547 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1548 |
|
|
else
|
1549 |
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
1550 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
1551 |
|
|
CPP="${CC-cc} -E"
|
1552 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
1553 |
|
|
# not just through cpp.
|
1554 |
|
|
cat > conftest.$ac_ext <
|
1555 |
|
|
#line 1556 "configure"
|
1556 |
|
|
#include "confdefs.h"
|
1557 |
|
|
#include
|
1558 |
|
|
Syntax Error
|
1559 |
|
|
EOF
|
1560 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1561 |
|
|
{ (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1562 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1563 |
|
|
if test -z "$ac_err"; then
|
1564 |
|
|
:
|
1565 |
|
|
else
|
1566 |
|
|
echo "$ac_err" >&5
|
1567 |
|
|
echo "configure: failed program was:" >&5
|
1568 |
|
|
cat conftest.$ac_ext >&5
|
1569 |
|
|
rm -rf conftest*
|
1570 |
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
1571 |
|
|
cat > conftest.$ac_ext <
|
1572 |
|
|
#line 1573 "configure"
|
1573 |
|
|
#include "confdefs.h"
|
1574 |
|
|
#include
|
1575 |
|
|
Syntax Error
|
1576 |
|
|
EOF
|
1577 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1578 |
|
|
{ (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1579 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1580 |
|
|
if test -z "$ac_err"; then
|
1581 |
|
|
:
|
1582 |
|
|
else
|
1583 |
|
|
echo "$ac_err" >&5
|
1584 |
|
|
echo "configure: failed program was:" >&5
|
1585 |
|
|
cat conftest.$ac_ext >&5
|
1586 |
|
|
rm -rf conftest*
|
1587 |
|
|
CPP="${CC-cc} -nologo -E"
|
1588 |
|
|
cat > conftest.$ac_ext <
|
1589 |
|
|
#line 1590 "configure"
|
1590 |
|
|
#include "confdefs.h"
|
1591 |
|
|
#include
|
1592 |
|
|
Syntax Error
|
1593 |
|
|
EOF
|
1594 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1595 |
|
|
{ (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1596 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1597 |
|
|
if test -z "$ac_err"; then
|
1598 |
|
|
:
|
1599 |
|
|
else
|
1600 |
|
|
echo "$ac_err" >&5
|
1601 |
|
|
echo "configure: failed program was:" >&5
|
1602 |
|
|
cat conftest.$ac_ext >&5
|
1603 |
|
|
rm -rf conftest*
|
1604 |
|
|
CPP=/lib/cpp
|
1605 |
|
|
fi
|
1606 |
|
|
rm -f conftest*
|
1607 |
|
|
fi
|
1608 |
|
|
rm -f conftest*
|
1609 |
|
|
fi
|
1610 |
|
|
rm -f conftest*
|
1611 |
|
|
ac_cv_prog_CPP="$CPP"
|
1612 |
|
|
fi
|
1613 |
|
|
CPP="$ac_cv_prog_CPP"
|
1614 |
|
|
else
|
1615 |
|
|
ac_cv_prog_CPP="$CPP"
|
1616 |
|
|
fi
|
1617 |
|
|
echo "$ac_t""$CPP" 1>&6
|
1618 |
|
|
|
1619 |
|
|
for ac_hdr in "linux/if_tun.h"
|
1620 |
|
|
do
|
1621 |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
1622 |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
1623 |
|
|
echo "configure:1624: checking for $ac_hdr" >&5
|
1624 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1625 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
1626 |
|
|
else
|
1627 |
|
|
cat > conftest.$ac_ext <
|
1628 |
|
|
#line 1629 "configure"
|
1629 |
|
|
#include "confdefs.h"
|
1630 |
|
|
#include <$ac_hdr>
|
1631 |
|
|
EOF
|
1632 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
1633 |
|
|
{ (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1634 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1635 |
|
|
if test -z "$ac_err"; then
|
1636 |
|
|
rm -rf conftest*
|
1637 |
|
|
eval "ac_cv_header_$ac_safe=yes"
|
1638 |
|
|
else
|
1639 |
|
|
echo "$ac_err" >&5
|
1640 |
|
|
echo "configure: failed program was:" >&5
|
1641 |
|
|
cat conftest.$ac_ext >&5
|
1642 |
|
|
rm -rf conftest*
|
1643 |
|
|
eval "ac_cv_header_$ac_safe=no"
|
1644 |
|
|
fi
|
1645 |
|
|
rm -f conftest*
|
1646 |
|
|
fi
|
1647 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
1648 |
|
|
echo "$ac_t""yes" 1>&6
|
1649 |
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
1650 |
|
|
cat >> confdefs.h <
|
1651 |
|
|
#define $ac_tr_hdr 1
|
1652 |
|
|
EOF
|
1653 |
|
|
TAP_SUPPORTED="yes"
|
1654 |
|
|
else
|
1655 |
|
|
echo "$ac_t""no" 1>&6
|
1656 |
|
|
TAP_SUPPORTED="no"
|
1657 |
|
|
fi
|
1658 |
|
|
done
|
1659 |
|
|
|
1660 |
|
|
if test "${TAP_SUPPORTED}" = "no" ; then
|
1661 |
|
|
echo "configure: warning: No header, ethertap support disabled." 1>&2
|
1662 |
|
|
fi
|
1663 |
|
|
fi
|
1664 |
|
|
|
1665 |
|
|
if test "${SUPPORTED}" = "no" ; then
|
1666 |
|
|
echo "configure: warning: The synthetic ethernet support cannot be built on this platform." 1>&2
|
1667 |
|
|
fi
|
1668 |
|
|
|
1669 |
|
|
|
1670 |
|
|
|
1671 |
|
|
if test "${SUPPORTED}" = "yes"; then
|
1672 |
|
|
SUPPORTED_TRUE=
|
1673 |
|
|
SUPPORTED_FALSE='#'
|
1674 |
|
|
else
|
1675 |
|
|
SUPPORTED_TRUE='#'
|
1676 |
|
|
SUPPORTED_FALSE=
|
1677 |
|
|
fi
|
1678 |
|
|
|
1679 |
|
|
|
1680 |
|
|
trap '' 1 2 15
|
1681 |
|
|
cat > confcache <<\EOF
|
1682 |
|
|
# This file is a shell script that caches the results of configure
|
1683 |
|
|
# tests run on this system so they can be shared between configure
|
1684 |
|
|
# scripts and configure runs. It is not useful on other systems.
|
1685 |
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
1686 |
|
|
#
|
1687 |
|
|
# By default, configure uses ./config.cache as the cache file,
|
1688 |
|
|
# creating it if it does not exist already. You can give configure
|
1689 |
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
1690 |
|
|
# what configure does when it calls configure scripts in
|
1691 |
|
|
# subdirectories, so they share the cache.
|
1692 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
1693 |
|
|
# config.status only pays attention to the cache file if you give it the
|
1694 |
|
|
# --recheck option to rerun configure.
|
1695 |
|
|
#
|
1696 |
|
|
EOF
|
1697 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1698 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
1699 |
|
|
# So, don't put newlines in cache variables' values.
|
1700 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
1701 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
1702 |
|
|
(set) 2>&1 |
|
1703 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
1704 |
|
|
*ac_space=\ *)
|
1705 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
1706 |
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
1707 |
|
|
sed -n \
|
1708 |
|
|
-e "s/'/'\\\\''/g" \
|
1709 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
1710 |
|
|
;;
|
1711 |
|
|
*)
|
1712 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
1713 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
1714 |
|
|
;;
|
1715 |
|
|
esac >> confcache
|
1716 |
|
|
if cmp -s $cache_file confcache; then
|
1717 |
|
|
:
|
1718 |
|
|
else
|
1719 |
|
|
if test -w $cache_file; then
|
1720 |
|
|
echo "updating cache $cache_file"
|
1721 |
|
|
cat confcache > $cache_file
|
1722 |
|
|
else
|
1723 |
|
|
echo "not updating unwritable cache $cache_file"
|
1724 |
|
|
fi
|
1725 |
|
|
fi
|
1726 |
|
|
rm -f confcache
|
1727 |
|
|
|
1728 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
1729 |
|
|
|
1730 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
1731 |
|
|
# Let make expand exec_prefix.
|
1732 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
1733 |
|
|
|
1734 |
|
|
# Any assignment to VPATH causes Sun make to only execute
|
1735 |
|
|
# the first set of double-colon rules, so remove it if not needed.
|
1736 |
|
|
# If there is a colon in the path, we need to keep it.
|
1737 |
|
|
if test "x$srcdir" = x.; then
|
1738 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
1739 |
|
|
fi
|
1740 |
|
|
|
1741 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
1742 |
|
|
|
1743 |
|
|
# Transform confdefs.h into DEFS.
|
1744 |
|
|
# Protect against shell expansion while executing Makefile rules.
|
1745 |
|
|
# Protect against Makefile macro expansion.
|
1746 |
|
|
cat > conftest.defs <<\EOF
|
1747 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
1748 |
|
|
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
1749 |
|
|
s%\[%\\&%g
|
1750 |
|
|
s%\]%\\&%g
|
1751 |
|
|
s%\$%$$%g
|
1752 |
|
|
EOF
|
1753 |
|
|
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
1754 |
|
|
rm -f conftest.defs
|
1755 |
|
|
|
1756 |
|
|
|
1757 |
|
|
# Without the "./", some shells look in PATH for config.status.
|
1758 |
|
|
: ${CONFIG_STATUS=./config.status}
|
1759 |
|
|
|
1760 |
|
|
echo creating $CONFIG_STATUS
|
1761 |
|
|
rm -f $CONFIG_STATUS
|
1762 |
|
|
cat > $CONFIG_STATUS <
|
1763 |
|
|
#! /bin/sh
|
1764 |
|
|
# Generated automatically by configure.
|
1765 |
|
|
# Run this file to recreate the current configuration.
|
1766 |
|
|
# This directory was configured as follows,
|
1767 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
1768 |
|
|
#
|
1769 |
|
|
# $0 $ac_configure_args
|
1770 |
|
|
#
|
1771 |
|
|
# Compiler output produced by configure, useful for debugging
|
1772 |
|
|
# configure, is in ./config.log if it exists.
|
1773 |
|
|
|
1774 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
1775 |
|
|
for ac_option
|
1776 |
|
|
do
|
1777 |
|
|
case "\$ac_option" in
|
1778 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
1779 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
1780 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
1781 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
1782 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
1783 |
|
|
exit 0 ;;
|
1784 |
|
|
-help | --help | --hel | --he | --h)
|
1785 |
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
1786 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
1787 |
|
|
esac
|
1788 |
|
|
done
|
1789 |
|
|
|
1790 |
|
|
ac_given_srcdir=$srcdir
|
1791 |
|
|
ac_given_INSTALL="$INSTALL"
|
1792 |
|
|
|
1793 |
|
|
trap 'rm -fr `echo "Makefile:Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
1794 |
|
|
EOF
|
1795 |
|
|
cat >> $CONFIG_STATUS <
|
1796 |
|
|
|
1797 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
1798 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
1799 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
1800 |
|
|
$ac_vpsub
|
1801 |
|
|
$extrasub
|
1802 |
|
|
s%@SHELL@%$SHELL%g
|
1803 |
|
|
s%@CFLAGS@%$CFLAGS%g
|
1804 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
1805 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
1806 |
|
|
s%@FFLAGS@%$FFLAGS%g
|
1807 |
|
|
s%@DEFS@%$DEFS%g
|
1808 |
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
1809 |
|
|
s%@LIBS@%$LIBS%g
|
1810 |
|
|
s%@exec_prefix@%$exec_prefix%g
|
1811 |
|
|
s%@prefix@%$prefix%g
|
1812 |
|
|
s%@program_transform_name@%$program_transform_name%g
|
1813 |
|
|
s%@bindir@%$bindir%g
|
1814 |
|
|
s%@sbindir@%$sbindir%g
|
1815 |
|
|
s%@libexecdir@%$libexecdir%g
|
1816 |
|
|
s%@datadir@%$datadir%g
|
1817 |
|
|
s%@sysconfdir@%$sysconfdir%g
|
1818 |
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
1819 |
|
|
s%@localstatedir@%$localstatedir%g
|
1820 |
|
|
s%@libdir@%$libdir%g
|
1821 |
|
|
s%@includedir@%$includedir%g
|
1822 |
|
|
s%@oldincludedir@%$oldincludedir%g
|
1823 |
|
|
s%@infodir@%$infodir%g
|
1824 |
|
|
s%@mandir@%$mandir%g
|
1825 |
|
|
s%@host@%$host%g
|
1826 |
|
|
s%@host_alias@%$host_alias%g
|
1827 |
|
|
s%@host_cpu@%$host_cpu%g
|
1828 |
|
|
s%@host_vendor@%$host_vendor%g
|
1829 |
|
|
s%@host_os@%$host_os%g
|
1830 |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
1831 |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
1832 |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
1833 |
|
|
s%@PACKAGE@%$PACKAGE%g
|
1834 |
|
|
s%@VERSION@%$VERSION%g
|
1835 |
|
|
s%@ACLOCAL@%$ACLOCAL%g
|
1836 |
|
|
s%@AUTOCONF@%$AUTOCONF%g
|
1837 |
|
|
s%@AUTOMAKE@%$AUTOMAKE%g
|
1838 |
|
|
s%@AUTOHEADER@%$AUTOHEADER%g
|
1839 |
|
|
s%@MAKEINFO@%$MAKEINFO%g
|
1840 |
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
1841 |
|
|
s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
1842 |
|
|
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
1843 |
|
|
s%@MAINT@%$MAINT%g
|
1844 |
|
|
s%@CC@%$CC%g
|
1845 |
|
|
s%@CXX@%$CXX%g
|
1846 |
|
|
s%@OBJEXT@%$OBJEXT%g
|
1847 |
|
|
s%@EXEEXT@%$EXEEXT%g
|
1848 |
|
|
s%@ecos_CFLAGS@%$ecos_CFLAGS%g
|
1849 |
|
|
s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
|
1850 |
|
|
s%@ecos_LDADD@%$ecos_LDADD%g
|
1851 |
|
|
s%@ecos_INCLUDES@%$ecos_INCLUDES%g
|
1852 |
|
|
s%@ecos_LIBS@%$ecos_LIBS%g
|
1853 |
|
|
s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
|
1854 |
|
|
s%@MSVC_TRUE@%$MSVC_TRUE%g
|
1855 |
|
|
s%@MSVC_FALSE@%$MSVC_FALSE%g
|
1856 |
|
|
s%@ECOS_REPOSITORY@%$ECOS_REPOSITORY%g
|
1857 |
|
|
s%@PACKAGE_DIR@%$PACKAGE_DIR%g
|
1858 |
|
|
s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
|
1859 |
|
|
s%@PACKAGE_INSTALL@%$PACKAGE_INSTALL%g
|
1860 |
|
|
s%@CPP@%$CPP%g
|
1861 |
|
|
s%@SUPPORTED_TRUE@%$SUPPORTED_TRUE%g
|
1862 |
|
|
s%@SUPPORTED_FALSE@%$SUPPORTED_FALSE%g
|
1863 |
|
|
|
1864 |
|
|
CEOF
|
1865 |
|
|
EOF
|
1866 |
|
|
|
1867 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1868 |
|
|
|
1869 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
1870 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
1871 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
1872 |
|
|
ac_file=1 # Number of current file.
|
1873 |
|
|
ac_beg=1 # First line for current file.
|
1874 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
1875 |
|
|
ac_more_lines=:
|
1876 |
|
|
ac_sed_cmds=""
|
1877 |
|
|
while $ac_more_lines; do
|
1878 |
|
|
if test $ac_beg -gt 1; then
|
1879 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
1880 |
|
|
else
|
1881 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
1882 |
|
|
fi
|
1883 |
|
|
if test ! -s conftest.s$ac_file; then
|
1884 |
|
|
ac_more_lines=false
|
1885 |
|
|
rm -f conftest.s$ac_file
|
1886 |
|
|
else
|
1887 |
|
|
if test -z "$ac_sed_cmds"; then
|
1888 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
1889 |
|
|
else
|
1890 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
1891 |
|
|
fi
|
1892 |
|
|
ac_file=`expr $ac_file + 1`
|
1893 |
|
|
ac_beg=$ac_end
|
1894 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
1895 |
|
|
fi
|
1896 |
|
|
done
|
1897 |
|
|
if test -z "$ac_sed_cmds"; then
|
1898 |
|
|
ac_sed_cmds=cat
|
1899 |
|
|
fi
|
1900 |
|
|
EOF
|
1901 |
|
|
|
1902 |
|
|
cat >> $CONFIG_STATUS <
|
1903 |
|
|
|
1904 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in"}
|
1905 |
|
|
EOF
|
1906 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1907 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
1908 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
1909 |
|
|
case "$ac_file" in
|
1910 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
1911 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
1912 |
|
|
*) ac_file_in="${ac_file}.in" ;;
|
1913 |
|
|
esac
|
1914 |
|
|
|
1915 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
1916 |
|
|
|
1917 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
1918 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
1919 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
1920 |
|
|
# The file is in a subdirectory.
|
1921 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
1922 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
1923 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
1924 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
1925 |
|
|
else
|
1926 |
|
|
ac_dir_suffix= ac_dots=
|
1927 |
|
|
fi
|
1928 |
|
|
|
1929 |
|
|
case "$ac_given_srcdir" in
|
1930 |
|
|
.) srcdir=.
|
1931 |
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
1932 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
1933 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
1934 |
|
|
*) # Relative path.
|
1935 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
1936 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
1937 |
|
|
esac
|
1938 |
|
|
|
1939 |
|
|
case "$ac_given_INSTALL" in
|
1940 |
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
1941 |
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
1942 |
|
|
esac
|
1943 |
|
|
|
1944 |
|
|
echo creating "$ac_file"
|
1945 |
|
|
rm -f "$ac_file"
|
1946 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
1947 |
|
|
case "$ac_file" in
|
1948 |
|
|
*Makefile*) ac_comsub="1i\\
|
1949 |
|
|
# $configure_input" ;;
|
1950 |
|
|
*) ac_comsub= ;;
|
1951 |
|
|
esac
|
1952 |
|
|
|
1953 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
1954 |
|
|
sed -e "$ac_comsub
|
1955 |
|
|
s%@configure_input@%$configure_input%g
|
1956 |
|
|
s%@srcdir@%$srcdir%g
|
1957 |
|
|
s%@top_srcdir@%$top_srcdir%g
|
1958 |
|
|
s%@INSTALL@%$INSTALL%g
|
1959 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
1960 |
|
|
fi; done
|
1961 |
|
|
rm -f conftest.s*
|
1962 |
|
|
|
1963 |
|
|
EOF
|
1964 |
|
|
cat >> $CONFIG_STATUS <
|
1965 |
|
|
|
1966 |
|
|
EOF
|
1967 |
|
|
cat >> $CONFIG_STATUS <<\EOF
|
1968 |
|
|
|
1969 |
|
|
exit 0
|
1970 |
|
|
EOF
|
1971 |
|
|
chmod +x $CONFIG_STATUS
|
1972 |
|
|
rm -fr confdefs* $ac_clean_files
|
1973 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
1974 |
|
|
|