1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.57 for Proxy scanner daemon 2.0. |
4 |
# |
5 |
# Report bugs to <mbuna@bugged.org>. |
6 |
# |
7 |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
8 |
# Free Software Foundation, Inc. |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## --------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## --------------------- ## |
14 |
|
15 |
# Be Bourne compatible |
16 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
17 |
emulate sh |
18 |
NULLCMD=: |
19 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 |
# is contrary to our usage. Disable this feature. |
21 |
alias -g '${1+"$@"}'='"$@"' |
22 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23 |
set -o posix |
24 |
fi |
25 |
|
26 |
# Support unset when possible. |
27 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
28 |
as_unset=unset |
29 |
else |
30 |
as_unset=false |
31 |
fi |
32 |
|
33 |
|
34 |
# Work around bugs in pre-3.0 UWIN ksh. |
35 |
$as_unset ENV MAIL MAILPATH |
36 |
PS1='$ ' |
37 |
PS2='> ' |
38 |
PS4='+ ' |
39 |
|
40 |
# NLS nuisances. |
41 |
for as_var in \ |
42 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
43 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
44 |
LC_TELEPHONE LC_TIME |
45 |
do |
46 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47 |
eval $as_var=C; export $as_var |
48 |
else |
49 |
$as_unset $as_var |
50 |
fi |
51 |
done |
52 |
|
53 |
# Required to use basename. |
54 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
55 |
as_expr=expr |
56 |
else |
57 |
as_expr=false |
58 |
fi |
59 |
|
60 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
61 |
as_basename=basename |
62 |
else |
63 |
as_basename=false |
64 |
fi |
65 |
|
66 |
|
67 |
# Name of the executable. |
68 |
as_me=`$as_basename "$0" || |
69 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
70 |
X"$0" : 'X\(//\)$' \| \ |
71 |
X"$0" : 'X\(/\)$' \| \ |
72 |
. : '\(.\)' 2>/dev/null || |
73 |
echo X/"$0" | |
74 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
75 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
76 |
/^X\/\(\/\).*/{ s//\1/; q; } |
77 |
s/.*/./; q'` |
78 |
|
79 |
|
80 |
# PATH needs CR, and LINENO needs CR and PATH. |
81 |
# Avoid depending upon Character Ranges. |
82 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
83 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
84 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
85 |
as_cr_digits='0123456789' |
86 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
87 |
|
88 |
# The user is always right. |
89 |
if test "${PATH_SEPARATOR+set}" != set; then |
90 |
echo "#! /bin/sh" >conf$$.sh |
91 |
echo "exit 0" >>conf$$.sh |
92 |
chmod +x conf$$.sh |
93 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
94 |
PATH_SEPARATOR=';' |
95 |
else |
96 |
PATH_SEPARATOR=: |
97 |
fi |
98 |
rm -f conf$$.sh |
99 |
fi |
100 |
|
101 |
|
102 |
as_lineno_1=$LINENO |
103 |
as_lineno_2=$LINENO |
104 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
105 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
106 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
107 |
# Find who we are. Look in the path if we contain no path at all |
108 |
# relative or not. |
109 |
case $0 in |
110 |
*[\\/]* ) as_myself=$0 ;; |
111 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
112 |
for as_dir in $PATH |
113 |
do |
114 |
IFS=$as_save_IFS |
115 |
test -z "$as_dir" && as_dir=. |
116 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
117 |
done |
118 |
|
119 |
;; |
120 |
esac |
121 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
122 |
# in which case we are not to be found in the path. |
123 |
if test "x$as_myself" = x; then |
124 |
as_myself=$0 |
125 |
fi |
126 |
if test ! -f "$as_myself"; then |
127 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
128 |
{ (exit 1); exit 1; }; } |
129 |
fi |
130 |
case $CONFIG_SHELL in |
131 |
'') |
132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
133 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
134 |
do |
135 |
IFS=$as_save_IFS |
136 |
test -z "$as_dir" && as_dir=. |
137 |
for as_base in sh bash ksh sh5; do |
138 |
case $as_dir in |
139 |
/*) |
140 |
if ("$as_dir/$as_base" -c ' |
141 |
as_lineno_1=$LINENO |
142 |
as_lineno_2=$LINENO |
143 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
144 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
145 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
146 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
147 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
148 |
CONFIG_SHELL=$as_dir/$as_base |
149 |
export CONFIG_SHELL |
150 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
151 |
fi;; |
152 |
esac |
153 |
done |
154 |
done |
155 |
;; |
156 |
esac |
157 |
|
158 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
159 |
# uniformly replaced by the line number. The first 'sed' inserts a |
160 |
# line-number line before each line; the second 'sed' does the real |
161 |
# work. The second script uses 'N' to pair each line-number line |
162 |
# with the numbered line, and appends trailing '-' during |
163 |
# substitution so that $LINENO is not a special case at line end. |
164 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
165 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
166 |
sed '=' <$as_myself | |
167 |
sed ' |
168 |
N |
169 |
s,$,-, |
170 |
: loop |
171 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
172 |
t loop |
173 |
s,-$,, |
174 |
s,^['$as_cr_digits']*\n,, |
175 |
' >$as_me.lineno && |
176 |
chmod +x $as_me.lineno || |
177 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
178 |
{ (exit 1); exit 1; }; } |
179 |
|
180 |
# Don't try to exec as it changes $[0], causing all sort of problems |
181 |
# (the dirname of $[0] is not the place where we might find the |
182 |
# original and so on. Autoconf is especially sensible to this). |
183 |
. ./$as_me.lineno |
184 |
# Exit status is that of the last command. |
185 |
exit |
186 |
} |
187 |
|
188 |
|
189 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
190 |
*c*,-n*) ECHO_N= ECHO_C=' |
191 |
' ECHO_T=' ' ;; |
192 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
193 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
194 |
esac |
195 |
|
196 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
197 |
as_expr=expr |
198 |
else |
199 |
as_expr=false |
200 |
fi |
201 |
|
202 |
rm -f conf$$ conf$$.exe conf$$.file |
203 |
echo >conf$$.file |
204 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
205 |
# We could just check for DJGPP; but this test a) works b) is more generic |
206 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
207 |
if test -f conf$$.exe; then |
208 |
# Don't use ln at all; we don't have any links |
209 |
as_ln_s='cp -p' |
210 |
else |
211 |
as_ln_s='ln -s' |
212 |
fi |
213 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
214 |
as_ln_s=ln |
215 |
else |
216 |
as_ln_s='cp -p' |
217 |
fi |
218 |
rm -f conf$$ conf$$.exe conf$$.file |
219 |
|
220 |
if mkdir -p . 2>/dev/null; then |
221 |
as_mkdir_p=: |
222 |
else |
223 |
as_mkdir_p=false |
224 |
fi |
225 |
|
226 |
as_executable_p="test -f" |
227 |
|
228 |
# Sed expression to map a string onto a valid CPP name. |
229 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
230 |
|
231 |
# Sed expression to map a string onto a valid variable name. |
232 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
233 |
|
234 |
|
235 |
# IFS |
236 |
# We need space, tab and new line, in precisely that order. |
237 |
as_nl=' |
238 |
' |
239 |
IFS=" $as_nl" |
240 |
|
241 |
# CDPATH. |
242 |
$as_unset CDPATH |
243 |
|
244 |
|
245 |
# Name of the host. |
246 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
247 |
# so uname gets run too. |
248 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
249 |
|
250 |
exec 6>&1 |
251 |
|
252 |
# |
253 |
# Initializations. |
254 |
# |
255 |
ac_default_prefix=/usr/local |
256 |
ac_config_libobj_dir=. |
257 |
cross_compiling=no |
258 |
subdirs= |
259 |
MFLAGS= |
260 |
MAKEFLAGS= |
261 |
SHELL=${CONFIG_SHELL-/bin/sh} |
262 |
|
263 |
# Maximum number of lines to put in a shell here document. |
264 |
# This variable seems obsolete. It should probably be removed, and |
265 |
# only ac_max_sed_lines should be used. |
266 |
: ${ac_max_here_lines=38} |
267 |
|
268 |
# Identity of this package. |
269 |
PACKAGE_NAME='Proxy scanner daemon' |
270 |
PACKAGE_TARNAME='pxscand' |
271 |
PACKAGE_VERSION='2.0' |
272 |
PACKAGE_STRING='Proxy scanner daemon 2.0' |
273 |
PACKAGE_BUGREPORT='mbuna@bugged.org' |
274 |
|
275 |
ac_unique_file="src/pxyscand.cc" |
276 |
# Factoring default headers for most tests. |
277 |
ac_includes_default="\ |
278 |
#include <stdio.h> |
279 |
#if HAVE_SYS_TYPES_H |
280 |
# include <sys/types.h> |
281 |
#endif |
282 |
#if HAVE_SYS_STAT_H |
283 |
# include <sys/stat.h> |
284 |
#endif |
285 |
#if STDC_HEADERS |
286 |
# include <stdlib.h> |
287 |
# include <stddef.h> |
288 |
#else |
289 |
# if HAVE_STDLIB_H |
290 |
# include <stdlib.h> |
291 |
# endif |
292 |
#endif |
293 |
#if HAVE_STRING_H |
294 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
295 |
# include <memory.h> |
296 |
# endif |
297 |
# include <string.h> |
298 |
#endif |
299 |
#if HAVE_STRINGS_H |
300 |
# include <strings.h> |
301 |
#endif |
302 |
#if HAVE_INTTYPES_H |
303 |
# include <inttypes.h> |
304 |
#else |
305 |
# if HAVE_STDINT_H |
306 |
# include <stdint.h> |
307 |
# endif |
308 |
#endif |
309 |
#if HAVE_UNISTD_H |
310 |
# include <unistd.h> |
311 |
#endif" |
312 |
|
313 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE PEAK_CONFIG PEAK_CFLAGS PEAK_LIBS FGREP XML2_CONFIG XML2_CFLAGS XML2_LIBS CPP EGREP LIBOBJS LTLIBOBJS' |
314 |
ac_subst_files='' |
315 |
|
316 |
# Initialize some variables set by options. |
317 |
ac_init_help= |
318 |
ac_init_version=false |
319 |
# The variables have the same names as the options, with |
320 |
# dashes changed to underlines. |
321 |
cache_file=/dev/null |
322 |
exec_prefix=NONE |
323 |
no_create= |
324 |
no_recursion= |
325 |
prefix=NONE |
326 |
program_prefix=NONE |
327 |
program_suffix=NONE |
328 |
program_transform_name=s,x,x, |
329 |
silent= |
330 |
site= |
331 |
srcdir= |
332 |
verbose= |
333 |
x_includes=NONE |
334 |
x_libraries=NONE |
335 |
|
336 |
# Installation directory options. |
337 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
338 |
# and all the variables that are supposed to be based on exec_prefix |
339 |
# by default will actually change. |
340 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
341 |
bindir='${exec_prefix}/bin' |
342 |
sbindir='${exec_prefix}/sbin' |
343 |
libexecdir='${exec_prefix}/libexec' |
344 |
datadir='${prefix}/share' |
345 |
sysconfdir='${prefix}/etc' |
346 |
sharedstatedir='${prefix}/com' |
347 |
localstatedir='${prefix}/var' |
348 |
libdir='${exec_prefix}/lib' |
349 |
includedir='${prefix}/include' |
350 |
oldincludedir='/usr/include' |
351 |
infodir='${prefix}/info' |
352 |
mandir='${prefix}/man' |
353 |
|
354 |
ac_prev= |
355 |
for ac_option |
356 |
do |
357 |
# If the previous option needs an argument, assign it. |
358 |
if test -n "$ac_prev"; then |
359 |
eval "$ac_prev=\$ac_option" |
360 |
ac_prev= |
361 |
continue |
362 |
fi |
363 |
|
364 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
365 |
|
366 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
367 |
|
368 |
case $ac_option in |
369 |
|
370 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
371 |
ac_prev=bindir ;; |
372 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
373 |
bindir=$ac_optarg ;; |
374 |
|
375 |
-build | --build | --buil | --bui | --bu) |
376 |
ac_prev=build_alias ;; |
377 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
378 |
build_alias=$ac_optarg ;; |
379 |
|
380 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
381 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
382 |
ac_prev=cache_file ;; |
383 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
384 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
385 |
cache_file=$ac_optarg ;; |
386 |
|
387 |
--config-cache | -C) |
388 |
cache_file=config.cache ;; |
389 |
|
390 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
391 |
ac_prev=datadir ;; |
392 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
393 |
| --da=*) |
394 |
datadir=$ac_optarg ;; |
395 |
|
396 |
-disable-* | --disable-*) |
397 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
398 |
# Reject names that are not valid shell variable names. |
399 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
401 |
{ (exit 1); exit 1; }; } |
402 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
403 |
eval "enable_$ac_feature=no" ;; |
404 |
|
405 |
-enable-* | --enable-*) |
406 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
407 |
# Reject names that are not valid shell variable names. |
408 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
410 |
{ (exit 1); exit 1; }; } |
411 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
412 |
case $ac_option in |
413 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
414 |
*) ac_optarg=yes ;; |
415 |
esac |
416 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
417 |
|
418 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
419 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
420 |
| --exec | --exe | --ex) |
421 |
ac_prev=exec_prefix ;; |
422 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
423 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
424 |
| --exec=* | --exe=* | --ex=*) |
425 |
exec_prefix=$ac_optarg ;; |
426 |
|
427 |
-gas | --gas | --ga | --g) |
428 |
# Obsolete; use --with-gas. |
429 |
with_gas=yes ;; |
430 |
|
431 |
-help | --help | --hel | --he | -h) |
432 |
ac_init_help=long ;; |
433 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
434 |
ac_init_help=recursive ;; |
435 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
436 |
ac_init_help=short ;; |
437 |
|
438 |
-host | --host | --hos | --ho) |
439 |
ac_prev=host_alias ;; |
440 |
-host=* | --host=* | --hos=* | --ho=*) |
441 |
host_alias=$ac_optarg ;; |
442 |
|
443 |
-includedir | --includedir | --includedi | --included | --include \ |
444 |
| --includ | --inclu | --incl | --inc) |
445 |
ac_prev=includedir ;; |
446 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
447 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
448 |
includedir=$ac_optarg ;; |
449 |
|
450 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
451 |
ac_prev=infodir ;; |
452 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
453 |
infodir=$ac_optarg ;; |
454 |
|
455 |
-libdir | --libdir | --libdi | --libd) |
456 |
ac_prev=libdir ;; |
457 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
458 |
libdir=$ac_optarg ;; |
459 |
|
460 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
461 |
| --libexe | --libex | --libe) |
462 |
ac_prev=libexecdir ;; |
463 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
464 |
| --libexe=* | --libex=* | --libe=*) |
465 |
libexecdir=$ac_optarg ;; |
466 |
|
467 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
468 |
| --localstate | --localstat | --localsta | --localst \ |
469 |
| --locals | --local | --loca | --loc | --lo) |
470 |
ac_prev=localstatedir ;; |
471 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
472 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
473 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
474 |
localstatedir=$ac_optarg ;; |
475 |
|
476 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
477 |
ac_prev=mandir ;; |
478 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
479 |
mandir=$ac_optarg ;; |
480 |
|
481 |
-nfp | --nfp | --nf) |
482 |
# Obsolete; use --without-fp. |
483 |
with_fp=no ;; |
484 |
|
485 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
486 |
| --no-cr | --no-c | -n) |
487 |
no_create=yes ;; |
488 |
|
489 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
490 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
491 |
no_recursion=yes ;; |
492 |
|
493 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
494 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
495 |
| --oldin | --oldi | --old | --ol | --o) |
496 |
ac_prev=oldincludedir ;; |
497 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
498 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
499 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
500 |
oldincludedir=$ac_optarg ;; |
501 |
|
502 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
503 |
ac_prev=prefix ;; |
504 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
505 |
prefix=$ac_optarg ;; |
506 |
|
507 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
508 |
| --program-pre | --program-pr | --program-p) |
509 |
ac_prev=program_prefix ;; |
510 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
511 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
512 |
program_prefix=$ac_optarg ;; |
513 |
|
514 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
515 |
| --program-suf | --program-su | --program-s) |
516 |
ac_prev=program_suffix ;; |
517 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
518 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
519 |
program_suffix=$ac_optarg ;; |
520 |
|
521 |
-program-transform-name | --program-transform-name \ |
522 |
| --program-transform-nam | --program-transform-na \ |
523 |
| --program-transform-n | --program-transform- \ |
524 |
| --program-transform | --program-transfor \ |
525 |
| --program-transfo | --program-transf \ |
526 |
| --program-trans | --program-tran \ |
527 |
| --progr-tra | --program-tr | --program-t) |
528 |
ac_prev=program_transform_name ;; |
529 |
-program-transform-name=* | --program-transform-name=* \ |
530 |
| --program-transform-nam=* | --program-transform-na=* \ |
531 |
| --program-transform-n=* | --program-transform-=* \ |
532 |
| --program-transform=* | --program-transfor=* \ |
533 |
| --program-transfo=* | --program-transf=* \ |
534 |
| --program-trans=* | --program-tran=* \ |
535 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
536 |
program_transform_name=$ac_optarg ;; |
537 |
|
538 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
539 |
| -silent | --silent | --silen | --sile | --sil) |
540 |
silent=yes ;; |
541 |
|
542 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
543 |
ac_prev=sbindir ;; |
544 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
545 |
| --sbi=* | --sb=*) |
546 |
sbindir=$ac_optarg ;; |
547 |
|
548 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
549 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
550 |
| --sharedst | --shareds | --shared | --share | --shar \ |
551 |
| --sha | --sh) |
552 |
ac_prev=sharedstatedir ;; |
553 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
554 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
555 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
556 |
| --sha=* | --sh=*) |
557 |
sharedstatedir=$ac_optarg ;; |
558 |
|
559 |
-site | --site | --sit) |
560 |
ac_prev=site ;; |
561 |
-site=* | --site=* | --sit=*) |
562 |
site=$ac_optarg ;; |
563 |
|
564 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
565 |
ac_prev=srcdir ;; |
566 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
567 |
srcdir=$ac_optarg ;; |
568 |
|
569 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
570 |
| --syscon | --sysco | --sysc | --sys | --sy) |
571 |
ac_prev=sysconfdir ;; |
572 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
573 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
574 |
sysconfdir=$ac_optarg ;; |
575 |
|
576 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
577 |
ac_prev=target_alias ;; |
578 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
579 |
target_alias=$ac_optarg ;; |
580 |
|
581 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
582 |
verbose=yes ;; |
583 |
|
584 |
-version | --version | --versio | --versi | --vers | -V) |
585 |
ac_init_version=: ;; |
586 |
|
587 |
-with-* | --with-*) |
588 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
589 |
# Reject names that are not valid shell variable names. |
590 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
592 |
{ (exit 1); exit 1; }; } |
593 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
594 |
case $ac_option in |
595 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
596 |
*) ac_optarg=yes ;; |
597 |
esac |
598 |
eval "with_$ac_package='$ac_optarg'" ;; |
599 |
|
600 |
-without-* | --without-*) |
601 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
602 |
# Reject names that are not valid shell variable names. |
603 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
605 |
{ (exit 1); exit 1; }; } |
606 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
607 |
eval "with_$ac_package=no" ;; |
608 |
|
609 |
--x) |
610 |
# Obsolete; use --with-x. |
611 |
with_x=yes ;; |
612 |
|
613 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
614 |
| --x-incl | --x-inc | --x-in | --x-i) |
615 |
ac_prev=x_includes ;; |
616 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
617 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
618 |
x_includes=$ac_optarg ;; |
619 |
|
620 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
621 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
622 |
ac_prev=x_libraries ;; |
623 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
624 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
625 |
x_libraries=$ac_optarg ;; |
626 |
|
627 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
628 |
Try \`$0 --help' for more information." >&2 |
629 |
{ (exit 1); exit 1; }; } |
630 |
;; |
631 |
|
632 |
*=*) |
633 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
634 |
# Reject names that are not valid shell variable names. |
635 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
636 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
637 |
{ (exit 1); exit 1; }; } |
638 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
639 |
eval "$ac_envvar='$ac_optarg'" |
640 |
export $ac_envvar ;; |
641 |
|
642 |
*) |
643 |
# FIXME: should be removed in autoconf 3.0. |
644 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
645 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
646 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
647 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
648 |
;; |
649 |
|
650 |
esac |
651 |
done |
652 |
|
653 |
if test -n "$ac_prev"; then |
654 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
656 |
{ (exit 1); exit 1; }; } |
657 |
fi |
658 |
|
659 |
# Be sure to have absolute paths. |
660 |
for ac_var in exec_prefix prefix |
661 |
do |
662 |
eval ac_val=$`echo $ac_var` |
663 |
case $ac_val in |
664 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
665 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
666 |
{ (exit 1); exit 1; }; };; |
667 |
esac |
668 |
done |
669 |
|
670 |
# Be sure to have absolute paths. |
671 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
672 |
localstatedir libdir includedir oldincludedir infodir mandir |
673 |
do |
674 |
eval ac_val=$`echo $ac_var` |
675 |
case $ac_val in |
676 |
[\\/$]* | ?:[\\/]* ) ;; |
677 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
678 |
{ (exit 1); exit 1; }; };; |
679 |
esac |
680 |
done |
681 |
|
682 |
# There might be people who depend on the old broken behavior: `$host' |
683 |
# used to hold the argument of --host etc. |
684 |
# FIXME: To remove some day. |
685 |
build=$build_alias |
686 |
host=$host_alias |
687 |
target=$target_alias |
688 |
|
689 |
# FIXME: To remove some day. |
690 |
if test "x$host_alias" != x; then |
691 |
if test "x$build_alias" = x; then |
692 |
cross_compiling=maybe |
693 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
694 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
695 |
elif test "x$build_alias" != "x$host_alias"; then |
696 |
cross_compiling=yes |
697 |
fi |
698 |
fi |
699 |
|
700 |
ac_tool_prefix= |
701 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
702 |
|
703 |
test "$silent" = yes && exec 6>/dev/null |
704 |
|
705 |
|
706 |
# Find the source files, if location was not specified. |
707 |
if test -z "$srcdir"; then |
708 |
ac_srcdir_defaulted=yes |
709 |
# Try the directory containing this script, then its parent. |
710 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
711 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
712 |
X"$0" : 'X\(//\)[^/]' \| \ |
713 |
X"$0" : 'X\(//\)$' \| \ |
714 |
X"$0" : 'X\(/\)' \| \ |
715 |
. : '\(.\)' 2>/dev/null || |
716 |
echo X"$0" | |
717 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
718 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
719 |
/^X\(\/\/\)$/{ s//\1/; q; } |
720 |
/^X\(\/\).*/{ s//\1/; q; } |
721 |
s/.*/./; q'` |
722 |
srcdir=$ac_confdir |
723 |
if test ! -r $srcdir/$ac_unique_file; then |
724 |
srcdir=.. |
725 |
fi |
726 |
else |
727 |
ac_srcdir_defaulted=no |
728 |
fi |
729 |
if test ! -r $srcdir/$ac_unique_file; then |
730 |
if test "$ac_srcdir_defaulted" = yes; then |
731 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
732 |
{ (exit 1); exit 1; }; } |
733 |
else |
734 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
735 |
{ (exit 1); exit 1; }; } |
736 |
fi |
737 |
fi |
738 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
740 |
{ (exit 1); exit 1; }; } |
741 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
742 |
ac_env_build_alias_set=${build_alias+set} |
743 |
ac_env_build_alias_value=$build_alias |
744 |
ac_cv_env_build_alias_set=${build_alias+set} |
745 |
ac_cv_env_build_alias_value=$build_alias |
746 |
ac_env_host_alias_set=${host_alias+set} |
747 |
ac_env_host_alias_value=$host_alias |
748 |
ac_cv_env_host_alias_set=${host_alias+set} |
749 |
ac_cv_env_host_alias_value=$host_alias |
750 |
ac_env_target_alias_set=${target_alias+set} |
751 |
ac_env_target_alias_value=$target_alias |
752 |
ac_cv_env_target_alias_set=${target_alias+set} |
753 |
ac_cv_env_target_alias_value=$target_alias |
754 |
ac_env_CC_set=${CC+set} |
755 |
ac_env_CC_value=$CC |
756 |
ac_cv_env_CC_set=${CC+set} |
757 |
ac_cv_env_CC_value=$CC |
758 |
ac_env_CFLAGS_set=${CFLAGS+set} |
759 |
ac_env_CFLAGS_value=$CFLAGS |
760 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
761 |
ac_cv_env_CFLAGS_value=$CFLAGS |
762 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
763 |
ac_env_LDFLAGS_value=$LDFLAGS |
764 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
765 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
766 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
768 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
770 |
ac_env_CXX_set=${CXX+set} |
771 |
ac_env_CXX_value=$CXX |
772 |
ac_cv_env_CXX_set=${CXX+set} |
773 |
ac_cv_env_CXX_value=$CXX |
774 |
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
775 |
ac_env_CXXFLAGS_value=$CXXFLAGS |
776 |
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
777 |
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
778 |
ac_env_CPP_set=${CPP+set} |
779 |
ac_env_CPP_value=$CPP |
780 |
ac_cv_env_CPP_set=${CPP+set} |
781 |
ac_cv_env_CPP_value=$CPP |
782 |
|
783 |
# |
784 |
# Report the --help message. |
785 |
# |
786 |
if test "$ac_init_help" = "long"; then |
787 |
# Omit some internal or obsolete options to make the list less imposing. |
788 |
# This message is too long to be a string in the A/UX 3.1 sh. |
789 |
cat <<_ACEOF |
790 |
\`configure' configures Proxy scanner daemon 2.0 to adapt to many kinds of systems. |
791 |
|
792 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
793 |
|
794 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
795 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
796 |
|
797 |
Defaults for the options are specified in brackets. |
798 |
|
799 |
Configuration: |
800 |
-h, --help display this help and exit |
801 |
--help=short display options specific to this package |
802 |
--help=recursive display the short help of all the included packages |
803 |
-V, --version display version information and exit |
804 |
-q, --quiet, --silent do not print \`checking...' messages |
805 |
--cache-file=FILE cache test results in FILE [disabled] |
806 |
-C, --config-cache alias for \`--cache-file=config.cache' |
807 |
-n, --no-create do not create output files |
808 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
809 |
|
810 |
_ACEOF |
811 |
|
812 |
cat <<_ACEOF |
813 |
Installation directories: |
814 |
--prefix=PREFIX install architecture-independent files in PREFIX |
815 |
[$ac_default_prefix] |
816 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
817 |
[PREFIX] |
818 |
|
819 |
By default, \`make install' will install all the files in |
820 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
821 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
822 |
for instance \`--prefix=\$HOME'. |
823 |
|
824 |
For better control, use the options below. |
825 |
|
826 |
Fine tuning of the installation directories: |
827 |
--bindir=DIR user executables [EPREFIX/bin] |
828 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
829 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
830 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
831 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
832 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
833 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
834 |
--libdir=DIR object code libraries [EPREFIX/lib] |
835 |
--includedir=DIR C header files [PREFIX/include] |
836 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
837 |
--infodir=DIR info documentation [PREFIX/info] |
838 |
--mandir=DIR man documentation [PREFIX/man] |
839 |
_ACEOF |
840 |
|
841 |
cat <<\_ACEOF |
842 |
|
843 |
Program names: |
844 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
845 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
846 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
847 |
_ACEOF |
848 |
fi |
849 |
|
850 |
if test -n "$ac_init_help"; then |
851 |
case $ac_init_help in |
852 |
short | recursive ) echo "Configuration of Proxy scanner daemon 2.0:";; |
853 |
esac |
854 |
cat <<\_ACEOF |
855 |
|
856 |
Optional Features: |
857 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
858 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
859 |
--enable-maintainer-mode enable make rules and dependencies not useful |
860 |
(and sometimes confusing) to the casual installer |
861 |
--disable-dependency-tracking Speeds up one-time builds |
862 |
--enable-dependency-tracking Do not reject slow dependency extractors |
863 |
|
864 |
Optional Packages: |
865 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
866 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
867 |
--with-peak-prefix=PFX Prefix where peak is installed (optional) |
868 |
--with-peak-exec-prefix=PFX Exec prefix where peak is installed (optional) |
869 |
--with-xml2-prefix=PFX Prefix where xml2 is installed (optional) |
870 |
--with-xml2-exec-prefix=PFX Exec prefix where xml2 is installed (optional) |
871 |
|
872 |
Some influential environment variables: |
873 |
CC C compiler command |
874 |
CFLAGS C compiler flags |
875 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
876 |
nonstandard directory <lib dir> |
877 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
878 |
headers in a nonstandard directory <include dir> |
879 |
CXX C++ compiler command |
880 |
CXXFLAGS C++ compiler flags |
881 |
CPP C preprocessor |
882 |
|
883 |
Use these variables to override the choices made by `configure' or to help |
884 |
it to find libraries and programs with nonstandard names/locations. |
885 |
|
886 |
Report bugs to <mbuna@bugged.org>. |
887 |
_ACEOF |
888 |
fi |
889 |
|
890 |
if test "$ac_init_help" = "recursive"; then |
891 |
# If there are subdirs, report their specific --help. |
892 |
ac_popdir=`pwd` |
893 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
894 |
test -d $ac_dir || continue |
895 |
ac_builddir=. |
896 |
|
897 |
if test "$ac_dir" != .; then |
898 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
899 |
# A "../" for each directory in $ac_dir_suffix. |
900 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
901 |
else |
902 |
ac_dir_suffix= ac_top_builddir= |
903 |
fi |
904 |
|
905 |
case $srcdir in |
906 |
.) # No --srcdir option. We are building in place. |
907 |
ac_srcdir=. |
908 |
if test -z "$ac_top_builddir"; then |
909 |
ac_top_srcdir=. |
910 |
else |
911 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
912 |
fi ;; |
913 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
914 |
ac_srcdir=$srcdir$ac_dir_suffix; |
915 |
ac_top_srcdir=$srcdir ;; |
916 |
*) # Relative path. |
917 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
918 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
919 |
esac |
920 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
921 |
# absolute. |
922 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
923 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
924 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
925 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
926 |
|
927 |
cd $ac_dir |
928 |
# Check for guested configure; otherwise get Cygnus style configure. |
929 |
if test -f $ac_srcdir/configure.gnu; then |
930 |
echo |
931 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
932 |
elif test -f $ac_srcdir/configure; then |
933 |
echo |
934 |
$SHELL $ac_srcdir/configure --help=recursive |
935 |
elif test -f $ac_srcdir/configure.ac || |
936 |
test -f $ac_srcdir/configure.in; then |
937 |
echo |
938 |
$ac_configure --help |
939 |
else |
940 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
941 |
fi |
942 |
cd $ac_popdir |
943 |
done |
944 |
fi |
945 |
|
946 |
test -n "$ac_init_help" && exit 0 |
947 |
if $ac_init_version; then |
948 |
cat <<\_ACEOF |
949 |
Proxy scanner daemon configure 2.0 |
950 |
generated by GNU Autoconf 2.57 |
951 |
|
952 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
953 |
Free Software Foundation, Inc. |
954 |
This configure script is free software; the Free Software Foundation |
955 |
gives unlimited permission to copy, distribute and modify it. |
956 |
_ACEOF |
957 |
exit 0 |
958 |
fi |
959 |
exec 5>config.log |
960 |
cat >&5 <<_ACEOF |
961 |
This file contains any messages produced by compilers while |
962 |
running configure, to aid debugging if configure makes a mistake. |
963 |
|
964 |
It was created by Proxy scanner daemon $as_me 2.0, which was |
965 |
generated by GNU Autoconf 2.57. Invocation command line was |
966 |
|
967 |
$ $0 $@ |
968 |
|
969 |
_ACEOF |
970 |
{ |
971 |
cat <<_ASUNAME |
972 |
## --------- ## |
973 |
## Platform. ## |
974 |
## --------- ## |
975 |
|
976 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
977 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
978 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
979 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
980 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
981 |
|
982 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
983 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
984 |
|
985 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
986 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
987 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
988 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
989 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
990 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
991 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
992 |
|
993 |
_ASUNAME |
994 |
|
995 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
996 |
for as_dir in $PATH |
997 |
do |
998 |
IFS=$as_save_IFS |
999 |
test -z "$as_dir" && as_dir=. |
1000 |
echo "PATH: $as_dir" |
1001 |
done |
1002 |
|
1003 |
} >&5 |
1004 |
|
1005 |
cat >&5 <<_ACEOF |
1006 |
|
1007 |
|
1008 |
## ----------- ## |
1009 |
## Core tests. ## |
1010 |
## ----------- ## |
1011 |
|
1012 |
_ACEOF |
1013 |
|
1014 |
|
1015 |
# Keep a trace of the command line. |
1016 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1017 |
# Strip out --silent because we don't want to record it for future runs. |
1018 |
# Also quote any args containing shell meta-characters. |
1019 |
# Make two passes to allow for proper duplicate-argument suppression. |
1020 |
ac_configure_args= |
1021 |
ac_configure_args0= |
1022 |
ac_configure_args1= |
1023 |
ac_sep= |
1024 |
ac_must_keep_next=false |
1025 |
for ac_pass in 1 2 |
1026 |
do |
1027 |
for ac_arg |
1028 |
do |
1029 |
case $ac_arg in |
1030 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1031 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1032 |
| -silent | --silent | --silen | --sile | --sil) |
1033 |
continue ;; |
1034 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1035 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1036 |
esac |
1037 |
case $ac_pass in |
1038 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1039 |
2) |
1040 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1041 |
if test $ac_must_keep_next = true; then |
1042 |
ac_must_keep_next=false # Got value, back to normal. |
1043 |
else |
1044 |
case $ac_arg in |
1045 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1046 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1047 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1048 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1049 |
case "$ac_configure_args0 " in |
1050 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1051 |
esac |
1052 |
;; |
1053 |
-* ) ac_must_keep_next=true ;; |
1054 |
esac |
1055 |
fi |
1056 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1057 |
# Get rid of the leading space. |
1058 |
ac_sep=" " |
1059 |
;; |
1060 |
esac |
1061 |
done |
1062 |
done |
1063 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1064 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1065 |
|
1066 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1067 |
# config.log. We remove comments because anyway the quotes in there |
1068 |
# would cause problems or look ugly. |
1069 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1070 |
# such as our DU 5.0 friend, will then `close' the trap. |
1071 |
trap 'exit_status=$? |
1072 |
# Save into config.log some information that might help in debugging. |
1073 |
{ |
1074 |
echo |
1075 |
|
1076 |
cat <<\_ASBOX |
1077 |
## ---------------- ## |
1078 |
## Cache variables. ## |
1079 |
## ---------------- ## |
1080 |
_ASBOX |
1081 |
echo |
1082 |
# The following way of writing the cache mishandles newlines in values, |
1083 |
{ |
1084 |
(set) 2>&1 | |
1085 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1086 |
*ac_space=\ *) |
1087 |
sed -n \ |
1088 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1089 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1090 |
;; |
1091 |
*) |
1092 |
sed -n \ |
1093 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1094 |
;; |
1095 |
esac; |
1096 |
} |
1097 |
echo |
1098 |
|
1099 |
cat <<\_ASBOX |
1100 |
## ----------------- ## |
1101 |
## Output variables. ## |
1102 |
## ----------------- ## |
1103 |
_ASBOX |
1104 |
echo |
1105 |
for ac_var in $ac_subst_vars |
1106 |
do |
1107 |
eval ac_val=$`echo $ac_var` |
1108 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1109 |
done | sort |
1110 |
echo |
1111 |
|
1112 |
if test -n "$ac_subst_files"; then |
1113 |
cat <<\_ASBOX |
1114 |
## ------------- ## |
1115 |
## Output files. ## |
1116 |
## ------------- ## |
1117 |
_ASBOX |
1118 |
echo |
1119 |
for ac_var in $ac_subst_files |
1120 |
do |
1121 |
eval ac_val=$`echo $ac_var` |
1122 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1123 |
done | sort |
1124 |
echo |
1125 |
fi |
1126 |
|
1127 |
if test -s confdefs.h; then |
1128 |
cat <<\_ASBOX |
1129 |
## ----------- ## |
1130 |
## confdefs.h. ## |
1131 |
## ----------- ## |
1132 |
_ASBOX |
1133 |
echo |
1134 |
sed "/^$/d" confdefs.h | sort |
1135 |
echo |
1136 |
fi |
1137 |
test "$ac_signal" != 0 && |
1138 |
echo "$as_me: caught signal $ac_signal" |
1139 |
echo "$as_me: exit $exit_status" |
1140 |
} >&5 |
1141 |
rm -f core core.* *.core && |
1142 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1143 |
exit $exit_status |
1144 |
' 0 |
1145 |
for ac_signal in 1 2 13 15; do |
1146 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1147 |
done |
1148 |
ac_signal=0 |
1149 |
|
1150 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1151 |
rm -rf conftest* confdefs.h |
1152 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1153 |
echo >confdefs.h |
1154 |
|
1155 |
# Predefined preprocessor variables. |
1156 |
|
1157 |
cat >>confdefs.h <<_ACEOF |
1158 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1159 |
_ACEOF |
1160 |
|
1161 |
|
1162 |
cat >>confdefs.h <<_ACEOF |
1163 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1164 |
_ACEOF |
1165 |
|
1166 |
|
1167 |
cat >>confdefs.h <<_ACEOF |
1168 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1169 |
_ACEOF |
1170 |
|
1171 |
|
1172 |
cat >>confdefs.h <<_ACEOF |
1173 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1174 |
_ACEOF |
1175 |
|
1176 |
|
1177 |
cat >>confdefs.h <<_ACEOF |
1178 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1179 |
_ACEOF |
1180 |
|
1181 |
|
1182 |
# Let the site file select an alternate cache file if it wants to. |
1183 |
# Prefer explicitly selected file to automatically selected ones. |
1184 |
if test -z "$CONFIG_SITE"; then |
1185 |
if test "x$prefix" != xNONE; then |
1186 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1187 |
else |
1188 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1189 |
fi |
1190 |
fi |
1191 |
for ac_site_file in $CONFIG_SITE; do |
1192 |
if test -r "$ac_site_file"; then |
1193 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1194 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1195 |
sed 's/^/| /' "$ac_site_file" >&5 |
1196 |
. "$ac_site_file" |
1197 |
fi |
1198 |
done |
1199 |
|
1200 |
if test -r "$cache_file"; then |
1201 |
# Some versions of bash will fail to source /dev/null (special |
1202 |
# files actually), so we avoid doing that. |
1203 |
if test -f "$cache_file"; then |
1204 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1205 |
echo "$as_me: loading cache $cache_file" >&6;} |
1206 |
case $cache_file in |
1207 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1208 |
*) . ./$cache_file;; |
1209 |
esac |
1210 |
fi |
1211 |
else |
1212 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1213 |
echo "$as_me: creating cache $cache_file" >&6;} |
1214 |
>$cache_file |
1215 |
fi |
1216 |
|
1217 |
# Check that the precious variables saved in the cache have kept the same |
1218 |
# value. |
1219 |
ac_cache_corrupted=false |
1220 |
for ac_var in `(set) 2>&1 | |
1221 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1222 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1223 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1224 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1225 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1226 |
case $ac_old_set,$ac_new_set in |
1227 |
set,) |
1228 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1229 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1230 |
ac_cache_corrupted=: ;; |
1231 |
,set) |
1232 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1233 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1234 |
ac_cache_corrupted=: ;; |
1235 |
,);; |
1236 |
*) |
1237 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1238 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1239 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1240 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1241 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1242 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1243 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1244 |
ac_cache_corrupted=: |
1245 |
fi;; |
1246 |
esac |
1247 |
# Pass precious variables to config.status. |
1248 |
if test "$ac_new_set" = set; then |
1249 |
case $ac_new_val in |
1250 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1251 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1252 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1253 |
esac |
1254 |
case " $ac_configure_args " in |
1255 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1256 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1257 |
esac |
1258 |
fi |
1259 |
done |
1260 |
if $ac_cache_corrupted; then |
1261 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1262 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1263 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1264 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1265 |
{ (exit 1); exit 1; }; } |
1266 |
fi |
1267 |
|
1268 |
ac_ext=c |
1269 |
ac_cpp='$CPP $CPPFLAGS' |
1270 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1271 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1272 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 |
|
1300 |
am__api_version="1.6" |
1301 |
ac_aux_dir= |
1302 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1303 |
if test -f $ac_dir/install-sh; then |
1304 |
ac_aux_dir=$ac_dir |
1305 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
1306 |
break |
1307 |
elif test -f $ac_dir/install.sh; then |
1308 |
ac_aux_dir=$ac_dir |
1309 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1310 |
break |
1311 |
elif test -f $ac_dir/shtool; then |
1312 |
ac_aux_dir=$ac_dir |
1313 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1314 |
break |
1315 |
fi |
1316 |
done |
1317 |
if test -z "$ac_aux_dir"; then |
1318 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1319 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1320 |
{ (exit 1); exit 1; }; } |
1321 |
fi |
1322 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1323 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1324 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1325 |
|
1326 |
# Find a good install program. We prefer a C program (faster), |
1327 |
# so one script is as good as another. But avoid the broken or |
1328 |
# incompatible versions: |
1329 |
# SysV /etc/install, /usr/sbin/install |
1330 |
# SunOS /usr/etc/install |
1331 |
# IRIX /sbin/install |
1332 |
# AIX /bin/install |
1333 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
1334 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1335 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1336 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1337 |
# ./install, which can be erroneously created by make from ./install.sh. |
1338 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1339 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
1340 |
if test -z "$INSTALL"; then |
1341 |
if test "${ac_cv_path_install+set}" = set; then |
1342 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1343 |
else |
1344 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1345 |
for as_dir in $PATH |
1346 |
do |
1347 |
IFS=$as_save_IFS |
1348 |
test -z "$as_dir" && as_dir=. |
1349 |
# Account for people who put trailing slashes in PATH elements. |
1350 |
case $as_dir/ in |
1351 |
./ | .// | /cC/* | \ |
1352 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1353 |
/usr/ucb/* ) ;; |
1354 |
*) |
1355 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
1356 |
# Don't use installbsd from OSF since it installs stuff as root |
1357 |
# by default. |
1358 |
for ac_prog in ginstall scoinst install; do |
1359 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1360 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1361 |
if test $ac_prog = install && |
1362 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1363 |
# AIX install. It has an incompatible calling convention. |
1364 |
: |
1365 |
elif test $ac_prog = install && |
1366 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1367 |
# program-specific install script used by HP pwplus--don't use. |
1368 |
: |
1369 |
else |
1370 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1371 |
break 3 |
1372 |
fi |
1373 |
fi |
1374 |
done |
1375 |
done |
1376 |
;; |
1377 |
esac |
1378 |
done |
1379 |
|
1380 |
|
1381 |
fi |
1382 |
if test "${ac_cv_path_install+set}" = set; then |
1383 |
INSTALL=$ac_cv_path_install |
1384 |
else |
1385 |
# As a last resort, use the slow shell script. We don't cache a |
1386 |
# path for INSTALL within a source directory, because that will |
1387 |
# break other packages using the cache if that directory is |
1388 |
# removed, or if the path is relative. |
1389 |
INSTALL=$ac_install_sh |
1390 |
fi |
1391 |
fi |
1392 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1393 |
echo "${ECHO_T}$INSTALL" >&6 |
1394 |
|
1395 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1396 |
# It thinks the first close brace ends the variable substitution. |
1397 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
1398 |
|
1399 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1400 |
|
1401 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1402 |
|
1403 |
echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1404 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1405 |
# Just in case |
1406 |
sleep 1 |
1407 |
echo timestamp > conftest.file |
1408 |
# Do `set' in a subshell so we don't clobber the current shell's |
1409 |
# arguments. Must try -L first in case configure is actually a |
1410 |
# symlink; some systems play weird games with the mod time of symlinks |
1411 |
# (eg FreeBSD returns the mod time of the symlink's containing |
1412 |
# directory). |
1413 |
if ( |
1414 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1415 |
if test "$*" = "X"; then |
1416 |
# -L didn't work. |
1417 |
set X `ls -t $srcdir/configure conftest.file` |
1418 |
fi |
1419 |
rm -f conftest.file |
1420 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
1421 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
1422 |
|
1423 |
# If neither matched, then we have a broken ls. This can happen |
1424 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
1425 |
# broken ls alias from the environment. This has actually |
1426 |
# happened. Such a system could not be considered "sane". |
1427 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1428 |
alias in your environment" >&5 |
1429 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1430 |
alias in your environment" >&2;} |
1431 |
{ (exit 1); exit 1; }; } |
1432 |
fi |
1433 |
|
1434 |
test "$2" = conftest.file |
1435 |
) |
1436 |
then |
1437 |
# Ok. |
1438 |
: |
1439 |
else |
1440 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1441 |
Check your system clock" >&5 |
1442 |
echo "$as_me: error: newly created file is older than distributed files! |
1443 |
Check your system clock" >&2;} |
1444 |
{ (exit 1); exit 1; }; } |
1445 |
fi |
1446 |
echo "$as_me:$LINENO: result: yes" >&5 |
1447 |
echo "${ECHO_T}yes" >&6 |
1448 |
test "$program_prefix" != NONE && |
1449 |
program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1450 |
# Use a double $ so make ignores it. |
1451 |
test "$program_suffix" != NONE && |
1452 |
program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1453 |
# Double any \ or $. echo might interpret backslashes. |
1454 |
# By default was `s,x,x', remove it if useless. |
1455 |
cat <<\_ACEOF >conftest.sed |
1456 |
s/[\\$]/&&/g;s/;s,x,x,$// |
1457 |
_ACEOF |
1458 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1459 |
rm conftest.sed |
1460 |
|
1461 |
|
1462 |
# expand $ac_aux_dir to an absolute path |
1463 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
1464 |
|
1465 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1466 |
# Use eval to expand $SHELL |
1467 |
if eval "$MISSING --run true"; then |
1468 |
am_missing_run="$MISSING --run " |
1469 |
else |
1470 |
am_missing_run= |
1471 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1472 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1473 |
fi |
1474 |
|
1475 |
for ac_prog in gawk mawk nawk awk |
1476 |
do |
1477 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1478 |
set dummy $ac_prog; ac_word=$2 |
1479 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1480 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1481 |
if test "${ac_cv_prog_AWK+set}" = set; then |
1482 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1483 |
else |
1484 |
if test -n "$AWK"; then |
1485 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1486 |
else |
1487 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1488 |
for as_dir in $PATH |
1489 |
do |
1490 |
IFS=$as_save_IFS |
1491 |
test -z "$as_dir" && as_dir=. |
1492 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1493 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1494 |
ac_cv_prog_AWK="$ac_prog" |
1495 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1496 |
break 2 |
1497 |
fi |
1498 |
done |
1499 |
done |
1500 |
|
1501 |
fi |
1502 |
fi |
1503 |
AWK=$ac_cv_prog_AWK |
1504 |
if test -n "$AWK"; then |
1505 |
echo "$as_me:$LINENO: result: $AWK" >&5 |
1506 |
echo "${ECHO_T}$AWK" >&6 |
1507 |
else |
1508 |
echo "$as_me:$LINENO: result: no" >&5 |
1509 |
echo "${ECHO_T}no" >&6 |
1510 |
fi |
1511 |
|
1512 |
test -n "$AWK" && break |
1513 |
done |
1514 |
|
1515 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1516 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1517 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
1518 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1519 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1520 |
else |
1521 |
cat >conftest.make <<\_ACEOF |
1522 |
all: |
1523 |
@echo 'ac_maketemp="$(MAKE)"' |
1524 |
_ACEOF |
1525 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1526 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1527 |
if test -n "$ac_maketemp"; then |
1528 |
eval ac_cv_prog_make_${ac_make}_set=yes |
1529 |
else |
1530 |
eval ac_cv_prog_make_${ac_make}_set=no |
1531 |
fi |
1532 |
rm -f conftest.make |
1533 |
fi |
1534 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1535 |
echo "$as_me:$LINENO: result: yes" >&5 |
1536 |
echo "${ECHO_T}yes" >&6 |
1537 |
SET_MAKE= |
1538 |
else |
1539 |
echo "$as_me:$LINENO: result: no" >&5 |
1540 |
echo "${ECHO_T}no" >&6 |
1541 |
SET_MAKE="MAKE=${MAKE-make}" |
1542 |
fi |
1543 |
|
1544 |
# test to see if srcdir already configured |
1545 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
1546 |
test -f $srcdir/config.status; then |
1547 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1548 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1549 |
{ (exit 1); exit 1; }; } |
1550 |
fi |
1551 |
|
1552 |
# Define the identity of the package. |
1553 |
PACKAGE=pxscand |
1554 |
VERSION=2.0 |
1555 |
|
1556 |
|
1557 |
cat >>confdefs.h <<_ACEOF |
1558 |
#define PACKAGE "$PACKAGE" |
1559 |
_ACEOF |
1560 |
|
1561 |
|
1562 |
cat >>confdefs.h <<_ACEOF |
1563 |
#define VERSION "$VERSION" |
1564 |
_ACEOF |
1565 |
|
1566 |
# Some tools Automake needs. |
1567 |
|
1568 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1569 |
|
1570 |
|
1571 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1572 |
|
1573 |
|
1574 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1575 |
|
1576 |
|
1577 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1578 |
|
1579 |
|
1580 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1581 |
|
1582 |
|
1583 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
1584 |
|
1585 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1586 |
|
1587 |
# Installed binaries are usually stripped using `strip' when the user |
1588 |
# run `make install-strip'. However `strip' might not be the right |
1589 |
# tool to use in cross-compilation environments, therefore Automake |
1590 |
# will honor the `STRIP' environment variable to overrule this program. |
1591 |
if test "$cross_compiling" != no; then |
1592 |
if test -n "$ac_tool_prefix"; then |
1593 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1594 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1595 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1596 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1597 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
1598 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1599 |
else |
1600 |
if test -n "$STRIP"; then |
1601 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1602 |
else |
1603 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1604 |
for as_dir in $PATH |
1605 |
do |
1606 |
IFS=$as_save_IFS |
1607 |
test -z "$as_dir" && as_dir=. |
1608 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1609 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1610 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1611 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1612 |
break 2 |
1613 |
fi |
1614 |
done |
1615 |
done |
1616 |
|
1617 |
fi |
1618 |
fi |
1619 |
STRIP=$ac_cv_prog_STRIP |
1620 |
if test -n "$STRIP"; then |
1621 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
1622 |
echo "${ECHO_T}$STRIP" >&6 |
1623 |
else |
1624 |
echo "$as_me:$LINENO: result: no" >&5 |
1625 |
echo "${ECHO_T}no" >&6 |
1626 |
fi |
1627 |
|
1628 |
fi |
1629 |
if test -z "$ac_cv_prog_STRIP"; then |
1630 |
ac_ct_STRIP=$STRIP |
1631 |
# Extract the first word of "strip", so it can be a program name with args. |
1632 |
set dummy strip; ac_word=$2 |
1633 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1634 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1635 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1636 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1637 |
else |
1638 |
if test -n "$ac_ct_STRIP"; then |
1639 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1640 |
else |
1641 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1642 |
for as_dir in $PATH |
1643 |
do |
1644 |
IFS=$as_save_IFS |
1645 |
test -z "$as_dir" && as_dir=. |
1646 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1647 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1648 |
ac_cv_prog_ac_ct_STRIP="strip" |
1649 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1650 |
break 2 |
1651 |
fi |
1652 |
done |
1653 |
done |
1654 |
|
1655 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1656 |
fi |
1657 |
fi |
1658 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1659 |
if test -n "$ac_ct_STRIP"; then |
1660 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1661 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1662 |
else |
1663 |
echo "$as_me:$LINENO: result: no" >&5 |
1664 |
echo "${ECHO_T}no" >&6 |
1665 |
fi |
1666 |
|
1667 |
STRIP=$ac_ct_STRIP |
1668 |
else |
1669 |
STRIP="$ac_cv_prog_STRIP" |
1670 |
fi |
1671 |
|
1672 |
fi |
1673 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1674 |
|
1675 |
# We need awk for the "check" target. The system "awk" is bad on |
1676 |
# some platforms. |
1677 |
|
1678 |
|
1679 |
|
1680 |
|
1681 |
# Add the stamp file to the list of files AC keeps track of, |
1682 |
# along with our hook. |
1683 |
ac_config_headers="$ac_config_headers config.h" |
1684 |
|
1685 |
|
1686 |
|
1687 |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1688 |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1689 |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1690 |
if test "${enable_maintainer_mode+set}" = set; then |
1691 |
enableval="$enable_maintainer_mode" |
1692 |
USE_MAINTAINER_MODE=$enableval |
1693 |
else |
1694 |
USE_MAINTAINER_MODE=no |
1695 |
fi; |
1696 |
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
1697 |
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
1698 |
|
1699 |
|
1700 |
if test $USE_MAINTAINER_MODE = yes; then |
1701 |
MAINTAINER_MODE_TRUE= |
1702 |
MAINTAINER_MODE_FALSE='#' |
1703 |
else |
1704 |
MAINTAINER_MODE_TRUE='#' |
1705 |
MAINTAINER_MODE_FALSE= |
1706 |
fi |
1707 |
|
1708 |
MAINT=$MAINTAINER_MODE_TRUE |
1709 |
|
1710 |
|
1711 |
|
1712 |
ac_ext=c |
1713 |
ac_cpp='$CPP $CPPFLAGS' |
1714 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1715 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1716 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1717 |
if test -n "$ac_tool_prefix"; then |
1718 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1719 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1720 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1721 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1722 |
if test "${ac_cv_prog_CC+set}" = set; then |
1723 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1724 |
else |
1725 |
if test -n "$CC"; then |
1726 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1727 |
else |
1728 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1729 |
for as_dir in $PATH |
1730 |
do |
1731 |
IFS=$as_save_IFS |
1732 |
test -z "$as_dir" && as_dir=. |
1733 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1734 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1735 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1736 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1737 |
break 2 |
1738 |
fi |
1739 |
done |
1740 |
done |
1741 |
|
1742 |
fi |
1743 |
fi |
1744 |
CC=$ac_cv_prog_CC |
1745 |
if test -n "$CC"; then |
1746 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1747 |
echo "${ECHO_T}$CC" >&6 |
1748 |
else |
1749 |
echo "$as_me:$LINENO: result: no" >&5 |
1750 |
echo "${ECHO_T}no" >&6 |
1751 |
fi |
1752 |
|
1753 |
fi |
1754 |
if test -z "$ac_cv_prog_CC"; then |
1755 |
ac_ct_CC=$CC |
1756 |
# Extract the first word of "gcc", so it can be a program name with args. |
1757 |
set dummy gcc; ac_word=$2 |
1758 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1759 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1760 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1761 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1762 |
else |
1763 |
if test -n "$ac_ct_CC"; then |
1764 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1765 |
else |
1766 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1767 |
for as_dir in $PATH |
1768 |
do |
1769 |
IFS=$as_save_IFS |
1770 |
test -z "$as_dir" && as_dir=. |
1771 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1772 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1773 |
ac_cv_prog_ac_ct_CC="gcc" |
1774 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1775 |
break 2 |
1776 |
fi |
1777 |
done |
1778 |
done |
1779 |
|
1780 |
fi |
1781 |
fi |
1782 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1783 |
if test -n "$ac_ct_CC"; then |
1784 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1785 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1786 |
else |
1787 |
echo "$as_me:$LINENO: result: no" >&5 |
1788 |
echo "${ECHO_T}no" >&6 |
1789 |
fi |
1790 |
|
1791 |
CC=$ac_ct_CC |
1792 |
else |
1793 |
CC="$ac_cv_prog_CC" |
1794 |
fi |
1795 |
|
1796 |
if test -z "$CC"; then |
1797 |
if test -n "$ac_tool_prefix"; then |
1798 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1799 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1800 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1801 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1802 |
if test "${ac_cv_prog_CC+set}" = set; then |
1803 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1804 |
else |
1805 |
if test -n "$CC"; then |
1806 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1807 |
else |
1808 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1809 |
for as_dir in $PATH |
1810 |
do |
1811 |
IFS=$as_save_IFS |
1812 |
test -z "$as_dir" && as_dir=. |
1813 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1814 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1815 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1816 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1817 |
break 2 |
1818 |
fi |
1819 |
done |
1820 |
done |
1821 |
|
1822 |
fi |
1823 |
fi |
1824 |
CC=$ac_cv_prog_CC |
1825 |
if test -n "$CC"; then |
1826 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1827 |
echo "${ECHO_T}$CC" >&6 |
1828 |
else |
1829 |
echo "$as_me:$LINENO: result: no" >&5 |
1830 |
echo "${ECHO_T}no" >&6 |
1831 |
fi |
1832 |
|
1833 |
fi |
1834 |
if test -z "$ac_cv_prog_CC"; then |
1835 |
ac_ct_CC=$CC |
1836 |
# Extract the first word of "cc", so it can be a program name with args. |
1837 |
set dummy cc; ac_word=$2 |
1838 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1839 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1840 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1841 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1842 |
else |
1843 |
if test -n "$ac_ct_CC"; then |
1844 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1845 |
else |
1846 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1847 |
for as_dir in $PATH |
1848 |
do |
1849 |
IFS=$as_save_IFS |
1850 |
test -z "$as_dir" && as_dir=. |
1851 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1852 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1853 |
ac_cv_prog_ac_ct_CC="cc" |
1854 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1855 |
break 2 |
1856 |
fi |
1857 |
done |
1858 |
done |
1859 |
|
1860 |
fi |
1861 |
fi |
1862 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1863 |
if test -n "$ac_ct_CC"; then |
1864 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1865 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1866 |
else |
1867 |
echo "$as_me:$LINENO: result: no" >&5 |
1868 |
echo "${ECHO_T}no" >&6 |
1869 |
fi |
1870 |
|
1871 |
CC=$ac_ct_CC |
1872 |
else |
1873 |
CC="$ac_cv_prog_CC" |
1874 |
fi |
1875 |
|
1876 |
fi |
1877 |
if test -z "$CC"; then |
1878 |
# Extract the first word of "cc", so it can be a program name with args. |
1879 |
set dummy cc; ac_word=$2 |
1880 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1881 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1882 |
if test "${ac_cv_prog_CC+set}" = set; then |
1883 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1884 |
else |
1885 |
if test -n "$CC"; then |
1886 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1887 |
else |
1888 |
ac_prog_rejected=no |
1889 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1890 |
for as_dir in $PATH |
1891 |
do |
1892 |
IFS=$as_save_IFS |
1893 |
test -z "$as_dir" && as_dir=. |
1894 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1895 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1896 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1897 |
ac_prog_rejected=yes |
1898 |
continue |
1899 |
fi |
1900 |
ac_cv_prog_CC="cc" |
1901 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1902 |
break 2 |
1903 |
fi |
1904 |
done |
1905 |
done |
1906 |
|
1907 |
if test $ac_prog_rejected = yes; then |
1908 |
# We found a bogon in the path, so make sure we never use it. |
1909 |
set dummy $ac_cv_prog_CC |
1910 |
shift |
1911 |
if test $# != 0; then |
1912 |
# We chose a different compiler from the bogus one. |
1913 |
# However, it has the same basename, so the bogon will be chosen |
1914 |
# first if we set CC to just the basename; use the full file name. |
1915 |
shift |
1916 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1917 |
fi |
1918 |
fi |
1919 |
fi |
1920 |
fi |
1921 |
CC=$ac_cv_prog_CC |
1922 |
if test -n "$CC"; then |
1923 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1924 |
echo "${ECHO_T}$CC" >&6 |
1925 |
else |
1926 |
echo "$as_me:$LINENO: result: no" >&5 |
1927 |
echo "${ECHO_T}no" >&6 |
1928 |
fi |
1929 |
|
1930 |
fi |
1931 |
if test -z "$CC"; then |
1932 |
if test -n "$ac_tool_prefix"; then |
1933 |
for ac_prog in cl |
1934 |
do |
1935 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1936 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1937 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1938 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1939 |
if test "${ac_cv_prog_CC+set}" = set; then |
1940 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1941 |
else |
1942 |
if test -n "$CC"; then |
1943 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1944 |
else |
1945 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1946 |
for as_dir in $PATH |
1947 |
do |
1948 |
IFS=$as_save_IFS |
1949 |
test -z "$as_dir" && as_dir=. |
1950 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1951 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1952 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1953 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1954 |
break 2 |
1955 |
fi |
1956 |
done |
1957 |
done |
1958 |
|
1959 |
fi |
1960 |
fi |
1961 |
CC=$ac_cv_prog_CC |
1962 |
if test -n "$CC"; then |
1963 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1964 |
echo "${ECHO_T}$CC" >&6 |
1965 |
else |
1966 |
echo "$as_me:$LINENO: result: no" >&5 |
1967 |
echo "${ECHO_T}no" >&6 |
1968 |
fi |
1969 |
|
1970 |
test -n "$CC" && break |
1971 |
done |
1972 |
fi |
1973 |
if test -z "$CC"; then |
1974 |
ac_ct_CC=$CC |
1975 |
for ac_prog in cl |
1976 |
do |
1977 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1978 |
set dummy $ac_prog; ac_word=$2 |
1979 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1980 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1981 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1982 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1983 |
else |
1984 |
if test -n "$ac_ct_CC"; then |
1985 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1986 |
else |
1987 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1988 |
for as_dir in $PATH |
1989 |
do |
1990 |
IFS=$as_save_IFS |
1991 |
test -z "$as_dir" && as_dir=. |
1992 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1993 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1994 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1995 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1996 |
break 2 |
1997 |
fi |
1998 |
done |
1999 |
done |
2000 |
|
2001 |
fi |
2002 |
fi |
2003 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2004 |
if test -n "$ac_ct_CC"; then |
2005 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2006 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
2007 |
else |
2008 |
echo "$as_me:$LINENO: result: no" >&5 |
2009 |
echo "${ECHO_T}no" >&6 |
2010 |
fi |
2011 |
|
2012 |
test -n "$ac_ct_CC" && break |
2013 |
done |
2014 |
|
2015 |
CC=$ac_ct_CC |
2016 |
fi |
2017 |
|
2018 |
fi |
2019 |
|
2020 |
|
2021 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2022 |
See \`config.log' for more details." >&5 |
2023 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2024 |
See \`config.log' for more details." >&2;} |
2025 |
{ (exit 1); exit 1; }; } |
2026 |
|
2027 |
# Provide some information about the compiler. |
2028 |
echo "$as_me:$LINENO:" \ |
2029 |
"checking for C compiler version" >&5 |
2030 |
ac_compiler=`set X $ac_compile; echo $2` |
2031 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2032 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2033 |
ac_status=$? |
2034 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2035 |
(exit $ac_status); } |
2036 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2037 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2038 |
ac_status=$? |
2039 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2040 |
(exit $ac_status); } |
2041 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2042 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2043 |
ac_status=$? |
2044 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2045 |
(exit $ac_status); } |
2046 |
|
2047 |
cat >conftest.$ac_ext <<_ACEOF |
2048 |
#line $LINENO "configure" |
2049 |
/* confdefs.h. */ |
2050 |
_ACEOF |
2051 |
cat confdefs.h >>conftest.$ac_ext |
2052 |
cat >>conftest.$ac_ext <<_ACEOF |
2053 |
/* end confdefs.h. */ |
2054 |
|
2055 |
int |
2056 |
main () |
2057 |
{ |
2058 |
|
2059 |
; |
2060 |
return 0; |
2061 |
} |
2062 |
_ACEOF |
2063 |
ac_clean_files_save=$ac_clean_files |
2064 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2065 |
# Try to create an executable without -o first, disregard a.out. |
2066 |
# It will help us diagnose broken compilers, and finding out an intuition |
2067 |
# of exeext. |
2068 |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
2069 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2070 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2071 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2072 |
(eval $ac_link_default) 2>&5 |
2073 |
ac_status=$? |
2074 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2075 |
(exit $ac_status); }; then |
2076 |
# Find the output, starting from the most likely. This scheme is |
2077 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2078 |
# resort. |
2079 |
|
2080 |
# Be careful to initialize this variable, since it used to be cached. |
2081 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2082 |
ac_cv_exeext= |
2083 |
# b.out is created by i960 compilers. |
2084 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2085 |
do |
2086 |
test -f "$ac_file" || continue |
2087 |
case $ac_file in |
2088 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2089 |
;; |
2090 |
conftest.$ac_ext ) |
2091 |
# This is the source file. |
2092 |
;; |
2093 |
[ab].out ) |
2094 |
# We found the default executable, but exeext='' is most |
2095 |
# certainly right. |
2096 |
break;; |
2097 |
*.* ) |
2098 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2099 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2100 |
# but it would be cool to find out if it's true. Does anybody |
2101 |
# maintain Libtool? --akim. |
2102 |
export ac_cv_exeext |
2103 |
break;; |
2104 |
* ) |
2105 |
break;; |
2106 |
esac |
2107 |
done |
2108 |
else |
2109 |
echo "$as_me: failed program was:" >&5 |
2110 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2111 |
|
2112 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2113 |
See \`config.log' for more details." >&5 |
2114 |
echo "$as_me: error: C compiler cannot create executables |
2115 |
See \`config.log' for more details." >&2;} |
2116 |
{ (exit 77); exit 77; }; } |
2117 |
fi |
2118 |
|
2119 |
ac_exeext=$ac_cv_exeext |
2120 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
2121 |
echo "${ECHO_T}$ac_file" >&6 |
2122 |
|
2123 |
# Check the compiler produces executables we can run. If not, either |
2124 |
# the compiler is broken, or we cross compile. |
2125 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2126 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2127 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2128 |
# If not cross compiling, check that we can run a simple program. |
2129 |
if test "$cross_compiling" != yes; then |
2130 |
if { ac_try='./$ac_file' |
2131 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2132 |
(eval $ac_try) 2>&5 |
2133 |
ac_status=$? |
2134 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2135 |
(exit $ac_status); }; }; then |
2136 |
cross_compiling=no |
2137 |
else |
2138 |
if test "$cross_compiling" = maybe; then |
2139 |
cross_compiling=yes |
2140 |
else |
2141 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2142 |
If you meant to cross compile, use \`--host'. |
2143 |
See \`config.log' for more details." >&5 |
2144 |
echo "$as_me: error: cannot run C compiled programs. |
2145 |
If you meant to cross compile, use \`--host'. |
2146 |
See \`config.log' for more details." >&2;} |
2147 |
{ (exit 1); exit 1; }; } |
2148 |
fi |
2149 |
fi |
2150 |
fi |
2151 |
echo "$as_me:$LINENO: result: yes" >&5 |
2152 |
echo "${ECHO_T}yes" >&6 |
2153 |
|
2154 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2155 |
ac_clean_files=$ac_clean_files_save |
2156 |
# Check the compiler produces executables we can run. If not, either |
2157 |
# the compiler is broken, or we cross compile. |
2158 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2159 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2160 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2161 |
echo "${ECHO_T}$cross_compiling" >&6 |
2162 |
|
2163 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2164 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2165 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2166 |
(eval $ac_link) 2>&5 |
2167 |
ac_status=$? |
2168 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2169 |
(exit $ac_status); }; then |
2170 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2171 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2172 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2173 |
# `rm'. |
2174 |
for ac_file in conftest.exe conftest conftest.*; do |
2175 |
test -f "$ac_file" || continue |
2176 |
case $ac_file in |
2177 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2178 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2179 |
export ac_cv_exeext |
2180 |
break;; |
2181 |
* ) break;; |
2182 |
esac |
2183 |
done |
2184 |
else |
2185 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2186 |
See \`config.log' for more details." >&5 |
2187 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2188 |
See \`config.log' for more details." >&2;} |
2189 |
{ (exit 1); exit 1; }; } |
2190 |
fi |
2191 |
|
2192 |
rm -f conftest$ac_cv_exeext |
2193 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2194 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2195 |
|
2196 |
rm -f conftest.$ac_ext |
2197 |
EXEEXT=$ac_cv_exeext |
2198 |
ac_exeext=$EXEEXT |
2199 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2200 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2201 |
if test "${ac_cv_objext+set}" = set; then |
2202 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2203 |
else |
2204 |
cat >conftest.$ac_ext <<_ACEOF |
2205 |
#line $LINENO "configure" |
2206 |
/* confdefs.h. */ |
2207 |
_ACEOF |
2208 |
cat confdefs.h >>conftest.$ac_ext |
2209 |
cat >>conftest.$ac_ext <<_ACEOF |
2210 |
/* end confdefs.h. */ |
2211 |
|
2212 |
int |
2213 |
main () |
2214 |
{ |
2215 |
|
2216 |
; |
2217 |
return 0; |
2218 |
} |
2219 |
_ACEOF |
2220 |
rm -f conftest.o conftest.obj |
2221 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2222 |
(eval $ac_compile) 2>&5 |
2223 |
ac_status=$? |
2224 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2225 |
(exit $ac_status); }; then |
2226 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2227 |
case $ac_file in |
2228 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2229 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2230 |
break;; |
2231 |
esac |
2232 |
done |
2233 |
else |
2234 |
echo "$as_me: failed program was:" >&5 |
2235 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2236 |
|
2237 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2238 |
See \`config.log' for more details." >&5 |
2239 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2240 |
See \`config.log' for more details." >&2;} |
2241 |
{ (exit 1); exit 1; }; } |
2242 |
fi |
2243 |
|
2244 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2245 |
fi |
2246 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2247 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
2248 |
OBJEXT=$ac_cv_objext |
2249 |
ac_objext=$OBJEXT |
2250 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2251 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2252 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2253 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2254 |
else |
2255 |
cat >conftest.$ac_ext <<_ACEOF |
2256 |
#line $LINENO "configure" |
2257 |
/* confdefs.h. */ |
2258 |
_ACEOF |
2259 |
cat confdefs.h >>conftest.$ac_ext |
2260 |
cat >>conftest.$ac_ext <<_ACEOF |
2261 |
/* end confdefs.h. */ |
2262 |
|
2263 |
int |
2264 |
main () |
2265 |
{ |
2266 |
#ifndef __GNUC__ |
2267 |
choke me |
2268 |
#endif |
2269 |
|
2270 |
; |
2271 |
return 0; |
2272 |
} |
2273 |
_ACEOF |
2274 |
rm -f conftest.$ac_objext |
2275 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2276 |
(eval $ac_compile) 2>&5 |
2277 |
ac_status=$? |
2278 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2279 |
(exit $ac_status); } && |
2280 |
{ ac_try='test -s conftest.$ac_objext' |
2281 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2282 |
(eval $ac_try) 2>&5 |
2283 |
ac_status=$? |
2284 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2285 |
(exit $ac_status); }; }; then |
2286 |
ac_compiler_gnu=yes |
2287 |
else |
2288 |
echo "$as_me: failed program was:" >&5 |
2289 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2290 |
|
2291 |
ac_compiler_gnu=no |
2292 |
fi |
2293 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2294 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2295 |
|
2296 |
fi |
2297 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2298 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2299 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2300 |
ac_test_CFLAGS=${CFLAGS+set} |
2301 |
ac_save_CFLAGS=$CFLAGS |
2302 |
CFLAGS="-g" |
2303 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2304 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2305 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2306 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2307 |
else |
2308 |
cat >conftest.$ac_ext <<_ACEOF |
2309 |
#line $LINENO "configure" |
2310 |
/* confdefs.h. */ |
2311 |
_ACEOF |
2312 |
cat confdefs.h >>conftest.$ac_ext |
2313 |
cat >>conftest.$ac_ext <<_ACEOF |
2314 |
/* end confdefs.h. */ |
2315 |
|
2316 |
int |
2317 |
main () |
2318 |
{ |
2319 |
|
2320 |
; |
2321 |
return 0; |
2322 |
} |
2323 |
_ACEOF |
2324 |
rm -f conftest.$ac_objext |
2325 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2326 |
(eval $ac_compile) 2>&5 |
2327 |
ac_status=$? |
2328 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2329 |
(exit $ac_status); } && |
2330 |
{ ac_try='test -s conftest.$ac_objext' |
2331 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2332 |
(eval $ac_try) 2>&5 |
2333 |
ac_status=$? |
2334 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2335 |
(exit $ac_status); }; }; then |
2336 |
ac_cv_prog_cc_g=yes |
2337 |
else |
2338 |
echo "$as_me: failed program was:" >&5 |
2339 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2340 |
|
2341 |
ac_cv_prog_cc_g=no |
2342 |
fi |
2343 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2344 |
fi |
2345 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2346 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2347 |
if test "$ac_test_CFLAGS" = set; then |
2348 |
CFLAGS=$ac_save_CFLAGS |
2349 |
elif test $ac_cv_prog_cc_g = yes; then |
2350 |
if test "$GCC" = yes; then |
2351 |
CFLAGS="-g -O2" |
2352 |
else |
2353 |
CFLAGS="-g" |
2354 |
fi |
2355 |
else |
2356 |
if test "$GCC" = yes; then |
2357 |
CFLAGS="-O2" |
2358 |
else |
2359 |
CFLAGS= |
2360 |
fi |
2361 |
fi |
2362 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2363 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2364 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2365 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2366 |
else |
2367 |
ac_cv_prog_cc_stdc=no |
2368 |
ac_save_CC=$CC |
2369 |
cat >conftest.$ac_ext <<_ACEOF |
2370 |
#line $LINENO "configure" |
2371 |
/* confdefs.h. */ |
2372 |
_ACEOF |
2373 |
cat confdefs.h >>conftest.$ac_ext |
2374 |
cat >>conftest.$ac_ext <<_ACEOF |
2375 |
/* end confdefs.h. */ |
2376 |
#include <stdarg.h> |
2377 |
#include <stdio.h> |
2378 |
#include <sys/types.h> |
2379 |
#include <sys/stat.h> |
2380 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2381 |
struct buf { int x; }; |
2382 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2383 |
static char *e (p, i) |
2384 |
char **p; |
2385 |
int i; |
2386 |
{ |
2387 |
return p[i]; |
2388 |
} |
2389 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2390 |
{ |
2391 |
char *s; |
2392 |
va_list v; |
2393 |
va_start (v,p); |
2394 |
s = g (p, va_arg (v,int)); |
2395 |
va_end (v); |
2396 |
return s; |
2397 |
} |
2398 |
int test (int i, double x); |
2399 |
struct s1 {int (*f) (int a);}; |
2400 |
struct s2 {int (*f) (double a);}; |
2401 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2402 |
int argc; |
2403 |
char **argv; |
2404 |
int |
2405 |
main () |
2406 |
{ |
2407 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2408 |
; |
2409 |
return 0; |
2410 |
} |
2411 |
_ACEOF |
2412 |
# Don't try gcc -ansi; that turns off useful extensions and |
2413 |
# breaks some systems' header files. |
2414 |
# AIX -qlanglvl=ansi |
2415 |
# Ultrix and OSF/1 -std1 |
2416 |
# HP-UX 10.20 and later -Ae |
2417 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2418 |
# SVR4 -Xc -D__EXTENSIONS__ |
2419 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2420 |
do |
2421 |
CC="$ac_save_CC $ac_arg" |
2422 |
rm -f conftest.$ac_objext |
2423 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2424 |
(eval $ac_compile) 2>&5 |
2425 |
ac_status=$? |
2426 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2427 |
(exit $ac_status); } && |
2428 |
{ ac_try='test -s conftest.$ac_objext' |
2429 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2430 |
(eval $ac_try) 2>&5 |
2431 |
ac_status=$? |
2432 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2433 |
(exit $ac_status); }; }; then |
2434 |
ac_cv_prog_cc_stdc=$ac_arg |
2435 |
break |
2436 |
else |
2437 |
echo "$as_me: failed program was:" >&5 |
2438 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2439 |
|
2440 |
fi |
2441 |
rm -f conftest.$ac_objext |
2442 |
done |
2443 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2444 |
CC=$ac_save_CC |
2445 |
|
2446 |
fi |
2447 |
|
2448 |
case "x$ac_cv_prog_cc_stdc" in |
2449 |
x|xno) |
2450 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2451 |
echo "${ECHO_T}none needed" >&6 ;; |
2452 |
*) |
2453 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2454 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2455 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2456 |
esac |
2457 |
|
2458 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2459 |
# in C++ we need to declare it. In case someone uses the same compiler |
2460 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2461 |
# the declaration of exit, since it's the most demanding environment. |
2462 |
cat >conftest.$ac_ext <<_ACEOF |
2463 |
#ifndef __cplusplus |
2464 |
choke me |
2465 |
#endif |
2466 |
_ACEOF |
2467 |
rm -f conftest.$ac_objext |
2468 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2469 |
(eval $ac_compile) 2>&5 |
2470 |
ac_status=$? |
2471 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2472 |
(exit $ac_status); } && |
2473 |
{ ac_try='test -s conftest.$ac_objext' |
2474 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2475 |
(eval $ac_try) 2>&5 |
2476 |
ac_status=$? |
2477 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2478 |
(exit $ac_status); }; }; then |
2479 |
for ac_declaration in \ |
2480 |
''\ |
2481 |
'#include <stdlib.h>' \ |
2482 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2483 |
'extern "C" void std::exit (int); using std::exit;' \ |
2484 |
'extern "C" void exit (int) throw ();' \ |
2485 |
'extern "C" void exit (int);' \ |
2486 |
'void exit (int);' |
2487 |
do |
2488 |
cat >conftest.$ac_ext <<_ACEOF |
2489 |
#line $LINENO "configure" |
2490 |
/* confdefs.h. */ |
2491 |
_ACEOF |
2492 |
cat confdefs.h >>conftest.$ac_ext |
2493 |
cat >>conftest.$ac_ext <<_ACEOF |
2494 |
/* end confdefs.h. */ |
2495 |
#include <stdlib.h> |
2496 |
$ac_declaration |
2497 |
int |
2498 |
main () |
2499 |
{ |
2500 |
exit (42); |
2501 |
; |
2502 |
return 0; |
2503 |
} |
2504 |
_ACEOF |
2505 |
rm -f conftest.$ac_objext |
2506 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2507 |
(eval $ac_compile) 2>&5 |
2508 |
ac_status=$? |
2509 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2510 |
(exit $ac_status); } && |
2511 |
{ ac_try='test -s conftest.$ac_objext' |
2512 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2513 |
(eval $ac_try) 2>&5 |
2514 |
ac_status=$? |
2515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2516 |
(exit $ac_status); }; }; then |
2517 |
: |
2518 |
else |
2519 |
echo "$as_me: failed program was:" >&5 |
2520 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2521 |
|
2522 |
continue |
2523 |
fi |
2524 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2525 |
cat >conftest.$ac_ext <<_ACEOF |
2526 |
#line $LINENO "configure" |
2527 |
/* confdefs.h. */ |
2528 |
_ACEOF |
2529 |
cat confdefs.h >>conftest.$ac_ext |
2530 |
cat >>conftest.$ac_ext <<_ACEOF |
2531 |
/* end confdefs.h. */ |
2532 |
$ac_declaration |
2533 |
int |
2534 |
main () |
2535 |
{ |
2536 |
exit (42); |
2537 |
; |
2538 |
return 0; |
2539 |
} |
2540 |
_ACEOF |
2541 |
rm -f conftest.$ac_objext |
2542 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2543 |
(eval $ac_compile) 2>&5 |
2544 |
ac_status=$? |
2545 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2546 |
(exit $ac_status); } && |
2547 |
{ ac_try='test -s conftest.$ac_objext' |
2548 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2549 |
(eval $ac_try) 2>&5 |
2550 |
ac_status=$? |
2551 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2552 |
(exit $ac_status); }; }; then |
2553 |
break |
2554 |
else |
2555 |
echo "$as_me: failed program was:" >&5 |
2556 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2557 |
|
2558 |
fi |
2559 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2560 |
done |
2561 |
rm -f conftest* |
2562 |
if test -n "$ac_declaration"; then |
2563 |
echo '#ifdef __cplusplus' >>confdefs.h |
2564 |
echo $ac_declaration >>confdefs.h |
2565 |
echo '#endif' >>confdefs.h |
2566 |
fi |
2567 |
|
2568 |
else |
2569 |
echo "$as_me: failed program was:" >&5 |
2570 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2571 |
|
2572 |
fi |
2573 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2574 |
ac_ext=c |
2575 |
ac_cpp='$CPP $CPPFLAGS' |
2576 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2577 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2578 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2579 |
rm -f .deps 2>/dev/null |
2580 |
mkdir .deps 2>/dev/null |
2581 |
if test -d .deps; then |
2582 |
DEPDIR=.deps |
2583 |
else |
2584 |
# MS-DOS does not allow filenames that begin with a dot. |
2585 |
DEPDIR=_deps |
2586 |
fi |
2587 |
rmdir .deps 2>/dev/null |
2588 |
|
2589 |
|
2590 |
ac_config_commands="$ac_config_commands depfiles" |
2591 |
|
2592 |
|
2593 |
am_make=${MAKE-make} |
2594 |
cat > confinc << 'END' |
2595 |
doit: |
2596 |
@echo done |
2597 |
END |
2598 |
# If we don't find an include directive, just comment out the code. |
2599 |
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2600 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2601 |
am__include="#" |
2602 |
am__quote= |
2603 |
_am_result=none |
2604 |
# First try GNU make style include. |
2605 |
echo "include confinc" > confmf |
2606 |
# We grep out `Entering directory' and `Leaving directory' |
2607 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
2608 |
# In particular we don't look at `^make:' because GNU make might |
2609 |
# be invoked under some other name (usually "gmake"), in which |
2610 |
# case it prints its new name instead of `make'. |
2611 |
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
2612 |
am__include=include |
2613 |
am__quote= |
2614 |
_am_result=GNU |
2615 |
fi |
2616 |
# Now try BSD make style include. |
2617 |
if test "$am__include" = "#"; then |
2618 |
echo '.include "confinc"' > confmf |
2619 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2620 |
am__include=.include |
2621 |
am__quote="\"" |
2622 |
_am_result=BSD |
2623 |
fi |
2624 |
fi |
2625 |
|
2626 |
|
2627 |
echo "$as_me:$LINENO: result: $_am_result" >&5 |
2628 |
echo "${ECHO_T}$_am_result" >&6 |
2629 |
rm -f confinc confmf |
2630 |
|
2631 |
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2632 |
if test "${enable_dependency_tracking+set}" = set; then |
2633 |
enableval="$enable_dependency_tracking" |
2634 |
|
2635 |
fi; |
2636 |
if test "x$enable_dependency_tracking" != xno; then |
2637 |
am_depcomp="$ac_aux_dir/depcomp" |
2638 |
AMDEPBACKSLASH='\' |
2639 |
fi |
2640 |
|
2641 |
|
2642 |
if test "x$enable_dependency_tracking" != xno; then |
2643 |
AMDEP_TRUE= |
2644 |
AMDEP_FALSE='#' |
2645 |
else |
2646 |
AMDEP_TRUE='#' |
2647 |
AMDEP_FALSE= |
2648 |
fi |
2649 |
|
2650 |
|
2651 |
|
2652 |
|
2653 |
depcc="$CC" am_compiler_list= |
2654 |
|
2655 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2656 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2657 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2658 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2659 |
else |
2660 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2661 |
# We make a subdir and do the tests there. Otherwise we can end up |
2662 |
# making bogus files that we don't know about and never remove. For |
2663 |
# instance it was reported that on HP-UX the gcc test will end up |
2664 |
# making a dummy file named `D' -- because `-MD' means `put the output |
2665 |
# in D'. |
2666 |
mkdir conftest.dir |
2667 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
2668 |
# using a relative directory. |
2669 |
cp "$am_depcomp" conftest.dir |
2670 |
cd conftest.dir |
2671 |
|
2672 |
am_cv_CC_dependencies_compiler_type=none |
2673 |
if test "$am_compiler_list" = ""; then |
2674 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2675 |
fi |
2676 |
for depmode in $am_compiler_list; do |
2677 |
# We need to recreate these files for each test, as the compiler may |
2678 |
# overwrite some of them when testing with obscure command lines. |
2679 |
# This happens at least with the AIX C compiler. |
2680 |
echo '#include "conftest.h"' > conftest.c |
2681 |
echo 'int i;' > conftest.h |
2682 |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
2683 |
|
2684 |
case $depmode in |
2685 |
nosideeffect) |
2686 |
# after this tag, mechanisms are not by side-effect, so they'll |
2687 |
# only be used when explicitly requested |
2688 |
if test "x$enable_dependency_tracking" = xyes; then |
2689 |
continue |
2690 |
else |
2691 |
break |
2692 |
fi |
2693 |
;; |
2694 |
none) break ;; |
2695 |
esac |
2696 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
2697 |
# mode. It turns out that the SunPro C++ compiler does not properly |
2698 |
# handle `-M -o', and we need to detect this. |
2699 |
if depmode=$depmode \ |
2700 |
source=conftest.c object=conftest.o \ |
2701 |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
2702 |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
2703 |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
2704 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
2705 |
am_cv_CC_dependencies_compiler_type=$depmode |
2706 |
break |
2707 |
fi |
2708 |
done |
2709 |
|
2710 |
cd .. |
2711 |
rm -rf conftest.dir |
2712 |
else |
2713 |
am_cv_CC_dependencies_compiler_type=none |
2714 |
fi |
2715 |
|
2716 |
fi |
2717 |
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
2718 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
2719 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
2720 |
|
2721 |
|
2722 |
ac_ext=cc |
2723 |
ac_cpp='$CXXCPP $CPPFLAGS' |
2724 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2725 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2726 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2727 |
if test -n "$ac_tool_prefix"; then |
2728 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2729 |
do |
2730 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2731 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2732 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2733 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2734 |
if test "${ac_cv_prog_CXX+set}" = set; then |
2735 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2736 |
else |
2737 |
if test -n "$CXX"; then |
2738 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2739 |
else |
2740 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2741 |
for as_dir in $PATH |
2742 |
do |
2743 |
IFS=$as_save_IFS |
2744 |
test -z "$as_dir" && as_dir=. |
2745 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2746 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2747 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2748 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2749 |
break 2 |
2750 |
fi |
2751 |
done |
2752 |
done |
2753 |
|
2754 |
fi |
2755 |
fi |
2756 |
CXX=$ac_cv_prog_CXX |
2757 |
if test -n "$CXX"; then |
2758 |
echo "$as_me:$LINENO: result: $CXX" >&5 |
2759 |
echo "${ECHO_T}$CXX" >&6 |
2760 |
else |
2761 |
echo "$as_me:$LINENO: result: no" >&5 |
2762 |
echo "${ECHO_T}no" >&6 |
2763 |
fi |
2764 |
|
2765 |
test -n "$CXX" && break |
2766 |
done |
2767 |
fi |
2768 |
if test -z "$CXX"; then |
2769 |
ac_ct_CXX=$CXX |
2770 |
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
2771 |
do |
2772 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2773 |
set dummy $ac_prog; ac_word=$2 |
2774 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2775 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2776 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2777 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2778 |
else |
2779 |
if test -n "$ac_ct_CXX"; then |
2780 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2781 |
else |
2782 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2783 |
for as_dir in $PATH |
2784 |
do |
2785 |
IFS=$as_save_IFS |
2786 |
test -z "$as_dir" && as_dir=. |
2787 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2788 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2789 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2790 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2791 |
break 2 |
2792 |
fi |
2793 |
done |
2794 |
done |
2795 |
|
2796 |
fi |
2797 |
fi |
2798 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2799 |
if test -n "$ac_ct_CXX"; then |
2800 |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2801 |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
2802 |
else |
2803 |
echo "$as_me:$LINENO: result: no" >&5 |
2804 |
echo "${ECHO_T}no" >&6 |
2805 |
fi |
2806 |
|
2807 |
test -n "$ac_ct_CXX" && break |
2808 |
done |
2809 |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2810 |
|
2811 |
CXX=$ac_ct_CXX |
2812 |
fi |
2813 |
|
2814 |
|
2815 |
# Provide some information about the compiler. |
2816 |
echo "$as_me:$LINENO:" \ |
2817 |
"checking for C++ compiler version" >&5 |
2818 |
ac_compiler=`set X $ac_compile; echo $2` |
2819 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2820 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2821 |
ac_status=$? |
2822 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2823 |
(exit $ac_status); } |
2824 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2825 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2826 |
ac_status=$? |
2827 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2828 |
(exit $ac_status); } |
2829 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2830 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2831 |
ac_status=$? |
2832 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2833 |
(exit $ac_status); } |
2834 |
|
2835 |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2836 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2837 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2838 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2839 |
else |
2840 |
cat >conftest.$ac_ext <<_ACEOF |
2841 |
#line $LINENO "configure" |
2842 |
/* confdefs.h. */ |
2843 |
_ACEOF |
2844 |
cat confdefs.h >>conftest.$ac_ext |
2845 |
cat >>conftest.$ac_ext <<_ACEOF |
2846 |
/* end confdefs.h. */ |
2847 |
|
2848 |
int |
2849 |
main () |
2850 |
{ |
2851 |
#ifndef __GNUC__ |
2852 |
choke me |
2853 |
#endif |
2854 |
|
2855 |
; |
2856 |
return 0; |
2857 |
} |
2858 |
_ACEOF |
2859 |
rm -f conftest.$ac_objext |
2860 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2861 |
(eval $ac_compile) 2>&5 |
2862 |
ac_status=$? |
2863 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2864 |
(exit $ac_status); } && |
2865 |
{ ac_try='test -s conftest.$ac_objext' |
2866 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2867 |
(eval $ac_try) 2>&5 |
2868 |
ac_status=$? |
2869 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2870 |
(exit $ac_status); }; }; then |
2871 |
ac_compiler_gnu=yes |
2872 |
else |
2873 |
echo "$as_me: failed program was:" >&5 |
2874 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2875 |
|
2876 |
ac_compiler_gnu=no |
2877 |
fi |
2878 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2879 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2880 |
|
2881 |
fi |
2882 |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2883 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2884 |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2885 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2886 |
ac_save_CXXFLAGS=$CXXFLAGS |
2887 |
CXXFLAGS="-g" |
2888 |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2889 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
2890 |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2891 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2892 |
else |
2893 |
cat >conftest.$ac_ext <<_ACEOF |
2894 |
#line $LINENO "configure" |
2895 |
/* confdefs.h. */ |
2896 |
_ACEOF |
2897 |
cat confdefs.h >>conftest.$ac_ext |
2898 |
cat >>conftest.$ac_ext <<_ACEOF |
2899 |
/* end confdefs.h. */ |
2900 |
|
2901 |
int |
2902 |
main () |
2903 |
{ |
2904 |
|
2905 |
; |
2906 |
return 0; |
2907 |
} |
2908 |
_ACEOF |
2909 |
rm -f conftest.$ac_objext |
2910 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2911 |
(eval $ac_compile) 2>&5 |
2912 |
ac_status=$? |
2913 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2914 |
(exit $ac_status); } && |
2915 |
{ ac_try='test -s conftest.$ac_objext' |
2916 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2917 |
(eval $ac_try) 2>&5 |
2918 |
ac_status=$? |
2919 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2920 |
(exit $ac_status); }; }; then |
2921 |
ac_cv_prog_cxx_g=yes |
2922 |
else |
2923 |
echo "$as_me: failed program was:" >&5 |
2924 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2925 |
|
2926 |
ac_cv_prog_cxx_g=no |
2927 |
fi |
2928 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2929 |
fi |
2930 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2931 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2932 |
if test "$ac_test_CXXFLAGS" = set; then |
2933 |
CXXFLAGS=$ac_save_CXXFLAGS |
2934 |
elif test $ac_cv_prog_cxx_g = yes; then |
2935 |
if test "$GXX" = yes; then |
2936 |
CXXFLAGS="-g -O2" |
2937 |
else |
2938 |
CXXFLAGS="-g" |
2939 |
fi |
2940 |
else |
2941 |
if test "$GXX" = yes; then |
2942 |
CXXFLAGS="-O2" |
2943 |
else |
2944 |
CXXFLAGS= |
2945 |
fi |
2946 |
fi |
2947 |
for ac_declaration in \ |
2948 |
''\ |
2949 |
'#include <stdlib.h>' \ |
2950 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2951 |
'extern "C" void std::exit (int); using std::exit;' \ |
2952 |
'extern "C" void exit (int) throw ();' \ |
2953 |
'extern "C" void exit (int);' \ |
2954 |
'void exit (int);' |
2955 |
do |
2956 |
cat >conftest.$ac_ext <<_ACEOF |
2957 |
#line $LINENO "configure" |
2958 |
/* confdefs.h. */ |
2959 |
_ACEOF |
2960 |
cat confdefs.h >>conftest.$ac_ext |
2961 |
cat >>conftest.$ac_ext <<_ACEOF |
2962 |
/* end confdefs.h. */ |
2963 |
#include <stdlib.h> |
2964 |
$ac_declaration |
2965 |
int |
2966 |
main () |
2967 |
{ |
2968 |
exit (42); |
2969 |
; |
2970 |
return 0; |
2971 |
} |
2972 |
_ACEOF |
2973 |
rm -f conftest.$ac_objext |
2974 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2975 |
(eval $ac_compile) 2>&5 |
2976 |
ac_status=$? |
2977 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2978 |
(exit $ac_status); } && |
2979 |
{ ac_try='test -s conftest.$ac_objext' |
2980 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2981 |
(eval $ac_try) 2>&5 |
2982 |
ac_status=$? |
2983 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2984 |
(exit $ac_status); }; }; then |
2985 |
: |
2986 |
else |
2987 |
echo "$as_me: failed program was:" >&5 |
2988 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2989 |
|
2990 |
continue |
2991 |
fi |
2992 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2993 |
cat >conftest.$ac_ext <<_ACEOF |
2994 |
#line $LINENO "configure" |
2995 |
/* confdefs.h. */ |
2996 |
_ACEOF |
2997 |
cat confdefs.h >>conftest.$ac_ext |
2998 |
cat >>conftest.$ac_ext <<_ACEOF |
2999 |
/* end confdefs.h. */ |
3000 |
$ac_declaration |
3001 |
int |
3002 |
main () |
3003 |
{ |
3004 |
exit (42); |
3005 |
; |
3006 |
return 0; |
3007 |
} |
3008 |
_ACEOF |
3009 |
rm -f conftest.$ac_objext |
3010 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3011 |
(eval $ac_compile) 2>&5 |
3012 |
ac_status=$? |
3013 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3014 |
(exit $ac_status); } && |
3015 |
{ ac_try='test -s conftest.$ac_objext' |
3016 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3017 |
(eval $ac_try) 2>&5 |
3018 |
ac_status=$? |
3019 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3020 |
(exit $ac_status); }; }; then |
3021 |
break |
3022 |
else |
3023 |
echo "$as_me: failed program was:" >&5 |
3024 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3025 |
|
3026 |
fi |
3027 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3028 |
done |
3029 |
rm -f conftest* |
3030 |
if test -n "$ac_declaration"; then |
3031 |
echo '#ifdef __cplusplus' >>confdefs.h |
3032 |
echo $ac_declaration >>confdefs.h |
3033 |
echo '#endif' >>confdefs.h |
3034 |
fi |
3035 |
|
3036 |
ac_ext=c |
3037 |
ac_cpp='$CPP $CPPFLAGS' |
3038 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3039 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3040 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3041 |
|
3042 |
depcc="$CXX" am_compiler_list= |
3043 |
|
3044 |
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3045 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
3046 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
3047 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3048 |
else |
3049 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3050 |
# We make a subdir and do the tests there. Otherwise we can end up |
3051 |
# making bogus files that we don't know about and never remove. For |
3052 |
# instance it was reported that on HP-UX the gcc test will end up |
3053 |
# making a dummy file named `D' -- because `-MD' means `put the output |
3054 |
# in D'. |
3055 |
mkdir conftest.dir |
3056 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
3057 |
# using a relative directory. |
3058 |
cp "$am_depcomp" conftest.dir |
3059 |
cd conftest.dir |
3060 |
|
3061 |
am_cv_CXX_dependencies_compiler_type=none |
3062 |
if test "$am_compiler_list" = ""; then |
3063 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3064 |
fi |
3065 |
for depmode in $am_compiler_list; do |
3066 |
# We need to recreate these files for each test, as the compiler may |
3067 |
# overwrite some of them when testing with obscure command lines. |
3068 |
# This happens at least with the AIX C compiler. |
3069 |
echo '#include "conftest.h"' > conftest.c |
3070 |
echo 'int i;' > conftest.h |
3071 |
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
3072 |
|
3073 |
case $depmode in |
3074 |
nosideeffect) |
3075 |
# after this tag, mechanisms are not by side-effect, so they'll |
3076 |
# only be used when explicitly requested |
3077 |
if test "x$enable_dependency_tracking" = xyes; then |
3078 |
continue |
3079 |
else |
3080 |
break |
3081 |
fi |
3082 |
;; |
3083 |
none) break ;; |
3084 |
esac |
3085 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
3086 |
# mode. It turns out that the SunPro C++ compiler does not properly |
3087 |
# handle `-M -o', and we need to detect this. |
3088 |
if depmode=$depmode \ |
3089 |
source=conftest.c object=conftest.o \ |
3090 |
depfile=conftest.Po tmpdepfile=conftest.TPo \ |
3091 |
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
3092 |
grep conftest.h conftest.Po > /dev/null 2>&1 && |
3093 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3094 |
am_cv_CXX_dependencies_compiler_type=$depmode |
3095 |
break |
3096 |
fi |
3097 |
done |
3098 |
|
3099 |
cd .. |
3100 |
rm -rf conftest.dir |
3101 |
else |
3102 |
am_cv_CXX_dependencies_compiler_type=none |
3103 |
fi |
3104 |
|
3105 |
fi |
3106 |
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3107 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
3108 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
3109 |
|
3110 |
|
3111 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3112 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
3113 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
3114 |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
3115 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3116 |
else |
3117 |
cat >conftest.make <<\_ACEOF |
3118 |
all: |
3119 |
@echo 'ac_maketemp="$(MAKE)"' |
3120 |
_ACEOF |
3121 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3122 |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3123 |
if test -n "$ac_maketemp"; then |
3124 |
eval ac_cv_prog_make_${ac_make}_set=yes |
3125 |
else |
3126 |
eval ac_cv_prog_make_${ac_make}_set=no |
3127 |
fi |
3128 |
rm -f conftest.make |
3129 |
fi |
3130 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3131 |
echo "$as_me:$LINENO: result: yes" >&5 |
3132 |
echo "${ECHO_T}yes" >&6 |
3133 |
SET_MAKE= |
3134 |
else |
3135 |
echo "$as_me:$LINENO: result: no" >&5 |
3136 |
echo "${ECHO_T}no" >&6 |
3137 |
SET_MAKE="MAKE=${MAKE-make}" |
3138 |
fi |
3139 |
|
3140 |
|
3141 |
cat >>confdefs.h <<_ACEOF |
3142 |
#define DEBUG 1 |
3143 |
_ACEOF |
3144 |
|
3145 |
|
3146 |
|
3147 |
|
3148 |
# Check whether --with-peak-prefix or --without-peak-prefix was given. |
3149 |
if test "${with_peak_prefix+set}" = set; then |
3150 |
withval="$with_peak_prefix" |
3151 |
peak_config_prefix="$withval" |
3152 |
else |
3153 |
peak_config_prefix="" |
3154 |
fi; |
3155 |
|
3156 |
# Check whether --with-peak-exec-prefix or --without-peak-exec-prefix was given. |
3157 |
if test "${with_peak_exec_prefix+set}" = set; then |
3158 |
withval="$with_peak_exec_prefix" |
3159 |
peak_config_exec_prefix="$withval" |
3160 |
else |
3161 |
peak_config_exec_prefix="" |
3162 |
fi; |
3163 |
|
3164 |
if test x$peak_config_exec_prefix != x ; then |
3165 |
peak_config_args="$peak_config_args --exec-prefix=$peak_config_exec_prefix" |
3166 |
if test x${PEAK_CONFIG+set} != xset ; then |
3167 |
PEAK_CONFIG=$peak_config_exec_prefix/bin/peak-config |
3168 |
fi |
3169 |
fi |
3170 |
if test x$peak_config_prefix != x ; then |
3171 |
peak_config_args="$peak_config_args --prefix=$peak_config_prefix" |
3172 |
if test x${PEAK_CONFIG+set} != xset ; then |
3173 |
PEAK_CONFIG=$peak_config_prefix/bin/peak-config |
3174 |
fi |
3175 |
fi |
3176 |
|
3177 |
# Extract the first word of "peak-config", so it can be a program name with args. |
3178 |
set dummy peak-config; ac_word=$2 |
3179 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3180 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3181 |
if test "${ac_cv_path_PEAK_CONFIG+set}" = set; then |
3182 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3183 |
else |
3184 |
case $PEAK_CONFIG in |
3185 |
[\\/]* | ?:[\\/]*) |
3186 |
ac_cv_path_PEAK_CONFIG="$PEAK_CONFIG" # Let the user override the test with a path. |
3187 |
;; |
3188 |
*) |
3189 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3190 |
for as_dir in $PATH |
3191 |
do |
3192 |
IFS=$as_save_IFS |
3193 |
test -z "$as_dir" && as_dir=. |
3194 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3195 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3196 |
ac_cv_path_PEAK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3197 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3198 |
break 2 |
3199 |
fi |
3200 |
done |
3201 |
done |
3202 |
|
3203 |
test -z "$ac_cv_path_PEAK_CONFIG" && ac_cv_path_PEAK_CONFIG="no" |
3204 |
;; |
3205 |
esac |
3206 |
fi |
3207 |
PEAK_CONFIG=$ac_cv_path_PEAK_CONFIG |
3208 |
|
3209 |
if test -n "$PEAK_CONFIG"; then |
3210 |
echo "$as_me:$LINENO: result: $PEAK_CONFIG" >&5 |
3211 |
echo "${ECHO_T}$PEAK_CONFIG" >&6 |
3212 |
else |
3213 |
echo "$as_me:$LINENO: result: no" >&5 |
3214 |
echo "${ECHO_T}no" >&6 |
3215 |
fi |
3216 |
|
3217 |
echo "$as_me:$LINENO: checking for peak - version >= 0.1.0" >&5 |
3218 |
echo $ECHO_N "checking for peak - version >= 0.1.0... $ECHO_C" >&6 |
3219 |
|
3220 |
no_peak="" |
3221 |
if test "$PEAK_CONFIG" = "no" ; then |
3222 |
no_peak=yes |
3223 |
else |
3224 |
PEAK_CFLAGS="`$PEAK_CONFIG $peak_config_args --cflags`" |
3225 |
PEAK_LIBS="`$PEAK_CONFIG $peak_config_args --libs`" |
3226 |
|
3227 |
peak_config_major_version=`$PEAK_CONFIG $peak_config_args \ |
3228 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
3229 |
peak_config_minor_version=`$PEAK_CONFIG $peak_config_args \ |
3230 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
3231 |
peak_config_micro_version=`$PEAK_CONFIG $peak_config_args \ |
3232 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
3233 |
peak_wanted_major_version="0" |
3234 |
peak_wanted_minor_version="1" |
3235 |
peak_wanted_micro_version="0" |
3236 |
|
3237 |
# Compare wanted version to what config script returned. |
3238 |
# If I knew what library was being run, i'd probably also compile |
3239 |
# a test program at this point (which also extracted and tested |
3240 |
# the version in some library-specific way) |
3241 |
if test "$peak_config_major_version" -lt \ |
3242 |
"$peak_wanted_major_version" \ |
3243 |
-o \( "$peak_config_major_version" -eq \ |
3244 |
"$peak_wanted_major_version" \ |
3245 |
-a "$peak_config_minor_version" -lt \ |
3246 |
"$peak_wanted_minor_version" \) \ |
3247 |
-o \( "$peak_config_major_version" -eq \ |
3248 |
"$peak_wanted_major_version" \ |
3249 |
-a "$peak_config_minor_version" -eq \ |
3250 |
"$peak_wanted_minor_version" \ |
3251 |
-a "$peak_config_micro_version" -lt \ |
3252 |
"$peak_wanted_micro_version" \) ; then |
3253 |
# older version found |
3254 |
no_peak=yes |
3255 |
echo -n "*** An old version of peak " |
3256 |
echo -n "($peak_config_major_version" |
3257 |
echo -n ".$peak_config_minor_version" |
3258 |
echo ".$peak_config_micro_version) was found." |
3259 |
echo -n "*** You need a version of peak newer than " |
3260 |
echo -n "$peak_wanted_major_version" |
3261 |
echo -n ".$peak_wanted_minor_version" |
3262 |
echo ".$peak_wanted_micro_version." |
3263 |
echo "***" |
3264 |
echo "*** If you have already installed a sufficiently new version, this error" |
3265 |
echo "*** probably means that the wrong copy of the peak-config shell script is" |
3266 |
echo "*** being found. The easiest way to fix this is to remove the old version" |
3267 |
echo "*** of peak, but you can also set the PEAK_CONFIG environment to point to the" |
3268 |
echo "*** correct copy of peak-config. (In this case, you will have to" |
3269 |
echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf" |
3270 |
echo "*** so that the correct libraries are found at run-time)" |
3271 |
fi |
3272 |
|
3273 |
fi |
3274 |
if test "x$no_peak" = x ; then |
3275 |
echo "$as_me:$LINENO: result: yes" >&5 |
3276 |
echo "${ECHO_T}yes" >&6 |
3277 |
: |
3278 |
else |
3279 |
echo "$as_me:$LINENO: result: no" >&5 |
3280 |
echo "${ECHO_T}no" >&6 |
3281 |
if test "$PEAK_CONFIG" = "no" ; then |
3282 |
echo "*** The peak-config script installed by peak could not be found" |
3283 |
echo "*** If peak was installed in PREFIX, make sure PREFIX/bin is in" |
3284 |
echo "*** your path, or set the PEAK_CONFIG environment variable to the" |
3285 |
echo "*** full path to peak-config." |
3286 |
fi |
3287 |
PEAK_CFLAGS="" |
3288 |
PEAK_LIBS="" |
3289 |
{ { echo "$as_me:$LINENO: error: required PEAK Library (libpeak) not found" >&5 |
3290 |
echo "$as_me: error: required PEAK Library (libpeak) not found" >&2;} |
3291 |
{ (exit 1); exit 1; }; } |
3292 |
fi |
3293 |
|
3294 |
|
3295 |
|
3296 |
|
3297 |
|
3298 |
|
3299 |
echo "$as_me:$LINENO: checking for fgrep" >&5 |
3300 |
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 |
3301 |
if test "${ac_cv_prog_fgrep+set}" = set; then |
3302 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3303 |
else |
3304 |
if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 |
3305 |
then ac_cv_prog_fgrep='grep -F' |
3306 |
else ac_cv_prog_fgrep='fgrep' |
3307 |
fi |
3308 |
fi |
3309 |
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
3310 |
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 |
3311 |
FGREP=$ac_cv_prog_fgrep |
3312 |
|
3313 |
|
3314 |
|
3315 |
for arg in $PEAK_CFLAGS |
3316 |
do |
3317 |
if { cat <<EOF |
3318 |
$CXXFLAGS x |
3319 |
EOF |
3320 |
} | $FGREP -v -e " $arg " > /dev/null |
3321 |
then |
3322 |
CXXFLAGS="$CXXFLAGS $arg" |
3323 |
fi |
3324 |
done |
3325 |
|
3326 |
|
3327 |
for arg in $PEAK_CFLAGS |
3328 |
do |
3329 |
if { cat <<EOF |
3330 |
$CFLAGS x |
3331 |
EOF |
3332 |
} | $FGREP -v -e " $arg " > /dev/null |
3333 |
then |
3334 |
CFLAGS="$CFLAGS $arg" |
3335 |
fi |
3336 |
done |
3337 |
|
3338 |
|
3339 |
xt_compare="$LIBS" |
3340 |
xt_filtered="" |
3341 |
for arg in $PEAK_LIBS |
3342 |
do |
3343 |
if { cat <<EOF |
3344 |
$xt_compare x |
3345 |
EOF |
3346 |
} | $FGREP -v -e " $arg " > /dev/null |
3347 |
then |
3348 |
xt_compare="$arg $xt_compare" |
3349 |
xt_filtered="$xt_filtered $arg" |
3350 |
fi |
3351 |
done |
3352 |
LIBS="$xt_filtered $LIBS" |
3353 |
|
3354 |
|
3355 |
|
3356 |
|
3357 |
# Check whether --with-xml2-prefix or --without-xml2-prefix was given. |
3358 |
if test "${with_xml2_prefix+set}" = set; then |
3359 |
withval="$with_xml2_prefix" |
3360 |
xml2_config_prefix="$withval" |
3361 |
else |
3362 |
xml2_config_prefix="" |
3363 |
fi; |
3364 |
|
3365 |
# Check whether --with-xml2-exec-prefix or --without-xml2-exec-prefix was given. |
3366 |
if test "${with_xml2_exec_prefix+set}" = set; then |
3367 |
withval="$with_xml2_exec_prefix" |
3368 |
xml2_config_exec_prefix="$withval" |
3369 |
else |
3370 |
xml2_config_exec_prefix="" |
3371 |
fi; |
3372 |
|
3373 |
if test x$xml2_config_exec_prefix != x ; then |
3374 |
xml2_config_args="$xml2_config_args --exec-prefix=$xml2_config_exec_prefix" |
3375 |
if test x${XML2_CONFIG+set} != xset ; then |
3376 |
XML2_CONFIG=$xml2_config_exec_prefix/bin/xml2-config |
3377 |
fi |
3378 |
fi |
3379 |
if test x$xml2_config_prefix != x ; then |
3380 |
xml2_config_args="$xml2_config_args --prefix=$xml2_config_prefix" |
3381 |
if test x${XML2_CONFIG+set} != xset ; then |
3382 |
XML2_CONFIG=$xml2_config_prefix/bin/xml2-config |
3383 |
fi |
3384 |
fi |
3385 |
|
3386 |
# Extract the first word of "xml2-config", so it can be a program name with args. |
3387 |
set dummy xml2-config; ac_word=$2 |
3388 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3389 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3390 |
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then |
3391 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3392 |
else |
3393 |
case $XML2_CONFIG in |
3394 |
[\\/]* | ?:[\\/]*) |
3395 |
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. |
3396 |
;; |
3397 |
*) |
3398 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3399 |
for as_dir in $PATH |
3400 |
do |
3401 |
IFS=$as_save_IFS |
3402 |
test -z "$as_dir" && as_dir=. |
3403 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3404 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3405 |
ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3406 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3407 |
break 2 |
3408 |
fi |
3409 |
done |
3410 |
done |
3411 |
|
3412 |
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" |
3413 |
;; |
3414 |
esac |
3415 |
fi |
3416 |
XML2_CONFIG=$ac_cv_path_XML2_CONFIG |
3417 |
|
3418 |
if test -n "$XML2_CONFIG"; then |
3419 |
echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 |
3420 |
echo "${ECHO_T}$XML2_CONFIG" >&6 |
3421 |
else |
3422 |
echo "$as_me:$LINENO: result: no" >&5 |
3423 |
echo "${ECHO_T}no" >&6 |
3424 |
fi |
3425 |
|
3426 |
echo "$as_me:$LINENO: checking for xml2 - version >= 2.0.0" >&5 |
3427 |
echo $ECHO_N "checking for xml2 - version >= 2.0.0... $ECHO_C" >&6 |
3428 |
|
3429 |
no_xml2="" |
3430 |
if test "$XML2_CONFIG" = "no" ; then |
3431 |
no_xml2=yes |
3432 |
else |
3433 |
XML2_CFLAGS="`$XML2_CONFIG $xml2_config_args --cflags`" |
3434 |
XML2_LIBS="`$XML2_CONFIG $xml2_config_args --libs`" |
3435 |
|
3436 |
xml2_config_major_version=`$XML2_CONFIG $xml2_config_args \ |
3437 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
3438 |
xml2_config_minor_version=`$XML2_CONFIG $xml2_config_args \ |
3439 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
3440 |
xml2_config_micro_version=`$XML2_CONFIG $xml2_config_args \ |
3441 |
--version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
3442 |
xml2_wanted_major_version="2" |
3443 |
xml2_wanted_minor_version="0" |
3444 |
xml2_wanted_micro_version="0" |
3445 |
|
3446 |
# Compare wanted version to what config script returned. |
3447 |
# If I knew what library was being run, i'd probably also compile |
3448 |
# a test program at this point (which also extracted and tested |
3449 |
# the version in some library-specific way) |
3450 |
if test "$xml2_config_major_version" -lt \ |
3451 |
"$xml2_wanted_major_version" \ |
3452 |
-o \( "$xml2_config_major_version" -eq \ |
3453 |
"$xml2_wanted_major_version" \ |
3454 |
-a "$xml2_config_minor_version" -lt \ |
3455 |
"$xml2_wanted_minor_version" \) \ |
3456 |
-o \( "$xml2_config_major_version" -eq \ |
3457 |
"$xml2_wanted_major_version" \ |
3458 |
-a "$xml2_config_minor_version" -eq \ |
3459 |
"$xml2_wanted_minor_version" \ |
3460 |
-a "$xml2_config_micro_version" -lt \ |
3461 |
"$xml2_wanted_micro_version" \) ; then |
3462 |
# older version found |
3463 |
no_xml2=yes |
3464 |
echo -n "*** An old version of xml2 " |
3465 |
echo -n "($xml2_config_major_version" |
3466 |
echo -n ".$xml2_config_minor_version" |
3467 |
echo ".$xml2_config_micro_version) was found." |
3468 |
echo -n "*** You need a version of xml2 newer than " |
3469 |
echo -n "$xml2_wanted_major_version" |
3470 |
echo -n ".$xml2_wanted_minor_version" |
3471 |
echo ".$xml2_wanted_micro_version." |
3472 |
echo "***" |
3473 |
echo "*** If you have already installed a sufficiently new version, this error" |
3474 |
echo "*** probably means that the wrong copy of the xml2-config shell script is" |
3475 |
echo "*** being found. The easiest way to fix this is to remove the old version" |
3476 |
echo "*** of xml2, but you can also set the XML2_CONFIG environment to point to the" |
3477 |
echo "*** correct copy of xml2-config. (In this case, you will have to" |
3478 |
echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf" |
3479 |
echo "*** so that the correct libraries are found at run-time)" |
3480 |
fi |
3481 |
|
3482 |
fi |
3483 |
if test "x$no_xml2" = x ; then |
3484 |
echo "$as_me:$LINENO: result: yes" >&5 |
3485 |
echo "${ECHO_T}yes" >&6 |
3486 |
: |
3487 |
else |
3488 |
echo "$as_me:$LINENO: result: no" >&5 |
3489 |
echo "${ECHO_T}no" >&6 |
3490 |
if test "$XML2_CONFIG" = "no" ; then |
3491 |
echo "*** The xml2-config script installed by xml2 could not be found" |
3492 |
echo "*** If xml2 was installed in PREFIX, make sure PREFIX/bin is in" |
3493 |
echo "*** your path, or set the XML2_CONFIG environment variable to the" |
3494 |
echo "*** full path to xml2-config." |
3495 |
fi |
3496 |
XML2_CFLAGS="" |
3497 |
XML2_LIBS="" |
3498 |
{ { echo "$as_me:$LINENO: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&5 |
3499 |
echo "$as_me: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&2;} |
3500 |
{ (exit 1); exit 1; }; } |
3501 |
fi |
3502 |
|
3503 |
|
3504 |
|
3505 |
|
3506 |
|
3507 |
|
3508 |
|
3509 |
for arg in $XML2_CFLAGS |
3510 |
do |
3511 |
if { cat <<EOF |
3512 |
$CXXFLAGS x |
3513 |
EOF |
3514 |
} | $FGREP -v -e " $arg " > /dev/null |
3515 |
then |
3516 |
CXXFLAGS="$CXXFLAGS $arg" |
3517 |
fi |
3518 |
done |
3519 |
|
3520 |
|
3521 |
xt_compare="$LIBS" |
3522 |
xt_filtered="" |
3523 |
for arg in $XML2_LIBS |
3524 |
do |
3525 |
if { cat <<EOF |
3526 |
$xt_compare x |
3527 |
EOF |
3528 |
} | $FGREP -v -e " $arg " > /dev/null |
3529 |
then |
3530 |
xt_compare="$arg $xt_compare" |
3531 |
xt_filtered="$xt_filtered $arg" |
3532 |
fi |
3533 |
done |
3534 |
LIBS="$xt_filtered $LIBS" |
3535 |
|
3536 |
|
3537 |
|
3538 |
for arg in -I../../libopas |
3539 |
do |
3540 |
if { cat <<EOF |
3541 |
$CXXFLAGS x |
3542 |
EOF |
3543 |
} | $FGREP -v -e " $arg " > /dev/null |
3544 |
then |
3545 |
CXXFLAGS="$CXXFLAGS $arg" |
3546 |
fi |
3547 |
done |
3548 |
|
3549 |
|
3550 |
for arg in -I../../libopas |
3551 |
do |
3552 |
if { cat <<EOF |
3553 |
$CFLAGS x |
3554 |
EOF |
3555 |
} | $FGREP -v -e " $arg " > /dev/null |
3556 |
then |
3557 |
CFLAGS="$CFLAGS $arg" |
3558 |
fi |
3559 |
done |
3560 |
|
3561 |
|
3562 |
|
3563 |
for arg in -I../../ipcache |
3564 |
do |
3565 |
if { cat <<EOF |
3566 |
$CXXFLAGS x |
3567 |
EOF |
3568 |
} | $FGREP -v -e " $arg " > /dev/null |
3569 |
then |
3570 |
CXXFLAGS="$CXXFLAGS $arg" |
3571 |
fi |
3572 |
done |
3573 |
|
3574 |
|
3575 |
for arg in -I../../ipcache |
3576 |
do |
3577 |
if { cat <<EOF |
3578 |
$CFLAGS x |
3579 |
EOF |
3580 |
} | $FGREP -v -e " $arg " > /dev/null |
3581 |
then |
3582 |
CFLAGS="$CFLAGS $arg" |
3583 |
fi |
3584 |
done |
3585 |
|
3586 |
|
3587 |
|
3588 |
ac_ext=c |
3589 |
ac_cpp='$CPP $CPPFLAGS' |
3590 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3591 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3592 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3593 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3594 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3595 |
# On Suns, sometimes $CPP names a directory. |
3596 |
if test -n "$CPP" && test -d "$CPP"; then |
3597 |
CPP= |
3598 |
fi |
3599 |
if test -z "$CPP"; then |
3600 |
if test "${ac_cv_prog_CPP+set}" = set; then |
3601 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3602 |
else |
3603 |
# Double quotes because CPP needs to be expanded |
3604 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3605 |
do |
3606 |
ac_preproc_ok=false |
3607 |
for ac_c_preproc_warn_flag in '' yes |
3608 |
do |
3609 |
# Use a header file that comes with gcc, so configuring glibc |
3610 |
# with a fresh cross-compiler works. |
3611 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3612 |
# <limits.h> exists even on freestanding compilers. |
3613 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3614 |
# not just through cpp. "Syntax error" is here to catch this case. |
3615 |
cat >conftest.$ac_ext <<_ACEOF |
3616 |
#line $LINENO "configure" |
3617 |
/* confdefs.h. */ |
3618 |
_ACEOF |
3619 |
cat confdefs.h >>conftest.$ac_ext |
3620 |
cat >>conftest.$ac_ext <<_ACEOF |
3621 |
/* end confdefs.h. */ |
3622 |
#ifdef __STDC__ |
3623 |
# include <limits.h> |
3624 |
#else |
3625 |
# include <assert.h> |
3626 |
#endif |
3627 |
Syntax error |
3628 |
_ACEOF |
3629 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3630 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3631 |
ac_status=$? |
3632 |
grep -v '^ *+' conftest.er1 >conftest.err |
3633 |
rm -f conftest.er1 |
3634 |
cat conftest.err >&5 |
3635 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3636 |
(exit $ac_status); } >/dev/null; then |
3637 |
if test -s conftest.err; then |
3638 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3639 |
else |
3640 |
ac_cpp_err= |
3641 |
fi |
3642 |
else |
3643 |
ac_cpp_err=yes |
3644 |
fi |
3645 |
if test -z "$ac_cpp_err"; then |
3646 |
: |
3647 |
else |
3648 |
echo "$as_me: failed program was:" >&5 |
3649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3650 |
|
3651 |
# Broken: fails on valid input. |
3652 |
continue |
3653 |
fi |
3654 |
rm -f conftest.err conftest.$ac_ext |
3655 |
|
3656 |
# OK, works on sane cases. Now check whether non-existent headers |
3657 |
# can be detected and how. |
3658 |
cat >conftest.$ac_ext <<_ACEOF |
3659 |
#line $LINENO "configure" |
3660 |
/* confdefs.h. */ |
3661 |
_ACEOF |
3662 |
cat confdefs.h >>conftest.$ac_ext |
3663 |
cat >>conftest.$ac_ext <<_ACEOF |
3664 |
/* end confdefs.h. */ |
3665 |
#include <ac_nonexistent.h> |
3666 |
_ACEOF |
3667 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3668 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3669 |
ac_status=$? |
3670 |
grep -v '^ *+' conftest.er1 >conftest.err |
3671 |
rm -f conftest.er1 |
3672 |
cat conftest.err >&5 |
3673 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3674 |
(exit $ac_status); } >/dev/null; then |
3675 |
if test -s conftest.err; then |
3676 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3677 |
else |
3678 |
ac_cpp_err= |
3679 |
fi |
3680 |
else |
3681 |
ac_cpp_err=yes |
3682 |
fi |
3683 |
if test -z "$ac_cpp_err"; then |
3684 |
# Broken: success on invalid input. |
3685 |
continue |
3686 |
else |
3687 |
echo "$as_me: failed program was:" >&5 |
3688 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3689 |
|
3690 |
# Passes both tests. |
3691 |
ac_preproc_ok=: |
3692 |
break |
3693 |
fi |
3694 |
rm -f conftest.err conftest.$ac_ext |
3695 |
|
3696 |
done |
3697 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3698 |
rm -f conftest.err conftest.$ac_ext |
3699 |
if $ac_preproc_ok; then |
3700 |
break |
3701 |
fi |
3702 |
|
3703 |
done |
3704 |
ac_cv_prog_CPP=$CPP |
3705 |
|
3706 |
fi |
3707 |
CPP=$ac_cv_prog_CPP |
3708 |
else |
3709 |
ac_cv_prog_CPP=$CPP |
3710 |
fi |
3711 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
3712 |
echo "${ECHO_T}$CPP" >&6 |
3713 |
ac_preproc_ok=false |
3714 |
for ac_c_preproc_warn_flag in '' yes |
3715 |
do |
3716 |
# Use a header file that comes with gcc, so configuring glibc |
3717 |
# with a fresh cross-compiler works. |
3718 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3719 |
# <limits.h> exists even on freestanding compilers. |
3720 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3721 |
# not just through cpp. "Syntax error" is here to catch this case. |
3722 |
cat >conftest.$ac_ext <<_ACEOF |
3723 |
#line $LINENO "configure" |
3724 |
/* confdefs.h. */ |
3725 |
_ACEOF |
3726 |
cat confdefs.h >>conftest.$ac_ext |
3727 |
cat >>conftest.$ac_ext <<_ACEOF |
3728 |
/* end confdefs.h. */ |
3729 |
#ifdef __STDC__ |
3730 |
# include <limits.h> |
3731 |
#else |
3732 |
# include <assert.h> |
3733 |
#endif |
3734 |
Syntax error |
3735 |
_ACEOF |
3736 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3737 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3738 |
ac_status=$? |
3739 |
grep -v '^ *+' conftest.er1 >conftest.err |
3740 |
rm -f conftest.er1 |
3741 |
cat conftest.err >&5 |
3742 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3743 |
(exit $ac_status); } >/dev/null; then |
3744 |
if test -s conftest.err; then |
3745 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3746 |
else |
3747 |
ac_cpp_err= |
3748 |
fi |
3749 |
else |
3750 |
ac_cpp_err=yes |
3751 |
fi |
3752 |
if test -z "$ac_cpp_err"; then |
3753 |
: |
3754 |
else |
3755 |
echo "$as_me: failed program was:" >&5 |
3756 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3757 |
|
3758 |
# Broken: fails on valid input. |
3759 |
continue |
3760 |
fi |
3761 |
rm -f conftest.err conftest.$ac_ext |
3762 |
|
3763 |
# OK, works on sane cases. Now check whether non-existent headers |
3764 |
# can be detected and how. |
3765 |
cat >conftest.$ac_ext <<_ACEOF |
3766 |
#line $LINENO "configure" |
3767 |
/* confdefs.h. */ |
3768 |
_ACEOF |
3769 |
cat confdefs.h >>conftest.$ac_ext |
3770 |
cat >>conftest.$ac_ext <<_ACEOF |
3771 |
/* end confdefs.h. */ |
3772 |
#include <ac_nonexistent.h> |
3773 |
_ACEOF |
3774 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3775 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3776 |
ac_status=$? |
3777 |
grep -v '^ *+' conftest.er1 >conftest.err |
3778 |
rm -f conftest.er1 |
3779 |
cat conftest.err >&5 |
3780 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3781 |
(exit $ac_status); } >/dev/null; then |
3782 |
if test -s conftest.err; then |
3783 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3784 |
else |
3785 |
ac_cpp_err= |
3786 |
fi |
3787 |
else |
3788 |
ac_cpp_err=yes |
3789 |
fi |
3790 |
if test -z "$ac_cpp_err"; then |
3791 |
# Broken: success on invalid input. |
3792 |
continue |
3793 |
else |
3794 |
echo "$as_me: failed program was:" >&5 |
3795 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3796 |
|
3797 |
# Passes both tests. |
3798 |
ac_preproc_ok=: |
3799 |
break |
3800 |
fi |
3801 |
rm -f conftest.err conftest.$ac_ext |
3802 |
|
3803 |
done |
3804 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3805 |
rm -f conftest.err conftest.$ac_ext |
3806 |
if $ac_preproc_ok; then |
3807 |
: |
3808 |
else |
3809 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3810 |
See \`config.log' for more details." >&5 |
3811 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3812 |
See \`config.log' for more details." >&2;} |
3813 |
{ (exit 1); exit 1; }; } |
3814 |
fi |
3815 |
|
3816 |
ac_ext=c |
3817 |
ac_cpp='$CPP $CPPFLAGS' |
3818 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3819 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3820 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3821 |
|
3822 |
|
3823 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
3824 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3825 |
if test "${ac_cv_prog_egrep+set}" = set; then |
3826 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3827 |
else |
3828 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3829 |
then ac_cv_prog_egrep='grep -E' |
3830 |
else ac_cv_prog_egrep='egrep' |
3831 |
fi |
3832 |
fi |
3833 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3834 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3835 |
EGREP=$ac_cv_prog_egrep |
3836 |
|
3837 |
|
3838 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3839 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3840 |
if test "${ac_cv_header_stdc+set}" = set; then |
3841 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3842 |
else |
3843 |
cat >conftest.$ac_ext <<_ACEOF |
3844 |
#line $LINENO "configure" |
3845 |
/* confdefs.h. */ |
3846 |
_ACEOF |
3847 |
cat confdefs.h >>conftest.$ac_ext |
3848 |
cat >>conftest.$ac_ext <<_ACEOF |
3849 |
/* end confdefs.h. */ |
3850 |
#include <stdlib.h> |
3851 |
#include <stdarg.h> |
3852 |
#include <string.h> |
3853 |
#include <float.h> |
3854 |
|
3855 |
int |
3856 |
main () |
3857 |
{ |
3858 |
|
3859 |
; |
3860 |
return 0; |
3861 |
} |
3862 |
_ACEOF |
3863 |
rm -f conftest.$ac_objext |
3864 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3865 |
(eval $ac_compile) 2>&5 |
3866 |
ac_status=$? |
3867 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3868 |
(exit $ac_status); } && |
3869 |
{ ac_try='test -s conftest.$ac_objext' |
3870 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3871 |
(eval $ac_try) 2>&5 |
3872 |
ac_status=$? |
3873 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3874 |
(exit $ac_status); }; }; then |
3875 |
ac_cv_header_stdc=yes |
3876 |
else |
3877 |
echo "$as_me: failed program was:" >&5 |
3878 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3879 |
|
3880 |
ac_cv_header_stdc=no |
3881 |
fi |
3882 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3883 |
|
3884 |
if test $ac_cv_header_stdc = yes; then |
3885 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3886 |
cat >conftest.$ac_ext <<_ACEOF |
3887 |
#line $LINENO "configure" |
3888 |
/* confdefs.h. */ |
3889 |
_ACEOF |
3890 |
cat confdefs.h >>conftest.$ac_ext |
3891 |
cat >>conftest.$ac_ext <<_ACEOF |
3892 |
/* end confdefs.h. */ |
3893 |
#include <string.h> |
3894 |
|
3895 |
_ACEOF |
3896 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3897 |
$EGREP "memchr" >/dev/null 2>&1; then |
3898 |
: |
3899 |
else |
3900 |
ac_cv_header_stdc=no |
3901 |
fi |
3902 |
rm -f conftest* |
3903 |
|
3904 |
fi |
3905 |
|
3906 |
if test $ac_cv_header_stdc = yes; then |
3907 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3908 |
cat >conftest.$ac_ext <<_ACEOF |
3909 |
#line $LINENO "configure" |
3910 |
/* confdefs.h. */ |
3911 |
_ACEOF |
3912 |
cat confdefs.h >>conftest.$ac_ext |
3913 |
cat >>conftest.$ac_ext <<_ACEOF |
3914 |
/* end confdefs.h. */ |
3915 |
#include <stdlib.h> |
3916 |
|
3917 |
_ACEOF |
3918 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3919 |
$EGREP "free" >/dev/null 2>&1; then |
3920 |
: |
3921 |
else |
3922 |
ac_cv_header_stdc=no |
3923 |
fi |
3924 |
rm -f conftest* |
3925 |
|
3926 |
fi |
3927 |
|
3928 |
if test $ac_cv_header_stdc = yes; then |
3929 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3930 |
if test "$cross_compiling" = yes; then |
3931 |
: |
3932 |
else |
3933 |
cat >conftest.$ac_ext <<_ACEOF |
3934 |
#line $LINENO "configure" |
3935 |
/* confdefs.h. */ |
3936 |
_ACEOF |
3937 |
cat confdefs.h >>conftest.$ac_ext |
3938 |
cat >>conftest.$ac_ext <<_ACEOF |
3939 |
/* end confdefs.h. */ |
3940 |
#include <ctype.h> |
3941 |
#if ((' ' & 0x0FF) == 0x020) |
3942 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3943 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3944 |
#else |
3945 |
# define ISLOWER(c) \ |
3946 |
(('a' <= (c) && (c) <= 'i') \ |
3947 |
|| ('j' <= (c) && (c) <= 'r') \ |
3948 |
|| ('s' <= (c) && (c) <= 'z')) |
3949 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3950 |
#endif |
3951 |
|
3952 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3953 |
int |
3954 |
main () |
3955 |
{ |
3956 |
int i; |
3957 |
for (i = 0; i < 256; i++) |
3958 |
if (XOR (islower (i), ISLOWER (i)) |
3959 |
|| toupper (i) != TOUPPER (i)) |
3960 |
exit(2); |
3961 |
exit (0); |
3962 |
} |
3963 |
_ACEOF |
3964 |
rm -f conftest$ac_exeext |
3965 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3966 |
(eval $ac_link) 2>&5 |
3967 |
ac_status=$? |
3968 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3969 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3970 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3971 |
(eval $ac_try) 2>&5 |
3972 |
ac_status=$? |
3973 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3974 |
(exit $ac_status); }; }; then |
3975 |
: |
3976 |
else |
3977 |
echo "$as_me: program exited with status $ac_status" >&5 |
3978 |
echo "$as_me: failed program was:" >&5 |
3979 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3980 |
|
3981 |
( exit $ac_status ) |
3982 |
ac_cv_header_stdc=no |
3983 |
fi |
3984 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3985 |
fi |
3986 |
fi |
3987 |
fi |
3988 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3989 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3990 |
if test $ac_cv_header_stdc = yes; then |
3991 |
|
3992 |
cat >>confdefs.h <<\_ACEOF |
3993 |
#define STDC_HEADERS 1 |
3994 |
_ACEOF |
3995 |
|
3996 |
fi |
3997 |
|
3998 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3999 |
|
4000 |
|
4001 |
|
4002 |
|
4003 |
|
4004 |
|
4005 |
|
4006 |
|
4007 |
|
4008 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4009 |
inttypes.h stdint.h unistd.h |
4010 |
do |
4011 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4012 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4013 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4014 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4015 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4016 |
else |
4017 |
cat >conftest.$ac_ext <<_ACEOF |
4018 |
#line $LINENO "configure" |
4019 |
/* confdefs.h. */ |
4020 |
_ACEOF |
4021 |
cat confdefs.h >>conftest.$ac_ext |
4022 |
cat >>conftest.$ac_ext <<_ACEOF |
4023 |
/* end confdefs.h. */ |
4024 |
$ac_includes_default |
4025 |
|
4026 |
#include <$ac_header> |
4027 |
_ACEOF |
4028 |
rm -f conftest.$ac_objext |
4029 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4030 |
(eval $ac_compile) 2>&5 |
4031 |
ac_status=$? |
4032 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4033 |
(exit $ac_status); } && |
4034 |
{ ac_try='test -s conftest.$ac_objext' |
4035 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4036 |
(eval $ac_try) 2>&5 |
4037 |
ac_status=$? |
4038 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4039 |
(exit $ac_status); }; }; then |
4040 |
eval "$as_ac_Header=yes" |
4041 |
else |
4042 |
echo "$as_me: failed program was:" >&5 |
4043 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4044 |
|
4045 |
eval "$as_ac_Header=no" |
4046 |
fi |
4047 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4048 |
fi |
4049 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4050 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4051 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4052 |
cat >>confdefs.h <<_ACEOF |
4053 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4054 |
_ACEOF |
4055 |
|
4056 |
fi |
4057 |
|
4058 |
done |
4059 |
|
4060 |
|
4061 |
|
4062 |
for ac_header in signal.h |
4063 |
do |
4064 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4065 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4066 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4067 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4068 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4069 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4070 |
fi |
4071 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4072 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4073 |
else |
4074 |
# Is the header compilable? |
4075 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4076 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4077 |
cat >conftest.$ac_ext <<_ACEOF |
4078 |
#line $LINENO "configure" |
4079 |
/* confdefs.h. */ |
4080 |
_ACEOF |
4081 |
cat confdefs.h >>conftest.$ac_ext |
4082 |
cat >>conftest.$ac_ext <<_ACEOF |
4083 |
/* end confdefs.h. */ |
4084 |
$ac_includes_default |
4085 |
#include <$ac_header> |
4086 |
_ACEOF |
4087 |
rm -f conftest.$ac_objext |
4088 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4089 |
(eval $ac_compile) 2>&5 |
4090 |
ac_status=$? |
4091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4092 |
(exit $ac_status); } && |
4093 |
{ ac_try='test -s conftest.$ac_objext' |
4094 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4095 |
(eval $ac_try) 2>&5 |
4096 |
ac_status=$? |
4097 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4098 |
(exit $ac_status); }; }; then |
4099 |
ac_header_compiler=yes |
4100 |
else |
4101 |
echo "$as_me: failed program was:" >&5 |
4102 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4103 |
|
4104 |
ac_header_compiler=no |
4105 |
fi |
4106 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4107 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4108 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4109 |
|
4110 |
# Is the header present? |
4111 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4112 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4113 |
cat >conftest.$ac_ext <<_ACEOF |
4114 |
#line $LINENO "configure" |
4115 |
/* confdefs.h. */ |
4116 |
_ACEOF |
4117 |
cat confdefs.h >>conftest.$ac_ext |
4118 |
cat >>conftest.$ac_ext <<_ACEOF |
4119 |
/* end confdefs.h. */ |
4120 |
#include <$ac_header> |
4121 |
_ACEOF |
4122 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4123 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4124 |
ac_status=$? |
4125 |
grep -v '^ *+' conftest.er1 >conftest.err |
4126 |
rm -f conftest.er1 |
4127 |
cat conftest.err >&5 |
4128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4129 |
(exit $ac_status); } >/dev/null; then |
4130 |
if test -s conftest.err; then |
4131 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4132 |
else |
4133 |
ac_cpp_err= |
4134 |
fi |
4135 |
else |
4136 |
ac_cpp_err=yes |
4137 |
fi |
4138 |
if test -z "$ac_cpp_err"; then |
4139 |
ac_header_preproc=yes |
4140 |
else |
4141 |
echo "$as_me: failed program was:" >&5 |
4142 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4143 |
|
4144 |
ac_header_preproc=no |
4145 |
fi |
4146 |
rm -f conftest.err conftest.$ac_ext |
4147 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4148 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4149 |
|
4150 |
# So? What about this header? |
4151 |
case $ac_header_compiler:$ac_header_preproc in |
4152 |
yes:no ) |
4153 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4154 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4155 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4156 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4157 |
( |
4158 |
cat <<\_ASBOX |
4159 |
## ------------------------------------ ## |
4160 |
## Report this to bug-autoconf@gnu.org. ## |
4161 |
## ------------------------------------ ## |
4162 |
_ASBOX |
4163 |
) | |
4164 |
sed "s/^/$as_me: WARNING: /" >&2 |
4165 |
;; |
4166 |
no:yes ) |
4167 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4168 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4169 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4170 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4171 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4172 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4173 |
( |
4174 |
cat <<\_ASBOX |
4175 |
## ------------------------------------ ## |
4176 |
## Report this to bug-autoconf@gnu.org. ## |
4177 |
## ------------------------------------ ## |
4178 |
_ASBOX |
4179 |
) | |
4180 |
sed "s/^/$as_me: WARNING: /" >&2 |
4181 |
;; |
4182 |
esac |
4183 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4184 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4185 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4186 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4187 |
else |
4188 |
eval "$as_ac_Header=$ac_header_preproc" |
4189 |
fi |
4190 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4191 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4192 |
|
4193 |
fi |
4194 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4195 |
cat >>confdefs.h <<_ACEOF |
4196 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4197 |
_ACEOF |
4198 |
|
4199 |
fi |
4200 |
|
4201 |
done |
4202 |
|
4203 |
|
4204 |
echo "$as_me:$LINENO: checking for inline" >&5 |
4205 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
4206 |
if test "${ac_cv_c_inline+set}" = set; then |
4207 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4208 |
else |
4209 |
ac_cv_c_inline=no |
4210 |
for ac_kw in inline __inline__ __inline; do |
4211 |
cat >conftest.$ac_ext <<_ACEOF |
4212 |
#line $LINENO "configure" |
4213 |
/* confdefs.h. */ |
4214 |
_ACEOF |
4215 |
cat confdefs.h >>conftest.$ac_ext |
4216 |
cat >>conftest.$ac_ext <<_ACEOF |
4217 |
/* end confdefs.h. */ |
4218 |
#ifndef __cplusplus |
4219 |
typedef int foo_t; |
4220 |
static $ac_kw foo_t static_foo () {return 0; } |
4221 |
$ac_kw foo_t foo () {return 0; } |
4222 |
#endif |
4223 |
|
4224 |
_ACEOF |
4225 |
rm -f conftest.$ac_objext |
4226 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4227 |
(eval $ac_compile) 2>&5 |
4228 |
ac_status=$? |
4229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4230 |
(exit $ac_status); } && |
4231 |
{ ac_try='test -s conftest.$ac_objext' |
4232 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4233 |
(eval $ac_try) 2>&5 |
4234 |
ac_status=$? |
4235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4236 |
(exit $ac_status); }; }; then |
4237 |
ac_cv_c_inline=$ac_kw; break |
4238 |
else |
4239 |
echo "$as_me: failed program was:" >&5 |
4240 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4241 |
|
4242 |
fi |
4243 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4244 |
done |
4245 |
|
4246 |
fi |
4247 |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4248 |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
4249 |
case $ac_cv_c_inline in |
4250 |
inline | yes) ;; |
4251 |
no) |
4252 |
cat >>confdefs.h <<\_ACEOF |
4253 |
#define inline |
4254 |
_ACEOF |
4255 |
;; |
4256 |
*) cat >>confdefs.h <<_ACEOF |
4257 |
#define inline $ac_cv_c_inline |
4258 |
_ACEOF |
4259 |
;; |
4260 |
esac |
4261 |
|
4262 |
|
4263 |
echo "$as_me:$LINENO: checking for pid_t" >&5 |
4264 |
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
4265 |
if test "${ac_cv_type_pid_t+set}" = set; then |
4266 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4267 |
else |
4268 |
cat >conftest.$ac_ext <<_ACEOF |
4269 |
#line $LINENO "configure" |
4270 |
/* confdefs.h. */ |
4271 |
_ACEOF |
4272 |
cat confdefs.h >>conftest.$ac_ext |
4273 |
cat >>conftest.$ac_ext <<_ACEOF |
4274 |
/* end confdefs.h. */ |
4275 |
$ac_includes_default |
4276 |
int |
4277 |
main () |
4278 |
{ |
4279 |
if ((pid_t *) 0) |
4280 |
return 0; |
4281 |
if (sizeof (pid_t)) |
4282 |
return 0; |
4283 |
; |
4284 |
return 0; |
4285 |
} |
4286 |
_ACEOF |
4287 |
rm -f conftest.$ac_objext |
4288 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4289 |
(eval $ac_compile) 2>&5 |
4290 |
ac_status=$? |
4291 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4292 |
(exit $ac_status); } && |
4293 |
{ ac_try='test -s conftest.$ac_objext' |
4294 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4295 |
(eval $ac_try) 2>&5 |
4296 |
ac_status=$? |
4297 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4298 |
(exit $ac_status); }; }; then |
4299 |
ac_cv_type_pid_t=yes |
4300 |
else |
4301 |
echo "$as_me: failed program was:" >&5 |
4302 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4303 |
|
4304 |
ac_cv_type_pid_t=no |
4305 |
fi |
4306 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4307 |
fi |
4308 |
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4309 |
echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
4310 |
if test $ac_cv_type_pid_t = yes; then |
4311 |
: |
4312 |
else |
4313 |
|
4314 |
cat >>confdefs.h <<_ACEOF |
4315 |
#define pid_t int |
4316 |
_ACEOF |
4317 |
|
4318 |
fi |
4319 |
|
4320 |
|
4321 |
|
4322 |
for ac_header in unistd.h vfork.h |
4323 |
do |
4324 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4325 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4326 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4327 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4328 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4329 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4330 |
fi |
4331 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4332 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4333 |
else |
4334 |
# Is the header compilable? |
4335 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4336 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
4337 |
cat >conftest.$ac_ext <<_ACEOF |
4338 |
#line $LINENO "configure" |
4339 |
/* confdefs.h. */ |
4340 |
_ACEOF |
4341 |
cat confdefs.h >>conftest.$ac_ext |
4342 |
cat >>conftest.$ac_ext <<_ACEOF |
4343 |
/* end confdefs.h. */ |
4344 |
$ac_includes_default |
4345 |
#include <$ac_header> |
4346 |
_ACEOF |
4347 |
rm -f conftest.$ac_objext |
4348 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4349 |
(eval $ac_compile) 2>&5 |
4350 |
ac_status=$? |
4351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4352 |
(exit $ac_status); } && |
4353 |
{ ac_try='test -s conftest.$ac_objext' |
4354 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4355 |
(eval $ac_try) 2>&5 |
4356 |
ac_status=$? |
4357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4358 |
(exit $ac_status); }; }; then |
4359 |
ac_header_compiler=yes |
4360 |
else |
4361 |
echo "$as_me: failed program was:" >&5 |
4362 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4363 |
|
4364 |
ac_header_compiler=no |
4365 |
fi |
4366 |
rm -f conftest.$ac_objext conftest.$ac_ext |
4367 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4368 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
4369 |
|
4370 |
# Is the header present? |
4371 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4372 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
4373 |
cat >conftest.$ac_ext <<_ACEOF |
4374 |
#line $LINENO "configure" |
4375 |
/* confdefs.h. */ |
4376 |
_ACEOF |
4377 |
cat confdefs.h >>conftest.$ac_ext |
4378 |
cat >>conftest.$ac_ext <<_ACEOF |
4379 |
/* end confdefs.h. */ |
4380 |
#include <$ac_header> |
4381 |
_ACEOF |
4382 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4383 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4384 |
ac_status=$? |
4385 |
grep -v '^ *+' conftest.er1 >conftest.err |
4386 |
rm -f conftest.er1 |
4387 |
cat conftest.err >&5 |
4388 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4389 |
(exit $ac_status); } >/dev/null; then |
4390 |
if test -s conftest.err; then |
4391 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4392 |
else |
4393 |
ac_cpp_err= |
4394 |
fi |
4395 |
else |
4396 |
ac_cpp_err=yes |
4397 |
fi |
4398 |
if test -z "$ac_cpp_err"; then |
4399 |
ac_header_preproc=yes |
4400 |
else |
4401 |
echo "$as_me: failed program was:" >&5 |
4402 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4403 |
|
4404 |
ac_header_preproc=no |
4405 |
fi |
4406 |
rm -f conftest.err conftest.$ac_ext |
4407 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4408 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
4409 |
|
4410 |
# So? What about this header? |
4411 |
case $ac_header_compiler:$ac_header_preproc in |
4412 |
yes:no ) |
4413 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4414 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4415 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4416 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4417 |
( |
4418 |
cat <<\_ASBOX |
4419 |
## ------------------------------------ ## |
4420 |
## Report this to bug-autoconf@gnu.org. ## |
4421 |
## ------------------------------------ ## |
4422 |
_ASBOX |
4423 |
) | |
4424 |
sed "s/^/$as_me: WARNING: /" >&2 |
4425 |
;; |
4426 |
no:yes ) |
4427 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4428 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4429 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4430 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4431 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4432 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4433 |
( |
4434 |
cat <<\_ASBOX |
4435 |
## ------------------------------------ ## |
4436 |
## Report this to bug-autoconf@gnu.org. ## |
4437 |
## ------------------------------------ ## |
4438 |
_ASBOX |
4439 |
) | |
4440 |
sed "s/^/$as_me: WARNING: /" >&2 |
4441 |
;; |
4442 |
esac |
4443 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4444 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4445 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4446 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4447 |
else |
4448 |
eval "$as_ac_Header=$ac_header_preproc" |
4449 |
fi |
4450 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4451 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4452 |
|
4453 |
fi |
4454 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4455 |
cat >>confdefs.h <<_ACEOF |
4456 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4457 |
_ACEOF |
4458 |
|
4459 |
fi |
4460 |
|
4461 |
done |
4462 |
|
4463 |
|
4464 |
|
4465 |
for ac_func in fork vfork |
4466 |
do |
4467 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4468 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4469 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4470 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4471 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4472 |
else |
4473 |
cat >conftest.$ac_ext <<_ACEOF |
4474 |
#line $LINENO "configure" |
4475 |
/* confdefs.h. */ |
4476 |
_ACEOF |
4477 |
cat confdefs.h >>conftest.$ac_ext |
4478 |
cat >>conftest.$ac_ext <<_ACEOF |
4479 |
/* end confdefs.h. */ |
4480 |
/* System header to define __stub macros and hopefully few prototypes, |
4481 |
which can conflict with char $ac_func (); below. |
4482 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4483 |
<limits.h> exists even on freestanding compilers. */ |
4484 |
#ifdef __STDC__ |
4485 |
# include <limits.h> |
4486 |
#else |
4487 |
# include <assert.h> |
4488 |
#endif |
4489 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4490 |
#ifdef __cplusplus |
4491 |
extern "C" |
4492 |
{ |
4493 |
#endif |
4494 |
/* We use char because int might match the return type of a gcc2 |
4495 |
builtin and then its argument prototype would still apply. */ |
4496 |
char $ac_func (); |
4497 |
/* The GNU C library defines this for functions which it implements |
4498 |
to always fail with ENOSYS. Some functions are actually named |
4499 |
something starting with __ and the normal name is an alias. */ |
4500 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4501 |
choke me |
4502 |
#else |
4503 |
char (*f) () = $ac_func; |
4504 |
#endif |
4505 |
#ifdef __cplusplus |
4506 |
} |
4507 |
#endif |
4508 |
|
4509 |
int |
4510 |
main () |
4511 |
{ |
4512 |
return f != $ac_func; |
4513 |
; |
4514 |
return 0; |
4515 |
} |
4516 |
_ACEOF |
4517 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4518 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4519 |
(eval $ac_link) 2>&5 |
4520 |
ac_status=$? |
4521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4522 |
(exit $ac_status); } && |
4523 |
{ ac_try='test -s conftest$ac_exeext' |
4524 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4525 |
(eval $ac_try) 2>&5 |
4526 |
ac_status=$? |
4527 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4528 |
(exit $ac_status); }; }; then |
4529 |
eval "$as_ac_var=yes" |
4530 |
else |
4531 |
echo "$as_me: failed program was:" >&5 |
4532 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4533 |
|
4534 |
eval "$as_ac_var=no" |
4535 |
fi |
4536 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4537 |
fi |
4538 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4539 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4540 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4541 |
cat >>confdefs.h <<_ACEOF |
4542 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4543 |
_ACEOF |
4544 |
|
4545 |
fi |
4546 |
done |
4547 |
|
4548 |
if test "x$ac_cv_func_fork" = xyes; then |
4549 |
echo "$as_me:$LINENO: checking for working fork" >&5 |
4550 |
echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
4551 |
if test "${ac_cv_func_fork_works+set}" = set; then |
4552 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4553 |
else |
4554 |
if test "$cross_compiling" = yes; then |
4555 |
ac_cv_func_fork_works=cross |
4556 |
else |
4557 |
cat >conftest.$ac_ext <<_ACEOF |
4558 |
/* By Ruediger Kuhlmann. */ |
4559 |
#include <sys/types.h> |
4560 |
#if HAVE_UNISTD_H |
4561 |
# include <unistd.h> |
4562 |
#endif |
4563 |
/* Some systems only have a dummy stub for fork() */ |
4564 |
int main () |
4565 |
{ |
4566 |
if (fork() < 0) |
4567 |
exit (1); |
4568 |
exit (0); |
4569 |
} |
4570 |
_ACEOF |
4571 |
rm -f conftest$ac_exeext |
4572 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4573 |
(eval $ac_link) 2>&5 |
4574 |
ac_status=$? |
4575 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4576 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4577 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4578 |
(eval $ac_try) 2>&5 |
4579 |
ac_status=$? |
4580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4581 |
(exit $ac_status); }; }; then |
4582 |
ac_cv_func_fork_works=yes |
4583 |
else |
4584 |
echo "$as_me: program exited with status $ac_status" >&5 |
4585 |
echo "$as_me: failed program was:" >&5 |
4586 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4587 |
|
4588 |
( exit $ac_status ) |
4589 |
ac_cv_func_fork_works=no |
4590 |
fi |
4591 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4592 |
fi |
4593 |
fi |
4594 |
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
4595 |
echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
4596 |
|
4597 |
else |
4598 |
ac_cv_func_fork_works=$ac_cv_func_fork |
4599 |
fi |
4600 |
if test "x$ac_cv_func_fork_works" = xcross; then |
4601 |
case $host in |
4602 |
*-*-amigaos* | *-*-msdosdjgpp*) |
4603 |
# Override, as these systems have only a dummy fork() stub |
4604 |
ac_cv_func_fork_works=no |
4605 |
;; |
4606 |
*) |
4607 |
ac_cv_func_fork_works=yes |
4608 |
;; |
4609 |
esac |
4610 |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
4611 |
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
4612 |
fi |
4613 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
4614 |
if test "x$ac_cv_func_vfork" = xyes; then |
4615 |
echo "$as_me:$LINENO: checking for working vfork" >&5 |
4616 |
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
4617 |
if test "${ac_cv_func_vfork_works+set}" = set; then |
4618 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4619 |
else |
4620 |
if test "$cross_compiling" = yes; then |
4621 |
ac_cv_func_vfork_works=cross |
4622 |
else |
4623 |
cat >conftest.$ac_ext <<_ACEOF |
4624 |
#line $LINENO "configure" |
4625 |
/* confdefs.h. */ |
4626 |
_ACEOF |
4627 |
cat confdefs.h >>conftest.$ac_ext |
4628 |
cat >>conftest.$ac_ext <<_ACEOF |
4629 |
/* end confdefs.h. */ |
4630 |
/* Thanks to Paul Eggert for this test. */ |
4631 |
#include <stdio.h> |
4632 |
#include <stdlib.h> |
4633 |
#include <sys/types.h> |
4634 |
#include <sys/stat.h> |
4635 |
#include <sys/wait.h> |
4636 |
#if HAVE_UNISTD_H |
4637 |
# include <unistd.h> |
4638 |
#endif |
4639 |
#if HAVE_VFORK_H |
4640 |
# include <vfork.h> |
4641 |
#endif |
4642 |
/* On some sparc systems, changes by the child to local and incoming |
4643 |
argument registers are propagated back to the parent. The compiler |
4644 |
is told about this with #include <vfork.h>, but some compilers |
4645 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
4646 |
static variable whose address is put into a register that is |
4647 |
clobbered by the vfork. */ |
4648 |
static void |
4649 |
#ifdef __cplusplus |
4650 |
sparc_address_test (int arg) |
4651 |
# else |
4652 |
sparc_address_test (arg) int arg; |
4653 |
#endif |
4654 |
{ |
4655 |
static pid_t child; |
4656 |
if (!child) { |
4657 |
child = vfork (); |
4658 |
if (child < 0) { |
4659 |
perror ("vfork"); |
4660 |
_exit(2); |
4661 |
} |
4662 |
if (!child) { |
4663 |
arg = getpid(); |
4664 |
write(-1, "", 0); |
4665 |
_exit (arg); |
4666 |
} |
4667 |
} |
4668 |
} |
4669 |
|
4670 |
int |
4671 |
main () |
4672 |
{ |
4673 |
pid_t parent = getpid (); |
4674 |
pid_t child; |
4675 |
|
4676 |
sparc_address_test (0); |
4677 |
|
4678 |
child = vfork (); |
4679 |
|
4680 |
if (child == 0) { |
4681 |
/* Here is another test for sparc vfork register problems. This |
4682 |
test uses lots of local variables, at least as many local |
4683 |
variables as main has allocated so far including compiler |
4684 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
4685 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
4686 |
reuse the register of parent for one of the local variables, |
4687 |
since it will think that parent can't possibly be used any more |
4688 |
in this routine. Assigning to the local variable will thus |
4689 |
munge parent in the parent process. */ |
4690 |
pid_t |
4691 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
4692 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
4693 |
/* Convince the compiler that p..p7 are live; otherwise, it might |
4694 |
use the same hardware register for all 8 local variables. */ |
4695 |
if (p != p1 || p != p2 || p != p3 || p != p4 |
4696 |
|| p != p5 || p != p6 || p != p7) |
4697 |
_exit(1); |
4698 |
|
4699 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
4700 |
from child file descriptors. If the child closes a descriptor |
4701 |
before it execs or exits, this munges the parent's descriptor |
4702 |
as well. Test for this by closing stdout in the child. */ |
4703 |
_exit(close(fileno(stdout)) != 0); |
4704 |
} else { |
4705 |
int status; |
4706 |
struct stat st; |
4707 |
|
4708 |
while (wait(&status) != child) |
4709 |
; |
4710 |
exit( |
4711 |
/* Was there some problem with vforking? */ |
4712 |
child < 0 |
4713 |
|
4714 |
/* Did the child fail? (This shouldn't happen.) */ |
4715 |
|| status |
4716 |
|
4717 |
/* Did the vfork/compiler bug occur? */ |
4718 |
|| parent != getpid() |
4719 |
|
4720 |
/* Did the file descriptor bug occur? */ |
4721 |
|| fstat(fileno(stdout), &st) != 0 |
4722 |
); |
4723 |
} |
4724 |
} |
4725 |
_ACEOF |
4726 |
rm -f conftest$ac_exeext |
4727 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4728 |
(eval $ac_link) 2>&5 |
4729 |
ac_status=$? |
4730 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4731 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4732 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4733 |
(eval $ac_try) 2>&5 |
4734 |
ac_status=$? |
4735 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4736 |
(exit $ac_status); }; }; then |
4737 |
ac_cv_func_vfork_works=yes |
4738 |
else |
4739 |
echo "$as_me: program exited with status $ac_status" >&5 |
4740 |
echo "$as_me: failed program was:" >&5 |
4741 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4742 |
|
4743 |
( exit $ac_status ) |
4744 |
ac_cv_func_vfork_works=no |
4745 |
fi |
4746 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4747 |
fi |
4748 |
fi |
4749 |
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
4750 |
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
4751 |
|
4752 |
fi; |
4753 |
if test "x$ac_cv_func_fork_works" = xcross; then |
4754 |
ac_cv_func_vfork_works=ac_cv_func_vfork |
4755 |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
4756 |
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
4757 |
fi |
4758 |
|
4759 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
4760 |
|
4761 |
cat >>confdefs.h <<\_ACEOF |
4762 |
#define HAVE_WORKING_VFORK 1 |
4763 |
_ACEOF |
4764 |
|
4765 |
else |
4766 |
|
4767 |
cat >>confdefs.h <<\_ACEOF |
4768 |
#define vfork fork |
4769 |
_ACEOF |
4770 |
|
4771 |
fi |
4772 |
if test "x$ac_cv_func_fork_works" = xyes; then |
4773 |
|
4774 |
cat >>confdefs.h <<\_ACEOF |
4775 |
#define HAVE_WORKING_FORK 1 |
4776 |
_ACEOF |
4777 |
|
4778 |
fi |
4779 |
|
4780 |
|
4781 |
|
4782 |
|
4783 |
|
4784 |
|
4785 |
|
4786 |
for ac_func in gethostbyname gettimeofday memset select socket strerror |
4787 |
do |
4788 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4789 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4790 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4791 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4792 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4793 |
else |
4794 |
cat >conftest.$ac_ext <<_ACEOF |
4795 |
#line $LINENO "configure" |
4796 |
/* confdefs.h. */ |
4797 |
_ACEOF |
4798 |
cat confdefs.h >>conftest.$ac_ext |
4799 |
cat >>conftest.$ac_ext <<_ACEOF |
4800 |
/* end confdefs.h. */ |
4801 |
/* System header to define __stub macros and hopefully few prototypes, |
4802 |
which can conflict with char $ac_func (); below. |
4803 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4804 |
<limits.h> exists even on freestanding compilers. */ |
4805 |
#ifdef __STDC__ |
4806 |
# include <limits.h> |
4807 |
#else |
4808 |
# include <assert.h> |
4809 |
#endif |
4810 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4811 |
#ifdef __cplusplus |
4812 |
extern "C" |
4813 |
{ |
4814 |
#endif |
4815 |
/* We use char because int might match the return type of a gcc2 |
4816 |
builtin and then its argument prototype would still apply. */ |
4817 |
char $ac_func (); |
4818 |
/* The GNU C library defines this for functions which it implements |
4819 |
to always fail with ENOSYS. Some functions are actually named |
4820 |
something starting with __ and the normal name is an alias. */ |
4821 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4822 |
choke me |
4823 |
#else |
4824 |
char (*f) () = $ac_func; |
4825 |
#endif |
4826 |
#ifdef __cplusplus |
4827 |
} |
4828 |
#endif |
4829 |
|
4830 |
int |
4831 |
main () |
4832 |
{ |
4833 |
return f != $ac_func; |
4834 |
; |
4835 |
return 0; |
4836 |
} |
4837 |
_ACEOF |
4838 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4839 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4840 |
(eval $ac_link) 2>&5 |
4841 |
ac_status=$? |
4842 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4843 |
(exit $ac_status); } && |
4844 |
{ ac_try='test -s conftest$ac_exeext' |
4845 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4846 |
(eval $ac_try) 2>&5 |
4847 |
ac_status=$? |
4848 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4849 |
(exit $ac_status); }; }; then |
4850 |
eval "$as_ac_var=yes" |
4851 |
else |
4852 |
echo "$as_me: failed program was:" >&5 |
4853 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4854 |
|
4855 |
eval "$as_ac_var=no" |
4856 |
fi |
4857 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4858 |
fi |
4859 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4860 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4861 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4862 |
cat >>confdefs.h <<_ACEOF |
4863 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4864 |
_ACEOF |
4865 |
|
4866 |
fi |
4867 |
done |
4868 |
|
4869 |
|
4870 |
for ac_func in strerror_r |
4871 |
do |
4872 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4873 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4874 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4875 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4876 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4877 |
else |
4878 |
cat >conftest.$ac_ext <<_ACEOF |
4879 |
#line $LINENO "configure" |
4880 |
/* confdefs.h. */ |
4881 |
_ACEOF |
4882 |
cat confdefs.h >>conftest.$ac_ext |
4883 |
cat >>conftest.$ac_ext <<_ACEOF |
4884 |
/* end confdefs.h. */ |
4885 |
/* System header to define __stub macros and hopefully few prototypes, |
4886 |
which can conflict with char $ac_func (); below. |
4887 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4888 |
<limits.h> exists even on freestanding compilers. */ |
4889 |
#ifdef __STDC__ |
4890 |
# include <limits.h> |
4891 |
#else |
4892 |
# include <assert.h> |
4893 |
#endif |
4894 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4895 |
#ifdef __cplusplus |
4896 |
extern "C" |
4897 |
{ |
4898 |
#endif |
4899 |
/* We use char because int might match the return type of a gcc2 |
4900 |
builtin and then its argument prototype would still apply. */ |
4901 |
char $ac_func (); |
4902 |
/* The GNU C library defines this for functions which it implements |
4903 |
to always fail with ENOSYS. Some functions are actually named |
4904 |
something starting with __ and the normal name is an alias. */ |
4905 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4906 |
choke me |
4907 |
#else |
4908 |
char (*f) () = $ac_func; |
4909 |
#endif |
4910 |
#ifdef __cplusplus |
4911 |
} |
4912 |
#endif |
4913 |
|
4914 |
int |
4915 |
main () |
4916 |
{ |
4917 |
return f != $ac_func; |
4918 |
; |
4919 |
return 0; |
4920 |
} |
4921 |
_ACEOF |
4922 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4923 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4924 |
(eval $ac_link) 2>&5 |
4925 |
ac_status=$? |
4926 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4927 |
(exit $ac_status); } && |
4928 |
{ ac_try='test -s conftest$ac_exeext' |
4929 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4930 |
(eval $ac_try) 2>&5 |
4931 |
ac_status=$? |
4932 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4933 |
(exit $ac_status); }; }; then |
4934 |
eval "$as_ac_var=yes" |
4935 |
else |
4936 |
echo "$as_me: failed program was:" >&5 |
4937 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4938 |
|
4939 |
eval "$as_ac_var=no" |
4940 |
fi |
4941 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4942 |
fi |
4943 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4944 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4945 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4946 |
cat >>confdefs.h <<_ACEOF |
4947 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4948 |
_ACEOF |
4949 |
|
4950 |
fi |
4951 |
done |
4952 |
|
4953 |
|
4954 |
ac_config_files="$ac_config_files Makefile src/Makefile px/Makefile" |
4955 |
|
4956 |
cat >confcache <<\_ACEOF |
4957 |
# This file is a shell script that caches the results of configure |
4958 |
# tests run on this system so they can be shared between configure |
4959 |
# scripts and configure runs, see configure's option --config-cache. |
4960 |
# It is not useful on other systems. If it contains results you don't |
4961 |
# want to keep, you may remove or edit it. |
4962 |
# |
4963 |
# config.status only pays attention to the cache file if you give it |
4964 |
# the --recheck option to rerun configure. |
4965 |
# |
4966 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
4967 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
4968 |
# following values. |
4969 |
|
4970 |
_ACEOF |
4971 |
|
4972 |
# The following way of writing the cache mishandles newlines in values, |
4973 |
# but we know of no workaround that is simple, portable, and efficient. |
4974 |
# So, don't put newlines in cache variables' values. |
4975 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
4976 |
# and sets the high bit in the cache file unless we assign to the vars. |
4977 |
{ |
4978 |
(set) 2>&1 | |
4979 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
4980 |
*ac_space=\ *) |
4981 |
# `set' does not quote correctly, so add quotes (double-quote |
4982 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
4983 |
sed -n \ |
4984 |
"s/'/'\\\\''/g; |
4985 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4986 |
;; |
4987 |
*) |
4988 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4989 |
sed -n \ |
4990 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
4991 |
;; |
4992 |
esac; |
4993 |
} | |
4994 |
sed ' |
4995 |
t clear |
4996 |
: clear |
4997 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4998 |
t end |
4999 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5000 |
: end' >>confcache |
5001 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
5002 |
if test -w $cache_file; then |
5003 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5004 |
cat confcache >$cache_file |
5005 |
else |
5006 |
echo "not updating unwritable cache $cache_file" |
5007 |
fi |
5008 |
fi |
5009 |
rm -f confcache |
5010 |
|
5011 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5012 |
# Let make expand exec_prefix. |
5013 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
5014 |
|
5015 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
5016 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
5017 |
# trailing colons and then remove the whole line if VPATH becomes empty |
5018 |
# (actually we leave an empty line to preserve line numbers). |
5019 |
if test "x$srcdir" = x.; then |
5020 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
5021 |
s/:*\$(srcdir):*/:/; |
5022 |
s/:*\${srcdir}:*/:/; |
5023 |
s/:*@srcdir@:*/:/; |
5024 |
s/^\([^=]*=[ ]*\):*/\1/; |
5025 |
s/:*$//; |
5026 |
s/^[^=]*=[ ]*$//; |
5027 |
}' |
5028 |
fi |
5029 |
|
5030 |
DEFS=-DHAVE_CONFIG_H |
5031 |
|
5032 |
ac_libobjs= |
5033 |
ac_ltlibobjs= |
5034 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5035 |
# 1. Remove the extension, and $U if already installed. |
5036 |
ac_i=`echo "$ac_i" | |
5037 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
5038 |
# 2. Add them. |
5039 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
5040 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
5041 |
done |
5042 |
LIBOBJS=$ac_libobjs |
5043 |
|
5044 |
LTLIBOBJS=$ac_ltlibobjs |
5045 |
|
5046 |
|
5047 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5048 |
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
5049 |
Usually this means the macro was only invoked conditionally." >&5 |
5050 |
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
5051 |
Usually this means the macro was only invoked conditionally." >&2;} |
5052 |
{ (exit 1); exit 1; }; } |
5053 |
fi |
5054 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
5055 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
5056 |
Usually this means the macro was only invoked conditionally." >&5 |
5057 |
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
5058 |
Usually this means the macro was only invoked conditionally." >&2;} |
5059 |
{ (exit 1); exit 1; }; } |
5060 |
fi |
5061 |
|
5062 |
: ${CONFIG_STATUS=./config.status} |
5063 |
ac_clean_files_save=$ac_clean_files |
5064 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5065 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
5066 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
5067 |
cat >$CONFIG_STATUS <<_ACEOF |
5068 |
#! $SHELL |
5069 |
# Generated by $as_me. |
5070 |
# Run this file to recreate the current configuration. |
5071 |
# Compiler output produced by configure, useful for debugging |
5072 |
# configure, is in config.log if it exists. |
5073 |
|
5074 |
debug=false |
5075 |
ac_cs_recheck=false |
5076 |
ac_cs_silent=false |
5077 |
SHELL=\${CONFIG_SHELL-$SHELL} |
5078 |
_ACEOF |
5079 |
|
5080 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5081 |
## --------------------- ## |
5082 |
## M4sh Initialization. ## |
5083 |
## --------------------- ## |
5084 |
|
5085 |
# Be Bourne compatible |
5086 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
5087 |
emulate sh |
5088 |
NULLCMD=: |
5089 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
5090 |
# is contrary to our usage. Disable this feature. |
5091 |
alias -g '${1+"$@"}'='"$@"' |
5092 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
5093 |
set -o posix |
5094 |
fi |
5095 |
|
5096 |
# Support unset when possible. |
5097 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
5098 |
as_unset=unset |
5099 |
else |
5100 |
as_unset=false |
5101 |
fi |
5102 |
|
5103 |
|
5104 |
# Work around bugs in pre-3.0 UWIN ksh. |
5105 |
$as_unset ENV MAIL MAILPATH |
5106 |
PS1='$ ' |
5107 |
PS2='> ' |
5108 |
PS4='+ ' |
5109 |
|
5110 |
# NLS nuisances. |
5111 |
for as_var in \ |
5112 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
5113 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
5114 |
LC_TELEPHONE LC_TIME |
5115 |
do |
5116 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5117 |
eval $as_var=C; export $as_var |
5118 |
else |
5119 |
$as_unset $as_var |
5120 |
fi |
5121 |
done |
5122 |
|
5123 |
# Required to use basename. |
5124 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
5125 |
as_expr=expr |
5126 |
else |
5127 |
as_expr=false |
5128 |
fi |
5129 |
|
5130 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5131 |
as_basename=basename |
5132 |
else |
5133 |
as_basename=false |
5134 |
fi |
5135 |
|
5136 |
|
5137 |
# Name of the executable. |
5138 |
as_me=`$as_basename "$0" || |
5139 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5140 |
X"$0" : 'X\(//\)$' \| \ |
5141 |
X"$0" : 'X\(/\)$' \| \ |
5142 |
. : '\(.\)' 2>/dev/null || |
5143 |
echo X/"$0" | |
5144 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
5145 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
5146 |
/^X\/\(\/\).*/{ s//\1/; q; } |
5147 |
s/.*/./; q'` |
5148 |
|
5149 |
|
5150 |
# PATH needs CR, and LINENO needs CR and PATH. |
5151 |
# Avoid depending upon Character Ranges. |
5152 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
5153 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5154 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5155 |
as_cr_digits='0123456789' |
5156 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
5157 |
|
5158 |
# The user is always right. |
5159 |
if test "${PATH_SEPARATOR+set}" != set; then |
5160 |
echo "#! /bin/sh" >conf$$.sh |
5161 |
echo "exit 0" >>conf$$.sh |
5162 |
chmod +x conf$$.sh |
5163 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
5164 |
PATH_SEPARATOR=';' |
5165 |
else |
5166 |
PATH_SEPARATOR=: |
5167 |
fi |
5168 |
rm -f conf$$.sh |
5169 |
fi |
5170 |
|
5171 |
|
5172 |
as_lineno_1=$LINENO |
5173 |
as_lineno_2=$LINENO |
5174 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
5175 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
5176 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
5177 |
# Find who we are. Look in the path if we contain no path at all |
5178 |
# relative or not. |
5179 |
case $0 in |
5180 |
*[\\/]* ) as_myself=$0 ;; |
5181 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5182 |
for as_dir in $PATH |
5183 |
do |
5184 |
IFS=$as_save_IFS |
5185 |
test -z "$as_dir" && as_dir=. |
5186 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
5187 |
done |
5188 |
|
5189 |
;; |
5190 |
esac |
5191 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
5192 |
# in which case we are not to be found in the path. |
5193 |
if test "x$as_myself" = x; then |
5194 |
as_myself=$0 |
5195 |
fi |
5196 |
if test ! -f "$as_myself"; then |
5197 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
5198 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
5199 |
{ (exit 1); exit 1; }; } |
5200 |
fi |
5201 |
case $CONFIG_SHELL in |
5202 |
'') |
5203 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5204 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
5205 |
do |
5206 |
IFS=$as_save_IFS |
5207 |
test -z "$as_dir" && as_dir=. |
5208 |
for as_base in sh bash ksh sh5; do |
5209 |
case $as_dir in |
5210 |
/*) |
5211 |
if ("$as_dir/$as_base" -c ' |
5212 |
as_lineno_1=$LINENO |
5213 |
as_lineno_2=$LINENO |
5214 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
5215 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
5216 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
5217 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
5218 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
5219 |
CONFIG_SHELL=$as_dir/$as_base |
5220 |
export CONFIG_SHELL |
5221 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
5222 |
fi;; |
5223 |
esac |
5224 |
done |
5225 |
done |
5226 |
;; |
5227 |
esac |
5228 |
|
5229 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
5230 |
# uniformly replaced by the line number. The first 'sed' inserts a |
5231 |
# line-number line before each line; the second 'sed' does the real |
5232 |
# work. The second script uses 'N' to pair each line-number line |
5233 |
# with the numbered line, and appends trailing '-' during |
5234 |
# substitution so that $LINENO is not a special case at line end. |
5235 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
5236 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
5237 |
sed '=' <$as_myself | |
5238 |
sed ' |
5239 |
N |
5240 |
s,$,-, |
5241 |
: loop |
5242 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
5243 |
t loop |
5244 |
s,-$,, |
5245 |
s,^['$as_cr_digits']*\n,, |
5246 |
' >$as_me.lineno && |
5247 |
chmod +x $as_me.lineno || |
5248 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
5249 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
5250 |
{ (exit 1); exit 1; }; } |
5251 |
|
5252 |
# Don't try to exec as it changes $[0], causing all sort of problems |
5253 |
# (the dirname of $[0] is not the place where we might find the |
5254 |
# original and so on. Autoconf is especially sensible to this). |
5255 |
. ./$as_me.lineno |
5256 |
# Exit status is that of the last command. |
5257 |
exit |
5258 |
} |
5259 |
|
5260 |
|
5261 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
5262 |
*c*,-n*) ECHO_N= ECHO_C=' |
5263 |
' ECHO_T=' ' ;; |
5264 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
5265 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
5266 |
esac |
5267 |
|
5268 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
5269 |
as_expr=expr |
5270 |
else |
5271 |
as_expr=false |
5272 |
fi |
5273 |
|
5274 |
rm -f conf$$ conf$$.exe conf$$.file |
5275 |
echo >conf$$.file |
5276 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
5277 |
# We could just check for DJGPP; but this test a) works b) is more generic |
5278 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
5279 |
if test -f conf$$.exe; then |
5280 |
# Don't use ln at all; we don't have any links |
5281 |
as_ln_s='cp -p' |
5282 |
else |
5283 |
as_ln_s='ln -s' |
5284 |
fi |
5285 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
5286 |
as_ln_s=ln |
5287 |
else |
5288 |
as_ln_s='cp -p' |
5289 |
fi |
5290 |
rm -f conf$$ conf$$.exe conf$$.file |
5291 |
|
5292 |
if mkdir -p . 2>/dev/null; then |
5293 |
as_mkdir_p=: |
5294 |
else |
5295 |
as_mkdir_p=false |
5296 |
fi |
5297 |
|
5298 |
as_executable_p="test -f" |
5299 |
|
5300 |
# Sed expression to map a string onto a valid CPP name. |
5301 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
5302 |
|
5303 |
# Sed expression to map a string onto a valid variable name. |
5304 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
5305 |
|
5306 |
|
5307 |
# IFS |
5308 |
# We need space, tab and new line, in precisely that order. |
5309 |
as_nl=' |
5310 |
' |
5311 |
IFS=" $as_nl" |
5312 |
|
5313 |
# CDPATH. |
5314 |
$as_unset CDPATH |
5315 |
|
5316 |
exec 6>&1 |
5317 |
|
5318 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
5319 |
# report actual input values of CONFIG_FILES etc. instead of their |
5320 |
# values after options handling. Logging --version etc. is OK. |
5321 |
exec 5>>config.log |
5322 |
{ |
5323 |
echo |
5324 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
5325 |
## Running $as_me. ## |
5326 |
_ASBOX |
5327 |
} >&5 |
5328 |
cat >&5 <<_CSEOF |
5329 |
|
5330 |
This file was extended by Proxy scanner daemon $as_me 2.0, which was |
5331 |
generated by GNU Autoconf 2.57. Invocation command line was |
5332 |
|
5333 |
CONFIG_FILES = $CONFIG_FILES |
5334 |
CONFIG_HEADERS = $CONFIG_HEADERS |
5335 |
CONFIG_LINKS = $CONFIG_LINKS |
5336 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
5337 |
$ $0 $@ |
5338 |
|
5339 |
_CSEOF |
5340 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
5341 |
echo >&5 |
5342 |
_ACEOF |
5343 |
|
5344 |
# Files that config.status was made for. |
5345 |
if test -n "$ac_config_files"; then |
5346 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
5347 |
fi |
5348 |
|
5349 |
if test -n "$ac_config_headers"; then |
5350 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
5351 |
fi |
5352 |
|
5353 |
if test -n "$ac_config_links"; then |
5354 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
5355 |
fi |
5356 |
|
5357 |
if test -n "$ac_config_commands"; then |
5358 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
5359 |
fi |
5360 |
|
5361 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5362 |
|
5363 |
ac_cs_usage="\ |
5364 |
\`$as_me' instantiates files from templates according to the |
5365 |
current configuration. |
5366 |
|
5367 |
Usage: $0 [OPTIONS] [FILE]... |
5368 |
|
5369 |
-h, --help print this help, then exit |
5370 |
-V, --version print version number, then exit |
5371 |
-q, --quiet do not print progress messages |
5372 |
-d, --debug don't remove temporary files |
5373 |
--recheck update $as_me by reconfiguring in the same conditions |
5374 |
--file=FILE[:TEMPLATE] |
5375 |
instantiate the configuration file FILE |
5376 |
--header=FILE[:TEMPLATE] |
5377 |
instantiate the configuration header FILE |
5378 |
|
5379 |
Configuration files: |
5380 |
$config_files |
5381 |
|
5382 |
Configuration headers: |
5383 |
$config_headers |
5384 |
|
5385 |
Configuration commands: |
5386 |
$config_commands |
5387 |
|
5388 |
Report bugs to <bug-autoconf@gnu.org>." |
5389 |
_ACEOF |
5390 |
|
5391 |
cat >>$CONFIG_STATUS <<_ACEOF |
5392 |
ac_cs_version="\\ |
5393 |
Proxy scanner daemon config.status 2.0 |
5394 |
configured by $0, generated by GNU Autoconf 2.57, |
5395 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
5396 |
|
5397 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
5398 |
Free Software Foundation, Inc. |
5399 |
This config.status script is free software; the Free Software Foundation |
5400 |
gives unlimited permission to copy, distribute and modify it." |
5401 |
srcdir=$srcdir |
5402 |
INSTALL="$INSTALL" |
5403 |
_ACEOF |
5404 |
|
5405 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5406 |
# If no file are specified by the user, then we need to provide default |
5407 |
# value. By we need to know if files were specified by the user. |
5408 |
ac_need_defaults=: |
5409 |
while test $# != 0 |
5410 |
do |
5411 |
case $1 in |
5412 |
--*=*) |
5413 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
5414 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
5415 |
ac_shift=: |
5416 |
;; |
5417 |
-*) |
5418 |
ac_option=$1 |
5419 |
ac_optarg=$2 |
5420 |
ac_shift=shift |
5421 |
;; |
5422 |
*) # This is not an option, so the user has probably given explicit |
5423 |
# arguments. |
5424 |
ac_option=$1 |
5425 |
ac_need_defaults=false;; |
5426 |
esac |
5427 |
|
5428 |
case $ac_option in |
5429 |
# Handling of the options. |
5430 |
_ACEOF |
5431 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5432 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5433 |
ac_cs_recheck=: ;; |
5434 |
--version | --vers* | -V ) |
5435 |
echo "$ac_cs_version"; exit 0 ;; |
5436 |
--he | --h) |
5437 |
# Conflict between --help and --header |
5438 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
5439 |
Try \`$0 --help' for more information." >&5 |
5440 |
echo "$as_me: error: ambiguous option: $1 |
5441 |
Try \`$0 --help' for more information." >&2;} |
5442 |
{ (exit 1); exit 1; }; };; |
5443 |
--help | --hel | -h ) |
5444 |
echo "$ac_cs_usage"; exit 0 ;; |
5445 |
--debug | --d* | -d ) |
5446 |
debug=: ;; |
5447 |
--file | --fil | --fi | --f ) |
5448 |
$ac_shift |
5449 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
5450 |
ac_need_defaults=false;; |
5451 |
--header | --heade | --head | --hea ) |
5452 |
$ac_shift |
5453 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
5454 |
ac_need_defaults=false;; |
5455 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5456 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
5457 |
ac_cs_silent=: ;; |
5458 |
|
5459 |
# This is an error. |
5460 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
5461 |
Try \`$0 --help' for more information." >&5 |
5462 |
echo "$as_me: error: unrecognized option: $1 |
5463 |
Try \`$0 --help' for more information." >&2;} |
5464 |
{ (exit 1); exit 1; }; } ;; |
5465 |
|
5466 |
*) ac_config_targets="$ac_config_targets $1" ;; |
5467 |
|
5468 |
esac |
5469 |
shift |
5470 |
done |
5471 |
|
5472 |
ac_configure_extra_args= |
5473 |
|
5474 |
if $ac_cs_silent; then |
5475 |
exec 6>/dev/null |
5476 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
5477 |
fi |
5478 |
|
5479 |
_ACEOF |
5480 |
cat >>$CONFIG_STATUS <<_ACEOF |
5481 |
if \$ac_cs_recheck; then |
5482 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
5483 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5484 |
fi |
5485 |
|
5486 |
_ACEOF |
5487 |
|
5488 |
cat >>$CONFIG_STATUS <<_ACEOF |
5489 |
# |
5490 |
# INIT-COMMANDS section. |
5491 |
# |
5492 |
|
5493 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5494 |
|
5495 |
_ACEOF |
5496 |
|
5497 |
|
5498 |
|
5499 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5500 |
for ac_config_target in $ac_config_targets |
5501 |
do |
5502 |
case "$ac_config_target" in |
5503 |
# Handling of arguments. |
5504 |
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5505 |
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
5506 |
"px/Makefile" ) CONFIG_FILES="$CONFIG_FILES px/Makefile" ;; |
5507 |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5508 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5509 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
5510 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
5511 |
{ (exit 1); exit 1; }; };; |
5512 |
esac |
5513 |
done |
5514 |
|
5515 |
# If the user did not use the arguments to specify the items to instantiate, |
5516 |
# then the envvar interface is used. Set only those that are not. |
5517 |
# We use the long form for the default assignment because of an extremely |
5518 |
# bizarre bug on SunOS 4.1.3. |
5519 |
if $ac_need_defaults; then |
5520 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
5521 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
5522 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
5523 |
fi |
5524 |
|
5525 |
# Have a temporary directory for convenience. Make it in the build tree |
5526 |
# simply because there is no reason to put it here, and in addition, |
5527 |
# creating and moving files from /tmp can sometimes cause problems. |
5528 |
# Create a temporary directory, and hook for its removal unless debugging. |
5529 |
$debug || |
5530 |
{ |
5531 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
5532 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
5533 |
} |
5534 |
|
5535 |
# Create a (secure) tmp directory for tmp files. |
5536 |
|
5537 |
{ |
5538 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
5539 |
test -n "$tmp" && test -d "$tmp" |
5540 |
} || |
5541 |
{ |
5542 |
tmp=./confstat$$-$RANDOM |
5543 |
(umask 077 && mkdir $tmp) |
5544 |
} || |
5545 |
{ |
5546 |
echo "$me: cannot create a temporary directory in ." >&2 |
5547 |
{ (exit 1); exit 1; } |
5548 |
} |
5549 |
|
5550 |
_ACEOF |
5551 |
|
5552 |
cat >>$CONFIG_STATUS <<_ACEOF |
5553 |
|
5554 |
# |
5555 |
# CONFIG_FILES section. |
5556 |
# |
5557 |
|
5558 |
# No need to generate the scripts if there are no CONFIG_FILES. |
5559 |
# This happens for instance when ./config.status config.h |
5560 |
if test -n "\$CONFIG_FILES"; then |
5561 |
# Protect against being on the right side of a sed subst in config.status. |
5562 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
5563 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
5564 |
s,@SHELL@,$SHELL,;t t |
5565 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
5566 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
5567 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
5568 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
5569 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
5570 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
5571 |
s,@exec_prefix@,$exec_prefix,;t t |
5572 |
s,@prefix@,$prefix,;t t |
5573 |
s,@program_transform_name@,$program_transform_name,;t t |
5574 |
s,@bindir@,$bindir,;t t |
5575 |
s,@sbindir@,$sbindir,;t t |
5576 |
s,@libexecdir@,$libexecdir,;t t |
5577 |
s,@datadir@,$datadir,;t t |
5578 |
s,@sysconfdir@,$sysconfdir,;t t |
5579 |
s,@sharedstatedir@,$sharedstatedir,;t t |
5580 |
s,@localstatedir@,$localstatedir,;t t |
5581 |
s,@libdir@,$libdir,;t t |
5582 |
s,@includedir@,$includedir,;t t |
5583 |
s,@oldincludedir@,$oldincludedir,;t t |
5584 |
s,@infodir@,$infodir,;t t |
5585 |
s,@mandir@,$mandir,;t t |
5586 |
s,@build_alias@,$build_alias,;t t |
5587 |
s,@host_alias@,$host_alias,;t t |
5588 |
s,@target_alias@,$target_alias,;t t |
5589 |
s,@DEFS@,$DEFS,;t t |
5590 |
s,@ECHO_C@,$ECHO_C,;t t |
5591 |
s,@ECHO_N@,$ECHO_N,;t t |
5592 |
s,@ECHO_T@,$ECHO_T,;t t |
5593 |
s,@LIBS@,$LIBS,;t t |
5594 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5595 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5596 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
5597 |
s,@PACKAGE@,$PACKAGE,;t t |
5598 |
s,@VERSION@,$VERSION,;t t |
5599 |
s,@ACLOCAL@,$ACLOCAL,;t t |
5600 |
s,@AUTOCONF@,$AUTOCONF,;t t |
5601 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
5602 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
5603 |
s,@MAKEINFO@,$MAKEINFO,;t t |
5604 |
s,@AMTAR@,$AMTAR,;t t |
5605 |
s,@install_sh@,$install_sh,;t t |
5606 |
s,@STRIP@,$STRIP,;t t |
5607 |
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
5608 |
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
5609 |
s,@AWK@,$AWK,;t t |
5610 |
s,@SET_MAKE@,$SET_MAKE,;t t |
5611 |
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
5612 |
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
5613 |
s,@MAINT@,$MAINT,;t t |
5614 |
s,@CC@,$CC,;t t |
5615 |
s,@CFLAGS@,$CFLAGS,;t t |
5616 |
s,@LDFLAGS@,$LDFLAGS,;t t |
5617 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
5618 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
5619 |
s,@EXEEXT@,$EXEEXT,;t t |
5620 |
s,@OBJEXT@,$OBJEXT,;t t |
5621 |
s,@DEPDIR@,$DEPDIR,;t t |
5622 |
s,@am__include@,$am__include,;t t |
5623 |
s,@am__quote@,$am__quote,;t t |
5624 |
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
5625 |
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
5626 |
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
5627 |
s,@CCDEPMODE@,$CCDEPMODE,;t t |
5628 |
s,@CXX@,$CXX,;t t |
5629 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
5630 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
5631 |
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
5632 |
s,@PEAK_CONFIG@,$PEAK_CONFIG,;t t |
5633 |
s,@PEAK_CFLAGS@,$PEAK_CFLAGS,;t t |
5634 |
s,@PEAK_LIBS@,$PEAK_LIBS,;t t |
5635 |
s,@FGREP@,$FGREP,;t t |
5636 |
s,@XML2_CONFIG@,$XML2_CONFIG,;t t |
5637 |
s,@XML2_CFLAGS@,$XML2_CFLAGS,;t t |
5638 |
s,@XML2_LIBS@,$XML2_LIBS,;t t |
5639 |
s,@CPP@,$CPP,;t t |
5640 |
s,@EGREP@,$EGREP,;t t |
5641 |
s,@LIBOBJS@,$LIBOBJS,;t t |
5642 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5643 |
CEOF |
5644 |
|
5645 |
_ACEOF |
5646 |
|
5647 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5648 |
# Split the substitutions into bite-sized pieces for seds with |
5649 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
5650 |
ac_max_sed_lines=48 |
5651 |
ac_sed_frag=1 # Number of current file. |
5652 |
ac_beg=1 # First line for current file. |
5653 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
5654 |
ac_more_lines=: |
5655 |
ac_sed_cmds= |
5656 |
while $ac_more_lines; do |
5657 |
if test $ac_beg -gt 1; then |
5658 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5659 |
else |
5660 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5661 |
fi |
5662 |
if test ! -s $tmp/subs.frag; then |
5663 |
ac_more_lines=false |
5664 |
else |
5665 |
# The purpose of the label and of the branching condition is to |
5666 |
# speed up the sed processing (if there are no `@' at all, there |
5667 |
# is no need to browse any of the substitutions). |
5668 |
# These are the two extra sed commands mentioned above. |
5669 |
(echo ':t |
5670 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
5671 |
if test -z "$ac_sed_cmds"; then |
5672 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
5673 |
else |
5674 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
5675 |
fi |
5676 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
5677 |
ac_beg=$ac_end |
5678 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
5679 |
fi |
5680 |
done |
5681 |
if test -z "$ac_sed_cmds"; then |
5682 |
ac_sed_cmds=cat |
5683 |
fi |
5684 |
fi # test -n "$CONFIG_FILES" |
5685 |
|
5686 |
_ACEOF |
5687 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5688 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
5689 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5690 |
case $ac_file in |
5691 |
- | *:- | *:-:* ) # input from stdin |
5692 |
cat >$tmp/stdin |
5693 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5694 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5695 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5696 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5697 |
* ) ac_file_in=$ac_file.in ;; |
5698 |
esac |
5699 |
|
5700 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5701 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5702 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5703 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5704 |
X"$ac_file" : 'X\(//\)$' \| \ |
5705 |
X"$ac_file" : 'X\(/\)' \| \ |
5706 |
. : '\(.\)' 2>/dev/null || |
5707 |
echo X"$ac_file" | |
5708 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5709 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5710 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5711 |
/^X\(\/\).*/{ s//\1/; q; } |
5712 |
s/.*/./; q'` |
5713 |
{ if $as_mkdir_p; then |
5714 |
mkdir -p "$ac_dir" |
5715 |
else |
5716 |
as_dir="$ac_dir" |
5717 |
as_dirs= |
5718 |
while test ! -d "$as_dir"; do |
5719 |
as_dirs="$as_dir $as_dirs" |
5720 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
5721 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5722 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5723 |
X"$as_dir" : 'X\(//\)$' \| \ |
5724 |
X"$as_dir" : 'X\(/\)' \| \ |
5725 |
. : '\(.\)' 2>/dev/null || |
5726 |
echo X"$as_dir" | |
5727 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5728 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5729 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5730 |
/^X\(\/\).*/{ s//\1/; q; } |
5731 |
s/.*/./; q'` |
5732 |
done |
5733 |
test ! -n "$as_dirs" || mkdir $as_dirs |
5734 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
5735 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
5736 |
{ (exit 1); exit 1; }; }; } |
5737 |
|
5738 |
ac_builddir=. |
5739 |
|
5740 |
if test "$ac_dir" != .; then |
5741 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5742 |
# A "../" for each directory in $ac_dir_suffix. |
5743 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
5744 |
else |
5745 |
ac_dir_suffix= ac_top_builddir= |
5746 |
fi |
5747 |
|
5748 |
case $srcdir in |
5749 |
.) # No --srcdir option. We are building in place. |
5750 |
ac_srcdir=. |
5751 |
if test -z "$ac_top_builddir"; then |
5752 |
ac_top_srcdir=. |
5753 |
else |
5754 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
5755 |
fi ;; |
5756 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
5757 |
ac_srcdir=$srcdir$ac_dir_suffix; |
5758 |
ac_top_srcdir=$srcdir ;; |
5759 |
*) # Relative path. |
5760 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
5761 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
5762 |
esac |
5763 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
5764 |
# absolute. |
5765 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
5766 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
5767 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
5768 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
5769 |
|
5770 |
|
5771 |
case $INSTALL in |
5772 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
5773 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
5774 |
esac |
5775 |
|
5776 |
if test x"$ac_file" != x-; then |
5777 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
5778 |
echo "$as_me: creating $ac_file" >&6;} |
5779 |
rm -f "$ac_file" |
5780 |
fi |
5781 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5782 |
# use $as_me), people would be surprised to read: |
5783 |
# /* config.h. Generated by config.status. */ |
5784 |
if test x"$ac_file" = x-; then |
5785 |
configure_input= |
5786 |
else |
5787 |
configure_input="$ac_file. " |
5788 |
fi |
5789 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
5790 |
sed 's,.*/,,'` by configure." |
5791 |
|
5792 |
# First look for the input files in the build tree, otherwise in the |
5793 |
# src tree. |
5794 |
ac_file_inputs=`IFS=: |
5795 |
for f in $ac_file_in; do |
5796 |
case $f in |
5797 |
-) echo $tmp/stdin ;; |
5798 |
[\\/$]*) |
5799 |
# Absolute (can't be DOS-style, as IFS=:) |
5800 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5801 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5802 |
{ (exit 1); exit 1; }; } |
5803 |
echo $f;; |
5804 |
*) # Relative |
5805 |
if test -f "$f"; then |
5806 |
# Build tree |
5807 |
echo $f |
5808 |
elif test -f "$srcdir/$f"; then |
5809 |
# Source tree |
5810 |
echo $srcdir/$f |
5811 |
else |
5812 |
# /dev/null tree |
5813 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5814 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5815 |
{ (exit 1); exit 1; }; } |
5816 |
fi;; |
5817 |
esac |
5818 |
done` || { (exit 1); exit 1; } |
5819 |
_ACEOF |
5820 |
cat >>$CONFIG_STATUS <<_ACEOF |
5821 |
sed "$ac_vpsub |
5822 |
$extrasub |
5823 |
_ACEOF |
5824 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5825 |
:t |
5826 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
5827 |
s,@configure_input@,$configure_input,;t t |
5828 |
s,@srcdir@,$ac_srcdir,;t t |
5829 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
5830 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
5831 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
5832 |
s,@builddir@,$ac_builddir,;t t |
5833 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
5834 |
s,@top_builddir@,$ac_top_builddir,;t t |
5835 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
5836 |
s,@INSTALL@,$ac_INSTALL,;t t |
5837 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
5838 |
rm -f $tmp/stdin |
5839 |
if test x"$ac_file" != x-; then |
5840 |
mv $tmp/out $ac_file |
5841 |
else |
5842 |
cat $tmp/out |
5843 |
rm -f $tmp/out |
5844 |
fi |
5845 |
|
5846 |
done |
5847 |
_ACEOF |
5848 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5849 |
|
5850 |
# |
5851 |
# CONFIG_HEADER section. |
5852 |
# |
5853 |
|
5854 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
5855 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
5856 |
# |
5857 |
# ac_d sets the value in "#define NAME VALUE" lines. |
5858 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
5859 |
ac_dB='[ ].*$,\1#\2' |
5860 |
ac_dC=' ' |
5861 |
ac_dD=',;t' |
5862 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
5863 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5864 |
ac_uB='$,\1#\2define\3' |
5865 |
ac_uC=' ' |
5866 |
ac_uD=',;t' |
5867 |
|
5868 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
5869 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5870 |
case $ac_file in |
5871 |
- | *:- | *:-:* ) # input from stdin |
5872 |
cat >$tmp/stdin |
5873 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5874 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5875 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5876 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5877 |
* ) ac_file_in=$ac_file.in ;; |
5878 |
esac |
5879 |
|
5880 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
5881 |
echo "$as_me: creating $ac_file" >&6;} |
5882 |
|
5883 |
# First look for the input files in the build tree, otherwise in the |
5884 |
# src tree. |
5885 |
ac_file_inputs=`IFS=: |
5886 |
for f in $ac_file_in; do |
5887 |
case $f in |
5888 |
-) echo $tmp/stdin ;; |
5889 |
[\\/$]*) |
5890 |
# Absolute (can't be DOS-style, as IFS=:) |
5891 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5892 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5893 |
{ (exit 1); exit 1; }; } |
5894 |
echo $f;; |
5895 |
*) # Relative |
5896 |
if test -f "$f"; then |
5897 |
# Build tree |
5898 |
echo $f |
5899 |
elif test -f "$srcdir/$f"; then |
5900 |
# Source tree |
5901 |
echo $srcdir/$f |
5902 |
else |
5903 |
# /dev/null tree |
5904 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5905 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5906 |
{ (exit 1); exit 1; }; } |
5907 |
fi;; |
5908 |
esac |
5909 |
done` || { (exit 1); exit 1; } |
5910 |
# Remove the trailing spaces. |
5911 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
5912 |
|
5913 |
_ACEOF |
5914 |
|
5915 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
5916 |
# `conftest.undefs', that substitutes the proper values into |
5917 |
# config.h.in to produce config.h. The first handles `#define' |
5918 |
# templates, and the second `#undef' templates. |
5919 |
# And first: Protect against being on the right side of a sed subst in |
5920 |
# config.status. Protect against being in an unquoted here document |
5921 |
# in config.status. |
5922 |
rm -f conftest.defines conftest.undefs |
5923 |
# Using a here document instead of a string reduces the quoting nightmare. |
5924 |
# Putting comments in sed scripts is not portable. |
5925 |
# |
5926 |
# `end' is used to avoid that the second main sed command (meant for |
5927 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
5928 |
# See the Autoconf documentation for `clear'. |
5929 |
cat >confdef2sed.sed <<\_ACEOF |
5930 |
s/[\\&,]/\\&/g |
5931 |
s,[\\$`],\\&,g |
5932 |
t clear |
5933 |
: clear |
5934 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
5935 |
t end |
5936 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
5937 |
: end |
5938 |
_ACEOF |
5939 |
# If some macros were called several times there might be several times |
5940 |
# the same #defines, which is useless. Nevertheless, we may not want to |
5941 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
5942 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
5943 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
5944 |
rm -f confdef2sed.sed |
5945 |
|
5946 |
# This sed command replaces #undef with comments. This is necessary, for |
5947 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
5948 |
# on some systems where configure will not decide to define it. |
5949 |
cat >>conftest.undefs <<\_ACEOF |
5950 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
5951 |
_ACEOF |
5952 |
|
5953 |
# Break up conftest.defines because some shells have a limit on the size |
5954 |
# of here documents, and old seds have small limits too (100 cmds). |
5955 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
5956 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
5957 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
5958 |
echo ' :' >>$CONFIG_STATUS |
5959 |
rm -f conftest.tail |
5960 |
while grep . conftest.defines >/dev/null |
5961 |
do |
5962 |
# Write a limited-size here document to $tmp/defines.sed. |
5963 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
5964 |
# Speed up: don't consider the non `#define' lines. |
5965 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
5966 |
# Work around the forget-to-reset-the-flag bug. |
5967 |
echo 't clr' >>$CONFIG_STATUS |
5968 |
echo ': clr' >>$CONFIG_STATUS |
5969 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
5970 |
echo 'CEOF |
5971 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
5972 |
rm -f $tmp/in |
5973 |
mv $tmp/out $tmp/in |
5974 |
' >>$CONFIG_STATUS |
5975 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
5976 |
rm -f conftest.defines |
5977 |
mv conftest.tail conftest.defines |
5978 |
done |
5979 |
rm -f conftest.defines |
5980 |
echo ' fi # grep' >>$CONFIG_STATUS |
5981 |
echo >>$CONFIG_STATUS |
5982 |
|
5983 |
# Break up conftest.undefs because some shells have a limit on the size |
5984 |
# of here documents, and old seds have small limits too (100 cmds). |
5985 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
5986 |
rm -f conftest.tail |
5987 |
while grep . conftest.undefs >/dev/null |
5988 |
do |
5989 |
# Write a limited-size here document to $tmp/undefs.sed. |
5990 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
5991 |
# Speed up: don't consider the non `#undef' |
5992 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
5993 |
# Work around the forget-to-reset-the-flag bug. |
5994 |
echo 't clr' >>$CONFIG_STATUS |
5995 |
echo ': clr' >>$CONFIG_STATUS |
5996 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
5997 |
echo 'CEOF |
5998 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
5999 |
rm -f $tmp/in |
6000 |
mv $tmp/out $tmp/in |
6001 |
' >>$CONFIG_STATUS |
6002 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
6003 |
rm -f conftest.undefs |
6004 |
mv conftest.tail conftest.undefs |
6005 |
done |
6006 |
rm -f conftest.undefs |
6007 |
|
6008 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6009 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
6010 |
# use $as_me), people would be surprised to read: |
6011 |
# /* config.h. Generated by config.status. */ |
6012 |
if test x"$ac_file" = x-; then |
6013 |
echo "/* Generated by configure. */" >$tmp/config.h |
6014 |
else |
6015 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
6016 |
fi |
6017 |
cat $tmp/in >>$tmp/config.h |
6018 |
rm -f $tmp/in |
6019 |
if test x"$ac_file" != x-; then |
6020 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
6021 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
6022 |
echo "$as_me: $ac_file is unchanged" >&6;} |
6023 |
else |
6024 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
6025 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6026 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
6027 |
X"$ac_file" : 'X\(//\)$' \| \ |
6028 |
X"$ac_file" : 'X\(/\)' \| \ |
6029 |
. : '\(.\)' 2>/dev/null || |
6030 |
echo X"$ac_file" | |
6031 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6032 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6033 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6034 |
/^X\(\/\).*/{ s//\1/; q; } |
6035 |
s/.*/./; q'` |
6036 |
{ if $as_mkdir_p; then |
6037 |
mkdir -p "$ac_dir" |
6038 |
else |
6039 |
as_dir="$ac_dir" |
6040 |
as_dirs= |
6041 |
while test ! -d "$as_dir"; do |
6042 |
as_dirs="$as_dir $as_dirs" |
6043 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
6044 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6045 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
6046 |
X"$as_dir" : 'X\(//\)$' \| \ |
6047 |
X"$as_dir" : 'X\(/\)' \| \ |
6048 |
. : '\(.\)' 2>/dev/null || |
6049 |
echo X"$as_dir" | |
6050 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6051 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6052 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6053 |
/^X\(\/\).*/{ s//\1/; q; } |
6054 |
s/.*/./; q'` |
6055 |
done |
6056 |
test ! -n "$as_dirs" || mkdir $as_dirs |
6057 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
6058 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
6059 |
{ (exit 1); exit 1; }; }; } |
6060 |
|
6061 |
rm -f $ac_file |
6062 |
mv $tmp/config.h $ac_file |
6063 |
fi |
6064 |
else |
6065 |
cat $tmp/config.h |
6066 |
rm -f $tmp/config.h |
6067 |
fi |
6068 |
# Run the commands associated with the file. |
6069 |
case $ac_file in |
6070 |
config.h ) # update the timestamp |
6071 |
echo 'timestamp for config.h' >"./stamp-h1" |
6072 |
;; |
6073 |
esac |
6074 |
done |
6075 |
_ACEOF |
6076 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6077 |
|
6078 |
# |
6079 |
# CONFIG_COMMANDS section. |
6080 |
# |
6081 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
6082 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
6083 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
6084 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
6085 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6086 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
6087 |
X"$ac_dest" : 'X\(//\)$' \| \ |
6088 |
X"$ac_dest" : 'X\(/\)' \| \ |
6089 |
. : '\(.\)' 2>/dev/null || |
6090 |
echo X"$ac_dest" | |
6091 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6092 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6093 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6094 |
/^X\(\/\).*/{ s//\1/; q; } |
6095 |
s/.*/./; q'` |
6096 |
ac_builddir=. |
6097 |
|
6098 |
if test "$ac_dir" != .; then |
6099 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
6100 |
# A "../" for each directory in $ac_dir_suffix. |
6101 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
6102 |
else |
6103 |
ac_dir_suffix= ac_top_builddir= |
6104 |
fi |
6105 |
|
6106 |
case $srcdir in |
6107 |
.) # No --srcdir option. We are building in place. |
6108 |
ac_srcdir=. |
6109 |
if test -z "$ac_top_builddir"; then |
6110 |
ac_top_srcdir=. |
6111 |
else |
6112 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
6113 |
fi ;; |
6114 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
6115 |
ac_srcdir=$srcdir$ac_dir_suffix; |
6116 |
ac_top_srcdir=$srcdir ;; |
6117 |
*) # Relative path. |
6118 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
6119 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
6120 |
esac |
6121 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
6122 |
# absolute. |
6123 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
6124 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
6125 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
6126 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
6127 |
|
6128 |
|
6129 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
6130 |
echo "$as_me: executing $ac_dest commands" >&6;} |
6131 |
case $ac_dest in |
6132 |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
6133 |
# Strip MF so we end up with the name of the file. |
6134 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
6135 |
# Check whether this is an Automake generated Makefile or not. |
6136 |
# We used to match only the files named `Makefile.in', but |
6137 |
# some people rename them; so instead we look at the file content. |
6138 |
# Grep'ing the first line is not enough: some people post-process |
6139 |
# each Makefile.in and add a new line on top of each file to say so. |
6140 |
# So let's grep whole file. |
6141 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
6142 |
dirpart=`(dirname "$mf") 2>/dev/null || |
6143 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6144 |
X"$mf" : 'X\(//\)[^/]' \| \ |
6145 |
X"$mf" : 'X\(//\)$' \| \ |
6146 |
X"$mf" : 'X\(/\)' \| \ |
6147 |
. : '\(.\)' 2>/dev/null || |
6148 |
echo X"$mf" | |
6149 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6150 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6151 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6152 |
/^X\(\/\).*/{ s//\1/; q; } |
6153 |
s/.*/./; q'` |
6154 |
else |
6155 |
continue |
6156 |
fi |
6157 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
6158 |
# Extract the definition of DEP_FILES from the Makefile without |
6159 |
# running `make'. |
6160 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
6161 |
test -z "$DEPDIR" && continue |
6162 |
# When using ansi2knr, U may be empty or an underscore; expand it |
6163 |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
6164 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
6165 |
# We invoke sed twice because it is the simplest approach to |
6166 |
# changing $(DEPDIR) to its actual value in the expansion. |
6167 |
for file in `sed -n -e ' |
6168 |
/^DEP_FILES = .*\\\\$/ { |
6169 |
s/^DEP_FILES = // |
6170 |
:loop |
6171 |
s/\\\\$// |
6172 |
p |
6173 |
n |
6174 |
/\\\\$/ b loop |
6175 |
p |
6176 |
} |
6177 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
6178 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
6179 |
# Make sure the directory exists. |
6180 |
test -f "$dirpart/$file" && continue |
6181 |
fdir=`(dirname "$file") 2>/dev/null || |
6182 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6183 |
X"$file" : 'X\(//\)[^/]' \| \ |
6184 |
X"$file" : 'X\(//\)$' \| \ |
6185 |
X"$file" : 'X\(/\)' \| \ |
6186 |
. : '\(.\)' 2>/dev/null || |
6187 |
echo X"$file" | |
6188 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6189 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6190 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6191 |
/^X\(\/\).*/{ s//\1/; q; } |
6192 |
s/.*/./; q'` |
6193 |
{ if $as_mkdir_p; then |
6194 |
mkdir -p $dirpart/$fdir |
6195 |
else |
6196 |
as_dir=$dirpart/$fdir |
6197 |
as_dirs= |
6198 |
while test ! -d "$as_dir"; do |
6199 |
as_dirs="$as_dir $as_dirs" |
6200 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
6201 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6202 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
6203 |
X"$as_dir" : 'X\(//\)$' \| \ |
6204 |
X"$as_dir" : 'X\(/\)' \| \ |
6205 |
. : '\(.\)' 2>/dev/null || |
6206 |
echo X"$as_dir" | |
6207 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6208 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6209 |
/^X\(\/\/\)$/{ s//\1/; q; } |
6210 |
/^X\(\/\).*/{ s//\1/; q; } |
6211 |
s/.*/./; q'` |
6212 |
done |
6213 |
test ! -n "$as_dirs" || mkdir $as_dirs |
6214 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
6215 |
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
6216 |
{ (exit 1); exit 1; }; }; } |
6217 |
|
6218 |
# echo "creating $dirpart/$file" |
6219 |
echo '# dummy' > "$dirpart/$file" |
6220 |
done |
6221 |
done |
6222 |
;; |
6223 |
esac |
6224 |
done |
6225 |
_ACEOF |
6226 |
|
6227 |
cat >>$CONFIG_STATUS <<\_ACEOF |
6228 |
|
6229 |
{ (exit 0); exit 0; } |
6230 |
_ACEOF |
6231 |
chmod +x $CONFIG_STATUS |
6232 |
ac_clean_files=$ac_clean_files_save |
6233 |
|
6234 |
|
6235 |
# configure is writing to config.log, and then calls config.status. |
6236 |
# config.status does its own redirection, appending to config.log. |
6237 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
6238 |
# by configure, so config.status won't be able to write to it; its |
6239 |
# output is simply discarded. So we exec the FD to /dev/null, |
6240 |
# effectively closing config.log, so it can be properly (re)opened and |
6241 |
# appended to by config.status. When coming back to configure, we |
6242 |
# need to make the FD available again. |
6243 |
if test "$no_create" != yes; then |
6244 |
ac_cs_success=: |
6245 |
ac_config_status_args= |
6246 |
test "$silent" = yes && |
6247 |
ac_config_status_args="$ac_config_status_args --quiet" |
6248 |
exec 5>/dev/null |
6249 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
6250 |
exec 5>>config.log |
6251 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6252 |
# would make configure fail if this is the last instruction. |
6253 |
$ac_cs_success || { (exit 1); exit 1; } |
6254 |
fi |
6255 |
|
6256 |
|