1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 |
# |
8 |
# |
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 more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in #( |
26 |
*posix*) : |
27 |
set -o posix ;; #( |
28 |
*) : |
29 |
;; |
30 |
esac |
31 |
fi |
32 |
|
33 |
|
34 |
as_nl=' |
35 |
' |
36 |
export as_nl |
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
42 |
# but without wasting forks for bash or zsh. |
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
45 |
as_echo='print -r --' |
46 |
as_echo_n='print -rn --' |
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='printf %s\n' |
49 |
as_echo_n='printf %s' |
50 |
else |
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 |
as_echo_n='/usr/ucb/echo -n' |
54 |
else |
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 |
as_echo_n_body='eval |
57 |
arg=$1; |
58 |
case $arg in #( |
59 |
*"$as_nl"*) |
60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 |
esac; |
63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
64 |
' |
65 |
export as_echo_n_body |
66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
67 |
fi |
68 |
export as_echo_body |
69 |
as_echo='sh -c $as_echo_body as_echo' |
70 |
fi |
71 |
|
72 |
# The user is always right. |
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
74 |
PATH_SEPARATOR=: |
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 |
PATH_SEPARATOR=';' |
78 |
} |
79 |
fi |
80 |
|
81 |
|
82 |
# IFS |
83 |
# We need space, tab and new line, in precisely that order. Quoting is |
84 |
# there to prevent editors from complaining about space-tab. |
85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
86 |
# splitting by setting IFS to empty value.) |
87 |
IFS=" "" $as_nl" |
88 |
|
89 |
# Find who we are. Look in the path if we contain no directory separator. |
90 |
as_myself= |
91 |
case $0 in #(( |
92 |
*[\\/]* ) as_myself=$0 ;; |
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 |
for as_dir in $PATH |
95 |
do |
96 |
IFS=$as_save_IFS |
97 |
test -z "$as_dir" && as_dir=. |
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
# Unset variables that we do not need and which cause bugs (e.g. in |
115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
116 |
# suppresses any "Segmentation fault" message there. '((' could |
117 |
# trigger a bug in pdksh 5.2.14. |
118 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
119 |
do eval test x\${$as_var+set} = xset \ |
120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
121 |
done |
122 |
PS1='$ ' |
123 |
PS2='> ' |
124 |
PS4='+ ' |
125 |
|
126 |
# NLS nuisances. |
127 |
LC_ALL=C |
128 |
export LC_ALL |
129 |
LANGUAGE=C |
130 |
export LANGUAGE |
131 |
|
132 |
# CDPATH. |
133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 |
|
135 |
# Use a proper internal environment variable to ensure we don't fall |
136 |
# into an infinite loop, continuously re-executing ourselves. |
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 |
_as_can_reexec=no; export _as_can_reexec; |
139 |
# We cannot yet assume a decent shell, so we have to provide a |
140 |
# neutralization value for shells without unset; and this also |
141 |
# works around shells that cannot unset nonexistent variables. |
142 |
# Preserve -v and -x to the replacement shell. |
143 |
BASH_ENV=/dev/null |
144 |
ENV=/dev/null |
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
146 |
case $- in # (((( |
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
148 |
*v* ) as_opts=-v ;; |
149 |
*x* ) as_opts=-x ;; |
150 |
* ) as_opts= ;; |
151 |
esac |
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
154 |
# out after a failed `exec'. |
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 |
as_fn_exit 255 |
157 |
fi |
158 |
# We don't want this to propagate to other subprocesses. |
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 |
emulate sh |
163 |
NULLCMD=: |
164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 |
# is contrary to our usage. Disable this feature. |
166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 |
setopt NO_GLOB_SUBST |
168 |
else |
169 |
case \`(set -o) 2>/dev/null\` in #( |
170 |
*posix*) : |
171 |
set -o posix ;; #( |
172 |
*) : |
173 |
;; |
174 |
esac |
175 |
fi |
176 |
" |
177 |
as_required="as_fn_return () { (exit \$1); } |
178 |
as_fn_success () { as_fn_return 0; } |
179 |
as_fn_failure () { as_fn_return 1; } |
180 |
as_fn_ret_success () { return 0; } |
181 |
as_fn_ret_failure () { return 1; } |
182 |
|
183 |
exitcode=0 |
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
189 |
|
190 |
else |
191 |
exitcode=1; echo positional parameters were not saved. |
192 |
fi |
193 |
test x\$exitcode = x0 || exit 1 |
194 |
test -x / || exit 1" |
195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 |
test \$(( 1 + 1 )) = 2 || exit 1" |
200 |
if (eval "$as_required") 2>/dev/null; then : |
201 |
as_have_required=yes |
202 |
else |
203 |
as_have_required=no |
204 |
fi |
205 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
206 |
|
207 |
else |
208 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
209 |
as_found=false |
210 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
211 |
do |
212 |
IFS=$as_save_IFS |
213 |
test -z "$as_dir" && as_dir=. |
214 |
as_found=: |
215 |
case $as_dir in #( |
216 |
/*) |
217 |
for as_base in sh bash ksh sh5; do |
218 |
# Try only shells that exist, to save several forks. |
219 |
as_shell=$as_dir/$as_base |
220 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
221 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
222 |
CONFIG_SHELL=$as_shell as_have_required=yes |
223 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
224 |
break 2 |
225 |
fi |
226 |
fi |
227 |
done;; |
228 |
esac |
229 |
as_found=false |
230 |
done |
231 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
233 |
CONFIG_SHELL=$SHELL as_have_required=yes |
234 |
fi; } |
235 |
IFS=$as_save_IFS |
236 |
|
237 |
|
238 |
if test "x$CONFIG_SHELL" != x; then : |
239 |
export CONFIG_SHELL |
240 |
# We cannot yet assume a decent shell, so we have to provide a |
241 |
# neutralization value for shells without unset; and this also |
242 |
# works around shells that cannot unset nonexistent variables. |
243 |
# Preserve -v and -x to the replacement shell. |
244 |
BASH_ENV=/dev/null |
245 |
ENV=/dev/null |
246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
247 |
case $- in # (((( |
248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
249 |
*v* ) as_opts=-v ;; |
250 |
*x* ) as_opts=-x ;; |
251 |
* ) as_opts= ;; |
252 |
esac |
253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
255 |
# out after a failed `exec'. |
256 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 |
exit 255 |
258 |
fi |
259 |
|
260 |
if test x$as_have_required = xno; then : |
261 |
$as_echo "$0: This script requires a shell more modern than all" |
262 |
$as_echo "$0: the shells that I found on your system." |
263 |
if test x${ZSH_VERSION+set} = xset ; then |
264 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
266 |
else |
267 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 |
$0: including any error possibly output before this |
269 |
$0: message. Then install a modern shell, or manually run |
270 |
$0: the script under such a shell if you do have one." |
271 |
fi |
272 |
exit 1 |
273 |
fi |
274 |
fi |
275 |
fi |
276 |
SHELL=${CONFIG_SHELL-/bin/sh} |
277 |
export SHELL |
278 |
# Unset more variables known to interfere with behavior of common tools. |
279 |
CLICOLOR_FORCE= GREP_OPTIONS= |
280 |
unset CLICOLOR_FORCE GREP_OPTIONS |
281 |
|
282 |
## --------------------- ## |
283 |
## M4sh Shell Functions. ## |
284 |
## --------------------- ## |
285 |
# as_fn_unset VAR |
286 |
# --------------- |
287 |
# Portably unset VAR. |
288 |
as_fn_unset () |
289 |
{ |
290 |
{ eval $1=; unset $1;} |
291 |
} |
292 |
as_unset=as_fn_unset |
293 |
|
294 |
# as_fn_set_status STATUS |
295 |
# ----------------------- |
296 |
# Set $? to STATUS, without forking. |
297 |
as_fn_set_status () |
298 |
{ |
299 |
return $1 |
300 |
} # as_fn_set_status |
301 |
|
302 |
# as_fn_exit STATUS |
303 |
# ----------------- |
304 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
305 |
as_fn_exit () |
306 |
{ |
307 |
set +e |
308 |
as_fn_set_status $1 |
309 |
exit $1 |
310 |
} # as_fn_exit |
311 |
|
312 |
# as_fn_mkdir_p |
313 |
# ------------- |
314 |
# Create "$as_dir" as a directory, including parents if necessary. |
315 |
as_fn_mkdir_p () |
316 |
{ |
317 |
|
318 |
case $as_dir in #( |
319 |
-*) as_dir=./$as_dir;; |
320 |
esac |
321 |
test -d "$as_dir" || eval $as_mkdir_p || { |
322 |
as_dirs= |
323 |
while :; do |
324 |
case $as_dir in #( |
325 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
326 |
*) as_qdir=$as_dir;; |
327 |
esac |
328 |
as_dirs="'$as_qdir' $as_dirs" |
329 |
as_dir=`$as_dirname -- "$as_dir" || |
330 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
331 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
332 |
X"$as_dir" : 'X\(//\)$' \| \ |
333 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
334 |
$as_echo X"$as_dir" | |
335 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
336 |
s//\1/ |
337 |
q |
338 |
} |
339 |
/^X\(\/\/\)[^/].*/{ |
340 |
s//\1/ |
341 |
q |
342 |
} |
343 |
/^X\(\/\/\)$/{ |
344 |
s//\1/ |
345 |
q |
346 |
} |
347 |
/^X\(\/\).*/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
s/.*/./; q'` |
352 |
test -d "$as_dir" && break |
353 |
done |
354 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
355 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
356 |
|
357 |
|
358 |
} # as_fn_mkdir_p |
359 |
|
360 |
# as_fn_executable_p FILE |
361 |
# ----------------------- |
362 |
# Test if FILE is an executable regular file. |
363 |
as_fn_executable_p () |
364 |
{ |
365 |
test -f "$1" && test -x "$1" |
366 |
} # as_fn_executable_p |
367 |
# as_fn_append VAR VALUE |
368 |
# ---------------------- |
369 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
370 |
# advantage of any shell optimizations that allow amortized linear growth over |
371 |
# repeated appends, instead of the typical quadratic growth present in naive |
372 |
# implementations. |
373 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
374 |
eval 'as_fn_append () |
375 |
{ |
376 |
eval $1+=\$2 |
377 |
}' |
378 |
else |
379 |
as_fn_append () |
380 |
{ |
381 |
eval $1=\$$1\$2 |
382 |
} |
383 |
fi # as_fn_append |
384 |
|
385 |
# as_fn_arith ARG... |
386 |
# ------------------ |
387 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
388 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
389 |
# must be portable across $(()) and expr. |
390 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
391 |
eval 'as_fn_arith () |
392 |
{ |
393 |
as_val=$(( $* )) |
394 |
}' |
395 |
else |
396 |
as_fn_arith () |
397 |
{ |
398 |
as_val=`expr "$@" || test $? -eq 1` |
399 |
} |
400 |
fi # as_fn_arith |
401 |
|
402 |
|
403 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 |
# ---------------------------------------- |
405 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
407 |
# script with STATUS, using 1 if that was 0. |
408 |
as_fn_error () |
409 |
{ |
410 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
411 |
if test "$4"; then |
412 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
413 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
414 |
fi |
415 |
$as_echo "$as_me: error: $2" >&2 |
416 |
as_fn_exit $as_status |
417 |
} # as_fn_error |
418 |
|
419 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
420 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
421 |
as_expr=expr |
422 |
else |
423 |
as_expr=false |
424 |
fi |
425 |
|
426 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
427 |
as_basename=basename |
428 |
else |
429 |
as_basename=false |
430 |
fi |
431 |
|
432 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 |
as_dirname=dirname |
434 |
else |
435 |
as_dirname=false |
436 |
fi |
437 |
|
438 |
as_me=`$as_basename -- "$0" || |
439 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 |
X"$0" : 'X\(//\)$' \| \ |
441 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 |
$as_echo X/"$0" | |
443 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 |
s//\1/ |
445 |
q |
446 |
} |
447 |
/^X\/\(\/\/\)$/{ |
448 |
s//\1/ |
449 |
q |
450 |
} |
451 |
/^X\/\(\/\).*/{ |
452 |
s//\1/ |
453 |
q |
454 |
} |
455 |
s/.*/./; q'` |
456 |
|
457 |
# Avoid depending upon Character Ranges. |
458 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
459 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
460 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
461 |
as_cr_digits='0123456789' |
462 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
463 |
|
464 |
|
465 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
467 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
468 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
469 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
470 |
sed -n ' |
471 |
p |
472 |
/[$]LINENO/= |
473 |
' <$as_myself | |
474 |
sed ' |
475 |
s/[$]LINENO.*/&-/ |
476 |
t lineno |
477 |
b |
478 |
:lineno |
479 |
N |
480 |
:loop |
481 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
482 |
t loop |
483 |
s/-\n.*// |
484 |
' >$as_me.lineno && |
485 |
chmod +x "$as_me.lineno" || |
486 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
487 |
|
488 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 |
# already done that, so ensure we don't try to do so again and fall |
490 |
# in an infinite loop. This has already happened in practice. |
491 |
_as_can_reexec=no; export _as_can_reexec |
492 |
# Don't try to exec as it changes $[0], causing all sort of problems |
493 |
# (the dirname of $[0] is not the place where we might find the |
494 |
# original and so on. Autoconf is especially sensitive to this). |
495 |
. "./$as_me.lineno" |
496 |
# Exit status is that of the last command. |
497 |
exit |
498 |
} |
499 |
|
500 |
ECHO_C= ECHO_N= ECHO_T= |
501 |
case `echo -n x` in #((((( |
502 |
-n*) |
503 |
case `echo 'xy\c'` in |
504 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
505 |
xy) ECHO_C='\c';; |
506 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
507 |
ECHO_T=' ';; |
508 |
esac;; |
509 |
*) |
510 |
ECHO_N='-n';; |
511 |
esac |
512 |
|
513 |
rm -f conf$$ conf$$.exe conf$$.file |
514 |
if test -d conf$$.dir; then |
515 |
rm -f conf$$.dir/conf$$.file |
516 |
else |
517 |
rm -f conf$$.dir |
518 |
mkdir conf$$.dir 2>/dev/null |
519 |
fi |
520 |
if (echo >conf$$.file) 2>/dev/null; then |
521 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
522 |
as_ln_s='ln -s' |
523 |
# ... but there are two gotchas: |
524 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
525 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
526 |
# In both cases, we have to default to `cp -pR'. |
527 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
528 |
as_ln_s='cp -pR' |
529 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s=ln |
531 |
else |
532 |
as_ln_s='cp -pR' |
533 |
fi |
534 |
else |
535 |
as_ln_s='cp -pR' |
536 |
fi |
537 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 |
rmdir conf$$.dir 2>/dev/null |
539 |
|
540 |
if mkdir -p . 2>/dev/null; then |
541 |
as_mkdir_p='mkdir -p "$as_dir"' |
542 |
else |
543 |
test -d ./-p && rmdir ./-p |
544 |
as_mkdir_p=false |
545 |
fi |
546 |
|
547 |
as_test_x='test -x' |
548 |
as_executable_p=as_fn_executable_p |
549 |
|
550 |
# Sed expression to map a string onto a valid CPP name. |
551 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
552 |
|
553 |
# Sed expression to map a string onto a valid variable name. |
554 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
555 |
|
556 |
|
557 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
558 |
exec 6>&1 |
559 |
|
560 |
# Name of the host. |
561 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
562 |
# so uname gets run too. |
563 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
564 |
|
565 |
# |
566 |
# Initializations. |
567 |
# |
568 |
ac_default_prefix=/usr/local |
569 |
ac_clean_files= |
570 |
ac_config_libobj_dir=. |
571 |
LIBOBJS= |
572 |
cross_compiling=no |
573 |
subdirs= |
574 |
MFLAGS= |
575 |
MAKEFLAGS= |
576 |
|
577 |
# Identity of this package. |
578 |
PACKAGE_NAME= |
579 |
PACKAGE_TARNAME= |
580 |
PACKAGE_VERSION= |
581 |
PACKAGE_STRING= |
582 |
PACKAGE_BUGREPORT= |
583 |
PACKAGE_URL= |
584 |
|
585 |
ac_unique_file="src/gvpe.C" |
586 |
# Factoring default headers for most tests. |
587 |
ac_includes_default="\ |
588 |
#include <stdio.h> |
589 |
#ifdef HAVE_SYS_TYPES_H |
590 |
# include <sys/types.h> |
591 |
#endif |
592 |
#ifdef HAVE_SYS_STAT_H |
593 |
# include <sys/stat.h> |
594 |
#endif |
595 |
#ifdef STDC_HEADERS |
596 |
# include <stdlib.h> |
597 |
# include <stddef.h> |
598 |
#else |
599 |
# ifdef HAVE_STDLIB_H |
600 |
# include <stdlib.h> |
601 |
# endif |
602 |
#endif |
603 |
#ifdef HAVE_STRING_H |
604 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
605 |
# include <memory.h> |
606 |
# endif |
607 |
# include <string.h> |
608 |
#endif |
609 |
#ifdef HAVE_STRINGS_H |
610 |
# include <strings.h> |
611 |
#endif |
612 |
#ifdef HAVE_INTTYPES_H |
613 |
# include <inttypes.h> |
614 |
#endif |
615 |
#ifdef HAVE_STDINT_H |
616 |
# include <stdint.h> |
617 |
#endif |
618 |
#ifdef HAVE_UNISTD_H |
619 |
# include <unistd.h> |
620 |
#endif" |
621 |
|
622 |
ac_subst_vars='LTLIBOBJS |
623 |
LIBOBJS |
624 |
INCLUDES |
625 |
ROHC_FALSE |
626 |
ROHC_TRUE |
627 |
LDFLAGS_DAEMON |
628 |
LIBCRYPTO_LIBS |
629 |
LIBCRYPTO_CFLAGS |
630 |
PKG_CONFIG_LIBDIR |
631 |
PKG_CONFIG_PATH |
632 |
PKG_CONFIG |
633 |
HAVE_TUNTAP |
634 |
LINUX_IF_TUN_H |
635 |
ALLOCA |
636 |
CXXCPP |
637 |
IFSUBTYPE |
638 |
IFTYPE |
639 |
RANLIB |
640 |
LN_S |
641 |
EGREP |
642 |
GREP |
643 |
am__fastdepCXX_FALSE |
644 |
am__fastdepCXX_TRUE |
645 |
CXXDEPMODE |
646 |
ac_ct_CXX |
647 |
CXXFLAGS |
648 |
CXX |
649 |
CPP |
650 |
POSUB |
651 |
LTLIBINTL |
652 |
LIBINTL |
653 |
INTLLIBS |
654 |
LTLIBICONV |
655 |
LIBICONV |
656 |
USE_NLS |
657 |
am__fastdepCC_FALSE |
658 |
am__fastdepCC_TRUE |
659 |
CCDEPMODE |
660 |
AMDEPBACKSLASH |
661 |
AMDEP_FALSE |
662 |
AMDEP_TRUE |
663 |
am__quote |
664 |
am__include |
665 |
DEPDIR |
666 |
OBJEXT |
667 |
EXEEXT |
668 |
ac_ct_CC |
669 |
CPPFLAGS |
670 |
LDFLAGS |
671 |
CFLAGS |
672 |
CC |
673 |
MSGMERGE |
674 |
XGETTEXT |
675 |
GMSGFMT |
676 |
MSGFMT |
677 |
MKINSTALLDIRS |
678 |
MAINT |
679 |
MAINTAINER_MODE_FALSE |
680 |
MAINTAINER_MODE_TRUE |
681 |
am__leading_dot |
682 |
SET_MAKE |
683 |
AWK |
684 |
INSTALL_STRIP_PROGRAM |
685 |
STRIP |
686 |
install_sh |
687 |
AMTAR |
688 |
MAKEINFO |
689 |
AUTOHEADER |
690 |
AUTOMAKE |
691 |
AUTOCONF |
692 |
ACLOCAL |
693 |
VERSION |
694 |
PACKAGE |
695 |
CYGPATH_W |
696 |
INSTALL_DATA |
697 |
INSTALL_SCRIPT |
698 |
INSTALL_PROGRAM |
699 |
target_os |
700 |
target_vendor |
701 |
target_cpu |
702 |
target |
703 |
host_os |
704 |
host_vendor |
705 |
host_cpu |
706 |
host |
707 |
build_os |
708 |
build_vendor |
709 |
build_cpu |
710 |
build |
711 |
target_alias |
712 |
host_alias |
713 |
build_alias |
714 |
LIBS |
715 |
ECHO_T |
716 |
ECHO_N |
717 |
ECHO_C |
718 |
DEFS |
719 |
mandir |
720 |
localedir |
721 |
libdir |
722 |
psdir |
723 |
pdfdir |
724 |
dvidir |
725 |
htmldir |
726 |
infodir |
727 |
docdir |
728 |
oldincludedir |
729 |
includedir |
730 |
runstatedir |
731 |
localstatedir |
732 |
sharedstatedir |
733 |
sysconfdir |
734 |
datadir |
735 |
datarootdir |
736 |
libexecdir |
737 |
sbindir |
738 |
bindir |
739 |
program_transform_name |
740 |
prefix |
741 |
exec_prefix |
742 |
PACKAGE_URL |
743 |
PACKAGE_BUGREPORT |
744 |
PACKAGE_STRING |
745 |
PACKAGE_VERSION |
746 |
PACKAGE_TARNAME |
747 |
PACKAGE_NAME |
748 |
PATH_SEPARATOR |
749 |
SHELL' |
750 |
ac_subst_files='' |
751 |
ac_user_opts=' |
752 |
enable_option_checking |
753 |
enable_maintainer_mode |
754 |
enable_dependency_tracking |
755 |
with_gnu_ld |
756 |
enable_rpath |
757 |
with_libiconv_prefix |
758 |
enable_nls |
759 |
with_libintl_prefix |
760 |
enable_iftype |
761 |
with_kernel |
762 |
enable_threads |
763 |
enable_static_daemon |
764 |
enable_icmp |
765 |
enable_tcp |
766 |
enable_http_proxy |
767 |
enable_dns |
768 |
enable_rsa_length |
769 |
enable_hmac_length |
770 |
enable_max_mtu |
771 |
enable_compression |
772 |
enable_cipher |
773 |
enable_hmac_digest |
774 |
enable_auth_digest |
775 |
' |
776 |
ac_precious_vars='build_alias |
777 |
host_alias |
778 |
target_alias |
779 |
CC |
780 |
CFLAGS |
781 |
LDFLAGS |
782 |
LIBS |
783 |
CPPFLAGS |
784 |
CPP |
785 |
CXX |
786 |
CXXFLAGS |
787 |
CCC |
788 |
CXXCPP |
789 |
PKG_CONFIG |
790 |
PKG_CONFIG_PATH |
791 |
PKG_CONFIG_LIBDIR |
792 |
LIBCRYPTO_CFLAGS |
793 |
LIBCRYPTO_LIBS' |
794 |
|
795 |
|
796 |
# Initialize some variables set by options. |
797 |
ac_init_help= |
798 |
ac_init_version=false |
799 |
ac_unrecognized_opts= |
800 |
ac_unrecognized_sep= |
801 |
# The variables have the same names as the options, with |
802 |
# dashes changed to underlines. |
803 |
cache_file=/dev/null |
804 |
exec_prefix=NONE |
805 |
no_create= |
806 |
no_recursion= |
807 |
prefix=NONE |
808 |
program_prefix=NONE |
809 |
program_suffix=NONE |
810 |
program_transform_name=s,x,x, |
811 |
silent= |
812 |
site= |
813 |
srcdir= |
814 |
verbose= |
815 |
x_includes=NONE |
816 |
x_libraries=NONE |
817 |
|
818 |
# Installation directory options. |
819 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
820 |
# and all the variables that are supposed to be based on exec_prefix |
821 |
# by default will actually change. |
822 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
823 |
# (The list follows the same order as the GNU Coding Standards.) |
824 |
bindir='${exec_prefix}/bin' |
825 |
sbindir='${exec_prefix}/sbin' |
826 |
libexecdir='${exec_prefix}/libexec' |
827 |
datarootdir='${prefix}/share' |
828 |
datadir='${datarootdir}' |
829 |
sysconfdir='${prefix}/etc' |
830 |
sharedstatedir='${prefix}/com' |
831 |
localstatedir='${prefix}/var' |
832 |
runstatedir='${localstatedir}/run' |
833 |
includedir='${prefix}/include' |
834 |
oldincludedir='/usr/include' |
835 |
docdir='${datarootdir}/doc/${PACKAGE}' |
836 |
infodir='${datarootdir}/info' |
837 |
htmldir='${docdir}' |
838 |
dvidir='${docdir}' |
839 |
pdfdir='${docdir}' |
840 |
psdir='${docdir}' |
841 |
libdir='${exec_prefix}/lib' |
842 |
localedir='${datarootdir}/locale' |
843 |
mandir='${datarootdir}/man' |
844 |
|
845 |
ac_prev= |
846 |
ac_dashdash= |
847 |
for ac_option |
848 |
do |
849 |
# If the previous option needs an argument, assign it. |
850 |
if test -n "$ac_prev"; then |
851 |
eval $ac_prev=\$ac_option |
852 |
ac_prev= |
853 |
continue |
854 |
fi |
855 |
|
856 |
case $ac_option in |
857 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
858 |
*=) ac_optarg= ;; |
859 |
*) ac_optarg=yes ;; |
860 |
esac |
861 |
|
862 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
863 |
|
864 |
case $ac_dashdash$ac_option in |
865 |
--) |
866 |
ac_dashdash=yes ;; |
867 |
|
868 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
869 |
ac_prev=bindir ;; |
870 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
871 |
bindir=$ac_optarg ;; |
872 |
|
873 |
-build | --build | --buil | --bui | --bu) |
874 |
ac_prev=build_alias ;; |
875 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
876 |
build_alias=$ac_optarg ;; |
877 |
|
878 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
879 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
880 |
ac_prev=cache_file ;; |
881 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
882 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
883 |
cache_file=$ac_optarg ;; |
884 |
|
885 |
--config-cache | -C) |
886 |
cache_file=config.cache ;; |
887 |
|
888 |
-datadir | --datadir | --datadi | --datad) |
889 |
ac_prev=datadir ;; |
890 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
891 |
datadir=$ac_optarg ;; |
892 |
|
893 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
894 |
| --dataroo | --dataro | --datar) |
895 |
ac_prev=datarootdir ;; |
896 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
897 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
898 |
datarootdir=$ac_optarg ;; |
899 |
|
900 |
-disable-* | --disable-*) |
901 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
902 |
# Reject names that are not valid shell variable names. |
903 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
904 |
as_fn_error $? "invalid feature name: $ac_useropt" |
905 |
ac_useropt_orig=$ac_useropt |
906 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
907 |
case $ac_user_opts in |
908 |
*" |
909 |
"enable_$ac_useropt" |
910 |
"*) ;; |
911 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
912 |
ac_unrecognized_sep=', ';; |
913 |
esac |
914 |
eval enable_$ac_useropt=no ;; |
915 |
|
916 |
-docdir | --docdir | --docdi | --doc | --do) |
917 |
ac_prev=docdir ;; |
918 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
919 |
docdir=$ac_optarg ;; |
920 |
|
921 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
922 |
ac_prev=dvidir ;; |
923 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
924 |
dvidir=$ac_optarg ;; |
925 |
|
926 |
-enable-* | --enable-*) |
927 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
928 |
# Reject names that are not valid shell variable names. |
929 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
930 |
as_fn_error $? "invalid feature name: $ac_useropt" |
931 |
ac_useropt_orig=$ac_useropt |
932 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
933 |
case $ac_user_opts in |
934 |
*" |
935 |
"enable_$ac_useropt" |
936 |
"*) ;; |
937 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
938 |
ac_unrecognized_sep=', ';; |
939 |
esac |
940 |
eval enable_$ac_useropt=\$ac_optarg ;; |
941 |
|
942 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
943 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
944 |
| --exec | --exe | --ex) |
945 |
ac_prev=exec_prefix ;; |
946 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
947 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
948 |
| --exec=* | --exe=* | --ex=*) |
949 |
exec_prefix=$ac_optarg ;; |
950 |
|
951 |
-gas | --gas | --ga | --g) |
952 |
# Obsolete; use --with-gas. |
953 |
with_gas=yes ;; |
954 |
|
955 |
-help | --help | --hel | --he | -h) |
956 |
ac_init_help=long ;; |
957 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
958 |
ac_init_help=recursive ;; |
959 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
960 |
ac_init_help=short ;; |
961 |
|
962 |
-host | --host | --hos | --ho) |
963 |
ac_prev=host_alias ;; |
964 |
-host=* | --host=* | --hos=* | --ho=*) |
965 |
host_alias=$ac_optarg ;; |
966 |
|
967 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
968 |
ac_prev=htmldir ;; |
969 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
970 |
| --ht=*) |
971 |
htmldir=$ac_optarg ;; |
972 |
|
973 |
-includedir | --includedir | --includedi | --included | --include \ |
974 |
| --includ | --inclu | --incl | --inc) |
975 |
ac_prev=includedir ;; |
976 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
977 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
978 |
includedir=$ac_optarg ;; |
979 |
|
980 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
981 |
ac_prev=infodir ;; |
982 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
983 |
infodir=$ac_optarg ;; |
984 |
|
985 |
-libdir | --libdir | --libdi | --libd) |
986 |
ac_prev=libdir ;; |
987 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
988 |
libdir=$ac_optarg ;; |
989 |
|
990 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
991 |
| --libexe | --libex | --libe) |
992 |
ac_prev=libexecdir ;; |
993 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
994 |
| --libexe=* | --libex=* | --libe=*) |
995 |
libexecdir=$ac_optarg ;; |
996 |
|
997 |
-localedir | --localedir | --localedi | --localed | --locale) |
998 |
ac_prev=localedir ;; |
999 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1000 |
localedir=$ac_optarg ;; |
1001 |
|
1002 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
1003 |
| --localstate | --localstat | --localsta | --localst | --locals) |
1004 |
ac_prev=localstatedir ;; |
1005 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1006 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1007 |
localstatedir=$ac_optarg ;; |
1008 |
|
1009 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1010 |
ac_prev=mandir ;; |
1011 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1012 |
mandir=$ac_optarg ;; |
1013 |
|
1014 |
-nfp | --nfp | --nf) |
1015 |
# Obsolete; use --without-fp. |
1016 |
with_fp=no ;; |
1017 |
|
1018 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1019 |
| --no-cr | --no-c | -n) |
1020 |
no_create=yes ;; |
1021 |
|
1022 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1023 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1024 |
no_recursion=yes ;; |
1025 |
|
1026 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1027 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1028 |
| --oldin | --oldi | --old | --ol | --o) |
1029 |
ac_prev=oldincludedir ;; |
1030 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1031 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1032 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1033 |
oldincludedir=$ac_optarg ;; |
1034 |
|
1035 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1036 |
ac_prev=prefix ;; |
1037 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1038 |
prefix=$ac_optarg ;; |
1039 |
|
1040 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1041 |
| --program-pre | --program-pr | --program-p) |
1042 |
ac_prev=program_prefix ;; |
1043 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1044 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1045 |
program_prefix=$ac_optarg ;; |
1046 |
|
1047 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1048 |
| --program-suf | --program-su | --program-s) |
1049 |
ac_prev=program_suffix ;; |
1050 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1051 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1052 |
program_suffix=$ac_optarg ;; |
1053 |
|
1054 |
-program-transform-name | --program-transform-name \ |
1055 |
| --program-transform-nam | --program-transform-na \ |
1056 |
| --program-transform-n | --program-transform- \ |
1057 |
| --program-transform | --program-transfor \ |
1058 |
| --program-transfo | --program-transf \ |
1059 |
| --program-trans | --program-tran \ |
1060 |
| --progr-tra | --program-tr | --program-t) |
1061 |
ac_prev=program_transform_name ;; |
1062 |
-program-transform-name=* | --program-transform-name=* \ |
1063 |
| --program-transform-nam=* | --program-transform-na=* \ |
1064 |
| --program-transform-n=* | --program-transform-=* \ |
1065 |
| --program-transform=* | --program-transfor=* \ |
1066 |
| --program-transfo=* | --program-transf=* \ |
1067 |
| --program-trans=* | --program-tran=* \ |
1068 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1069 |
program_transform_name=$ac_optarg ;; |
1070 |
|
1071 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1072 |
ac_prev=pdfdir ;; |
1073 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1074 |
pdfdir=$ac_optarg ;; |
1075 |
|
1076 |
-psdir | --psdir | --psdi | --psd | --ps) |
1077 |
ac_prev=psdir ;; |
1078 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1079 |
psdir=$ac_optarg ;; |
1080 |
|
1081 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1082 |
| -silent | --silent | --silen | --sile | --sil) |
1083 |
silent=yes ;; |
1084 |
|
1085 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
1086 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
1087 |
| --run | --ru | --r) |
1088 |
ac_prev=runstatedir ;; |
1089 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
1090 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
1091 |
| --run=* | --ru=* | --r=*) |
1092 |
runstatedir=$ac_optarg ;; |
1093 |
|
1094 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1095 |
ac_prev=sbindir ;; |
1096 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1097 |
| --sbi=* | --sb=*) |
1098 |
sbindir=$ac_optarg ;; |
1099 |
|
1100 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1101 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1102 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1103 |
| --sha | --sh) |
1104 |
ac_prev=sharedstatedir ;; |
1105 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1106 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1107 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1108 |
| --sha=* | --sh=*) |
1109 |
sharedstatedir=$ac_optarg ;; |
1110 |
|
1111 |
-site | --site | --sit) |
1112 |
ac_prev=site ;; |
1113 |
-site=* | --site=* | --sit=*) |
1114 |
site=$ac_optarg ;; |
1115 |
|
1116 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1117 |
ac_prev=srcdir ;; |
1118 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1119 |
srcdir=$ac_optarg ;; |
1120 |
|
1121 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1122 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1123 |
ac_prev=sysconfdir ;; |
1124 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1125 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1126 |
sysconfdir=$ac_optarg ;; |
1127 |
|
1128 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1129 |
ac_prev=target_alias ;; |
1130 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1131 |
target_alias=$ac_optarg ;; |
1132 |
|
1133 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1134 |
verbose=yes ;; |
1135 |
|
1136 |
-version | --version | --versio | --versi | --vers | -V) |
1137 |
ac_init_version=: ;; |
1138 |
|
1139 |
-with-* | --with-*) |
1140 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1141 |
# Reject names that are not valid shell variable names. |
1142 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1143 |
as_fn_error $? "invalid package name: $ac_useropt" |
1144 |
ac_useropt_orig=$ac_useropt |
1145 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1146 |
case $ac_user_opts in |
1147 |
*" |
1148 |
"with_$ac_useropt" |
1149 |
"*) ;; |
1150 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1151 |
ac_unrecognized_sep=', ';; |
1152 |
esac |
1153 |
eval with_$ac_useropt=\$ac_optarg ;; |
1154 |
|
1155 |
-without-* | --without-*) |
1156 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1157 |
# Reject names that are not valid shell variable names. |
1158 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1159 |
as_fn_error $? "invalid package name: $ac_useropt" |
1160 |
ac_useropt_orig=$ac_useropt |
1161 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1162 |
case $ac_user_opts in |
1163 |
*" |
1164 |
"with_$ac_useropt" |
1165 |
"*) ;; |
1166 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1167 |
ac_unrecognized_sep=', ';; |
1168 |
esac |
1169 |
eval with_$ac_useropt=no ;; |
1170 |
|
1171 |
--x) |
1172 |
# Obsolete; use --with-x. |
1173 |
with_x=yes ;; |
1174 |
|
1175 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1176 |
| --x-incl | --x-inc | --x-in | --x-i) |
1177 |
ac_prev=x_includes ;; |
1178 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1179 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1180 |
x_includes=$ac_optarg ;; |
1181 |
|
1182 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1183 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1184 |
ac_prev=x_libraries ;; |
1185 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1186 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1187 |
x_libraries=$ac_optarg ;; |
1188 |
|
1189 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1190 |
Try \`$0 --help' for more information" |
1191 |
;; |
1192 |
|
1193 |
*=*) |
1194 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1195 |
# Reject names that are not valid shell variable names. |
1196 |
case $ac_envvar in #( |
1197 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1198 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1199 |
esac |
1200 |
eval $ac_envvar=\$ac_optarg |
1201 |
export $ac_envvar ;; |
1202 |
|
1203 |
*) |
1204 |
# FIXME: should be removed in autoconf 3.0. |
1205 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1206 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1207 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1208 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1209 |
;; |
1210 |
|
1211 |
esac |
1212 |
done |
1213 |
|
1214 |
if test -n "$ac_prev"; then |
1215 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1216 |
as_fn_error $? "missing argument to $ac_option" |
1217 |
fi |
1218 |
|
1219 |
if test -n "$ac_unrecognized_opts"; then |
1220 |
case $enable_option_checking in |
1221 |
no) ;; |
1222 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1223 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1224 |
esac |
1225 |
fi |
1226 |
|
1227 |
# Check all directory arguments for consistency. |
1228 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1229 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1230 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1231 |
libdir localedir mandir runstatedir |
1232 |
do |
1233 |
eval ac_val=\$$ac_var |
1234 |
# Remove trailing slashes. |
1235 |
case $ac_val in |
1236 |
*/ ) |
1237 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1238 |
eval $ac_var=\$ac_val;; |
1239 |
esac |
1240 |
# Be sure to have absolute directory names. |
1241 |
case $ac_val in |
1242 |
[\\/$]* | ?:[\\/]* ) continue;; |
1243 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1244 |
esac |
1245 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1246 |
done |
1247 |
|
1248 |
# There might be people who depend on the old broken behavior: `$host' |
1249 |
# used to hold the argument of --host etc. |
1250 |
# FIXME: To remove some day. |
1251 |
build=$build_alias |
1252 |
host=$host_alias |
1253 |
target=$target_alias |
1254 |
|
1255 |
# FIXME: To remove some day. |
1256 |
if test "x$host_alias" != x; then |
1257 |
if test "x$build_alias" = x; then |
1258 |
cross_compiling=maybe |
1259 |
elif test "x$build_alias" != "x$host_alias"; then |
1260 |
cross_compiling=yes |
1261 |
fi |
1262 |
fi |
1263 |
|
1264 |
ac_tool_prefix= |
1265 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1266 |
|
1267 |
test "$silent" = yes && exec 6>/dev/null |
1268 |
|
1269 |
|
1270 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1271 |
ac_ls_di=`ls -di .` && |
1272 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1273 |
as_fn_error $? "working directory cannot be determined" |
1274 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1275 |
as_fn_error $? "pwd does not report name of working directory" |
1276 |
|
1277 |
|
1278 |
# Find the source files, if location was not specified. |
1279 |
if test -z "$srcdir"; then |
1280 |
ac_srcdir_defaulted=yes |
1281 |
# Try the directory containing this script, then the parent directory. |
1282 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1283 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1284 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1285 |
X"$as_myself" : 'X\(//\)$' \| \ |
1286 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1287 |
$as_echo X"$as_myself" | |
1288 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1289 |
s//\1/ |
1290 |
q |
1291 |
} |
1292 |
/^X\(\/\/\)[^/].*/{ |
1293 |
s//\1/ |
1294 |
q |
1295 |
} |
1296 |
/^X\(\/\/\)$/{ |
1297 |
s//\1/ |
1298 |
q |
1299 |
} |
1300 |
/^X\(\/\).*/{ |
1301 |
s//\1/ |
1302 |
q |
1303 |
} |
1304 |
s/.*/./; q'` |
1305 |
srcdir=$ac_confdir |
1306 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1307 |
srcdir=.. |
1308 |
fi |
1309 |
else |
1310 |
ac_srcdir_defaulted=no |
1311 |
fi |
1312 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1313 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1314 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1315 |
fi |
1316 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1317 |
ac_abs_confdir=`( |
1318 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1319 |
pwd)` |
1320 |
# When building in place, set srcdir=. |
1321 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1322 |
srcdir=. |
1323 |
fi |
1324 |
# Remove unnecessary trailing slashes from srcdir. |
1325 |
# Double slashes in file names in object file debugging info |
1326 |
# mess up M-x gdb in Emacs. |
1327 |
case $srcdir in |
1328 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1329 |
esac |
1330 |
for ac_var in $ac_precious_vars; do |
1331 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1332 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1333 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1334 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1335 |
done |
1336 |
|
1337 |
# |
1338 |
# Report the --help message. |
1339 |
# |
1340 |
if test "$ac_init_help" = "long"; then |
1341 |
# Omit some internal or obsolete options to make the list less imposing. |
1342 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1343 |
cat <<_ACEOF |
1344 |
\`configure' configures this package to adapt to many kinds of systems. |
1345 |
|
1346 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1347 |
|
1348 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1349 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1350 |
|
1351 |
Defaults for the options are specified in brackets. |
1352 |
|
1353 |
Configuration: |
1354 |
-h, --help display this help and exit |
1355 |
--help=short display options specific to this package |
1356 |
--help=recursive display the short help of all the included packages |
1357 |
-V, --version display version information and exit |
1358 |
-q, --quiet, --silent do not print \`checking ...' messages |
1359 |
--cache-file=FILE cache test results in FILE [disabled] |
1360 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1361 |
-n, --no-create do not create output files |
1362 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1363 |
|
1364 |
Installation directories: |
1365 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1366 |
[$ac_default_prefix] |
1367 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1368 |
[PREFIX] |
1369 |
|
1370 |
By default, \`make install' will install all the files in |
1371 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1372 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1373 |
for instance \`--prefix=\$HOME'. |
1374 |
|
1375 |
For better control, use the options below. |
1376 |
|
1377 |
Fine tuning of the installation directories: |
1378 |
--bindir=DIR user executables [EPREFIX/bin] |
1379 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1380 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1381 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1382 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1383 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1384 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1385 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1386 |
--includedir=DIR C header files [PREFIX/include] |
1387 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1388 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1389 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1390 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1391 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1392 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1393 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1394 |
--htmldir=DIR html documentation [DOCDIR] |
1395 |
--dvidir=DIR dvi documentation [DOCDIR] |
1396 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1397 |
--psdir=DIR ps documentation [DOCDIR] |
1398 |
_ACEOF |
1399 |
|
1400 |
cat <<\_ACEOF |
1401 |
|
1402 |
Program names: |
1403 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1404 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1405 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1406 |
|
1407 |
System types: |
1408 |
--build=BUILD configure for building on BUILD [guessed] |
1409 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1410 |
--target=TARGET configure for building compilers for TARGET [HOST] |
1411 |
_ACEOF |
1412 |
fi |
1413 |
|
1414 |
if test -n "$ac_init_help"; then |
1415 |
|
1416 |
cat <<\_ACEOF |
1417 |
|
1418 |
Optional Features: |
1419 |
--disable-option-checking ignore unrecognized --enable/--with options |
1420 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1421 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1422 |
--enable-maintainer-mode enable make rules and dependencies not useful |
1423 |
(and sometimes confusing) to the casual installer |
1424 |
--disable-dependency-tracking Speeds up one-time builds |
1425 |
--enable-dependency-tracking Do not reject slow dependency extractors |
1426 |
--disable-rpath do not hardcode runtime library paths |
1427 |
--disable-nls do not use Native Language Support |
1428 |
--enable-iftype=TYPE/SUBTYPE |
1429 |
Use kernel/net device interface TYPE/SUBTYPE. |
1430 |
Working combinations are (see doc/gvpe.osdep.5.pod): |
1431 |
"native/linux" "tincd/linux" "tincd/netbsd" |
1432 |
"tincd/freebsd" "tincd/openbsd" "native/darwin" |
1433 |
"tincd/darwin" "native/cygwin"; Untested |
1434 |
combinations are: "tincd/bsd" "tincd/solaris" |
1435 |
"tincd/mingw" "tincd/raw_socket" "tincd/uml_socket"; |
1436 |
Broken combinations are: "tincd/cygwin"; The default |
1437 |
is to autodetect. |
1438 |
--enable-threads try to use threads for long-running asynchronous |
1439 |
operations (default enabled). |
1440 |
--enable-static-daemon enable statically linked daemon. |
1441 |
--disable-icmp enable icmp protocol support (default enabled). |
1442 |
--disable-tcp enable tcp protocol support (default enabled). |
1443 |
--disable-http-proxy enable http proxy connect support (default enabled). |
1444 |
--enable-dns enable dns tunnel protocol support (default |
1445 |
disabled). |
1446 |
--enable-rsa-length=BITS |
1447 |
use BITS rsa keys (default 3072). Allowed values are |
1448 |
2048-10240. |
1449 |
--enable-hmac-length=BYTES |
1450 |
use a hmac of length BYTES bytes (default 12). |
1451 |
Allowed values are 4, 8, 12, 16. |
1452 |
--enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500). |
1453 |
Use 9100 for jumbogram support. |
1454 |
--disable-compression Disable compression support. |
1455 |
--enable-cipher=CIPHER Select the symmetric cipher (default "aes-128"). |
1456 |
Must be one of "aes-128" (rijndael), "aes-192", or |
1457 |
"aes-256". |
1458 |
--enable-hmac-digest=HMAC |
1459 |
Select the HMAC digest algorithm to use (default |
1460 |
"sha1"). Must be one of "sha512", "sha256", "sha1", |
1461 |
"ripemd160", "whirlpool". |
1462 |
--enable-auth-digest=DIGEST |
1463 |
Select the hmac algorithm to use (default "sha512"). |
1464 |
Must be one of "sha512", "sha256", "whirlpool". |
1465 |
|
1466 |
Optional Packages: |
1467 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1468 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1469 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
1470 |
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
1471 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
1472 |
--with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib |
1473 |
--without-libintl-prefix don't search for libintl in includedir and libdir |
1474 |
--with-kernel=dir give the directory with kernel sources |
1475 |
(default: /usr/src/linux) |
1476 |
|
1477 |
Some influential environment variables: |
1478 |
CC C compiler command |
1479 |
CFLAGS C compiler flags |
1480 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1481 |
nonstandard directory <lib dir> |
1482 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1483 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1484 |
you have headers in a nonstandard directory <include dir> |
1485 |
CPP C preprocessor |
1486 |
CXX C++ compiler command |
1487 |
CXXFLAGS C++ compiler flags |
1488 |
CXXCPP C++ preprocessor |
1489 |
PKG_CONFIG path to pkg-config utility |
1490 |
PKG_CONFIG_PATH |
1491 |
directories to add to pkg-config's search path |
1492 |
PKG_CONFIG_LIBDIR |
1493 |
path overriding pkg-config's built-in search path |
1494 |
LIBCRYPTO_CFLAGS |
1495 |
C compiler flags for LIBCRYPTO, overriding pkg-config |
1496 |
LIBCRYPTO_LIBS |
1497 |
linker flags for LIBCRYPTO, overriding pkg-config |
1498 |
|
1499 |
Use these variables to override the choices made by `configure' or to help |
1500 |
it to find libraries and programs with nonstandard names/locations. |
1501 |
|
1502 |
Report bugs to the package provider. |
1503 |
_ACEOF |
1504 |
ac_status=$? |
1505 |
fi |
1506 |
|
1507 |
if test "$ac_init_help" = "recursive"; then |
1508 |
# If there are subdirs, report their specific --help. |
1509 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1510 |
test -d "$ac_dir" || |
1511 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1512 |
continue |
1513 |
ac_builddir=. |
1514 |
|
1515 |
case "$ac_dir" in |
1516 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1517 |
*) |
1518 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1519 |
# A ".." for each directory in $ac_dir_suffix. |
1520 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1521 |
case $ac_top_builddir_sub in |
1522 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1523 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1524 |
esac ;; |
1525 |
esac |
1526 |
ac_abs_top_builddir=$ac_pwd |
1527 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1528 |
# for backward compatibility: |
1529 |
ac_top_builddir=$ac_top_build_prefix |
1530 |
|
1531 |
case $srcdir in |
1532 |
.) # We are building in place. |
1533 |
ac_srcdir=. |
1534 |
ac_top_srcdir=$ac_top_builddir_sub |
1535 |
ac_abs_top_srcdir=$ac_pwd ;; |
1536 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1537 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1538 |
ac_top_srcdir=$srcdir |
1539 |
ac_abs_top_srcdir=$srcdir ;; |
1540 |
*) # Relative name. |
1541 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1542 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1543 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1544 |
esac |
1545 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1546 |
|
1547 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1548 |
# Check for guested configure. |
1549 |
if test -f "$ac_srcdir/configure.gnu"; then |
1550 |
echo && |
1551 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1552 |
elif test -f "$ac_srcdir/configure"; then |
1553 |
echo && |
1554 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1555 |
else |
1556 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1557 |
fi || ac_status=$? |
1558 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1559 |
done |
1560 |
fi |
1561 |
|
1562 |
test -n "$ac_init_help" && exit $ac_status |
1563 |
if $ac_init_version; then |
1564 |
cat <<\_ACEOF |
1565 |
configure |
1566 |
generated by GNU Autoconf 2.69 |
1567 |
|
1568 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1569 |
This configure script is free software; the Free Software Foundation |
1570 |
gives unlimited permission to copy, distribute and modify it. |
1571 |
_ACEOF |
1572 |
exit |
1573 |
fi |
1574 |
|
1575 |
## ------------------------ ## |
1576 |
## Autoconf initialization. ## |
1577 |
## ------------------------ ## |
1578 |
|
1579 |
# ac_fn_c_try_compile LINENO |
1580 |
# -------------------------- |
1581 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1582 |
ac_fn_c_try_compile () |
1583 |
{ |
1584 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1585 |
rm -f conftest.$ac_objext |
1586 |
if { { ac_try="$ac_compile" |
1587 |
case "(($ac_try" in |
1588 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1589 |
*) ac_try_echo=$ac_try;; |
1590 |
esac |
1591 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1592 |
$as_echo "$ac_try_echo"; } >&5 |
1593 |
(eval "$ac_compile") 2>conftest.err |
1594 |
ac_status=$? |
1595 |
if test -s conftest.err; then |
1596 |
grep -v '^ *+' conftest.err >conftest.er1 |
1597 |
cat conftest.er1 >&5 |
1598 |
mv -f conftest.er1 conftest.err |
1599 |
fi |
1600 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1601 |
test $ac_status = 0; } && { |
1602 |
test -z "$ac_c_werror_flag" || |
1603 |
test ! -s conftest.err |
1604 |
} && test -s conftest.$ac_objext; then : |
1605 |
ac_retval=0 |
1606 |
else |
1607 |
$as_echo "$as_me: failed program was:" >&5 |
1608 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1609 |
|
1610 |
ac_retval=1 |
1611 |
fi |
1612 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1613 |
as_fn_set_status $ac_retval |
1614 |
|
1615 |
} # ac_fn_c_try_compile |
1616 |
|
1617 |
# ac_fn_c_try_link LINENO |
1618 |
# ----------------------- |
1619 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1620 |
ac_fn_c_try_link () |
1621 |
{ |
1622 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1623 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1624 |
if { { ac_try="$ac_link" |
1625 |
case "(($ac_try" in |
1626 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1627 |
*) ac_try_echo=$ac_try;; |
1628 |
esac |
1629 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1630 |
$as_echo "$ac_try_echo"; } >&5 |
1631 |
(eval "$ac_link") 2>conftest.err |
1632 |
ac_status=$? |
1633 |
if test -s conftest.err; then |
1634 |
grep -v '^ *+' conftest.err >conftest.er1 |
1635 |
cat conftest.er1 >&5 |
1636 |
mv -f conftest.er1 conftest.err |
1637 |
fi |
1638 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1639 |
test $ac_status = 0; } && { |
1640 |
test -z "$ac_c_werror_flag" || |
1641 |
test ! -s conftest.err |
1642 |
} && test -s conftest$ac_exeext && { |
1643 |
test "$cross_compiling" = yes || |
1644 |
test -x conftest$ac_exeext |
1645 |
}; then : |
1646 |
ac_retval=0 |
1647 |
else |
1648 |
$as_echo "$as_me: failed program was:" >&5 |
1649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1650 |
|
1651 |
ac_retval=1 |
1652 |
fi |
1653 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1654 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1655 |
# interfere with the next link command; also delete a directory that is |
1656 |
# left behind by Apple's compiler. We do this before executing the actions. |
1657 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1658 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1659 |
as_fn_set_status $ac_retval |
1660 |
|
1661 |
} # ac_fn_c_try_link |
1662 |
|
1663 |
# ac_fn_c_try_cpp LINENO |
1664 |
# ---------------------- |
1665 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1666 |
ac_fn_c_try_cpp () |
1667 |
{ |
1668 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1669 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1670 |
case "(($ac_try" in |
1671 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1672 |
*) ac_try_echo=$ac_try;; |
1673 |
esac |
1674 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1675 |
$as_echo "$ac_try_echo"; } >&5 |
1676 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1677 |
ac_status=$? |
1678 |
if test -s conftest.err; then |
1679 |
grep -v '^ *+' conftest.err >conftest.er1 |
1680 |
cat conftest.er1 >&5 |
1681 |
mv -f conftest.er1 conftest.err |
1682 |
fi |
1683 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1684 |
test $ac_status = 0; } > conftest.i && { |
1685 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1686 |
test ! -s conftest.err |
1687 |
}; then : |
1688 |
ac_retval=0 |
1689 |
else |
1690 |
$as_echo "$as_me: failed program was:" >&5 |
1691 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1692 |
|
1693 |
ac_retval=1 |
1694 |
fi |
1695 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1696 |
as_fn_set_status $ac_retval |
1697 |
|
1698 |
} # ac_fn_c_try_cpp |
1699 |
|
1700 |
# ac_fn_cxx_try_compile LINENO |
1701 |
# ---------------------------- |
1702 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1703 |
ac_fn_cxx_try_compile () |
1704 |
{ |
1705 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1706 |
rm -f conftest.$ac_objext |
1707 |
if { { ac_try="$ac_compile" |
1708 |
case "(($ac_try" in |
1709 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1710 |
*) ac_try_echo=$ac_try;; |
1711 |
esac |
1712 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1713 |
$as_echo "$ac_try_echo"; } >&5 |
1714 |
(eval "$ac_compile") 2>conftest.err |
1715 |
ac_status=$? |
1716 |
if test -s conftest.err; then |
1717 |
grep -v '^ *+' conftest.err >conftest.er1 |
1718 |
cat conftest.er1 >&5 |
1719 |
mv -f conftest.er1 conftest.err |
1720 |
fi |
1721 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1722 |
test $ac_status = 0; } && { |
1723 |
test -z "$ac_cxx_werror_flag" || |
1724 |
test ! -s conftest.err |
1725 |
} && test -s conftest.$ac_objext; then : |
1726 |
ac_retval=0 |
1727 |
else |
1728 |
$as_echo "$as_me: failed program was:" >&5 |
1729 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1730 |
|
1731 |
ac_retval=1 |
1732 |
fi |
1733 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1734 |
as_fn_set_status $ac_retval |
1735 |
|
1736 |
} # ac_fn_cxx_try_compile |
1737 |
|
1738 |
# ac_fn_cxx_try_cpp LINENO |
1739 |
# ------------------------ |
1740 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1741 |
ac_fn_cxx_try_cpp () |
1742 |
{ |
1743 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1744 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1745 |
case "(($ac_try" in |
1746 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1747 |
*) ac_try_echo=$ac_try;; |
1748 |
esac |
1749 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1750 |
$as_echo "$ac_try_echo"; } >&5 |
1751 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1752 |
ac_status=$? |
1753 |
if test -s conftest.err; then |
1754 |
grep -v '^ *+' conftest.err >conftest.er1 |
1755 |
cat conftest.er1 >&5 |
1756 |
mv -f conftest.er1 conftest.err |
1757 |
fi |
1758 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1759 |
test $ac_status = 0; } > conftest.i && { |
1760 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1761 |
test ! -s conftest.err |
1762 |
}; then : |
1763 |
ac_retval=0 |
1764 |
else |
1765 |
$as_echo "$as_me: failed program was:" >&5 |
1766 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1767 |
|
1768 |
ac_retval=1 |
1769 |
fi |
1770 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1771 |
as_fn_set_status $ac_retval |
1772 |
|
1773 |
} # ac_fn_cxx_try_cpp |
1774 |
|
1775 |
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
1776 |
# --------------------------------------------------------- |
1777 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1778 |
# the include files in INCLUDES and setting the cache variable VAR |
1779 |
# accordingly. |
1780 |
ac_fn_cxx_check_header_mongrel () |
1781 |
{ |
1782 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1783 |
if eval \${$3+:} false; then : |
1784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1785 |
$as_echo_n "checking for $2... " >&6; } |
1786 |
if eval \${$3+:} false; then : |
1787 |
$as_echo_n "(cached) " >&6 |
1788 |
fi |
1789 |
eval ac_res=\$$3 |
1790 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1791 |
$as_echo "$ac_res" >&6; } |
1792 |
else |
1793 |
# Is the header compilable? |
1794 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1795 |
$as_echo_n "checking $2 usability... " >&6; } |
1796 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1797 |
/* end confdefs.h. */ |
1798 |
$4 |
1799 |
#include <$2> |
1800 |
_ACEOF |
1801 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
1802 |
ac_header_compiler=yes |
1803 |
else |
1804 |
ac_header_compiler=no |
1805 |
fi |
1806 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1808 |
$as_echo "$ac_header_compiler" >&6; } |
1809 |
|
1810 |
# Is the header present? |
1811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1812 |
$as_echo_n "checking $2 presence... " >&6; } |
1813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1814 |
/* end confdefs.h. */ |
1815 |
#include <$2> |
1816 |
_ACEOF |
1817 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
1818 |
ac_header_preproc=yes |
1819 |
else |
1820 |
ac_header_preproc=no |
1821 |
fi |
1822 |
rm -f conftest.err conftest.i conftest.$ac_ext |
1823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1824 |
$as_echo "$ac_header_preproc" >&6; } |
1825 |
|
1826 |
# So? What about this header? |
1827 |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
1828 |
yes:no: ) |
1829 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1830 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1831 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1832 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1833 |
;; |
1834 |
no:yes:* ) |
1835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1836 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1838 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1840 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1842 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1844 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1845 |
;; |
1846 |
esac |
1847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1848 |
$as_echo_n "checking for $2... " >&6; } |
1849 |
if eval \${$3+:} false; then : |
1850 |
$as_echo_n "(cached) " >&6 |
1851 |
else |
1852 |
eval "$3=\$ac_header_compiler" |
1853 |
fi |
1854 |
eval ac_res=\$$3 |
1855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1856 |
$as_echo "$ac_res" >&6; } |
1857 |
fi |
1858 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1859 |
|
1860 |
} # ac_fn_cxx_check_header_mongrel |
1861 |
|
1862 |
# ac_fn_cxx_try_run LINENO |
1863 |
# ------------------------ |
1864 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1865 |
# that executables *can* be run. |
1866 |
ac_fn_cxx_try_run () |
1867 |
{ |
1868 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1869 |
if { { ac_try="$ac_link" |
1870 |
case "(($ac_try" in |
1871 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1872 |
*) ac_try_echo=$ac_try;; |
1873 |
esac |
1874 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1875 |
$as_echo "$ac_try_echo"; } >&5 |
1876 |
(eval "$ac_link") 2>&5 |
1877 |
ac_status=$? |
1878 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1879 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1880 |
{ { case "(($ac_try" in |
1881 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1882 |
*) ac_try_echo=$ac_try;; |
1883 |
esac |
1884 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1885 |
$as_echo "$ac_try_echo"; } >&5 |
1886 |
(eval "$ac_try") 2>&5 |
1887 |
ac_status=$? |
1888 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1889 |
test $ac_status = 0; }; }; then : |
1890 |
ac_retval=0 |
1891 |
else |
1892 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1893 |
$as_echo "$as_me: failed program was:" >&5 |
1894 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1895 |
|
1896 |
ac_retval=$ac_status |
1897 |
fi |
1898 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1899 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1900 |
as_fn_set_status $ac_retval |
1901 |
|
1902 |
} # ac_fn_cxx_try_run |
1903 |
|
1904 |
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
1905 |
# --------------------------------------------------------- |
1906 |
# Tests whether HEADER exists and can be compiled using the include files in |
1907 |
# INCLUDES, setting the cache variable VAR accordingly. |
1908 |
ac_fn_cxx_check_header_compile () |
1909 |
{ |
1910 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1912 |
$as_echo_n "checking for $2... " >&6; } |
1913 |
if eval \${$3+:} false; then : |
1914 |
$as_echo_n "(cached) " >&6 |
1915 |
else |
1916 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1917 |
/* end confdefs.h. */ |
1918 |
$4 |
1919 |
#include <$2> |
1920 |
_ACEOF |
1921 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
1922 |
eval "$3=yes" |
1923 |
else |
1924 |
eval "$3=no" |
1925 |
fi |
1926 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1927 |
fi |
1928 |
eval ac_res=\$$3 |
1929 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1930 |
$as_echo "$ac_res" >&6; } |
1931 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1932 |
|
1933 |
} # ac_fn_cxx_check_header_compile |
1934 |
|
1935 |
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
1936 |
# --------------------------------------------- |
1937 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1938 |
# variable VAR accordingly. |
1939 |
ac_fn_cxx_check_type () |
1940 |
{ |
1941 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1943 |
$as_echo_n "checking for $2... " >&6; } |
1944 |
if eval \${$3+:} false; then : |
1945 |
$as_echo_n "(cached) " >&6 |
1946 |
else |
1947 |
eval "$3=no" |
1948 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1949 |
/* end confdefs.h. */ |
1950 |
$4 |
1951 |
int |
1952 |
main () |
1953 |
{ |
1954 |
if (sizeof ($2)) |
1955 |
return 0; |
1956 |
; |
1957 |
return 0; |
1958 |
} |
1959 |
_ACEOF |
1960 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
1961 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1962 |
/* end confdefs.h. */ |
1963 |
$4 |
1964 |
int |
1965 |
main () |
1966 |
{ |
1967 |
if (sizeof (($2))) |
1968 |
return 0; |
1969 |
; |
1970 |
return 0; |
1971 |
} |
1972 |
_ACEOF |
1973 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
1974 |
|
1975 |
else |
1976 |
eval "$3=yes" |
1977 |
fi |
1978 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1979 |
fi |
1980 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1981 |
fi |
1982 |
eval ac_res=\$$3 |
1983 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1984 |
$as_echo "$ac_res" >&6; } |
1985 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1986 |
|
1987 |
} # ac_fn_cxx_check_type |
1988 |
|
1989 |
# ac_fn_c_try_run LINENO |
1990 |
# ---------------------- |
1991 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1992 |
# that executables *can* be run. |
1993 |
ac_fn_c_try_run () |
1994 |
{ |
1995 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1996 |
if { { ac_try="$ac_link" |
1997 |
case "(($ac_try" in |
1998 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1999 |
*) ac_try_echo=$ac_try;; |
2000 |
esac |
2001 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2002 |
$as_echo "$ac_try_echo"; } >&5 |
2003 |
(eval "$ac_link") 2>&5 |
2004 |
ac_status=$? |
2005 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2006 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
2007 |
{ { case "(($ac_try" in |
2008 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2009 |
*) ac_try_echo=$ac_try;; |
2010 |
esac |
2011 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2012 |
$as_echo "$ac_try_echo"; } >&5 |
2013 |
(eval "$ac_try") 2>&5 |
2014 |
ac_status=$? |
2015 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2016 |
test $ac_status = 0; }; }; then : |
2017 |
ac_retval=0 |
2018 |
else |
2019 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
2020 |
$as_echo "$as_me: failed program was:" >&5 |
2021 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2022 |
|
2023 |
ac_retval=$ac_status |
2024 |
fi |
2025 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2026 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2027 |
as_fn_set_status $ac_retval |
2028 |
|
2029 |
} # ac_fn_c_try_run |
2030 |
|
2031 |
# ac_fn_c_check_func LINENO FUNC VAR |
2032 |
# ---------------------------------- |
2033 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
2034 |
ac_fn_c_check_func () |
2035 |
{ |
2036 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2038 |
$as_echo_n "checking for $2... " >&6; } |
2039 |
if eval \${$3+:} false; then : |
2040 |
$as_echo_n "(cached) " >&6 |
2041 |
else |
2042 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2043 |
/* end confdefs.h. */ |
2044 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2045 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2046 |
#define $2 innocuous_$2 |
2047 |
|
2048 |
/* System header to define __stub macros and hopefully few prototypes, |
2049 |
which can conflict with char $2 (); below. |
2050 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2051 |
<limits.h> exists even on freestanding compilers. */ |
2052 |
|
2053 |
#ifdef __STDC__ |
2054 |
# include <limits.h> |
2055 |
#else |
2056 |
# include <assert.h> |
2057 |
#endif |
2058 |
|
2059 |
#undef $2 |
2060 |
|
2061 |
/* Override any GCC internal prototype to avoid an error. |
2062 |
Use char because int might match the return type of a GCC |
2063 |
builtin and then its argument prototype would still apply. */ |
2064 |
#ifdef __cplusplus |
2065 |
extern "C" |
2066 |
#endif |
2067 |
char $2 (); |
2068 |
/* The GNU C library defines this for functions which it implements |
2069 |
to always fail with ENOSYS. Some functions are actually named |
2070 |
something starting with __ and the normal name is an alias. */ |
2071 |
#if defined __stub_$2 || defined __stub___$2 |
2072 |
choke me |
2073 |
#endif |
2074 |
|
2075 |
int |
2076 |
main () |
2077 |
{ |
2078 |
return $2 (); |
2079 |
; |
2080 |
return 0; |
2081 |
} |
2082 |
_ACEOF |
2083 |
if ac_fn_c_try_link "$LINENO"; then : |
2084 |
eval "$3=yes" |
2085 |
else |
2086 |
eval "$3=no" |
2087 |
fi |
2088 |
rm -f core conftest.err conftest.$ac_objext \ |
2089 |
conftest$ac_exeext conftest.$ac_ext |
2090 |
fi |
2091 |
eval ac_res=\$$3 |
2092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2093 |
$as_echo "$ac_res" >&6; } |
2094 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2095 |
|
2096 |
} # ac_fn_c_check_func |
2097 |
|
2098 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
2099 |
# ------------------------------------------------------- |
2100 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
2101 |
# the include files in INCLUDES and setting the cache variable VAR |
2102 |
# accordingly. |
2103 |
ac_fn_c_check_header_mongrel () |
2104 |
{ |
2105 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2106 |
if eval \${$3+:} false; then : |
2107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2108 |
$as_echo_n "checking for $2... " >&6; } |
2109 |
if eval \${$3+:} false; then : |
2110 |
$as_echo_n "(cached) " >&6 |
2111 |
fi |
2112 |
eval ac_res=\$$3 |
2113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2114 |
$as_echo "$ac_res" >&6; } |
2115 |
else |
2116 |
# Is the header compilable? |
2117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
2118 |
$as_echo_n "checking $2 usability... " >&6; } |
2119 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2120 |
/* end confdefs.h. */ |
2121 |
$4 |
2122 |
#include <$2> |
2123 |
_ACEOF |
2124 |
if ac_fn_c_try_compile "$LINENO"; then : |
2125 |
ac_header_compiler=yes |
2126 |
else |
2127 |
ac_header_compiler=no |
2128 |
fi |
2129 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2130 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
2131 |
$as_echo "$ac_header_compiler" >&6; } |
2132 |
|
2133 |
# Is the header present? |
2134 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
2135 |
$as_echo_n "checking $2 presence... " >&6; } |
2136 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2137 |
/* end confdefs.h. */ |
2138 |
#include <$2> |
2139 |
_ACEOF |
2140 |
if ac_fn_c_try_cpp "$LINENO"; then : |
2141 |
ac_header_preproc=yes |
2142 |
else |
2143 |
ac_header_preproc=no |
2144 |
fi |
2145 |
rm -f conftest.err conftest.i conftest.$ac_ext |
2146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2147 |
$as_echo "$ac_header_preproc" >&6; } |
2148 |
|
2149 |
# So? What about this header? |
2150 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
2151 |
yes:no: ) |
2152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
2153 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
2154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2155 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2156 |
;; |
2157 |
no:yes:* ) |
2158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
2159 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
2160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
2161 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
2162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
2163 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
2164 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
2165 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2167 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2168 |
;; |
2169 |
esac |
2170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2171 |
$as_echo_n "checking for $2... " >&6; } |
2172 |
if eval \${$3+:} false; then : |
2173 |
$as_echo_n "(cached) " >&6 |
2174 |
else |
2175 |
eval "$3=\$ac_header_compiler" |
2176 |
fi |
2177 |
eval ac_res=\$$3 |
2178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2179 |
$as_echo "$ac_res" >&6; } |
2180 |
fi |
2181 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2182 |
|
2183 |
} # ac_fn_c_check_header_mongrel |
2184 |
|
2185 |
# ac_fn_cxx_try_link LINENO |
2186 |
# ------------------------- |
2187 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
2188 |
ac_fn_cxx_try_link () |
2189 |
{ |
2190 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2191 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2192 |
if { { ac_try="$ac_link" |
2193 |
case "(($ac_try" in |
2194 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2195 |
*) ac_try_echo=$ac_try;; |
2196 |
esac |
2197 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2198 |
$as_echo "$ac_try_echo"; } >&5 |
2199 |
(eval "$ac_link") 2>conftest.err |
2200 |
ac_status=$? |
2201 |
if test -s conftest.err; then |
2202 |
grep -v '^ *+' conftest.err >conftest.er1 |
2203 |
cat conftest.er1 >&5 |
2204 |
mv -f conftest.er1 conftest.err |
2205 |
fi |
2206 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2207 |
test $ac_status = 0; } && { |
2208 |
test -z "$ac_cxx_werror_flag" || |
2209 |
test ! -s conftest.err |
2210 |
} && test -s conftest$ac_exeext && { |
2211 |
test "$cross_compiling" = yes || |
2212 |
test -x conftest$ac_exeext |
2213 |
}; then : |
2214 |
ac_retval=0 |
2215 |
else |
2216 |
$as_echo "$as_me: failed program was:" >&5 |
2217 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2218 |
|
2219 |
ac_retval=1 |
2220 |
fi |
2221 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2222 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
2223 |
# interfere with the next link command; also delete a directory that is |
2224 |
# left behind by Apple's compiler. We do this before executing the actions. |
2225 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2226 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2227 |
as_fn_set_status $ac_retval |
2228 |
|
2229 |
} # ac_fn_cxx_try_link |
2230 |
cat >config.log <<_ACEOF |
2231 |
This file contains any messages produced by compilers while |
2232 |
running configure, to aid debugging if configure makes a mistake. |
2233 |
|
2234 |
It was created by $as_me, which was |
2235 |
generated by GNU Autoconf 2.69. Invocation command line was |
2236 |
|
2237 |
$ $0 $@ |
2238 |
|
2239 |
_ACEOF |
2240 |
exec 5>>config.log |
2241 |
{ |
2242 |
cat <<_ASUNAME |
2243 |
## --------- ## |
2244 |
## Platform. ## |
2245 |
## --------- ## |
2246 |
|
2247 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2248 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2249 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2250 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2251 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2252 |
|
2253 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2254 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2255 |
|
2256 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2257 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2258 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2259 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2260 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2261 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2262 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2263 |
|
2264 |
_ASUNAME |
2265 |
|
2266 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2267 |
for as_dir in $PATH |
2268 |
do |
2269 |
IFS=$as_save_IFS |
2270 |
test -z "$as_dir" && as_dir=. |
2271 |
$as_echo "PATH: $as_dir" |
2272 |
done |
2273 |
IFS=$as_save_IFS |
2274 |
|
2275 |
} >&5 |
2276 |
|
2277 |
cat >&5 <<_ACEOF |
2278 |
|
2279 |
|
2280 |
## ----------- ## |
2281 |
## Core tests. ## |
2282 |
## ----------- ## |
2283 |
|
2284 |
_ACEOF |
2285 |
|
2286 |
|
2287 |
# Keep a trace of the command line. |
2288 |
# Strip out --no-create and --no-recursion so they do not pile up. |
2289 |
# Strip out --silent because we don't want to record it for future runs. |
2290 |
# Also quote any args containing shell meta-characters. |
2291 |
# Make two passes to allow for proper duplicate-argument suppression. |
2292 |
ac_configure_args= |
2293 |
ac_configure_args0= |
2294 |
ac_configure_args1= |
2295 |
ac_must_keep_next=false |
2296 |
for ac_pass in 1 2 |
2297 |
do |
2298 |
for ac_arg |
2299 |
do |
2300 |
case $ac_arg in |
2301 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2302 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2303 |
| -silent | --silent | --silen | --sile | --sil) |
2304 |
continue ;; |
2305 |
*\'*) |
2306 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2307 |
esac |
2308 |
case $ac_pass in |
2309 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2310 |
2) |
2311 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
2312 |
if test $ac_must_keep_next = true; then |
2313 |
ac_must_keep_next=false # Got value, back to normal. |
2314 |
else |
2315 |
case $ac_arg in |
2316 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2317 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2318 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2319 |
| -with-* | --with-* | -without-* | --without-* | --x) |
2320 |
case "$ac_configure_args0 " in |
2321 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2322 |
esac |
2323 |
;; |
2324 |
-* ) ac_must_keep_next=true ;; |
2325 |
esac |
2326 |
fi |
2327 |
as_fn_append ac_configure_args " '$ac_arg'" |
2328 |
;; |
2329 |
esac |
2330 |
done |
2331 |
done |
2332 |
{ ac_configure_args0=; unset ac_configure_args0;} |
2333 |
{ ac_configure_args1=; unset ac_configure_args1;} |
2334 |
|
2335 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2336 |
# config.log. We remove comments because anyway the quotes in there |
2337 |
# would cause problems or look ugly. |
2338 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2339 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2340 |
trap 'exit_status=$? |
2341 |
# Save into config.log some information that might help in debugging. |
2342 |
{ |
2343 |
echo |
2344 |
|
2345 |
$as_echo "## ---------------- ## |
2346 |
## Cache variables. ## |
2347 |
## ---------------- ##" |
2348 |
echo |
2349 |
# The following way of writing the cache mishandles newlines in values, |
2350 |
( |
2351 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2352 |
eval ac_val=\$$ac_var |
2353 |
case $ac_val in #( |
2354 |
*${as_nl}*) |
2355 |
case $ac_var in #( |
2356 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2357 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2358 |
esac |
2359 |
case $ac_var in #( |
2360 |
_ | IFS | as_nl) ;; #( |
2361 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2362 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2363 |
esac ;; |
2364 |
esac |
2365 |
done |
2366 |
(set) 2>&1 | |
2367 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2368 |
*${as_nl}ac_space=\ *) |
2369 |
sed -n \ |
2370 |
"s/'\''/'\''\\\\'\'''\''/g; |
2371 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2372 |
;; #( |
2373 |
*) |
2374 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2375 |
;; |
2376 |
esac | |
2377 |
sort |
2378 |
) |
2379 |
echo |
2380 |
|
2381 |
$as_echo "## ----------------- ## |
2382 |
## Output variables. ## |
2383 |
## ----------------- ##" |
2384 |
echo |
2385 |
for ac_var in $ac_subst_vars |
2386 |
do |
2387 |
eval ac_val=\$$ac_var |
2388 |
case $ac_val in |
2389 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2390 |
esac |
2391 |
$as_echo "$ac_var='\''$ac_val'\''" |
2392 |
done | sort |
2393 |
echo |
2394 |
|
2395 |
if test -n "$ac_subst_files"; then |
2396 |
$as_echo "## ------------------- ## |
2397 |
## File substitutions. ## |
2398 |
## ------------------- ##" |
2399 |
echo |
2400 |
for ac_var in $ac_subst_files |
2401 |
do |
2402 |
eval ac_val=\$$ac_var |
2403 |
case $ac_val in |
2404 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2405 |
esac |
2406 |
$as_echo "$ac_var='\''$ac_val'\''" |
2407 |
done | sort |
2408 |
echo |
2409 |
fi |
2410 |
|
2411 |
if test -s confdefs.h; then |
2412 |
$as_echo "## ----------- ## |
2413 |
## confdefs.h. ## |
2414 |
## ----------- ##" |
2415 |
echo |
2416 |
cat confdefs.h |
2417 |
echo |
2418 |
fi |
2419 |
test "$ac_signal" != 0 && |
2420 |
$as_echo "$as_me: caught signal $ac_signal" |
2421 |
$as_echo "$as_me: exit $exit_status" |
2422 |
} >&5 |
2423 |
rm -f core *.core core.conftest.* && |
2424 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2425 |
exit $exit_status |
2426 |
' 0 |
2427 |
for ac_signal in 1 2 13 15; do |
2428 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2429 |
done |
2430 |
ac_signal=0 |
2431 |
|
2432 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2433 |
rm -f -r conftest* confdefs.h |
2434 |
|
2435 |
$as_echo "/* confdefs.h */" > confdefs.h |
2436 |
|
2437 |
# Predefined preprocessor variables. |
2438 |
|
2439 |
cat >>confdefs.h <<_ACEOF |
2440 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2441 |
_ACEOF |
2442 |
|
2443 |
cat >>confdefs.h <<_ACEOF |
2444 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2445 |
_ACEOF |
2446 |
|
2447 |
cat >>confdefs.h <<_ACEOF |
2448 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2449 |
_ACEOF |
2450 |
|
2451 |
cat >>confdefs.h <<_ACEOF |
2452 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2453 |
_ACEOF |
2454 |
|
2455 |
cat >>confdefs.h <<_ACEOF |
2456 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2457 |
_ACEOF |
2458 |
|
2459 |
cat >>confdefs.h <<_ACEOF |
2460 |
#define PACKAGE_URL "$PACKAGE_URL" |
2461 |
_ACEOF |
2462 |
|
2463 |
|
2464 |
# Let the site file select an alternate cache file if it wants to. |
2465 |
# Prefer an explicitly selected file to automatically selected ones. |
2466 |
ac_site_file1=NONE |
2467 |
ac_site_file2=NONE |
2468 |
if test -n "$CONFIG_SITE"; then |
2469 |
# We do not want a PATH search for config.site. |
2470 |
case $CONFIG_SITE in #(( |
2471 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2472 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2473 |
*) ac_site_file1=./$CONFIG_SITE;; |
2474 |
esac |
2475 |
elif test "x$prefix" != xNONE; then |
2476 |
ac_site_file1=$prefix/share/config.site |
2477 |
ac_site_file2=$prefix/etc/config.site |
2478 |
else |
2479 |
ac_site_file1=$ac_default_prefix/share/config.site |
2480 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2481 |
fi |
2482 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2483 |
do |
2484 |
test "x$ac_site_file" = xNONE && continue |
2485 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2487 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2488 |
sed 's/^/| /' "$ac_site_file" >&5 |
2489 |
. "$ac_site_file" \ |
2490 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2491 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2492 |
as_fn_error $? "failed to load site script $ac_site_file |
2493 |
See \`config.log' for more details" "$LINENO" 5; } |
2494 |
fi |
2495 |
done |
2496 |
|
2497 |
if test -r "$cache_file"; then |
2498 |
# Some versions of bash will fail to source /dev/null (special files |
2499 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2500 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2502 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2503 |
case $cache_file in |
2504 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2505 |
*) . "./$cache_file";; |
2506 |
esac |
2507 |
fi |
2508 |
else |
2509 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2510 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2511 |
>$cache_file |
2512 |
fi |
2513 |
|
2514 |
# Check that the precious variables saved in the cache have kept the same |
2515 |
# value. |
2516 |
ac_cache_corrupted=false |
2517 |
for ac_var in $ac_precious_vars; do |
2518 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2519 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2520 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2521 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2522 |
case $ac_old_set,$ac_new_set in |
2523 |
set,) |
2524 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2525 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2526 |
ac_cache_corrupted=: ;; |
2527 |
,set) |
2528 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2529 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2530 |
ac_cache_corrupted=: ;; |
2531 |
,);; |
2532 |
*) |
2533 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2534 |
# differences in whitespace do not lead to failure. |
2535 |
ac_old_val_w=`echo x $ac_old_val` |
2536 |
ac_new_val_w=`echo x $ac_new_val` |
2537 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2539 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2540 |
ac_cache_corrupted=: |
2541 |
else |
2542 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2543 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2544 |
eval $ac_var=\$ac_old_val |
2545 |
fi |
2546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2547 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2549 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2550 |
fi;; |
2551 |
esac |
2552 |
# Pass precious variables to config.status. |
2553 |
if test "$ac_new_set" = set; then |
2554 |
case $ac_new_val in |
2555 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2556 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2557 |
esac |
2558 |
case " $ac_configure_args " in |
2559 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2560 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2561 |
esac |
2562 |
fi |
2563 |
done |
2564 |
if $ac_cache_corrupted; then |
2565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2566 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2568 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2569 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2570 |
fi |
2571 |
## -------------------- ## |
2572 |
## Main body of script. ## |
2573 |
## -------------------- ## |
2574 |
|
2575 |
ac_ext=c |
2576 |
ac_cpp='$CPP $CPPFLAGS' |
2577 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2578 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2579 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2580 |
|
2581 |
|
2582 |
|
2583 |
ac_aux_dir= |
2584 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2585 |
if test -f "$ac_dir/install-sh"; then |
2586 |
ac_aux_dir=$ac_dir |
2587 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2588 |
break |
2589 |
elif test -f "$ac_dir/install.sh"; then |
2590 |
ac_aux_dir=$ac_dir |
2591 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2592 |
break |
2593 |
elif test -f "$ac_dir/shtool"; then |
2594 |
ac_aux_dir=$ac_dir |
2595 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2596 |
break |
2597 |
fi |
2598 |
done |
2599 |
if test -z "$ac_aux_dir"; then |
2600 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2601 |
fi |
2602 |
|
2603 |
# These three variables are undocumented and unsupported, |
2604 |
# and are intended to be withdrawn in a future Autoconf release. |
2605 |
# They can cause serious problems if a builder's source tree is in a directory |
2606 |
# whose full name contains unusual characters. |
2607 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2608 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2609 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2610 |
|
2611 |
|
2612 |
# Make sure we can run config.sub. |
2613 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2614 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2615 |
|
2616 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2617 |
$as_echo_n "checking build system type... " >&6; } |
2618 |
if ${ac_cv_build+:} false; then : |
2619 |
$as_echo_n "(cached) " >&6 |
2620 |
else |
2621 |
ac_build_alias=$build_alias |
2622 |
test "x$ac_build_alias" = x && |
2623 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2624 |
test "x$ac_build_alias" = x && |
2625 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
2626 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2627 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2628 |
|
2629 |
fi |
2630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2631 |
$as_echo "$ac_cv_build" >&6; } |
2632 |
case $ac_cv_build in |
2633 |
*-*-*) ;; |
2634 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
2635 |
esac |
2636 |
build=$ac_cv_build |
2637 |
ac_save_IFS=$IFS; IFS='-' |
2638 |
set x $ac_cv_build |
2639 |
shift |
2640 |
build_cpu=$1 |
2641 |
build_vendor=$2 |
2642 |
shift; shift |
2643 |
# Remember, the first character of IFS is used to create $*, |
2644 |
# except with old shells: |
2645 |
build_os=$* |
2646 |
IFS=$ac_save_IFS |
2647 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2648 |
|
2649 |
|
2650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2651 |
$as_echo_n "checking host system type... " >&6; } |
2652 |
if ${ac_cv_host+:} false; then : |
2653 |
$as_echo_n "(cached) " >&6 |
2654 |
else |
2655 |
if test "x$host_alias" = x; then |
2656 |
ac_cv_host=$ac_cv_build |
2657 |
else |
2658 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2659 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2660 |
fi |
2661 |
|
2662 |
fi |
2663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2664 |
$as_echo "$ac_cv_host" >&6; } |
2665 |
case $ac_cv_host in |
2666 |
*-*-*) ;; |
2667 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
2668 |
esac |
2669 |
host=$ac_cv_host |
2670 |
ac_save_IFS=$IFS; IFS='-' |
2671 |
set x $ac_cv_host |
2672 |
shift |
2673 |
host_cpu=$1 |
2674 |
host_vendor=$2 |
2675 |
shift; shift |
2676 |
# Remember, the first character of IFS is used to create $*, |
2677 |
# except with old shells: |
2678 |
host_os=$* |
2679 |
IFS=$ac_save_IFS |
2680 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2681 |
|
2682 |
|
2683 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2684 |
$as_echo_n "checking target system type... " >&6; } |
2685 |
if ${ac_cv_target+:} false; then : |
2686 |
$as_echo_n "(cached) " >&6 |
2687 |
else |
2688 |
if test "x$target_alias" = x; then |
2689 |
ac_cv_target=$ac_cv_host |
2690 |
else |
2691 |
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2692 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
2693 |
fi |
2694 |
|
2695 |
fi |
2696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2697 |
$as_echo "$ac_cv_target" >&6; } |
2698 |
case $ac_cv_target in |
2699 |
*-*-*) ;; |
2700 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
2701 |
esac |
2702 |
target=$ac_cv_target |
2703 |
ac_save_IFS=$IFS; IFS='-' |
2704 |
set x $ac_cv_target |
2705 |
shift |
2706 |
target_cpu=$1 |
2707 |
target_vendor=$2 |
2708 |
shift; shift |
2709 |
# Remember, the first character of IFS is used to create $*, |
2710 |
# except with old shells: |
2711 |
target_os=$* |
2712 |
IFS=$ac_save_IFS |
2713 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
2714 |
|
2715 |
|
2716 |
# The aliases save the names the user supplied, while $host etc. |
2717 |
# will get canonicalized. |
2718 |
test -n "$target_alias" && |
2719 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
2720 |
NONENONEs,x,x, && |
2721 |
program_prefix=${target_alias}- |
2722 |
am__api_version="1.7" |
2723 |
# Find a good install program. We prefer a C program (faster), |
2724 |
# so one script is as good as another. But avoid the broken or |
2725 |
# incompatible versions: |
2726 |
# SysV /etc/install, /usr/sbin/install |
2727 |
# SunOS /usr/etc/install |
2728 |
# IRIX /sbin/install |
2729 |
# AIX /bin/install |
2730 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2731 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2732 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2733 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2734 |
# OS/2's system install, which has a completely different semantic |
2735 |
# ./install, which can be erroneously created by make from ./install.sh. |
2736 |
# Reject install programs that cannot install multiple files. |
2737 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2738 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2739 |
if test -z "$INSTALL"; then |
2740 |
if ${ac_cv_path_install+:} false; then : |
2741 |
$as_echo_n "(cached) " >&6 |
2742 |
else |
2743 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2744 |
for as_dir in $PATH |
2745 |
do |
2746 |
IFS=$as_save_IFS |
2747 |
test -z "$as_dir" && as_dir=. |
2748 |
# Account for people who put trailing slashes in PATH elements. |
2749 |
case $as_dir/ in #(( |
2750 |
./ | .// | /[cC]/* | \ |
2751 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2752 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2753 |
/usr/ucb/* ) ;; |
2754 |
*) |
2755 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2756 |
# Don't use installbsd from OSF since it installs stuff as root |
2757 |
# by default. |
2758 |
for ac_prog in ginstall scoinst install; do |
2759 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2760 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2761 |
if test $ac_prog = install && |
2762 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2763 |
# AIX install. It has an incompatible calling convention. |
2764 |
: |
2765 |
elif test $ac_prog = install && |
2766 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2767 |
# program-specific install script used by HP pwplus--don't use. |
2768 |
: |
2769 |
else |
2770 |
rm -rf conftest.one conftest.two conftest.dir |
2771 |
echo one > conftest.one |
2772 |
echo two > conftest.two |
2773 |
mkdir conftest.dir |
2774 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2775 |
test -s conftest.one && test -s conftest.two && |
2776 |
test -s conftest.dir/conftest.one && |
2777 |
test -s conftest.dir/conftest.two |
2778 |
then |
2779 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2780 |
break 3 |
2781 |
fi |
2782 |
fi |
2783 |
fi |
2784 |
done |
2785 |
done |
2786 |
;; |
2787 |
esac |
2788 |
|
2789 |
done |
2790 |
IFS=$as_save_IFS |
2791 |
|
2792 |
rm -rf conftest.one conftest.two conftest.dir |
2793 |
|
2794 |
fi |
2795 |
if test "${ac_cv_path_install+set}" = set; then |
2796 |
INSTALL=$ac_cv_path_install |
2797 |
else |
2798 |
# As a last resort, use the slow shell script. Don't cache a |
2799 |
# value for INSTALL within a source directory, because that will |
2800 |
# break other packages using the cache if that directory is |
2801 |
# removed, or if the value is a relative name. |
2802 |
INSTALL=$ac_install_sh |
2803 |
fi |
2804 |
fi |
2805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2806 |
$as_echo "$INSTALL" >&6; } |
2807 |
|
2808 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2809 |
# It thinks the first close brace ends the variable substitution. |
2810 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2811 |
|
2812 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2813 |
|
2814 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2815 |
|
2816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2817 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2818 |
# Just in case |
2819 |
sleep 1 |
2820 |
echo timestamp > conftest.file |
2821 |
# Do `set' in a subshell so we don't clobber the current shell's |
2822 |
# arguments. Must try -L first in case configure is actually a |
2823 |
# symlink; some systems play weird games with the mod time of symlinks |
2824 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2825 |
# directory). |
2826 |
if ( |
2827 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2828 |
if test "$*" = "X"; then |
2829 |
# -L didn't work. |
2830 |
set X `ls -t $srcdir/configure conftest.file` |
2831 |
fi |
2832 |
rm -f conftest.file |
2833 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2834 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2835 |
|
2836 |
# If neither matched, then we have a broken ls. This can happen |
2837 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2838 |
# broken ls alias from the environment. This has actually |
2839 |
# happened. Such a system could not be considered "sane". |
2840 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2841 |
alias in your environment" "$LINENO" 5 |
2842 |
fi |
2843 |
|
2844 |
test "$2" = conftest.file |
2845 |
) |
2846 |
then |
2847 |
# Ok. |
2848 |
: |
2849 |
else |
2850 |
as_fn_error $? "newly created file is older than distributed files! |
2851 |
Check your system clock" "$LINENO" 5 |
2852 |
fi |
2853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2854 |
$as_echo "yes" >&6; } |
2855 |
test "$program_prefix" != NONE && |
2856 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2857 |
# Use a double $ so make ignores it. |
2858 |
test "$program_suffix" != NONE && |
2859 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2860 |
# Double any \ or $. |
2861 |
# By default was `s,x,x', remove it if useless. |
2862 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2863 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2864 |
|
2865 |
|
2866 |
# expand $ac_aux_dir to an absolute path |
2867 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2868 |
|
2869 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2870 |
# Use eval to expand $SHELL |
2871 |
if eval "$MISSING --run true"; then |
2872 |
am_missing_run="$MISSING --run " |
2873 |
else |
2874 |
am_missing_run= |
2875 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2876 |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2877 |
fi |
2878 |
|
2879 |
for ac_prog in gawk mawk nawk awk |
2880 |
do |
2881 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2882 |
set dummy $ac_prog; ac_word=$2 |
2883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2884 |
$as_echo_n "checking for $ac_word... " >&6; } |
2885 |
if ${ac_cv_prog_AWK+:} false; then : |
2886 |
$as_echo_n "(cached) " >&6 |
2887 |
else |
2888 |
if test -n "$AWK"; then |
2889 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2890 |
else |
2891 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2892 |
for as_dir in $PATH |
2893 |
do |
2894 |
IFS=$as_save_IFS |
2895 |
test -z "$as_dir" && as_dir=. |
2896 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2897 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2898 |
ac_cv_prog_AWK="$ac_prog" |
2899 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2900 |
break 2 |
2901 |
fi |
2902 |
done |
2903 |
done |
2904 |
IFS=$as_save_IFS |
2905 |
|
2906 |
fi |
2907 |
fi |
2908 |
AWK=$ac_cv_prog_AWK |
2909 |
if test -n "$AWK"; then |
2910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2911 |
$as_echo "$AWK" >&6; } |
2912 |
else |
2913 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2914 |
$as_echo "no" >&6; } |
2915 |
fi |
2916 |
|
2917 |
|
2918 |
test -n "$AWK" && break |
2919 |
done |
2920 |
|
2921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2922 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2923 |
set x ${MAKE-make} |
2924 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2925 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2926 |
$as_echo_n "(cached) " >&6 |
2927 |
else |
2928 |
cat >conftest.make <<\_ACEOF |
2929 |
SHELL = /bin/sh |
2930 |
all: |
2931 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2932 |
_ACEOF |
2933 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2934 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2935 |
*@@@%%%=?*=@@@%%%*) |
2936 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2937 |
*) |
2938 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2939 |
esac |
2940 |
rm -f conftest.make |
2941 |
fi |
2942 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2944 |
$as_echo "yes" >&6; } |
2945 |
SET_MAKE= |
2946 |
else |
2947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2948 |
$as_echo "no" >&6; } |
2949 |
SET_MAKE="MAKE=${MAKE-make}" |
2950 |
fi |
2951 |
|
2952 |
rm -rf .tst 2>/dev/null |
2953 |
mkdir .tst 2>/dev/null |
2954 |
if test -d .tst; then |
2955 |
am__leading_dot=. |
2956 |
else |
2957 |
am__leading_dot=_ |
2958 |
fi |
2959 |
rmdir .tst 2>/dev/null |
2960 |
|
2961 |
# test to see if srcdir already configured |
2962 |
if test "`cd $srcdir && pwd`" != "`pwd`" && |
2963 |
test -f $srcdir/config.status; then |
2964 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2965 |
fi |
2966 |
|
2967 |
# test whether we have cygpath |
2968 |
if test -z "$CYGPATH_W"; then |
2969 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2970 |
CYGPATH_W='cygpath -w' |
2971 |
else |
2972 |
CYGPATH_W=echo |
2973 |
fi |
2974 |
fi |
2975 |
|
2976 |
|
2977 |
# Define the identity of the package. |
2978 |
PACKAGE=gvpe |
2979 |
VERSION=3.1 |
2980 |
|
2981 |
|
2982 |
cat >>confdefs.h <<_ACEOF |
2983 |
#define PACKAGE "$PACKAGE" |
2984 |
_ACEOF |
2985 |
|
2986 |
|
2987 |
cat >>confdefs.h <<_ACEOF |
2988 |
#define VERSION "$VERSION" |
2989 |
_ACEOF |
2990 |
|
2991 |
# Some tools Automake needs. |
2992 |
|
2993 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2994 |
|
2995 |
|
2996 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2997 |
|
2998 |
|
2999 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
3000 |
|
3001 |
|
3002 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3003 |
|
3004 |
|
3005 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3006 |
|
3007 |
|
3008 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
3009 |
|
3010 |
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
3011 |
|
3012 |
# Installed binaries are usually stripped using `strip' when the user |
3013 |
# run `make install-strip'. However `strip' might not be the right |
3014 |
# tool to use in cross-compilation environments, therefore Automake |
3015 |
# will honor the `STRIP' environment variable to overrule this program. |
3016 |
if test "$cross_compiling" != no; then |
3017 |
if test -n "$ac_tool_prefix"; then |
3018 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
3019 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
3020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3021 |
$as_echo_n "checking for $ac_word... " >&6; } |
3022 |
if ${ac_cv_prog_STRIP+:} false; then : |
3023 |
$as_echo_n "(cached) " >&6 |
3024 |
else |
3025 |
if test -n "$STRIP"; then |
3026 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
3027 |
else |
3028 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3029 |
for as_dir in $PATH |
3030 |
do |
3031 |
IFS=$as_save_IFS |
3032 |
test -z "$as_dir" && as_dir=. |
3033 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3034 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3035 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3036 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3037 |
break 2 |
3038 |
fi |
3039 |
done |
3040 |
done |
3041 |
IFS=$as_save_IFS |
3042 |
|
3043 |
fi |
3044 |
fi |
3045 |
STRIP=$ac_cv_prog_STRIP |
3046 |
if test -n "$STRIP"; then |
3047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
3048 |
$as_echo "$STRIP" >&6; } |
3049 |
else |
3050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3051 |
$as_echo "no" >&6; } |
3052 |
fi |
3053 |
|
3054 |
|
3055 |
fi |
3056 |
if test -z "$ac_cv_prog_STRIP"; then |
3057 |
ac_ct_STRIP=$STRIP |
3058 |
# Extract the first word of "strip", so it can be a program name with args. |
3059 |
set dummy strip; ac_word=$2 |
3060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3061 |
$as_echo_n "checking for $ac_word... " >&6; } |
3062 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
3063 |
$as_echo_n "(cached) " >&6 |
3064 |
else |
3065 |
if test -n "$ac_ct_STRIP"; then |
3066 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
3067 |
else |
3068 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3069 |
for as_dir in $PATH |
3070 |
do |
3071 |
IFS=$as_save_IFS |
3072 |
test -z "$as_dir" && as_dir=. |
3073 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3074 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3075 |
ac_cv_prog_ac_ct_STRIP="strip" |
3076 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3077 |
break 2 |
3078 |
fi |
3079 |
done |
3080 |
done |
3081 |
IFS=$as_save_IFS |
3082 |
|
3083 |
fi |
3084 |
fi |
3085 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3086 |
if test -n "$ac_ct_STRIP"; then |
3087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3088 |
$as_echo "$ac_ct_STRIP" >&6; } |
3089 |
else |
3090 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3091 |
$as_echo "no" >&6; } |
3092 |
fi |
3093 |
|
3094 |
if test "x$ac_ct_STRIP" = x; then |
3095 |
STRIP=":" |
3096 |
else |
3097 |
case $cross_compiling:$ac_tool_warned in |
3098 |
yes:) |
3099 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3100 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3101 |
ac_tool_warned=yes ;; |
3102 |
esac |
3103 |
STRIP=$ac_ct_STRIP |
3104 |
fi |
3105 |
else |
3106 |
STRIP="$ac_cv_prog_STRIP" |
3107 |
fi |
3108 |
|
3109 |
fi |
3110 |
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
3111 |
|
3112 |
# We need awk for the "check" target. The system "awk" is bad on |
3113 |
# some platforms. |
3114 |
|
3115 |
|
3116 |
|
3117 |
ac_config_headers="$ac_config_headers config.h" |
3118 |
|
3119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3120 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
3121 |
# Check whether --enable-maintainer-mode was given. |
3122 |
if test "${enable_maintainer_mode+set}" = set; then : |
3123 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
3124 |
else |
3125 |
USE_MAINTAINER_MODE=no |
3126 |
fi |
3127 |
|
3128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3129 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
3130 |
|
3131 |
|
3132 |
if test $USE_MAINTAINER_MODE = yes; then |
3133 |
MAINTAINER_MODE_TRUE= |
3134 |
MAINTAINER_MODE_FALSE='#' |
3135 |
else |
3136 |
MAINTAINER_MODE_TRUE='#' |
3137 |
MAINTAINER_MODE_FALSE= |
3138 |
fi |
3139 |
|
3140 |
MAINT=$MAINTAINER_MODE_TRUE |
3141 |
|
3142 |
|
3143 |
|
3144 |
|
3145 |
|
3146 |
|
3147 |
|
3148 |
|
3149 |
MKINSTALLDIRS= |
3150 |
if test -n "$ac_aux_dir"; then |
3151 |
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
3152 |
fi |
3153 |
if test -z "$MKINSTALLDIRS"; then |
3154 |
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
3155 |
fi |
3156 |
|
3157 |
|
3158 |
|
3159 |
|
3160 |
|
3161 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
3162 |
set dummy msgfmt; ac_word=$2 |
3163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3164 |
$as_echo_n "checking for $ac_word... " >&6; } |
3165 |
if ${ac_cv_path_MSGFMT+:} false; then : |
3166 |
$as_echo_n "(cached) " >&6 |
3167 |
else |
3168 |
case "$MSGFMT" in |
3169 |
/*) |
3170 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
3171 |
;; |
3172 |
*) |
3173 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
3174 |
for ac_dir in $PATH; do |
3175 |
test -z "$ac_dir" && ac_dir=. |
3176 |
if test -f $ac_dir/$ac_word; then |
3177 |
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
3178 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3179 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
3180 |
break |
3181 |
fi |
3182 |
fi |
3183 |
done |
3184 |
IFS="$ac_save_ifs" |
3185 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
3186 |
;; |
3187 |
esac |
3188 |
fi |
3189 |
MSGFMT="$ac_cv_path_MSGFMT" |
3190 |
if test "$MSGFMT" != ":"; then |
3191 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
3192 |
$as_echo "$MSGFMT" >&6; } |
3193 |
else |
3194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3195 |
$as_echo "no" >&6; } |
3196 |
fi |
3197 |
|
3198 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
3199 |
set dummy gmsgfmt; ac_word=$2 |
3200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3201 |
$as_echo_n "checking for $ac_word... " >&6; } |
3202 |
if ${ac_cv_path_GMSGFMT+:} false; then : |
3203 |
$as_echo_n "(cached) " >&6 |
3204 |
else |
3205 |
case $GMSGFMT in |
3206 |
[\\/]* | ?:[\\/]*) |
3207 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
3208 |
;; |
3209 |
*) |
3210 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3211 |
for as_dir in $PATH |
3212 |
do |
3213 |
IFS=$as_save_IFS |
3214 |
test -z "$as_dir" && as_dir=. |
3215 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3216 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3217 |
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
3218 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3219 |
break 2 |
3220 |
fi |
3221 |
done |
3222 |
done |
3223 |
IFS=$as_save_IFS |
3224 |
|
3225 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
3226 |
;; |
3227 |
esac |
3228 |
fi |
3229 |
GMSGFMT=$ac_cv_path_GMSGFMT |
3230 |
if test -n "$GMSGFMT"; then |
3231 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
3232 |
$as_echo "$GMSGFMT" >&6; } |
3233 |
else |
3234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3235 |
$as_echo "no" >&6; } |
3236 |
fi |
3237 |
|
3238 |
|
3239 |
|
3240 |
# Extract the first word of "xgettext", so it can be a program name with args. |
3241 |
set dummy xgettext; ac_word=$2 |
3242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3243 |
$as_echo_n "checking for $ac_word... " >&6; } |
3244 |
if ${ac_cv_path_XGETTEXT+:} false; then : |
3245 |
$as_echo_n "(cached) " >&6 |
3246 |
else |
3247 |
case "$XGETTEXT" in |
3248 |
/*) |
3249 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
3250 |
;; |
3251 |
*) |
3252 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
3253 |
for ac_dir in $PATH; do |
3254 |
test -z "$ac_dir" && ac_dir=. |
3255 |
if test -f $ac_dir/$ac_word; then |
3256 |
if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
3257 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3258 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
3259 |
break |
3260 |
fi |
3261 |
fi |
3262 |
done |
3263 |
IFS="$ac_save_ifs" |
3264 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
3265 |
;; |
3266 |
esac |
3267 |
fi |
3268 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
3269 |
if test "$XGETTEXT" != ":"; then |
3270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
3271 |
$as_echo "$XGETTEXT" >&6; } |
3272 |
else |
3273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3274 |
$as_echo "no" >&6; } |
3275 |
fi |
3276 |
|
3277 |
rm -f messages.po |
3278 |
|
3279 |
# Extract the first word of "msgmerge", so it can be a program name with args. |
3280 |
set dummy msgmerge; ac_word=$2 |
3281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3282 |
$as_echo_n "checking for $ac_word... " >&6; } |
3283 |
if ${ac_cv_path_MSGMERGE+:} false; then : |
3284 |
$as_echo_n "(cached) " >&6 |
3285 |
else |
3286 |
case "$MSGMERGE" in |
3287 |
/*) |
3288 |
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
3289 |
;; |
3290 |
*) |
3291 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
3292 |
for ac_dir in $PATH; do |
3293 |
test -z "$ac_dir" && ac_dir=. |
3294 |
if test -f $ac_dir/$ac_word; then |
3295 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
3296 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
3297 |
break |
3298 |
fi |
3299 |
fi |
3300 |
done |
3301 |
IFS="$ac_save_ifs" |
3302 |
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
3303 |
;; |
3304 |
esac |
3305 |
fi |
3306 |
MSGMERGE="$ac_cv_path_MSGMERGE" |
3307 |
if test "$MSGMERGE" != ":"; then |
3308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
3309 |
$as_echo "$MSGMERGE" >&6; } |
3310 |
else |
3311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3312 |
$as_echo "no" >&6; } |
3313 |
fi |
3314 |
|
3315 |
|
3316 |
if test "$GMSGFMT" != ":"; then |
3317 |
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
3318 |
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3319 |
: ; |
3320 |
else |
3321 |
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
3322 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
3323 |
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
3324 |
GMSGFMT=":" |
3325 |
fi |
3326 |
fi |
3327 |
|
3328 |
if test "$XGETTEXT" != ":"; then |
3329 |
if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
3330 |
(if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
3331 |
: ; |
3332 |
else |
3333 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
3334 |
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
3335 |
XGETTEXT=":" |
3336 |
fi |
3337 |
rm -f messages.po |
3338 |
fi |
3339 |
|
3340 |
ac_config_commands="$ac_config_commands default-1" |
3341 |
|
3342 |
|
3343 |
|
3344 |
if test "X$prefix" = "XNONE"; then |
3345 |
acl_final_prefix="$ac_default_prefix" |
3346 |
else |
3347 |
acl_final_prefix="$prefix" |
3348 |
fi |
3349 |
if test "X$exec_prefix" = "XNONE"; then |
3350 |
acl_final_exec_prefix='${prefix}' |
3351 |
else |
3352 |
acl_final_exec_prefix="$exec_prefix" |
3353 |
fi |
3354 |
acl_save_prefix="$prefix" |
3355 |
prefix="$acl_final_prefix" |
3356 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
3357 |
prefix="$acl_save_prefix" |
3358 |
|
3359 |
DEPDIR="${am__leading_dot}deps" |
3360 |
|
3361 |
ac_config_commands="$ac_config_commands depfiles" |
3362 |
|
3363 |
|
3364 |
am_make=${MAKE-make} |
3365 |
cat > confinc << 'END' |
3366 |
am__doit: |
3367 |
@echo done |
3368 |
.PHONY: am__doit |
3369 |
END |
3370 |
# If we don't find an include directive, just comment out the code. |
3371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3372 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
3373 |
am__include="#" |
3374 |
am__quote= |
3375 |
_am_result=none |
3376 |
# First try GNU make style include. |
3377 |
echo "include confinc" > confmf |
3378 |
# We grep out `Entering directory' and `Leaving directory' |
3379 |
# messages which can occur if `w' ends up in MAKEFLAGS. |
3380 |
# In particular we don't look at `^make:' because GNU make might |
3381 |
# be invoked under some other name (usually "gmake"), in which |
3382 |
# case it prints its new name instead of `make'. |
3383 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3384 |
am__include=include |
3385 |
am__quote= |
3386 |
_am_result=GNU |
3387 |
fi |
3388 |
# Now try BSD make style include. |
3389 |
if test "$am__include" = "#"; then |
3390 |
echo '.include "confinc"' > confmf |
3391 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3392 |
am__include=.include |
3393 |
am__quote="\"" |
3394 |
_am_result=BSD |
3395 |
fi |
3396 |
fi |
3397 |
|
3398 |
|
3399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3400 |
$as_echo "$_am_result" >&6; } |
3401 |
rm -f confinc confmf |
3402 |
|
3403 |
# Check whether --enable-dependency-tracking was given. |
3404 |
if test "${enable_dependency_tracking+set}" = set; then : |
3405 |
enableval=$enable_dependency_tracking; |
3406 |
fi |
3407 |
|
3408 |
if test "x$enable_dependency_tracking" != xno; then |
3409 |
am_depcomp="$ac_aux_dir/depcomp" |
3410 |
AMDEPBACKSLASH='\' |
3411 |
fi |
3412 |
|
3413 |
|
3414 |
if test "x$enable_dependency_tracking" != xno; then |
3415 |
AMDEP_TRUE= |
3416 |
AMDEP_FALSE='#' |
3417 |
else |
3418 |
AMDEP_TRUE='#' |
3419 |
AMDEP_FALSE= |
3420 |
fi |
3421 |
|
3422 |
|
3423 |
|
3424 |
ac_ext=c |
3425 |
ac_cpp='$CPP $CPPFLAGS' |
3426 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3427 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3428 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3429 |
if test -n "$ac_tool_prefix"; then |
3430 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3431 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3433 |
$as_echo_n "checking for $ac_word... " >&6; } |
3434 |
if ${ac_cv_prog_CC+:} false; then : |
3435 |
$as_echo_n "(cached) " >&6 |
3436 |
else |
3437 |
if test -n "$CC"; then |
3438 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3439 |
else |
3440 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3441 |
for as_dir in $PATH |
3442 |
do |
3443 |
IFS=$as_save_IFS |
3444 |
test -z "$as_dir" && as_dir=. |
3445 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3446 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3447 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3448 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3449 |
break 2 |
3450 |
fi |
3451 |
done |
3452 |
done |
3453 |
IFS=$as_save_IFS |
3454 |
|
3455 |
fi |
3456 |
fi |
3457 |
CC=$ac_cv_prog_CC |
3458 |
if test -n "$CC"; then |
3459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3460 |
$as_echo "$CC" >&6; } |
3461 |
else |
3462 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3463 |
$as_echo "no" >&6; } |
3464 |
fi |
3465 |
|
3466 |
|
3467 |
fi |
3468 |
if test -z "$ac_cv_prog_CC"; then |
3469 |
ac_ct_CC=$CC |
3470 |
# Extract the first word of "gcc", so it can be a program name with args. |
3471 |
set dummy gcc; ac_word=$2 |
3472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3473 |
$as_echo_n "checking for $ac_word... " >&6; } |
3474 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3475 |
$as_echo_n "(cached) " >&6 |
3476 |
else |
3477 |
if test -n "$ac_ct_CC"; then |
3478 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3479 |
else |
3480 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3481 |
for as_dir in $PATH |
3482 |
do |
3483 |
IFS=$as_save_IFS |
3484 |
test -z "$as_dir" && as_dir=. |
3485 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3486 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3487 |
ac_cv_prog_ac_ct_CC="gcc" |
3488 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3489 |
break 2 |
3490 |
fi |
3491 |
done |
3492 |
done |
3493 |
IFS=$as_save_IFS |
3494 |
|
3495 |
fi |
3496 |
fi |
3497 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3498 |
if test -n "$ac_ct_CC"; then |
3499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3500 |
$as_echo "$ac_ct_CC" >&6; } |
3501 |
else |
3502 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3503 |
$as_echo "no" >&6; } |
3504 |
fi |
3505 |
|
3506 |
if test "x$ac_ct_CC" = x; then |
3507 |
CC="" |
3508 |
else |
3509 |
case $cross_compiling:$ac_tool_warned in |
3510 |
yes:) |
3511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3512 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3513 |
ac_tool_warned=yes ;; |
3514 |
esac |
3515 |
CC=$ac_ct_CC |
3516 |
fi |
3517 |
else |
3518 |
CC="$ac_cv_prog_CC" |
3519 |
fi |
3520 |
|
3521 |
if test -z "$CC"; then |
3522 |
if test -n "$ac_tool_prefix"; then |
3523 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3524 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3525 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3526 |
$as_echo_n "checking for $ac_word... " >&6; } |
3527 |
if ${ac_cv_prog_CC+:} false; then : |
3528 |
$as_echo_n "(cached) " >&6 |
3529 |
else |
3530 |
if test -n "$CC"; then |
3531 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3532 |
else |
3533 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3534 |
for as_dir in $PATH |
3535 |
do |
3536 |
IFS=$as_save_IFS |
3537 |
test -z "$as_dir" && as_dir=. |
3538 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3539 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3540 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3541 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3542 |
break 2 |
3543 |
fi |
3544 |
done |
3545 |
done |
3546 |
IFS=$as_save_IFS |
3547 |
|
3548 |
fi |
3549 |
fi |
3550 |
CC=$ac_cv_prog_CC |
3551 |
if test -n "$CC"; then |
3552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3553 |
$as_echo "$CC" >&6; } |
3554 |
else |
3555 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3556 |
$as_echo "no" >&6; } |
3557 |
fi |
3558 |
|
3559 |
|
3560 |
fi |
3561 |
fi |
3562 |
if test -z "$CC"; then |
3563 |
# Extract the first word of "cc", so it can be a program name with args. |
3564 |
set dummy cc; ac_word=$2 |
3565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3566 |
$as_echo_n "checking for $ac_word... " >&6; } |
3567 |
if ${ac_cv_prog_CC+:} false; then : |
3568 |
$as_echo_n "(cached) " >&6 |
3569 |
else |
3570 |
if test -n "$CC"; then |
3571 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3572 |
else |
3573 |
ac_prog_rejected=no |
3574 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3575 |
for as_dir in $PATH |
3576 |
do |
3577 |
IFS=$as_save_IFS |
3578 |
test -z "$as_dir" && as_dir=. |
3579 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3580 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3581 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3582 |
ac_prog_rejected=yes |
3583 |
continue |
3584 |
fi |
3585 |
ac_cv_prog_CC="cc" |
3586 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3587 |
break 2 |
3588 |
fi |
3589 |
done |
3590 |
done |
3591 |
IFS=$as_save_IFS |
3592 |
|
3593 |
if test $ac_prog_rejected = yes; then |
3594 |
# We found a bogon in the path, so make sure we never use it. |
3595 |
set dummy $ac_cv_prog_CC |
3596 |
shift |
3597 |
if test $# != 0; then |
3598 |
# We chose a different compiler from the bogus one. |
3599 |
# However, it has the same basename, so the bogon will be chosen |
3600 |
# first if we set CC to just the basename; use the full file name. |
3601 |
shift |
3602 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3603 |
fi |
3604 |
fi |
3605 |
fi |
3606 |
fi |
3607 |
CC=$ac_cv_prog_CC |
3608 |
if test -n "$CC"; then |
3609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3610 |
$as_echo "$CC" >&6; } |
3611 |
else |
3612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3613 |
$as_echo "no" >&6; } |
3614 |
fi |
3615 |
|
3616 |
|
3617 |
fi |
3618 |
if test -z "$CC"; then |
3619 |
if test -n "$ac_tool_prefix"; then |
3620 |
for ac_prog in cl.exe |
3621 |
do |
3622 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3623 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3624 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3625 |
$as_echo_n "checking for $ac_word... " >&6; } |
3626 |
if ${ac_cv_prog_CC+:} false; then : |
3627 |
$as_echo_n "(cached) " >&6 |
3628 |
else |
3629 |
if test -n "$CC"; then |
3630 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3631 |
else |
3632 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3633 |
for as_dir in $PATH |
3634 |
do |
3635 |
IFS=$as_save_IFS |
3636 |
test -z "$as_dir" && as_dir=. |
3637 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3638 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3639 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3640 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3641 |
break 2 |
3642 |
fi |
3643 |
done |
3644 |
done |
3645 |
IFS=$as_save_IFS |
3646 |
|
3647 |
fi |
3648 |
fi |
3649 |
CC=$ac_cv_prog_CC |
3650 |
if test -n "$CC"; then |
3651 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3652 |
$as_echo "$CC" >&6; } |
3653 |
else |
3654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3655 |
$as_echo "no" >&6; } |
3656 |
fi |
3657 |
|
3658 |
|
3659 |
test -n "$CC" && break |
3660 |
done |
3661 |
fi |
3662 |
if test -z "$CC"; then |
3663 |
ac_ct_CC=$CC |
3664 |
for ac_prog in cl.exe |
3665 |
do |
3666 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3667 |
set dummy $ac_prog; ac_word=$2 |
3668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3669 |
$as_echo_n "checking for $ac_word... " >&6; } |
3670 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3671 |
$as_echo_n "(cached) " >&6 |
3672 |
else |
3673 |
if test -n "$ac_ct_CC"; then |
3674 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3675 |
else |
3676 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3677 |
for as_dir in $PATH |
3678 |
do |
3679 |
IFS=$as_save_IFS |
3680 |
test -z "$as_dir" && as_dir=. |
3681 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3682 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3683 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3684 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3685 |
break 2 |
3686 |
fi |
3687 |
done |
3688 |
done |
3689 |
IFS=$as_save_IFS |
3690 |
|
3691 |
fi |
3692 |
fi |
3693 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3694 |
if test -n "$ac_ct_CC"; then |
3695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3696 |
$as_echo "$ac_ct_CC" >&6; } |
3697 |
else |
3698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3699 |
$as_echo "no" >&6; } |
3700 |
fi |
3701 |
|
3702 |
|
3703 |
test -n "$ac_ct_CC" && break |
3704 |
done |
3705 |
|
3706 |
if test "x$ac_ct_CC" = x; then |
3707 |
CC="" |
3708 |
else |
3709 |
case $cross_compiling:$ac_tool_warned in |
3710 |
yes:) |
3711 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3712 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3713 |
ac_tool_warned=yes ;; |
3714 |
esac |
3715 |
CC=$ac_ct_CC |
3716 |
fi |
3717 |
fi |
3718 |
|
3719 |
fi |
3720 |
|
3721 |
|
3722 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3723 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3724 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3725 |
See \`config.log' for more details" "$LINENO" 5; } |
3726 |
|
3727 |
# Provide some information about the compiler. |
3728 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3729 |
set X $ac_compile |
3730 |
ac_compiler=$2 |
3731 |
for ac_option in --version -v -V -qversion; do |
3732 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3733 |
case "(($ac_try" in |
3734 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3735 |
*) ac_try_echo=$ac_try;; |
3736 |
esac |
3737 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3738 |
$as_echo "$ac_try_echo"; } >&5 |
3739 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3740 |
ac_status=$? |
3741 |
if test -s conftest.err; then |
3742 |
sed '10a\ |
3743 |
... rest of stderr output deleted ... |
3744 |
10q' conftest.err >conftest.er1 |
3745 |
cat conftest.er1 >&5 |
3746 |
fi |
3747 |
rm -f conftest.er1 conftest.err |
3748 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3749 |
test $ac_status = 0; } |
3750 |
done |
3751 |
|
3752 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3753 |
/* end confdefs.h. */ |
3754 |
|
3755 |
int |
3756 |
main () |
3757 |
{ |
3758 |
|
3759 |
; |
3760 |
return 0; |
3761 |
} |
3762 |
_ACEOF |
3763 |
ac_clean_files_save=$ac_clean_files |
3764 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3765 |
# Try to create an executable without -o first, disregard a.out. |
3766 |
# It will help us diagnose broken compilers, and finding out an intuition |
3767 |
# of exeext. |
3768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3769 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3770 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3771 |
|
3772 |
# The possible output files: |
3773 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3774 |
|
3775 |
ac_rmfiles= |
3776 |
for ac_file in $ac_files |
3777 |
do |
3778 |
case $ac_file in |
3779 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3780 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3781 |
esac |
3782 |
done |
3783 |
rm -f $ac_rmfiles |
3784 |
|
3785 |
if { { ac_try="$ac_link_default" |
3786 |
case "(($ac_try" in |
3787 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3788 |
*) ac_try_echo=$ac_try;; |
3789 |
esac |
3790 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3791 |
$as_echo "$ac_try_echo"; } >&5 |
3792 |
(eval "$ac_link_default") 2>&5 |
3793 |
ac_status=$? |
3794 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3795 |
test $ac_status = 0; }; then : |
3796 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3797 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3798 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3799 |
# so that the user can short-circuit this test for compilers unknown to |
3800 |
# Autoconf. |
3801 |
for ac_file in $ac_files '' |
3802 |
do |
3803 |
test -f "$ac_file" || continue |
3804 |
case $ac_file in |
3805 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3806 |
;; |
3807 |
[ab].out ) |
3808 |
# We found the default executable, but exeext='' is most |
3809 |
# certainly right. |
3810 |
break;; |
3811 |
*.* ) |
3812 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3813 |
then :; else |
3814 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3815 |
fi |
3816 |
# We set ac_cv_exeext here because the later test for it is not |
3817 |
# safe: cross compilers may not add the suffix if given an `-o' |
3818 |
# argument, so we may need to know it at that point already. |
3819 |
# Even if this section looks crufty: it has the advantage of |
3820 |
# actually working. |
3821 |
break;; |
3822 |
* ) |
3823 |
break;; |
3824 |
esac |
3825 |
done |
3826 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3827 |
|
3828 |
else |
3829 |
ac_file='' |
3830 |
fi |
3831 |
if test -z "$ac_file"; then : |
3832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3833 |
$as_echo "no" >&6; } |
3834 |
$as_echo "$as_me: failed program was:" >&5 |
3835 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3836 |
|
3837 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3838 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3839 |
as_fn_error 77 "C compiler cannot create executables |
3840 |
See \`config.log' for more details" "$LINENO" 5; } |
3841 |
else |
3842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3843 |
$as_echo "yes" >&6; } |
3844 |
fi |
3845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3846 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3848 |
$as_echo "$ac_file" >&6; } |
3849 |
ac_exeext=$ac_cv_exeext |
3850 |
|
3851 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3852 |
ac_clean_files=$ac_clean_files_save |
3853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3854 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3855 |
if { { ac_try="$ac_link" |
3856 |
case "(($ac_try" in |
3857 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3858 |
*) ac_try_echo=$ac_try;; |
3859 |
esac |
3860 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3861 |
$as_echo "$ac_try_echo"; } >&5 |
3862 |
(eval "$ac_link") 2>&5 |
3863 |
ac_status=$? |
3864 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3865 |
test $ac_status = 0; }; then : |
3866 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3867 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3868 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3869 |
# `rm'. |
3870 |
for ac_file in conftest.exe conftest conftest.*; do |
3871 |
test -f "$ac_file" || continue |
3872 |
case $ac_file in |
3873 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3874 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3875 |
break;; |
3876 |
* ) break;; |
3877 |
esac |
3878 |
done |
3879 |
else |
3880 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3881 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3882 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3883 |
See \`config.log' for more details" "$LINENO" 5; } |
3884 |
fi |
3885 |
rm -f conftest conftest$ac_cv_exeext |
3886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3887 |
$as_echo "$ac_cv_exeext" >&6; } |
3888 |
|
3889 |
rm -f conftest.$ac_ext |
3890 |
EXEEXT=$ac_cv_exeext |
3891 |
ac_exeext=$EXEEXT |
3892 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3893 |
/* end confdefs.h. */ |
3894 |
#include <stdio.h> |
3895 |
int |
3896 |
main () |
3897 |
{ |
3898 |
FILE *f = fopen ("conftest.out", "w"); |
3899 |
return ferror (f) || fclose (f) != 0; |
3900 |
|
3901 |
; |
3902 |
return 0; |
3903 |
} |
3904 |
_ACEOF |
3905 |
ac_clean_files="$ac_clean_files conftest.out" |
3906 |
# Check that the compiler produces executables we can run. If not, either |
3907 |
# the compiler is broken, or we cross compile. |
3908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3909 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3910 |
if test "$cross_compiling" != yes; then |
3911 |
{ { ac_try="$ac_link" |
3912 |
case "(($ac_try" in |
3913 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3914 |
*) ac_try_echo=$ac_try;; |
3915 |
esac |
3916 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3917 |
$as_echo "$ac_try_echo"; } >&5 |
3918 |
(eval "$ac_link") 2>&5 |
3919 |
ac_status=$? |
3920 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3921 |
test $ac_status = 0; } |
3922 |
if { ac_try='./conftest$ac_cv_exeext' |
3923 |
{ { case "(($ac_try" in |
3924 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3925 |
*) ac_try_echo=$ac_try;; |
3926 |
esac |
3927 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3928 |
$as_echo "$ac_try_echo"; } >&5 |
3929 |
(eval "$ac_try") 2>&5 |
3930 |
ac_status=$? |
3931 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3932 |
test $ac_status = 0; }; }; then |
3933 |
cross_compiling=no |
3934 |
else |
3935 |
if test "$cross_compiling" = maybe; then |
3936 |
cross_compiling=yes |
3937 |
else |
3938 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3939 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3940 |
as_fn_error $? "cannot run C compiled programs. |
3941 |
If you meant to cross compile, use \`--host'. |
3942 |
See \`config.log' for more details" "$LINENO" 5; } |
3943 |
fi |
3944 |
fi |
3945 |
fi |
3946 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3947 |
$as_echo "$cross_compiling" >&6; } |
3948 |
|
3949 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3950 |
ac_clean_files=$ac_clean_files_save |
3951 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3952 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3953 |
if ${ac_cv_objext+:} false; then : |
3954 |
$as_echo_n "(cached) " >&6 |
3955 |
else |
3956 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3957 |
/* end confdefs.h. */ |
3958 |
|
3959 |
int |
3960 |
main () |
3961 |
{ |
3962 |
|
3963 |
; |
3964 |
return 0; |
3965 |
} |
3966 |
_ACEOF |
3967 |
rm -f conftest.o conftest.obj |
3968 |
if { { ac_try="$ac_compile" |
3969 |
case "(($ac_try" in |
3970 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3971 |
*) ac_try_echo=$ac_try;; |
3972 |
esac |
3973 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3974 |
$as_echo "$ac_try_echo"; } >&5 |
3975 |
(eval "$ac_compile") 2>&5 |
3976 |
ac_status=$? |
3977 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3978 |
test $ac_status = 0; }; then : |
3979 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3980 |
test -f "$ac_file" || continue; |
3981 |
case $ac_file in |
3982 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3983 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3984 |
break;; |
3985 |
esac |
3986 |
done |
3987 |
else |
3988 |
$as_echo "$as_me: failed program was:" >&5 |
3989 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3990 |
|
3991 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3992 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3993 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3994 |
See \`config.log' for more details" "$LINENO" 5; } |
3995 |
fi |
3996 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3997 |
fi |
3998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3999 |
$as_echo "$ac_cv_objext" >&6; } |
4000 |
OBJEXT=$ac_cv_objext |
4001 |
ac_objext=$OBJEXT |
4002 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4003 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4004 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
4005 |
$as_echo_n "(cached) " >&6 |
4006 |
else |
4007 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4008 |
/* end confdefs.h. */ |
4009 |
|
4010 |
int |
4011 |
main () |
4012 |
{ |
4013 |
#ifndef __GNUC__ |
4014 |
choke me |
4015 |
#endif |
4016 |
|
4017 |
; |
4018 |
return 0; |
4019 |
} |
4020 |
_ACEOF |
4021 |
if ac_fn_c_try_compile "$LINENO"; then : |
4022 |
ac_compiler_gnu=yes |
4023 |
else |
4024 |
ac_compiler_gnu=no |
4025 |
fi |
4026 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4027 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4028 |
|
4029 |
fi |
4030 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4031 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4032 |
if test $ac_compiler_gnu = yes; then |
4033 |
GCC=yes |
4034 |
else |
4035 |
GCC= |
4036 |
fi |
4037 |
ac_test_CFLAGS=${CFLAGS+set} |
4038 |
ac_save_CFLAGS=$CFLAGS |
4039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4040 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
4041 |
if ${ac_cv_prog_cc_g+:} false; then : |
4042 |
$as_echo_n "(cached) " >&6 |
4043 |
else |
4044 |
ac_save_c_werror_flag=$ac_c_werror_flag |
4045 |
ac_c_werror_flag=yes |
4046 |
ac_cv_prog_cc_g=no |
4047 |
CFLAGS="-g" |
4048 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4049 |
/* end confdefs.h. */ |
4050 |
|
4051 |
int |
4052 |
main () |
4053 |
{ |
4054 |
|
4055 |
; |
4056 |
return 0; |
4057 |
} |
4058 |
_ACEOF |
4059 |
if ac_fn_c_try_compile "$LINENO"; then : |
4060 |
ac_cv_prog_cc_g=yes |
4061 |
else |
4062 |
CFLAGS="" |
4063 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4064 |
/* end confdefs.h. */ |
4065 |
|
4066 |
int |
4067 |
main () |
4068 |
{ |
4069 |
|
4070 |
; |
4071 |
return 0; |
4072 |
} |
4073 |
_ACEOF |
4074 |
if ac_fn_c_try_compile "$LINENO"; then : |
4075 |
|
4076 |
else |
4077 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4078 |
CFLAGS="-g" |
4079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4080 |
/* end confdefs.h. */ |
4081 |
|
4082 |
int |
4083 |
main () |
4084 |
{ |
4085 |
|
4086 |
; |
4087 |
return 0; |
4088 |
} |
4089 |
_ACEOF |
4090 |
if ac_fn_c_try_compile "$LINENO"; then : |
4091 |
ac_cv_prog_cc_g=yes |
4092 |
fi |
4093 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4094 |
fi |
4095 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4096 |
fi |
4097 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4098 |
ac_c_werror_flag=$ac_save_c_werror_flag |
4099 |
fi |
4100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4101 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
4102 |
if test "$ac_test_CFLAGS" = set; then |
4103 |
CFLAGS=$ac_save_CFLAGS |
4104 |
elif test $ac_cv_prog_cc_g = yes; then |
4105 |
if test "$GCC" = yes; then |
4106 |
CFLAGS="-g -O2" |
4107 |
else |
4108 |
CFLAGS="-g" |
4109 |
fi |
4110 |
else |
4111 |
if test "$GCC" = yes; then |
4112 |
CFLAGS="-O2" |
4113 |
else |
4114 |
CFLAGS= |
4115 |
fi |
4116 |
fi |
4117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4118 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4119 |
if ${ac_cv_prog_cc_c89+:} false; then : |
4120 |
$as_echo_n "(cached) " >&6 |
4121 |
else |
4122 |
ac_cv_prog_cc_c89=no |
4123 |
ac_save_CC=$CC |
4124 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4125 |
/* end confdefs.h. */ |
4126 |
#include <stdarg.h> |
4127 |
#include <stdio.h> |
4128 |
struct stat; |
4129 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4130 |
struct buf { int x; }; |
4131 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4132 |
static char *e (p, i) |
4133 |
char **p; |
4134 |
int i; |
4135 |
{ |
4136 |
return p[i]; |
4137 |
} |
4138 |
static char *f (char * (*g) (char **, int), char **p, ...) |
4139 |
{ |
4140 |
char *s; |
4141 |
va_list v; |
4142 |
va_start (v,p); |
4143 |
s = g (p, va_arg (v,int)); |
4144 |
va_end (v); |
4145 |
return s; |
4146 |
} |
4147 |
|
4148 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4149 |
function prototypes and stuff, but not '\xHH' hex character constants. |
4150 |
These don't provoke an error unfortunately, instead are silently treated |
4151 |
as 'x'. The following induces an error, until -std is added to get |
4152 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4153 |
array size at least. It's necessary to write '\x00'==0 to get something |
4154 |
that's true only with -std. */ |
4155 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4156 |
|
4157 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4158 |
inside strings and character constants. */ |
4159 |
#define FOO(x) 'x' |
4160 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4161 |
|
4162 |
int test (int i, double x); |
4163 |
struct s1 {int (*f) (int a);}; |
4164 |
struct s2 {int (*f) (double a);}; |
4165 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4166 |
int argc; |
4167 |
char **argv; |
4168 |
int |
4169 |
main () |
4170 |
{ |
4171 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4172 |
; |
4173 |
return 0; |
4174 |
} |
4175 |
_ACEOF |
4176 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4177 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4178 |
do |
4179 |
CC="$ac_save_CC $ac_arg" |
4180 |
if ac_fn_c_try_compile "$LINENO"; then : |
4181 |
ac_cv_prog_cc_c89=$ac_arg |
4182 |
fi |
4183 |
rm -f core conftest.err conftest.$ac_objext |
4184 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4185 |
done |
4186 |
rm -f conftest.$ac_ext |
4187 |
CC=$ac_save_CC |
4188 |
|
4189 |
fi |
4190 |
# AC_CACHE_VAL |
4191 |
case "x$ac_cv_prog_cc_c89" in |
4192 |
x) |
4193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4194 |
$as_echo "none needed" >&6; } ;; |
4195 |
xno) |
4196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4197 |
$as_echo "unsupported" >&6; } ;; |
4198 |
*) |
4199 |
CC="$CC $ac_cv_prog_cc_c89" |
4200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4201 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4202 |
esac |
4203 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
4204 |
|
4205 |
fi |
4206 |
|
4207 |
ac_ext=c |
4208 |
ac_cpp='$CPP $CPPFLAGS' |
4209 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4210 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4211 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4212 |
|
4213 |
depcc="$CC" am_compiler_list= |
4214 |
|
4215 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4216 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
4217 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
4218 |
$as_echo_n "(cached) " >&6 |
4219 |
else |
4220 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4221 |
# We make a subdir and do the tests there. Otherwise we can end up |
4222 |
# making bogus files that we don't know about and never remove. For |
4223 |
# instance it was reported that on HP-UX the gcc test will end up |
4224 |
# making a dummy file named `D' -- because `-MD' means `put the output |
4225 |
# in D'. |
4226 |
mkdir conftest.dir |
4227 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
4228 |
# using a relative directory. |
4229 |
cp "$am_depcomp" conftest.dir |
4230 |
cd conftest.dir |
4231 |
# We will build objects and dependencies in a subdirectory because |
4232 |
# it helps to detect inapplicable dependency modes. For instance |
4233 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
4234 |
# side effect of compilation, but ICC will put the dependencies in |
4235 |
# the current directory while Tru64 will put them in the object |
4236 |
# directory. |
4237 |
mkdir sub |
4238 |
|
4239 |
am_cv_CC_dependencies_compiler_type=none |
4240 |
if test "$am_compiler_list" = ""; then |
4241 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4242 |
fi |
4243 |
for depmode in $am_compiler_list; do |
4244 |
# Setup a source with many dependencies, because some compilers |
4245 |
# like to wrap large dependency lists on column 80 (with \), and |
4246 |
# we should not choose a depcomp mode which is confused by this. |
4247 |
# |
4248 |
# We need to recreate these files for each test, as the compiler may |
4249 |
# overwrite some of them when testing with obscure command lines. |
4250 |
# This happens at least with the AIX C compiler. |
4251 |
: > sub/conftest.c |
4252 |
for i in 1 2 3 4 5 6; do |
4253 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4254 |
: > sub/conftst$i.h |
4255 |
done |
4256 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4257 |
|
4258 |
case $depmode in |
4259 |
nosideeffect) |
4260 |
# after this tag, mechanisms are not by side-effect, so they'll |
4261 |
# only be used when explicitly requested |
4262 |
if test "x$enable_dependency_tracking" = xyes; then |
4263 |
continue |
4264 |
else |
4265 |
break |
4266 |
fi |
4267 |
;; |
4268 |
none) break ;; |
4269 |
esac |
4270 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
4271 |
# mode. It turns out that the SunPro C++ compiler does not properly |
4272 |
# handle `-M -o', and we need to detect this. |
4273 |
if depmode=$depmode \ |
4274 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4275 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4276 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4277 |
>/dev/null 2>conftest.err && |
4278 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4279 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4280 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4281 |
# icc doesn't choke on unknown options, it will just issue warnings |
4282 |
# (even with -Werror). So we grep stderr for any message |
4283 |
# that says an option was ignored. |
4284 |
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
4285 |
am_cv_CC_dependencies_compiler_type=$depmode |
4286 |
break |
4287 |
fi |
4288 |
fi |
4289 |
done |
4290 |
|
4291 |
cd .. |
4292 |
rm -rf conftest.dir |
4293 |
else |
4294 |
am_cv_CC_dependencies_compiler_type=none |
4295 |
fi |
4296 |
|
4297 |
fi |
4298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4299 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
4300 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4301 |
|
4302 |
|
4303 |
|
4304 |
if |
4305 |
test "x$enable_dependency_tracking" != xno \ |
4306 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4307 |
am__fastdepCC_TRUE= |
4308 |
am__fastdepCC_FALSE='#' |
4309 |
else |
4310 |
am__fastdepCC_TRUE='#' |
4311 |
am__fastdepCC_FALSE= |
4312 |
fi |
4313 |
|
4314 |
|
4315 |
|
4316 |
# Check whether --with-gnu-ld was given. |
4317 |
if test "${with_gnu_ld+set}" = set; then : |
4318 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4319 |
else |
4320 |
with_gnu_ld=no |
4321 |
fi |
4322 |
|
4323 |
ac_prog=ld |
4324 |
if test "$GCC" = yes; then |
4325 |
# Check if gcc -print-prog-name=ld gives a path. |
4326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
4327 |
$as_echo_n "checking for ld used by GCC... " >&6; } |
4328 |
case $host in |
4329 |
*-*-mingw*) |
4330 |
# gcc leaves a trailing carriage return which upsets mingw |
4331 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4332 |
*) |
4333 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4334 |
esac |
4335 |
case $ac_prog in |
4336 |
# Accept absolute paths. |
4337 |
[\\/]* | [A-Za-z]:[\\/]*) |
4338 |
re_direlt='/[^/][^/]*/\.\./' |
4339 |
# Canonicalize the path of ld |
4340 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
4341 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4342 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
4343 |
done |
4344 |
test -z "$LD" && LD="$ac_prog" |
4345 |
;; |
4346 |
"") |
4347 |
# If it fails, then pretend we aren't using GCC. |
4348 |
ac_prog=ld |
4349 |
;; |
4350 |
*) |
4351 |
# If it is relative, then search for the first ld in PATH. |
4352 |
with_gnu_ld=unknown |
4353 |
;; |
4354 |
esac |
4355 |
elif test "$with_gnu_ld" = yes; then |
4356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4357 |
$as_echo_n "checking for GNU ld... " >&6; } |
4358 |
else |
4359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4360 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4361 |
fi |
4362 |
if ${acl_cv_path_LD+:} false; then : |
4363 |
$as_echo_n "(cached) " >&6 |
4364 |
else |
4365 |
if test -z "$LD"; then |
4366 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
4367 |
for ac_dir in $PATH; do |
4368 |
test -z "$ac_dir" && ac_dir=. |
4369 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4370 |
acl_cv_path_LD="$ac_dir/$ac_prog" |
4371 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4372 |
# but apparently some GNU ld's only accept -v. |
4373 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4374 |
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
4375 |
test "$with_gnu_ld" != no && break |
4376 |
else |
4377 |
test "$with_gnu_ld" != yes && break |
4378 |
fi |
4379 |
fi |
4380 |
done |
4381 |
IFS="$ac_save_ifs" |
4382 |
else |
4383 |
acl_cv_path_LD="$LD" # Let the user override the test with a path. |
4384 |
fi |
4385 |
fi |
4386 |
|
4387 |
LD="$acl_cv_path_LD" |
4388 |
if test -n "$LD"; then |
4389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4390 |
$as_echo "$LD" >&6; } |
4391 |
else |
4392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4393 |
$as_echo "no" >&6; } |
4394 |
fi |
4395 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4397 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4398 |
if ${acl_cv_prog_gnu_ld+:} false; then : |
4399 |
$as_echo_n "(cached) " >&6 |
4400 |
else |
4401 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
4402 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
4403 |
acl_cv_prog_gnu_ld=yes |
4404 |
else |
4405 |
acl_cv_prog_gnu_ld=no |
4406 |
fi |
4407 |
fi |
4408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
4409 |
$as_echo "$acl_cv_prog_gnu_ld" >&6; } |
4410 |
with_gnu_ld=$acl_cv_prog_gnu_ld |
4411 |
|
4412 |
|
4413 |
|
4414 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
4415 |
$as_echo_n "checking for shared library run path origin... " >&6; } |
4416 |
if ${acl_cv_rpath+:} false; then : |
4417 |
$as_echo_n "(cached) " >&6 |
4418 |
else |
4419 |
|
4420 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
4421 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
4422 |
. ./conftest.sh |
4423 |
rm -f ./conftest.sh |
4424 |
acl_cv_rpath=done |
4425 |
|
4426 |
fi |
4427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
4428 |
$as_echo "$acl_cv_rpath" >&6; } |
4429 |
wl="$acl_cv_wl" |
4430 |
libext="$acl_cv_libext" |
4431 |
shlibext="$acl_cv_shlibext" |
4432 |
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
4433 |
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
4434 |
hardcode_direct="$acl_cv_hardcode_direct" |
4435 |
hardcode_minus_L="$acl_cv_hardcode_minus_L" |
4436 |
sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
4437 |
sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
4438 |
# Check whether --enable-rpath was given. |
4439 |
if test "${enable_rpath+set}" = set; then : |
4440 |
enableval=$enable_rpath; : |
4441 |
else |
4442 |
enable_rpath=yes |
4443 |
fi |
4444 |
|
4445 |
|
4446 |
|
4447 |
|
4448 |
|
4449 |
|
4450 |
|
4451 |
|
4452 |
use_additional=yes |
4453 |
|
4454 |
acl_save_prefix="$prefix" |
4455 |
prefix="$acl_final_prefix" |
4456 |
acl_save_exec_prefix="$exec_prefix" |
4457 |
exec_prefix="$acl_final_exec_prefix" |
4458 |
|
4459 |
eval additional_includedir=\"$includedir\" |
4460 |
eval additional_libdir=\"$libdir\" |
4461 |
|
4462 |
exec_prefix="$acl_save_exec_prefix" |
4463 |
prefix="$acl_save_prefix" |
4464 |
|
4465 |
|
4466 |
# Check whether --with-libiconv-prefix was given. |
4467 |
if test "${with_libiconv_prefix+set}" = set; then : |
4468 |
withval=$with_libiconv_prefix; |
4469 |
if test "X$withval" = "Xno"; then |
4470 |
use_additional=no |
4471 |
else |
4472 |
if test "X$withval" = "X"; then |
4473 |
|
4474 |
acl_save_prefix="$prefix" |
4475 |
prefix="$acl_final_prefix" |
4476 |
acl_save_exec_prefix="$exec_prefix" |
4477 |
exec_prefix="$acl_final_exec_prefix" |
4478 |
|
4479 |
eval additional_includedir=\"$includedir\" |
4480 |
eval additional_libdir=\"$libdir\" |
4481 |
|
4482 |
exec_prefix="$acl_save_exec_prefix" |
4483 |
prefix="$acl_save_prefix" |
4484 |
|
4485 |
else |
4486 |
additional_includedir="$withval/include" |
4487 |
additional_libdir="$withval/lib" |
4488 |
fi |
4489 |
fi |
4490 |
|
4491 |
fi |
4492 |
|
4493 |
LIBICONV= |
4494 |
LTLIBICONV= |
4495 |
INCICONV= |
4496 |
rpathdirs= |
4497 |
ltrpathdirs= |
4498 |
names_already_handled= |
4499 |
names_next_round='iconv ' |
4500 |
while test -n "$names_next_round"; do |
4501 |
names_this_round="$names_next_round" |
4502 |
names_next_round= |
4503 |
for name in $names_this_round; do |
4504 |
already_handled= |
4505 |
for n in $names_already_handled; do |
4506 |
if test "$n" = "$name"; then |
4507 |
already_handled=yes |
4508 |
break |
4509 |
fi |
4510 |
done |
4511 |
if test -z "$already_handled"; then |
4512 |
names_already_handled="$names_already_handled $name" |
4513 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
4514 |
eval value=\"\$HAVE_LIB$uppername\" |
4515 |
if test -n "$value"; then |
4516 |
if test "$value" = yes; then |
4517 |
eval value=\"\$LIB$uppername\" |
4518 |
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
4519 |
eval value=\"\$LTLIB$uppername\" |
4520 |
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
4521 |
else |
4522 |
: |
4523 |
fi |
4524 |
else |
4525 |
found_dir= |
4526 |
found_la= |
4527 |
found_so= |
4528 |
found_a= |
4529 |
if test $use_additional = yes; then |
4530 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
4531 |
found_dir="$additional_libdir" |
4532 |
found_so="$additional_libdir/lib$name.$shlibext" |
4533 |
if test -f "$additional_libdir/lib$name.la"; then |
4534 |
found_la="$additional_libdir/lib$name.la" |
4535 |
fi |
4536 |
else |
4537 |
if test -f "$additional_libdir/lib$name.$libext"; then |
4538 |
found_dir="$additional_libdir" |
4539 |
found_a="$additional_libdir/lib$name.$libext" |
4540 |
if test -f "$additional_libdir/lib$name.la"; then |
4541 |
found_la="$additional_libdir/lib$name.la" |
4542 |
fi |
4543 |
fi |
4544 |
fi |
4545 |
fi |
4546 |
if test "X$found_dir" = "X"; then |
4547 |
for x in $LDFLAGS $LTLIBICONV; do |
4548 |
|
4549 |
acl_save_prefix="$prefix" |
4550 |
prefix="$acl_final_prefix" |
4551 |
acl_save_exec_prefix="$exec_prefix" |
4552 |
exec_prefix="$acl_final_exec_prefix" |
4553 |
eval x=\"$x\" |
4554 |
exec_prefix="$acl_save_exec_prefix" |
4555 |
prefix="$acl_save_prefix" |
4556 |
|
4557 |
case "$x" in |
4558 |
-L*) |
4559 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
4560 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
4561 |
found_dir="$dir" |
4562 |
found_so="$dir/lib$name.$shlibext" |
4563 |
if test -f "$dir/lib$name.la"; then |
4564 |
found_la="$dir/lib$name.la" |
4565 |
fi |
4566 |
else |
4567 |
if test -f "$dir/lib$name.$libext"; then |
4568 |
found_dir="$dir" |
4569 |
found_a="$dir/lib$name.$libext" |
4570 |
if test -f "$dir/lib$name.la"; then |
4571 |
found_la="$dir/lib$name.la" |
4572 |
fi |
4573 |
fi |
4574 |
fi |
4575 |
;; |
4576 |
esac |
4577 |
if test "X$found_dir" != "X"; then |
4578 |
break |
4579 |
fi |
4580 |
done |
4581 |
fi |
4582 |
if test "X$found_dir" != "X"; then |
4583 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
4584 |
if test "X$found_so" != "X"; then |
4585 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
4586 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4587 |
else |
4588 |
haveit= |
4589 |
for x in $ltrpathdirs; do |
4590 |
if test "X$x" = "X$found_dir"; then |
4591 |
haveit=yes |
4592 |
break |
4593 |
fi |
4594 |
done |
4595 |
if test -z "$haveit"; then |
4596 |
ltrpathdirs="$ltrpathdirs $found_dir" |
4597 |
fi |
4598 |
if test "$hardcode_direct" = yes; then |
4599 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4600 |
else |
4601 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
4602 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4603 |
haveit= |
4604 |
for x in $rpathdirs; do |
4605 |
if test "X$x" = "X$found_dir"; then |
4606 |
haveit=yes |
4607 |
break |
4608 |
fi |
4609 |
done |
4610 |
if test -z "$haveit"; then |
4611 |
rpathdirs="$rpathdirs $found_dir" |
4612 |
fi |
4613 |
else |
4614 |
haveit= |
4615 |
for x in $LDFLAGS $LIBICONV; do |
4616 |
|
4617 |
acl_save_prefix="$prefix" |
4618 |
prefix="$acl_final_prefix" |
4619 |
acl_save_exec_prefix="$exec_prefix" |
4620 |
exec_prefix="$acl_final_exec_prefix" |
4621 |
eval x=\"$x\" |
4622 |
exec_prefix="$acl_save_exec_prefix" |
4623 |
prefix="$acl_save_prefix" |
4624 |
|
4625 |
if test "X$x" = "X-L$found_dir"; then |
4626 |
haveit=yes |
4627 |
break |
4628 |
fi |
4629 |
done |
4630 |
if test -z "$haveit"; then |
4631 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
4632 |
fi |
4633 |
if test "$hardcode_minus_L" != no; then |
4634 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
4635 |
else |
4636 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
4637 |
fi |
4638 |
fi |
4639 |
fi |
4640 |
fi |
4641 |
else |
4642 |
if test "X$found_a" != "X"; then |
4643 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
4644 |
else |
4645 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
4646 |
fi |
4647 |
fi |
4648 |
additional_includedir= |
4649 |
case "$found_dir" in |
4650 |
*/lib | */lib/) |
4651 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
4652 |
additional_includedir="$basedir/include" |
4653 |
;; |
4654 |
esac |
4655 |
if test "X$additional_includedir" != "X"; then |
4656 |
if test "X$additional_includedir" != "X/usr/include"; then |
4657 |
haveit= |
4658 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
4659 |
if test -n "$GCC"; then |
4660 |
case $host_os in |
4661 |
linux*) haveit=yes;; |
4662 |
esac |
4663 |
fi |
4664 |
fi |
4665 |
if test -z "$haveit"; then |
4666 |
for x in $CPPFLAGS $INCICONV; do |
4667 |
|
4668 |
acl_save_prefix="$prefix" |
4669 |
prefix="$acl_final_prefix" |
4670 |
acl_save_exec_prefix="$exec_prefix" |
4671 |
exec_prefix="$acl_final_exec_prefix" |
4672 |
eval x=\"$x\" |
4673 |
exec_prefix="$acl_save_exec_prefix" |
4674 |
prefix="$acl_save_prefix" |
4675 |
|
4676 |
if test "X$x" = "X-I$additional_includedir"; then |
4677 |
haveit=yes |
4678 |
break |
4679 |
fi |
4680 |
done |
4681 |
if test -z "$haveit"; then |
4682 |
if test -d "$additional_includedir"; then |
4683 |
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
4684 |
fi |
4685 |
fi |
4686 |
fi |
4687 |
fi |
4688 |
fi |
4689 |
if test -n "$found_la"; then |
4690 |
save_libdir="$libdir" |
4691 |
case "$found_la" in |
4692 |
*/* | *\\*) . "$found_la" ;; |
4693 |
*) . "./$found_la" ;; |
4694 |
esac |
4695 |
libdir="$save_libdir" |
4696 |
for dep in $dependency_libs; do |
4697 |
case "$dep" in |
4698 |
-L*) |
4699 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
4700 |
if test "X$additional_libdir" != "X/usr/lib"; then |
4701 |
haveit= |
4702 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
4703 |
if test -n "$GCC"; then |
4704 |
case $host_os in |
4705 |
linux*) haveit=yes;; |
4706 |
esac |
4707 |
fi |
4708 |
fi |
4709 |
if test -z "$haveit"; then |
4710 |
haveit= |
4711 |
for x in $LDFLAGS $LIBICONV; do |
4712 |
|
4713 |
acl_save_prefix="$prefix" |
4714 |
prefix="$acl_final_prefix" |
4715 |
acl_save_exec_prefix="$exec_prefix" |
4716 |
exec_prefix="$acl_final_exec_prefix" |
4717 |
eval x=\"$x\" |
4718 |
exec_prefix="$acl_save_exec_prefix" |
4719 |
prefix="$acl_save_prefix" |
4720 |
|
4721 |
if test "X$x" = "X-L$additional_libdir"; then |
4722 |
haveit=yes |
4723 |
break |
4724 |
fi |
4725 |
done |
4726 |
if test -z "$haveit"; then |
4727 |
if test -d "$additional_libdir"; then |
4728 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
4729 |
fi |
4730 |
fi |
4731 |
haveit= |
4732 |
for x in $LDFLAGS $LTLIBICONV; do |
4733 |
|
4734 |
acl_save_prefix="$prefix" |
4735 |
prefix="$acl_final_prefix" |
4736 |
acl_save_exec_prefix="$exec_prefix" |
4737 |
exec_prefix="$acl_final_exec_prefix" |
4738 |
eval x=\"$x\" |
4739 |
exec_prefix="$acl_save_exec_prefix" |
4740 |
prefix="$acl_save_prefix" |
4741 |
|
4742 |
if test "X$x" = "X-L$additional_libdir"; then |
4743 |
haveit=yes |
4744 |
break |
4745 |
fi |
4746 |
done |
4747 |
if test -z "$haveit"; then |
4748 |
if test -d "$additional_libdir"; then |
4749 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
4750 |
fi |
4751 |
fi |
4752 |
fi |
4753 |
fi |
4754 |
;; |
4755 |
-R*) |
4756 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
4757 |
if test "$enable_rpath" != no; then |
4758 |
haveit= |
4759 |
for x in $rpathdirs; do |
4760 |
if test "X$x" = "X$dir"; then |
4761 |
haveit=yes |
4762 |
break |
4763 |
fi |
4764 |
done |
4765 |
if test -z "$haveit"; then |
4766 |
rpathdirs="$rpathdirs $dir" |
4767 |
fi |
4768 |
haveit= |
4769 |
for x in $ltrpathdirs; do |
4770 |
if test "X$x" = "X$dir"; then |
4771 |
haveit=yes |
4772 |
break |
4773 |
fi |
4774 |
done |
4775 |
if test -z "$haveit"; then |
4776 |
ltrpathdirs="$ltrpathdirs $dir" |
4777 |
fi |
4778 |
fi |
4779 |
;; |
4780 |
-l*) |
4781 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
4782 |
;; |
4783 |
*.la) |
4784 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
4785 |
;; |
4786 |
*) |
4787 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
4788 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
4789 |
;; |
4790 |
esac |
4791 |
done |
4792 |
fi |
4793 |
else |
4794 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
4795 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
4796 |
fi |
4797 |
fi |
4798 |
fi |
4799 |
done |
4800 |
done |
4801 |
if test "X$rpathdirs" != "X"; then |
4802 |
if test -n "$hardcode_libdir_separator"; then |
4803 |
alldirs= |
4804 |
for found_dir in $rpathdirs; do |
4805 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
4806 |
done |
4807 |
acl_save_libdir="$libdir" |
4808 |
libdir="$alldirs" |
4809 |
eval flag=\"$hardcode_libdir_flag_spec\" |
4810 |
libdir="$acl_save_libdir" |
4811 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
4812 |
else |
4813 |
for found_dir in $rpathdirs; do |
4814 |
acl_save_libdir="$libdir" |
4815 |
libdir="$found_dir" |
4816 |
eval flag=\"$hardcode_libdir_flag_spec\" |
4817 |
libdir="$acl_save_libdir" |
4818 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
4819 |
done |
4820 |
fi |
4821 |
fi |
4822 |
if test "X$ltrpathdirs" != "X"; then |
4823 |
for found_dir in $ltrpathdirs; do |
4824 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
4825 |
done |
4826 |
fi |
4827 |
|
4828 |
|
4829 |
|
4830 |
|
4831 |
|
4832 |
|
4833 |
|
4834 |
|
4835 |
|
4836 |
|
4837 |
|
4838 |
|
4839 |
|
4840 |
|
4841 |
|
4842 |
|
4843 |
|
4844 |
|
4845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
4846 |
$as_echo_n "checking whether NLS is requested... " >&6; } |
4847 |
# Check whether --enable-nls was given. |
4848 |
if test "${enable_nls+set}" = set; then : |
4849 |
enableval=$enable_nls; USE_NLS=$enableval |
4850 |
else |
4851 |
USE_NLS=yes |
4852 |
fi |
4853 |
|
4854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
4855 |
$as_echo "$USE_NLS" >&6; } |
4856 |
|
4857 |
|
4858 |
|
4859 |
LIBINTL= |
4860 |
LTLIBINTL= |
4861 |
POSUB= |
4862 |
|
4863 |
if test "$USE_NLS" = "yes"; then |
4864 |
gt_use_preinstalled_gnugettext=no |
4865 |
|
4866 |
|
4867 |
|
4868 |
|
4869 |
|
4870 |
|
4871 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
4872 |
$as_echo_n "checking for GNU gettext in libc... " >&6; } |
4873 |
if ${gt_cv_func_gnugettext1_libc+:} false; then : |
4874 |
$as_echo_n "(cached) " >&6 |
4875 |
else |
4876 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4877 |
/* end confdefs.h. */ |
4878 |
#include <libintl.h> |
4879 |
extern int _nl_msg_cat_cntr; |
4880 |
extern int *_nl_domain_bindings; |
4881 |
int |
4882 |
main () |
4883 |
{ |
4884 |
bindtextdomain ("", ""); |
4885 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
4886 |
; |
4887 |
return 0; |
4888 |
} |
4889 |
_ACEOF |
4890 |
if ac_fn_c_try_link "$LINENO"; then : |
4891 |
gt_cv_func_gnugettext1_libc=yes |
4892 |
else |
4893 |
gt_cv_func_gnugettext1_libc=no |
4894 |
fi |
4895 |
rm -f core conftest.err conftest.$ac_objext \ |
4896 |
conftest$ac_exeext conftest.$ac_ext |
4897 |
fi |
4898 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
4899 |
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
4900 |
|
4901 |
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
4902 |
|
4903 |
|
4904 |
|
4905 |
|
4906 |
|
4907 |
am_save_CPPFLAGS="$CPPFLAGS" |
4908 |
|
4909 |
for element in $INCICONV; do |
4910 |
haveit= |
4911 |
for x in $CPPFLAGS; do |
4912 |
|
4913 |
acl_save_prefix="$prefix" |
4914 |
prefix="$acl_final_prefix" |
4915 |
acl_save_exec_prefix="$exec_prefix" |
4916 |
exec_prefix="$acl_final_exec_prefix" |
4917 |
eval x=\"$x\" |
4918 |
exec_prefix="$acl_save_exec_prefix" |
4919 |
prefix="$acl_save_prefix" |
4920 |
|
4921 |
if test "X$x" = "X$element"; then |
4922 |
haveit=yes |
4923 |
break |
4924 |
fi |
4925 |
done |
4926 |
if test -z "$haveit"; then |
4927 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
4928 |
fi |
4929 |
done |
4930 |
|
4931 |
|
4932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
4933 |
$as_echo_n "checking for iconv... " >&6; } |
4934 |
if ${am_cv_func_iconv+:} false; then : |
4935 |
$as_echo_n "(cached) " >&6 |
4936 |
else |
4937 |
|
4938 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
4939 |
am_cv_lib_iconv=no |
4940 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4941 |
/* end confdefs.h. */ |
4942 |
#include <stdlib.h> |
4943 |
#include <iconv.h> |
4944 |
int |
4945 |
main () |
4946 |
{ |
4947 |
iconv_t cd = iconv_open("",""); |
4948 |
iconv(cd,NULL,NULL,NULL,NULL); |
4949 |
iconv_close(cd); |
4950 |
; |
4951 |
return 0; |
4952 |
} |
4953 |
_ACEOF |
4954 |
if ac_fn_c_try_link "$LINENO"; then : |
4955 |
am_cv_func_iconv=yes |
4956 |
fi |
4957 |
rm -f core conftest.err conftest.$ac_objext \ |
4958 |
conftest$ac_exeext conftest.$ac_ext |
4959 |
if test "$am_cv_func_iconv" != yes; then |
4960 |
am_save_LIBS="$LIBS" |
4961 |
LIBS="$LIBS $LIBICONV" |
4962 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4963 |
/* end confdefs.h. */ |
4964 |
#include <stdlib.h> |
4965 |
#include <iconv.h> |
4966 |
int |
4967 |
main () |
4968 |
{ |
4969 |
iconv_t cd = iconv_open("",""); |
4970 |
iconv(cd,NULL,NULL,NULL,NULL); |
4971 |
iconv_close(cd); |
4972 |
; |
4973 |
return 0; |
4974 |
} |
4975 |
_ACEOF |
4976 |
if ac_fn_c_try_link "$LINENO"; then : |
4977 |
am_cv_lib_iconv=yes |
4978 |
am_cv_func_iconv=yes |
4979 |
fi |
4980 |
rm -f core conftest.err conftest.$ac_objext \ |
4981 |
conftest$ac_exeext conftest.$ac_ext |
4982 |
LIBS="$am_save_LIBS" |
4983 |
fi |
4984 |
|
4985 |
fi |
4986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
4987 |
$as_echo "$am_cv_func_iconv" >&6; } |
4988 |
if test "$am_cv_func_iconv" = yes; then |
4989 |
|
4990 |
$as_echo "#define HAVE_ICONV 1" >>confdefs.h |
4991 |
|
4992 |
fi |
4993 |
if test "$am_cv_lib_iconv" = yes; then |
4994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
4995 |
$as_echo_n "checking how to link with libiconv... " >&6; } |
4996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
4997 |
$as_echo "$LIBICONV" >&6; } |
4998 |
else |
4999 |
CPPFLAGS="$am_save_CPPFLAGS" |
5000 |
LIBICONV= |
5001 |
LTLIBICONV= |
5002 |
fi |
5003 |
|
5004 |
|
5005 |
|
5006 |
|
5007 |
|
5008 |
|
5009 |
use_additional=yes |
5010 |
|
5011 |
acl_save_prefix="$prefix" |
5012 |
prefix="$acl_final_prefix" |
5013 |
acl_save_exec_prefix="$exec_prefix" |
5014 |
exec_prefix="$acl_final_exec_prefix" |
5015 |
|
5016 |
eval additional_includedir=\"$includedir\" |
5017 |
eval additional_libdir=\"$libdir\" |
5018 |
|
5019 |
exec_prefix="$acl_save_exec_prefix" |
5020 |
prefix="$acl_save_prefix" |
5021 |
|
5022 |
|
5023 |
# Check whether --with-libintl-prefix was given. |
5024 |
if test "${with_libintl_prefix+set}" = set; then : |
5025 |
withval=$with_libintl_prefix; |
5026 |
if test "X$withval" = "Xno"; then |
5027 |
use_additional=no |
5028 |
else |
5029 |
if test "X$withval" = "X"; then |
5030 |
|
5031 |
acl_save_prefix="$prefix" |
5032 |
prefix="$acl_final_prefix" |
5033 |
acl_save_exec_prefix="$exec_prefix" |
5034 |
exec_prefix="$acl_final_exec_prefix" |
5035 |
|
5036 |
eval additional_includedir=\"$includedir\" |
5037 |
eval additional_libdir=\"$libdir\" |
5038 |
|
5039 |
exec_prefix="$acl_save_exec_prefix" |
5040 |
prefix="$acl_save_prefix" |
5041 |
|
5042 |
else |
5043 |
additional_includedir="$withval/include" |
5044 |
additional_libdir="$withval/lib" |
5045 |
fi |
5046 |
fi |
5047 |
|
5048 |
fi |
5049 |
|
5050 |
LIBINTL= |
5051 |
LTLIBINTL= |
5052 |
INCINTL= |
5053 |
rpathdirs= |
5054 |
ltrpathdirs= |
5055 |
names_already_handled= |
5056 |
names_next_round='intl ' |
5057 |
while test -n "$names_next_round"; do |
5058 |
names_this_round="$names_next_round" |
5059 |
names_next_round= |
5060 |
for name in $names_this_round; do |
5061 |
already_handled= |
5062 |
for n in $names_already_handled; do |
5063 |
if test "$n" = "$name"; then |
5064 |
already_handled=yes |
5065 |
break |
5066 |
fi |
5067 |
done |
5068 |
if test -z "$already_handled"; then |
5069 |
names_already_handled="$names_already_handled $name" |
5070 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
5071 |
eval value=\"\$HAVE_LIB$uppername\" |
5072 |
if test -n "$value"; then |
5073 |
if test "$value" = yes; then |
5074 |
eval value=\"\$LIB$uppername\" |
5075 |
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
5076 |
eval value=\"\$LTLIB$uppername\" |
5077 |
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
5078 |
else |
5079 |
: |
5080 |
fi |
5081 |
else |
5082 |
found_dir= |
5083 |
found_la= |
5084 |
found_so= |
5085 |
found_a= |
5086 |
if test $use_additional = yes; then |
5087 |
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
5088 |
found_dir="$additional_libdir" |
5089 |
found_so="$additional_libdir/lib$name.$shlibext" |
5090 |
if test -f "$additional_libdir/lib$name.la"; then |
5091 |
found_la="$additional_libdir/lib$name.la" |
5092 |
fi |
5093 |
else |
5094 |
if test -f "$additional_libdir/lib$name.$libext"; then |
5095 |
found_dir="$additional_libdir" |
5096 |
found_a="$additional_libdir/lib$name.$libext" |
5097 |
if test -f "$additional_libdir/lib$name.la"; then |
5098 |
found_la="$additional_libdir/lib$name.la" |
5099 |
fi |
5100 |
fi |
5101 |
fi |
5102 |
fi |
5103 |
if test "X$found_dir" = "X"; then |
5104 |
for x in $LDFLAGS $LTLIBINTL; do |
5105 |
|
5106 |
acl_save_prefix="$prefix" |
5107 |
prefix="$acl_final_prefix" |
5108 |
acl_save_exec_prefix="$exec_prefix" |
5109 |
exec_prefix="$acl_final_exec_prefix" |
5110 |
eval x=\"$x\" |
5111 |
exec_prefix="$acl_save_exec_prefix" |
5112 |
prefix="$acl_save_prefix" |
5113 |
|
5114 |
case "$x" in |
5115 |
-L*) |
5116 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
5117 |
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
5118 |
found_dir="$dir" |
5119 |
found_so="$dir/lib$name.$shlibext" |
5120 |
if test -f "$dir/lib$name.la"; then |
5121 |
found_la="$dir/lib$name.la" |
5122 |
fi |
5123 |
else |
5124 |
if test -f "$dir/lib$name.$libext"; then |
5125 |
found_dir="$dir" |
5126 |
found_a="$dir/lib$name.$libext" |
5127 |
if test -f "$dir/lib$name.la"; then |
5128 |
found_la="$dir/lib$name.la" |
5129 |
fi |
5130 |
fi |
5131 |
fi |
5132 |
;; |
5133 |
esac |
5134 |
if test "X$found_dir" != "X"; then |
5135 |
break |
5136 |
fi |
5137 |
done |
5138 |
fi |
5139 |
if test "X$found_dir" != "X"; then |
5140 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
5141 |
if test "X$found_so" != "X"; then |
5142 |
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
5143 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
5144 |
else |
5145 |
haveit= |
5146 |
for x in $ltrpathdirs; do |
5147 |
if test "X$x" = "X$found_dir"; then |
5148 |
haveit=yes |
5149 |
break |
5150 |
fi |
5151 |
done |
5152 |
if test -z "$haveit"; then |
5153 |
ltrpathdirs="$ltrpathdirs $found_dir" |
5154 |
fi |
5155 |
if test "$hardcode_direct" = yes; then |
5156 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
5157 |
else |
5158 |
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
5159 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
5160 |
haveit= |
5161 |
for x in $rpathdirs; do |
5162 |
if test "X$x" = "X$found_dir"; then |
5163 |
haveit=yes |
5164 |
break |
5165 |
fi |
5166 |
done |
5167 |
if test -z "$haveit"; then |
5168 |
rpathdirs="$rpathdirs $found_dir" |
5169 |
fi |
5170 |
else |
5171 |
haveit= |
5172 |
for x in $LDFLAGS $LIBINTL; do |
5173 |
|
5174 |
acl_save_prefix="$prefix" |
5175 |
prefix="$acl_final_prefix" |
5176 |
acl_save_exec_prefix="$exec_prefix" |
5177 |
exec_prefix="$acl_final_exec_prefix" |
5178 |
eval x=\"$x\" |
5179 |
exec_prefix="$acl_save_exec_prefix" |
5180 |
prefix="$acl_save_prefix" |
5181 |
|
5182 |
if test "X$x" = "X-L$found_dir"; then |
5183 |
haveit=yes |
5184 |
break |
5185 |
fi |
5186 |
done |
5187 |
if test -z "$haveit"; then |
5188 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
5189 |
fi |
5190 |
if test "$hardcode_minus_L" != no; then |
5191 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
5192 |
else |
5193 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
5194 |
fi |
5195 |
fi |
5196 |
fi |
5197 |
fi |
5198 |
else |
5199 |
if test "X$found_a" != "X"; then |
5200 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
5201 |
else |
5202 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
5203 |
fi |
5204 |
fi |
5205 |
additional_includedir= |
5206 |
case "$found_dir" in |
5207 |
*/lib | */lib/) |
5208 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
5209 |
additional_includedir="$basedir/include" |
5210 |
;; |
5211 |
esac |
5212 |
if test "X$additional_includedir" != "X"; then |
5213 |
if test "X$additional_includedir" != "X/usr/include"; then |
5214 |
haveit= |
5215 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
5216 |
if test -n "$GCC"; then |
5217 |
case $host_os in |
5218 |
linux*) haveit=yes;; |
5219 |
esac |
5220 |
fi |
5221 |
fi |
5222 |
if test -z "$haveit"; then |
5223 |
for x in $CPPFLAGS $INCINTL; do |
5224 |
|
5225 |
acl_save_prefix="$prefix" |
5226 |
prefix="$acl_final_prefix" |
5227 |
acl_save_exec_prefix="$exec_prefix" |
5228 |
exec_prefix="$acl_final_exec_prefix" |
5229 |
eval x=\"$x\" |
5230 |
exec_prefix="$acl_save_exec_prefix" |
5231 |
prefix="$acl_save_prefix" |
5232 |
|
5233 |
if test "X$x" = "X-I$additional_includedir"; then |
5234 |
haveit=yes |
5235 |
break |
5236 |
fi |
5237 |
done |
5238 |
if test -z "$haveit"; then |
5239 |
if test -d "$additional_includedir"; then |
5240 |
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
5241 |
fi |
5242 |
fi |
5243 |
fi |
5244 |
fi |
5245 |
fi |
5246 |
if test -n "$found_la"; then |
5247 |
save_libdir="$libdir" |
5248 |
case "$found_la" in |
5249 |
*/* | *\\*) . "$found_la" ;; |
5250 |
*) . "./$found_la" ;; |
5251 |
esac |
5252 |
libdir="$save_libdir" |
5253 |
for dep in $dependency_libs; do |
5254 |
case "$dep" in |
5255 |
-L*) |
5256 |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
5257 |
if test "X$additional_libdir" != "X/usr/lib"; then |
5258 |
haveit= |
5259 |
if test "X$additional_libdir" = "X/usr/local/lib"; then |
5260 |
if test -n "$GCC"; then |
5261 |
case $host_os in |
5262 |
linux*) haveit=yes;; |
5263 |
esac |
5264 |
fi |
5265 |
fi |
5266 |
if test -z "$haveit"; then |
5267 |
haveit= |
5268 |
for x in $LDFLAGS $LIBINTL; do |
5269 |
|
5270 |
acl_save_prefix="$prefix" |
5271 |
prefix="$acl_final_prefix" |
5272 |
acl_save_exec_prefix="$exec_prefix" |
5273 |
exec_prefix="$acl_final_exec_prefix" |
5274 |
eval x=\"$x\" |
5275 |
exec_prefix="$acl_save_exec_prefix" |
5276 |
prefix="$acl_save_prefix" |
5277 |
|
5278 |
if test "X$x" = "X-L$additional_libdir"; then |
5279 |
haveit=yes |
5280 |
break |
5281 |
fi |
5282 |
done |
5283 |
if test -z "$haveit"; then |
5284 |
if test -d "$additional_libdir"; then |
5285 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
5286 |
fi |
5287 |
fi |
5288 |
haveit= |
5289 |
for x in $LDFLAGS $LTLIBINTL; do |
5290 |
|
5291 |
acl_save_prefix="$prefix" |
5292 |
prefix="$acl_final_prefix" |
5293 |
acl_save_exec_prefix="$exec_prefix" |
5294 |
exec_prefix="$acl_final_exec_prefix" |
5295 |
eval x=\"$x\" |
5296 |
exec_prefix="$acl_save_exec_prefix" |
5297 |
prefix="$acl_save_prefix" |
5298 |
|
5299 |
if test "X$x" = "X-L$additional_libdir"; then |
5300 |
haveit=yes |
5301 |
break |
5302 |
fi |
5303 |
done |
5304 |
if test -z "$haveit"; then |
5305 |
if test -d "$additional_libdir"; then |
5306 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
5307 |
fi |
5308 |
fi |
5309 |
fi |
5310 |
fi |
5311 |
;; |
5312 |
-R*) |
5313 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
5314 |
if test "$enable_rpath" != no; then |
5315 |
haveit= |
5316 |
for x in $rpathdirs; do |
5317 |
if test "X$x" = "X$dir"; then |
5318 |
haveit=yes |
5319 |
break |
5320 |
fi |
5321 |
done |
5322 |
if test -z "$haveit"; then |
5323 |
rpathdirs="$rpathdirs $dir" |
5324 |
fi |
5325 |
haveit= |
5326 |
for x in $ltrpathdirs; do |
5327 |
if test "X$x" = "X$dir"; then |
5328 |
haveit=yes |
5329 |
break |
5330 |
fi |
5331 |
done |
5332 |
if test -z "$haveit"; then |
5333 |
ltrpathdirs="$ltrpathdirs $dir" |
5334 |
fi |
5335 |
fi |
5336 |
;; |
5337 |
-l*) |
5338 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
5339 |
;; |
5340 |
*.la) |
5341 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
5342 |
;; |
5343 |
*) |
5344 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
5345 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
5346 |
;; |
5347 |
esac |
5348 |
done |
5349 |
fi |
5350 |
else |
5351 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
5352 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
5353 |
fi |
5354 |
fi |
5355 |
fi |
5356 |
done |
5357 |
done |
5358 |
if test "X$rpathdirs" != "X"; then |
5359 |
if test -n "$hardcode_libdir_separator"; then |
5360 |
alldirs= |
5361 |
for found_dir in $rpathdirs; do |
5362 |
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
5363 |
done |
5364 |
acl_save_libdir="$libdir" |
5365 |
libdir="$alldirs" |
5366 |
eval flag=\"$hardcode_libdir_flag_spec\" |
5367 |
libdir="$acl_save_libdir" |
5368 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
5369 |
else |
5370 |
for found_dir in $rpathdirs; do |
5371 |
acl_save_libdir="$libdir" |
5372 |
libdir="$found_dir" |
5373 |
eval flag=\"$hardcode_libdir_flag_spec\" |
5374 |
libdir="$acl_save_libdir" |
5375 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
5376 |
done |
5377 |
fi |
5378 |
fi |
5379 |
if test "X$ltrpathdirs" != "X"; then |
5380 |
for found_dir in $ltrpathdirs; do |
5381 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
5382 |
done |
5383 |
fi |
5384 |
|
5385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
5386 |
$as_echo_n "checking for GNU gettext in libintl... " >&6; } |
5387 |
if ${gt_cv_func_gnugettext1_libintl+:} false; then : |
5388 |
$as_echo_n "(cached) " >&6 |
5389 |
else |
5390 |
gt_save_CPPFLAGS="$CPPFLAGS" |
5391 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
5392 |
gt_save_LIBS="$LIBS" |
5393 |
LIBS="$LIBS $LIBINTL" |
5394 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5395 |
/* end confdefs.h. */ |
5396 |
#include <libintl.h> |
5397 |
extern int _nl_msg_cat_cntr; |
5398 |
extern |
5399 |
#ifdef __cplusplus |
5400 |
"C" |
5401 |
#endif |
5402 |
const char *_nl_expand_alias (); |
5403 |
int |
5404 |
main () |
5405 |
{ |
5406 |
bindtextdomain ("", ""); |
5407 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
5408 |
; |
5409 |
return 0; |
5410 |
} |
5411 |
_ACEOF |
5412 |
if ac_fn_c_try_link "$LINENO"; then : |
5413 |
gt_cv_func_gnugettext1_libintl=yes |
5414 |
else |
5415 |
gt_cv_func_gnugettext1_libintl=no |
5416 |
fi |
5417 |
rm -f core conftest.err conftest.$ac_objext \ |
5418 |
conftest$ac_exeext conftest.$ac_ext |
5419 |
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
5420 |
LIBS="$LIBS $LIBICONV" |
5421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5422 |
/* end confdefs.h. */ |
5423 |
#include <libintl.h> |
5424 |
extern int _nl_msg_cat_cntr; |
5425 |
extern |
5426 |
#ifdef __cplusplus |
5427 |
"C" |
5428 |
#endif |
5429 |
const char *_nl_expand_alias (); |
5430 |
int |
5431 |
main () |
5432 |
{ |
5433 |
bindtextdomain ("", ""); |
5434 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
5435 |
; |
5436 |
return 0; |
5437 |
} |
5438 |
_ACEOF |
5439 |
if ac_fn_c_try_link "$LINENO"; then : |
5440 |
LIBINTL="$LIBINTL $LIBICONV" |
5441 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
5442 |
gt_cv_func_gnugettext1_libintl=yes |
5443 |
|
5444 |
fi |
5445 |
rm -f core conftest.err conftest.$ac_objext \ |
5446 |
conftest$ac_exeext conftest.$ac_ext |
5447 |
fi |
5448 |
CPPFLAGS="$gt_save_CPPFLAGS" |
5449 |
LIBS="$gt_save_LIBS" |
5450 |
fi |
5451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
5452 |
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
5453 |
fi |
5454 |
|
5455 |
if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
5456 |
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
5457 |
&& test "$PACKAGE" != gettext; }; then |
5458 |
gt_use_preinstalled_gnugettext=yes |
5459 |
else |
5460 |
LIBINTL= |
5461 |
LTLIBINTL= |
5462 |
INCINTL= |
5463 |
fi |
5464 |
|
5465 |
|
5466 |
|
5467 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
5468 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
5469 |
|
5470 |
$as_echo "#define ENABLE_NLS 1" >>confdefs.h |
5471 |
|
5472 |
else |
5473 |
USE_NLS=no |
5474 |
fi |
5475 |
fi |
5476 |
|
5477 |
if test "$USE_NLS" = "yes"; then |
5478 |
|
5479 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
5480 |
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
5481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
5482 |
$as_echo_n "checking how to link with libintl... " >&6; } |
5483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
5484 |
$as_echo "$LIBINTL" >&6; } |
5485 |
|
5486 |
for element in $INCINTL; do |
5487 |
haveit= |
5488 |
for x in $CPPFLAGS; do |
5489 |
|
5490 |
acl_save_prefix="$prefix" |
5491 |
prefix="$acl_final_prefix" |
5492 |
acl_save_exec_prefix="$exec_prefix" |
5493 |
exec_prefix="$acl_final_exec_prefix" |
5494 |
eval x=\"$x\" |
5495 |
exec_prefix="$acl_save_exec_prefix" |
5496 |
prefix="$acl_save_prefix" |
5497 |
|
5498 |
if test "X$x" = "X$element"; then |
5499 |
haveit=yes |
5500 |
break |
5501 |
fi |
5502 |
done |
5503 |
if test -z "$haveit"; then |
5504 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
5505 |
fi |
5506 |
done |
5507 |
|
5508 |
fi |
5509 |
|
5510 |
|
5511 |
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
5512 |
|
5513 |
|
5514 |
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
5515 |
|
5516 |
fi |
5517 |
|
5518 |
POSUB=po |
5519 |
fi |
5520 |
|
5521 |
|
5522 |
|
5523 |
INTLLIBS="$LIBINTL" |
5524 |
|
5525 |
|
5526 |
|
5527 |
|
5528 |
|
5529 |
|
5530 |
|
5531 |
|
5532 |
# Enable GNU extensions. |
5533 |
# Define this here, not in acconfig's @TOP@ section, since definitions |
5534 |
# in the latter don't make it into the configure-time tests. |
5535 |
|
5536 |
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
5537 |
|
5538 |
|
5539 |
# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs |
5540 |
|
5541 |
ALL_LINGUAS="" |
5542 |
|
5543 |
ac_ext=c |
5544 |
ac_cpp='$CPP $CPPFLAGS' |
5545 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5546 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5547 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5549 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
5550 |
# On Suns, sometimes $CPP names a directory. |
5551 |
if test -n "$CPP" && test -d "$CPP"; then |
5552 |
CPP= |
5553 |
fi |
5554 |
if test -z "$CPP"; then |
5555 |
if ${ac_cv_prog_CPP+:} false; then : |
5556 |
$as_echo_n "(cached) " >&6 |
5557 |
else |
5558 |
# Double quotes because CPP needs to be expanded |
5559 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
5560 |
do |
5561 |
ac_preproc_ok=false |
5562 |
for ac_c_preproc_warn_flag in '' yes |
5563 |
do |
5564 |
# Use a header file that comes with gcc, so configuring glibc |
5565 |
# with a fresh cross-compiler works. |
5566 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5567 |
# <limits.h> exists even on freestanding compilers. |
5568 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5569 |
# not just through cpp. "Syntax error" is here to catch this case. |
5570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5571 |
/* end confdefs.h. */ |
5572 |
#ifdef __STDC__ |
5573 |
# include <limits.h> |
5574 |
#else |
5575 |
# include <assert.h> |
5576 |
#endif |
5577 |
Syntax error |
5578 |
_ACEOF |
5579 |
if ac_fn_c_try_cpp "$LINENO"; then : |
5580 |
|
5581 |
else |
5582 |
# Broken: fails on valid input. |
5583 |
continue |
5584 |
fi |
5585 |
rm -f conftest.err conftest.i conftest.$ac_ext |
5586 |
|
5587 |
# OK, works on sane cases. Now check whether nonexistent headers |
5588 |
# can be detected and how. |
5589 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5590 |
/* end confdefs.h. */ |
5591 |
#include <ac_nonexistent.h> |
5592 |
_ACEOF |
5593 |
if ac_fn_c_try_cpp "$LINENO"; then : |
5594 |
# Broken: success on invalid input. |
5595 |
continue |
5596 |
else |
5597 |
# Passes both tests. |
5598 |
ac_preproc_ok=: |
5599 |
break |
5600 |
fi |
5601 |
rm -f conftest.err conftest.i conftest.$ac_ext |
5602 |
|
5603 |
done |
5604 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5605 |
rm -f conftest.i conftest.err conftest.$ac_ext |
5606 |
if $ac_preproc_ok; then : |
5607 |
break |
5608 |
fi |
5609 |
|
5610 |
done |
5611 |
ac_cv_prog_CPP=$CPP |
5612 |
|
5613 |
fi |
5614 |
CPP=$ac_cv_prog_CPP |
5615 |
else |
5616 |
ac_cv_prog_CPP=$CPP |
5617 |
fi |
5618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5619 |
$as_echo "$CPP" >&6; } |
5620 |
ac_preproc_ok=false |
5621 |
for ac_c_preproc_warn_flag in '' yes |
5622 |
do |
5623 |
# Use a header file that comes with gcc, so configuring glibc |
5624 |
# with a fresh cross-compiler works. |
5625 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5626 |
# <limits.h> exists even on freestanding compilers. |
5627 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5628 |
# not just through cpp. "Syntax error" is here to catch this case. |
5629 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5630 |
/* end confdefs.h. */ |
5631 |
#ifdef __STDC__ |
5632 |
# include <limits.h> |
5633 |
#else |
5634 |
# include <assert.h> |
5635 |
#endif |
5636 |
Syntax error |
5637 |
_ACEOF |
5638 |
if ac_fn_c_try_cpp "$LINENO"; then : |
5639 |
|
5640 |
else |
5641 |
# Broken: fails on valid input. |
5642 |
continue |
5643 |
fi |
5644 |
rm -f conftest.err conftest.i conftest.$ac_ext |
5645 |
|
5646 |
# OK, works on sane cases. Now check whether nonexistent headers |
5647 |
# can be detected and how. |
5648 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5649 |
/* end confdefs.h. */ |
5650 |
#include <ac_nonexistent.h> |
5651 |
_ACEOF |
5652 |
if ac_fn_c_try_cpp "$LINENO"; then : |
5653 |
# Broken: success on invalid input. |
5654 |
continue |
5655 |
else |
5656 |
# Passes both tests. |
5657 |
ac_preproc_ok=: |
5658 |
break |
5659 |
fi |
5660 |
rm -f conftest.err conftest.i conftest.$ac_ext |
5661 |
|
5662 |
done |
5663 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5664 |
rm -f conftest.i conftest.err conftest.$ac_ext |
5665 |
if $ac_preproc_ok; then : |
5666 |
|
5667 |
else |
5668 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5669 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5670 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5671 |
See \`config.log' for more details" "$LINENO" 5; } |
5672 |
fi |
5673 |
|
5674 |
ac_ext=c |
5675 |
ac_cpp='$CPP $CPPFLAGS' |
5676 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5677 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5678 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5679 |
|
5680 |
ac_ext=cpp |
5681 |
ac_cpp='$CXXCPP $CPPFLAGS' |
5682 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5683 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5684 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5685 |
if test -z "$CXX"; then |
5686 |
if test -n "$CCC"; then |
5687 |
CXX=$CCC |
5688 |
else |
5689 |
if test -n "$ac_tool_prefix"; then |
5690 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5691 |
do |
5692 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5693 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5695 |
$as_echo_n "checking for $ac_word... " >&6; } |
5696 |
if ${ac_cv_prog_CXX+:} false; then : |
5697 |
$as_echo_n "(cached) " >&6 |
5698 |
else |
5699 |
if test -n "$CXX"; then |
5700 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5701 |
else |
5702 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5703 |
for as_dir in $PATH |
5704 |
do |
5705 |
IFS=$as_save_IFS |
5706 |
test -z "$as_dir" && as_dir=. |
5707 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5708 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5709 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5710 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5711 |
break 2 |
5712 |
fi |
5713 |
done |
5714 |
done |
5715 |
IFS=$as_save_IFS |
5716 |
|
5717 |
fi |
5718 |
fi |
5719 |
CXX=$ac_cv_prog_CXX |
5720 |
if test -n "$CXX"; then |
5721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5722 |
$as_echo "$CXX" >&6; } |
5723 |
else |
5724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5725 |
$as_echo "no" >&6; } |
5726 |
fi |
5727 |
|
5728 |
|
5729 |
test -n "$CXX" && break |
5730 |
done |
5731 |
fi |
5732 |
if test -z "$CXX"; then |
5733 |
ac_ct_CXX=$CXX |
5734 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5735 |
do |
5736 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5737 |
set dummy $ac_prog; ac_word=$2 |
5738 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5739 |
$as_echo_n "checking for $ac_word... " >&6; } |
5740 |
if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5741 |
$as_echo_n "(cached) " >&6 |
5742 |
else |
5743 |
if test -n "$ac_ct_CXX"; then |
5744 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5745 |
else |
5746 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5747 |
for as_dir in $PATH |
5748 |
do |
5749 |
IFS=$as_save_IFS |
5750 |
test -z "$as_dir" && as_dir=. |
5751 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5752 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5753 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
5754 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5755 |
break 2 |
5756 |
fi |
5757 |
done |
5758 |
done |
5759 |
IFS=$as_save_IFS |
5760 |
|
5761 |
fi |
5762 |
fi |
5763 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5764 |
if test -n "$ac_ct_CXX"; then |
5765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5766 |
$as_echo "$ac_ct_CXX" >&6; } |
5767 |
else |
5768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5769 |
$as_echo "no" >&6; } |
5770 |
fi |
5771 |
|
5772 |
|
5773 |
test -n "$ac_ct_CXX" && break |
5774 |
done |
5775 |
|
5776 |
if test "x$ac_ct_CXX" = x; then |
5777 |
CXX="g++" |
5778 |
else |
5779 |
case $cross_compiling:$ac_tool_warned in |
5780 |
yes:) |
5781 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5782 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5783 |
ac_tool_warned=yes ;; |
5784 |
esac |
5785 |
CXX=$ac_ct_CXX |
5786 |
fi |
5787 |
fi |
5788 |
|
5789 |
fi |
5790 |
fi |
5791 |
# Provide some information about the compiler. |
5792 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5793 |
set X $ac_compile |
5794 |
ac_compiler=$2 |
5795 |
for ac_option in --version -v -V -qversion; do |
5796 |
{ { ac_try="$ac_compiler $ac_option >&5" |
5797 |
case "(($ac_try" in |
5798 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5799 |
*) ac_try_echo=$ac_try;; |
5800 |
esac |
5801 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5802 |
$as_echo "$ac_try_echo"; } >&5 |
5803 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5804 |
ac_status=$? |
5805 |
if test -s conftest.err; then |
5806 |
sed '10a\ |
5807 |
... rest of stderr output deleted ... |
5808 |
10q' conftest.err >conftest.er1 |
5809 |
cat conftest.er1 >&5 |
5810 |
fi |
5811 |
rm -f conftest.er1 conftest.err |
5812 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5813 |
test $ac_status = 0; } |
5814 |
done |
5815 |
|
5816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5817 |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
5818 |
if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5819 |
$as_echo_n "(cached) " >&6 |
5820 |
else |
5821 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5822 |
/* end confdefs.h. */ |
5823 |
|
5824 |
int |
5825 |
main () |
5826 |
{ |
5827 |
#ifndef __GNUC__ |
5828 |
choke me |
5829 |
#endif |
5830 |
|
5831 |
; |
5832 |
return 0; |
5833 |
} |
5834 |
_ACEOF |
5835 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5836 |
ac_compiler_gnu=yes |
5837 |
else |
5838 |
ac_compiler_gnu=no |
5839 |
fi |
5840 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5841 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5842 |
|
5843 |
fi |
5844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5845 |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
5846 |
if test $ac_compiler_gnu = yes; then |
5847 |
GXX=yes |
5848 |
else |
5849 |
GXX= |
5850 |
fi |
5851 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
5852 |
ac_save_CXXFLAGS=$CXXFLAGS |
5853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5854 |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
5855 |
if ${ac_cv_prog_cxx_g+:} false; then : |
5856 |
$as_echo_n "(cached) " >&6 |
5857 |
else |
5858 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5859 |
ac_cxx_werror_flag=yes |
5860 |
ac_cv_prog_cxx_g=no |
5861 |
CXXFLAGS="-g" |
5862 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5863 |
/* end confdefs.h. */ |
5864 |
|
5865 |
int |
5866 |
main () |
5867 |
{ |
5868 |
|
5869 |
; |
5870 |
return 0; |
5871 |
} |
5872 |
_ACEOF |
5873 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5874 |
ac_cv_prog_cxx_g=yes |
5875 |
else |
5876 |
CXXFLAGS="" |
5877 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5878 |
/* end confdefs.h. */ |
5879 |
|
5880 |
int |
5881 |
main () |
5882 |
{ |
5883 |
|
5884 |
; |
5885 |
return 0; |
5886 |
} |
5887 |
_ACEOF |
5888 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5889 |
|
5890 |
else |
5891 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5892 |
CXXFLAGS="-g" |
5893 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5894 |
/* end confdefs.h. */ |
5895 |
|
5896 |
int |
5897 |
main () |
5898 |
{ |
5899 |
|
5900 |
; |
5901 |
return 0; |
5902 |
} |
5903 |
_ACEOF |
5904 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
5905 |
ac_cv_prog_cxx_g=yes |
5906 |
fi |
5907 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5908 |
fi |
5909 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5910 |
fi |
5911 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5912 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5913 |
fi |
5914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5915 |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
5916 |
if test "$ac_test_CXXFLAGS" = set; then |
5917 |
CXXFLAGS=$ac_save_CXXFLAGS |
5918 |
elif test $ac_cv_prog_cxx_g = yes; then |
5919 |
if test "$GXX" = yes; then |
5920 |
CXXFLAGS="-g -O2" |
5921 |
else |
5922 |
CXXFLAGS="-g" |
5923 |
fi |
5924 |
else |
5925 |
if test "$GXX" = yes; then |
5926 |
CXXFLAGS="-O2" |
5927 |
else |
5928 |
CXXFLAGS= |
5929 |
fi |
5930 |
fi |
5931 |
ac_ext=c |
5932 |
ac_cpp='$CPP $CPPFLAGS' |
5933 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5934 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5935 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5936 |
|
5937 |
depcc="$CXX" am_compiler_list= |
5938 |
|
5939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5940 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
5941 |
if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
5942 |
$as_echo_n "(cached) " >&6 |
5943 |
else |
5944 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5945 |
# We make a subdir and do the tests there. Otherwise we can end up |
5946 |
# making bogus files that we don't know about and never remove. For |
5947 |
# instance it was reported that on HP-UX the gcc test will end up |
5948 |
# making a dummy file named `D' -- because `-MD' means `put the output |
5949 |
# in D'. |
5950 |
mkdir conftest.dir |
5951 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
5952 |
# using a relative directory. |
5953 |
cp "$am_depcomp" conftest.dir |
5954 |
cd conftest.dir |
5955 |
# We will build objects and dependencies in a subdirectory because |
5956 |
# it helps to detect inapplicable dependency modes. For instance |
5957 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
5958 |
# side effect of compilation, but ICC will put the dependencies in |
5959 |
# the current directory while Tru64 will put them in the object |
5960 |
# directory. |
5961 |
mkdir sub |
5962 |
|
5963 |
am_cv_CXX_dependencies_compiler_type=none |
5964 |
if test "$am_compiler_list" = ""; then |
5965 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5966 |
fi |
5967 |
for depmode in $am_compiler_list; do |
5968 |
# Setup a source with many dependencies, because some compilers |
5969 |
# like to wrap large dependency lists on column 80 (with \), and |
5970 |
# we should not choose a depcomp mode which is confused by this. |
5971 |
# |
5972 |
# We need to recreate these files for each test, as the compiler may |
5973 |
# overwrite some of them when testing with obscure command lines. |
5974 |
# This happens at least with the AIX C compiler. |
5975 |
: > sub/conftest.c |
5976 |
for i in 1 2 3 4 5 6; do |
5977 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5978 |
: > sub/conftst$i.h |
5979 |
done |
5980 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5981 |
|
5982 |
case $depmode in |
5983 |
nosideeffect) |
5984 |
# after this tag, mechanisms are not by side-effect, so they'll |
5985 |
# only be used when explicitly requested |
5986 |
if test "x$enable_dependency_tracking" = xyes; then |
5987 |
continue |
5988 |
else |
5989 |
break |
5990 |
fi |
5991 |
;; |
5992 |
none) break ;; |
5993 |
esac |
5994 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
5995 |
# mode. It turns out that the SunPro C++ compiler does not properly |
5996 |
# handle `-M -o', and we need to detect this. |
5997 |
if depmode=$depmode \ |
5998 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5999 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
6000 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
6001 |
>/dev/null 2>conftest.err && |
6002 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
6003 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
6004 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
6005 |
# icc doesn't choke on unknown options, it will just issue warnings |
6006 |
# (even with -Werror). So we grep stderr for any message |
6007 |
# that says an option was ignored. |
6008 |
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
6009 |
am_cv_CXX_dependencies_compiler_type=$depmode |
6010 |
break |
6011 |
fi |
6012 |
fi |
6013 |
done |
6014 |
|
6015 |
cd .. |
6016 |
rm -rf conftest.dir |
6017 |
else |
6018 |
am_cv_CXX_dependencies_compiler_type=none |
6019 |
fi |
6020 |
|
6021 |
fi |
6022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
6023 |
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
6024 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
6025 |
|
6026 |
|
6027 |
|
6028 |
if |
6029 |
test "x$enable_dependency_tracking" != xno \ |
6030 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
6031 |
am__fastdepCXX_TRUE= |
6032 |
am__fastdepCXX_FALSE='#' |
6033 |
else |
6034 |
am__fastdepCXX_TRUE='#' |
6035 |
am__fastdepCXX_FALSE= |
6036 |
fi |
6037 |
|
6038 |
|
6039 |
|
6040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
6041 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
6042 |
if ${ac_cv_path_GREP+:} false; then : |
6043 |
$as_echo_n "(cached) " >&6 |
6044 |
else |
6045 |
if test -z "$GREP"; then |
6046 |
ac_path_GREP_found=false |
6047 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6048 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6049 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
6050 |
do |
6051 |
IFS=$as_save_IFS |
6052 |
test -z "$as_dir" && as_dir=. |
6053 |
for ac_prog in grep ggrep; do |
6054 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6055 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
6056 |
as_fn_executable_p "$ac_path_GREP" || continue |
6057 |
# Check for GNU ac_path_GREP and select it if it is found. |
6058 |
# Check for GNU $ac_path_GREP |
6059 |
case `"$ac_path_GREP" --version 2>&1` in |
6060 |
*GNU*) |
6061 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
6062 |
*) |
6063 |
ac_count=0 |
6064 |
$as_echo_n 0123456789 >"conftest.in" |
6065 |
while : |
6066 |
do |
6067 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
6068 |
mv "conftest.tmp" "conftest.in" |
6069 |
cp "conftest.in" "conftest.nl" |
6070 |
$as_echo 'GREP' >> "conftest.nl" |
6071 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
6072 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
6073 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
6074 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
6075 |
# Best one so far, save it but keep looking for a better one |
6076 |
ac_cv_path_GREP="$ac_path_GREP" |
6077 |
ac_path_GREP_max=$ac_count |
6078 |
fi |
6079 |
# 10*(2^10) chars as input seems more than enough |
6080 |
test $ac_count -gt 10 && break |
6081 |
done |
6082 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6083 |
esac |
6084 |
|
6085 |
$ac_path_GREP_found && break 3 |
6086 |
done |
6087 |
done |
6088 |
done |
6089 |
IFS=$as_save_IFS |
6090 |
if test -z "$ac_cv_path_GREP"; then |
6091 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6092 |
fi |
6093 |
else |
6094 |
ac_cv_path_GREP=$GREP |
6095 |
fi |
6096 |
|
6097 |
fi |
6098 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
6099 |
$as_echo "$ac_cv_path_GREP" >&6; } |
6100 |
GREP="$ac_cv_path_GREP" |
6101 |
|
6102 |
|
6103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
6104 |
$as_echo_n "checking for egrep... " >&6; } |
6105 |
if ${ac_cv_path_EGREP+:} false; then : |
6106 |
$as_echo_n "(cached) " >&6 |
6107 |
else |
6108 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
6109 |
then ac_cv_path_EGREP="$GREP -E" |
6110 |
else |
6111 |
if test -z "$EGREP"; then |
6112 |
ac_path_EGREP_found=false |
6113 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6114 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6115 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
6116 |
do |
6117 |
IFS=$as_save_IFS |
6118 |
test -z "$as_dir" && as_dir=. |
6119 |
for ac_prog in egrep; do |
6120 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6121 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
6122 |
as_fn_executable_p "$ac_path_EGREP" || continue |
6123 |
# Check for GNU ac_path_EGREP and select it if it is found. |
6124 |
# Check for GNU $ac_path_EGREP |
6125 |
case `"$ac_path_EGREP" --version 2>&1` in |
6126 |
*GNU*) |
6127 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
6128 |
*) |
6129 |
ac_count=0 |
6130 |
$as_echo_n 0123456789 >"conftest.in" |
6131 |
while : |
6132 |
do |
6133 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
6134 |
mv "conftest.tmp" "conftest.in" |
6135 |
cp "conftest.in" "conftest.nl" |
6136 |
$as_echo 'EGREP' >> "conftest.nl" |
6137 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
6138 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
6139 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
6140 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
6141 |
# Best one so far, save it but keep looking for a better one |
6142 |
ac_cv_path_EGREP="$ac_path_EGREP" |
6143 |
ac_path_EGREP_max=$ac_count |
6144 |
fi |
6145 |
# 10*(2^10) chars as input seems more than enough |
6146 |
test $ac_count -gt 10 && break |
6147 |
done |
6148 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6149 |
esac |
6150 |
|
6151 |
$ac_path_EGREP_found && break 3 |
6152 |
done |
6153 |
done |
6154 |
done |
6155 |
IFS=$as_save_IFS |
6156 |
if test -z "$ac_cv_path_EGREP"; then |
6157 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
6158 |
fi |
6159 |
else |
6160 |
ac_cv_path_EGREP=$EGREP |
6161 |
fi |
6162 |
|
6163 |
fi |
6164 |
fi |
6165 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
6166 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
6167 |
EGREP="$ac_cv_path_EGREP" |
6168 |
|
6169 |
|
6170 |
if test $ac_cv_c_compiler_gnu = yes; then |
6171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
6172 |
$as_echo_n "checking whether $CC needs -traditional... " >&6; } |
6173 |
if ${ac_cv_prog_gcc_traditional+:} false; then : |
6174 |
$as_echo_n "(cached) " >&6 |
6175 |
else |
6176 |
ac_pattern="Autoconf.*'x'" |
6177 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6178 |
/* end confdefs.h. */ |
6179 |
#include <sgtty.h> |
6180 |
Autoconf TIOCGETP |
6181 |
_ACEOF |
6182 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6183 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
6184 |
ac_cv_prog_gcc_traditional=yes |
6185 |
else |
6186 |
ac_cv_prog_gcc_traditional=no |
6187 |
fi |
6188 |
rm -f conftest* |
6189 |
|
6190 |
|
6191 |
if test $ac_cv_prog_gcc_traditional = no; then |
6192 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6193 |
/* end confdefs.h. */ |
6194 |
#include <termio.h> |
6195 |
Autoconf TCGETA |
6196 |
_ACEOF |
6197 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6198 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then : |
6199 |
ac_cv_prog_gcc_traditional=yes |
6200 |
fi |
6201 |
rm -f conftest* |
6202 |
|
6203 |
fi |
6204 |
fi |
6205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
6206 |
$as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
6207 |
if test $ac_cv_prog_gcc_traditional = yes; then |
6208 |
CC="$CC -traditional" |
6209 |
fi |
6210 |
fi |
6211 |
|
6212 |
for ac_prog in gawk mawk nawk awk |
6213 |
do |
6214 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
6215 |
set dummy $ac_prog; ac_word=$2 |
6216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6217 |
$as_echo_n "checking for $ac_word... " >&6; } |
6218 |
if ${ac_cv_prog_AWK+:} false; then : |
6219 |
$as_echo_n "(cached) " >&6 |
6220 |
else |
6221 |
if test -n "$AWK"; then |
6222 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
6223 |
else |
6224 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6225 |
for as_dir in $PATH |
6226 |
do |
6227 |
IFS=$as_save_IFS |
6228 |
test -z "$as_dir" && as_dir=. |
6229 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6230 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6231 |
ac_cv_prog_AWK="$ac_prog" |
6232 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6233 |
break 2 |
6234 |
fi |
6235 |
done |
6236 |
done |
6237 |
IFS=$as_save_IFS |
6238 |
|
6239 |
fi |
6240 |
fi |
6241 |
AWK=$ac_cv_prog_AWK |
6242 |
if test -n "$AWK"; then |
6243 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
6244 |
$as_echo "$AWK" >&6; } |
6245 |
else |
6246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6247 |
$as_echo "no" >&6; } |
6248 |
fi |
6249 |
|
6250 |
|
6251 |
test -n "$AWK" && break |
6252 |
done |
6253 |
|
6254 |
|
6255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6256 |
$as_echo_n "checking whether ln -s works... " >&6; } |
6257 |
LN_S=$as_ln_s |
6258 |
if test "$LN_S" = "ln -s"; then |
6259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6260 |
$as_echo "yes" >&6; } |
6261 |
else |
6262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6263 |
$as_echo "no, using $LN_S" >&6; } |
6264 |
fi |
6265 |
|
6266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6267 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
6268 |
set x ${MAKE-make} |
6269 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
6270 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
6271 |
$as_echo_n "(cached) " >&6 |
6272 |
else |
6273 |
cat >conftest.make <<\_ACEOF |
6274 |
SHELL = /bin/sh |
6275 |
all: |
6276 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
6277 |
_ACEOF |
6278 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
6279 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6280 |
*@@@%%%=?*=@@@%%%*) |
6281 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
6282 |
*) |
6283 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
6284 |
esac |
6285 |
rm -f conftest.make |
6286 |
fi |
6287 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
6288 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6289 |
$as_echo "yes" >&6; } |
6290 |
SET_MAKE= |
6291 |
else |
6292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6293 |
$as_echo "no" >&6; } |
6294 |
SET_MAKE="MAKE=${MAKE-make}" |
6295 |
fi |
6296 |
|
6297 |
if test -n "$ac_tool_prefix"; then |
6298 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6299 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6301 |
$as_echo_n "checking for $ac_word... " >&6; } |
6302 |
if ${ac_cv_prog_RANLIB+:} false; then : |
6303 |
$as_echo_n "(cached) " >&6 |
6304 |
else |
6305 |
if test -n "$RANLIB"; then |
6306 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6307 |
else |
6308 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6309 |
for as_dir in $PATH |
6310 |
do |
6311 |
IFS=$as_save_IFS |
6312 |
test -z "$as_dir" && as_dir=. |
6313 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6314 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6315 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6316 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6317 |
break 2 |
6318 |
fi |
6319 |
done |
6320 |
done |
6321 |
IFS=$as_save_IFS |
6322 |
|
6323 |
fi |
6324 |
fi |
6325 |
RANLIB=$ac_cv_prog_RANLIB |
6326 |
if test -n "$RANLIB"; then |
6327 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6328 |
$as_echo "$RANLIB" >&6; } |
6329 |
else |
6330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6331 |
$as_echo "no" >&6; } |
6332 |
fi |
6333 |
|
6334 |
|
6335 |
fi |
6336 |
if test -z "$ac_cv_prog_RANLIB"; then |
6337 |
ac_ct_RANLIB=$RANLIB |
6338 |
# Extract the first word of "ranlib", so it can be a program name with args. |
6339 |
set dummy ranlib; ac_word=$2 |
6340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6341 |
$as_echo_n "checking for $ac_word... " >&6; } |
6342 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6343 |
$as_echo_n "(cached) " >&6 |
6344 |
else |
6345 |
if test -n "$ac_ct_RANLIB"; then |
6346 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6347 |
else |
6348 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6349 |
for as_dir in $PATH |
6350 |
do |
6351 |
IFS=$as_save_IFS |
6352 |
test -z "$as_dir" && as_dir=. |
6353 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6354 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6355 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6356 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6357 |
break 2 |
6358 |
fi |
6359 |
done |
6360 |
done |
6361 |
IFS=$as_save_IFS |
6362 |
|
6363 |
fi |
6364 |
fi |
6365 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6366 |
if test -n "$ac_ct_RANLIB"; then |
6367 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6368 |
$as_echo "$ac_ct_RANLIB" >&6; } |
6369 |
else |
6370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6371 |
$as_echo "no" >&6; } |
6372 |
fi |
6373 |
|
6374 |
if test "x$ac_ct_RANLIB" = x; then |
6375 |
RANLIB=":" |
6376 |
else |
6377 |
case $cross_compiling:$ac_tool_warned in |
6378 |
yes:) |
6379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6380 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6381 |
ac_tool_warned=yes ;; |
6382 |
esac |
6383 |
RANLIB=$ac_ct_RANLIB |
6384 |
fi |
6385 |
else |
6386 |
RANLIB="$ac_cv_prog_RANLIB" |
6387 |
fi |
6388 |
|
6389 |
|
6390 |
# Check whether --enable-iftype was given. |
6391 |
if test "${enable_iftype+set}" = set; then : |
6392 |
enableval=$enable_iftype; |
6393 |
IFTYPE=`echo $enableval | sed s%/.*%%` |
6394 |
IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
6395 |
|
6396 |
|
6397 |
fi |
6398 |
|
6399 |
|
6400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5 |
6401 |
$as_echo_n "checking for kernel networking interface type... " >&6; } |
6402 |
|
6403 |
if test "x$IFTYPE" = "x"; then |
6404 |
case $target_os in |
6405 |
*linux*) |
6406 |
IFTYPE=native |
6407 |
IFSUBTYPE=linux |
6408 |
|
6409 |
$as_echo "#define HAVE_LINUX 1" >>confdefs.h |
6410 |
|
6411 |
;; |
6412 |
*freebsd*) |
6413 |
IFTYPE=tincd |
6414 |
IFSUBTYPE=freebsd |
6415 |
|
6416 |
$as_echo "#define HAVE_FREEBSD 1" >>confdefs.h |
6417 |
|
6418 |
;; |
6419 |
*darwin*) |
6420 |
IFTYPE=native |
6421 |
IFSUBTYPE=darwin |
6422 |
|
6423 |
$as_echo "#define HAVE_DARWIN 1" >>confdefs.h |
6424 |
|
6425 |
;; |
6426 |
*solaris*) |
6427 |
IFTYPE=tincd |
6428 |
IFSUBTYPE=solaris |
6429 |
|
6430 |
$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h |
6431 |
|
6432 |
;; |
6433 |
*openbsd*) |
6434 |
IFTYPE=tincd |
6435 |
IFSUBTYPE=openbsd |
6436 |
|
6437 |
$as_echo "#define HAVE_OPENBSD 1" >>confdefs.h |
6438 |
|
6439 |
;; |
6440 |
*netbsd*) |
6441 |
IFTYPE=tincd |
6442 |
IFSUBTYPE=netbsd |
6443 |
|
6444 |
$as_echo "#define HAVE_NETBSD 1" >>confdefs.h |
6445 |
|
6446 |
;; |
6447 |
*cygwin*) |
6448 |
IFTYPE=native |
6449 |
IFSUBTYPE=cygwin |
6450 |
|
6451 |
$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h |
6452 |
|
6453 |
;; |
6454 |
*) |
6455 |
as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5 |
6456 |
;; |
6457 |
esac |
6458 |
fi |
6459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5 |
6460 |
$as_echo "$IFTYPE/$IFSUBTYPE" >&6; } |
6461 |
IFTYPE=$IFTYPE |
6462 |
|
6463 |
IFSUBTYPE=$IFSUBTYPE |
6464 |
|
6465 |
|
6466 |
cat >>confdefs.h <<_ACEOF |
6467 |
#define IFTYPE "$IFTYPE" |
6468 |
_ACEOF |
6469 |
|
6470 |
|
6471 |
cat >>confdefs.h <<_ACEOF |
6472 |
#define IFSUBTYPE "$IFSUBTYPE" |
6473 |
_ACEOF |
6474 |
|
6475 |
|
6476 |
cat >confcache <<\_ACEOF |
6477 |
# This file is a shell script that caches the results of configure |
6478 |
# tests run on this system so they can be shared between configure |
6479 |
# scripts and configure runs, see configure's option --config-cache. |
6480 |
# It is not useful on other systems. If it contains results you don't |
6481 |
# want to keep, you may remove or edit it. |
6482 |
# |
6483 |
# config.status only pays attention to the cache file if you give it |
6484 |
# the --recheck option to rerun configure. |
6485 |
# |
6486 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
6487 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
6488 |
# following values. |
6489 |
|
6490 |
_ACEOF |
6491 |
|
6492 |
# The following way of writing the cache mishandles newlines in values, |
6493 |
# but we know of no workaround that is simple, portable, and efficient. |
6494 |
# So, we kill variables containing newlines. |
6495 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
6496 |
# and sets the high bit in the cache file unless we assign to the vars. |
6497 |
( |
6498 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
6499 |
eval ac_val=\$$ac_var |
6500 |
case $ac_val in #( |
6501 |
*${as_nl}*) |
6502 |
case $ac_var in #( |
6503 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
6504 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
6505 |
esac |
6506 |
case $ac_var in #( |
6507 |
_ | IFS | as_nl) ;; #( |
6508 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
6509 |
*) { eval $ac_var=; unset $ac_var;} ;; |
6510 |
esac ;; |
6511 |
esac |
6512 |
done |
6513 |
|
6514 |
(set) 2>&1 | |
6515 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6516 |
*${as_nl}ac_space=\ *) |
6517 |
# `set' does not quote correctly, so add quotes: double-quote |
6518 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
6519 |
sed -n \ |
6520 |
"s/'/'\\\\''/g; |
6521 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
6522 |
;; #( |
6523 |
*) |
6524 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
6525 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6526 |
;; |
6527 |
esac | |
6528 |
sort |
6529 |
) | |
6530 |
sed ' |
6531 |
/^ac_cv_env_/b end |
6532 |
t clear |
6533 |
:clear |
6534 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6535 |
t end |
6536 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6537 |
:end' >>confcache |
6538 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
6539 |
if test -w "$cache_file"; then |
6540 |
if test "x$cache_file" != "x/dev/null"; then |
6541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6542 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
6543 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
6544 |
cat confcache >"$cache_file" |
6545 |
else |
6546 |
case $cache_file in #( |
6547 |
*/* | ?:*) |
6548 |
mv -f confcache "$cache_file"$$ && |
6549 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
6550 |
*) |
6551 |
mv -f confcache "$cache_file" ;; |
6552 |
esac |
6553 |
fi |
6554 |
fi |
6555 |
else |
6556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6557 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
6558 |
fi |
6559 |
fi |
6560 |
rm -f confcache |
6561 |
|
6562 |
|
6563 |
ac_ext=cpp |
6564 |
ac_cpp='$CXXCPP $CPPFLAGS' |
6565 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6566 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6567 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6568 |
|
6569 |
|
6570 |
ac_ext=cpp |
6571 |
ac_cpp='$CXXCPP $CPPFLAGS' |
6572 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6573 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6574 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
6576 |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
6577 |
if test -z "$CXXCPP"; then |
6578 |
if ${ac_cv_prog_CXXCPP+:} false; then : |
6579 |
$as_echo_n "(cached) " >&6 |
6580 |
else |
6581 |
# Double quotes because CXXCPP needs to be expanded |
6582 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
6583 |
do |
6584 |
ac_preproc_ok=false |
6585 |
for ac_cxx_preproc_warn_flag in '' yes |
6586 |
do |
6587 |
# Use a header file that comes with gcc, so configuring glibc |
6588 |
# with a fresh cross-compiler works. |
6589 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6590 |
# <limits.h> exists even on freestanding compilers. |
6591 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
6592 |
# not just through cpp. "Syntax error" is here to catch this case. |
6593 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6594 |
/* end confdefs.h. */ |
6595 |
#ifdef __STDC__ |
6596 |
# include <limits.h> |
6597 |
#else |
6598 |
# include <assert.h> |
6599 |
#endif |
6600 |
Syntax error |
6601 |
_ACEOF |
6602 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
6603 |
|
6604 |
else |
6605 |
# Broken: fails on valid input. |
6606 |
continue |
6607 |
fi |
6608 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6609 |
|
6610 |
# OK, works on sane cases. Now check whether nonexistent headers |
6611 |
# can be detected and how. |
6612 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6613 |
/* end confdefs.h. */ |
6614 |
#include <ac_nonexistent.h> |
6615 |
_ACEOF |
6616 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
6617 |
# Broken: success on invalid input. |
6618 |
continue |
6619 |
else |
6620 |
# Passes both tests. |
6621 |
ac_preproc_ok=: |
6622 |
break |
6623 |
fi |
6624 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6625 |
|
6626 |
done |
6627 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6628 |
rm -f conftest.i conftest.err conftest.$ac_ext |
6629 |
if $ac_preproc_ok; then : |
6630 |
break |
6631 |
fi |
6632 |
|
6633 |
done |
6634 |
ac_cv_prog_CXXCPP=$CXXCPP |
6635 |
|
6636 |
fi |
6637 |
CXXCPP=$ac_cv_prog_CXXCPP |
6638 |
else |
6639 |
ac_cv_prog_CXXCPP=$CXXCPP |
6640 |
fi |
6641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
6642 |
$as_echo "$CXXCPP" >&6; } |
6643 |
ac_preproc_ok=false |
6644 |
for ac_cxx_preproc_warn_flag in '' yes |
6645 |
do |
6646 |
# Use a header file that comes with gcc, so configuring glibc |
6647 |
# with a fresh cross-compiler works. |
6648 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6649 |
# <limits.h> exists even on freestanding compilers. |
6650 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
6651 |
# not just through cpp. "Syntax error" is here to catch this case. |
6652 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6653 |
/* end confdefs.h. */ |
6654 |
#ifdef __STDC__ |
6655 |
# include <limits.h> |
6656 |
#else |
6657 |
# include <assert.h> |
6658 |
#endif |
6659 |
Syntax error |
6660 |
_ACEOF |
6661 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
6662 |
|
6663 |
else |
6664 |
# Broken: fails on valid input. |
6665 |
continue |
6666 |
fi |
6667 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6668 |
|
6669 |
# OK, works on sane cases. Now check whether nonexistent headers |
6670 |
# can be detected and how. |
6671 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6672 |
/* end confdefs.h. */ |
6673 |
#include <ac_nonexistent.h> |
6674 |
_ACEOF |
6675 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
6676 |
# Broken: success on invalid input. |
6677 |
continue |
6678 |
else |
6679 |
# Passes both tests. |
6680 |
ac_preproc_ok=: |
6681 |
break |
6682 |
fi |
6683 |
rm -f conftest.err conftest.i conftest.$ac_ext |
6684 |
|
6685 |
done |
6686 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6687 |
rm -f conftest.i conftest.err conftest.$ac_ext |
6688 |
if $ac_preproc_ok; then : |
6689 |
|
6690 |
else |
6691 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6692 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6693 |
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
6694 |
See \`config.log' for more details" "$LINENO" 5; } |
6695 |
fi |
6696 |
|
6697 |
ac_ext=cpp |
6698 |
ac_cpp='$CXXCPP $CPPFLAGS' |
6699 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6700 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6701 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6702 |
|
6703 |
|
6704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
6705 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
6706 |
if ${ac_cv_header_stdc+:} false; then : |
6707 |
$as_echo_n "(cached) " >&6 |
6708 |
else |
6709 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6710 |
/* end confdefs.h. */ |
6711 |
#include <stdlib.h> |
6712 |
#include <stdarg.h> |
6713 |
#include <string.h> |
6714 |
#include <float.h> |
6715 |
|
6716 |
int |
6717 |
main () |
6718 |
{ |
6719 |
|
6720 |
; |
6721 |
return 0; |
6722 |
} |
6723 |
_ACEOF |
6724 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
6725 |
ac_cv_header_stdc=yes |
6726 |
else |
6727 |
ac_cv_header_stdc=no |
6728 |
fi |
6729 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6730 |
|
6731 |
if test $ac_cv_header_stdc = yes; then |
6732 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
6733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6734 |
/* end confdefs.h. */ |
6735 |
#include <string.h> |
6736 |
|
6737 |
_ACEOF |
6738 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6739 |
$EGREP "memchr" >/dev/null 2>&1; then : |
6740 |
|
6741 |
else |
6742 |
ac_cv_header_stdc=no |
6743 |
fi |
6744 |
rm -f conftest* |
6745 |
|
6746 |
fi |
6747 |
|
6748 |
if test $ac_cv_header_stdc = yes; then |
6749 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
6750 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6751 |
/* end confdefs.h. */ |
6752 |
#include <stdlib.h> |
6753 |
|
6754 |
_ACEOF |
6755 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6756 |
$EGREP "free" >/dev/null 2>&1; then : |
6757 |
|
6758 |
else |
6759 |
ac_cv_header_stdc=no |
6760 |
fi |
6761 |
rm -f conftest* |
6762 |
|
6763 |
fi |
6764 |
|
6765 |
if test $ac_cv_header_stdc = yes; then |
6766 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
6767 |
if test "$cross_compiling" = yes; then : |
6768 |
: |
6769 |
else |
6770 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6771 |
/* end confdefs.h. */ |
6772 |
#include <ctype.h> |
6773 |
#include <stdlib.h> |
6774 |
#if ((' ' & 0x0FF) == 0x020) |
6775 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
6776 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
6777 |
#else |
6778 |
# define ISLOWER(c) \ |
6779 |
(('a' <= (c) && (c) <= 'i') \ |
6780 |
|| ('j' <= (c) && (c) <= 'r') \ |
6781 |
|| ('s' <= (c) && (c) <= 'z')) |
6782 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6783 |
#endif |
6784 |
|
6785 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6786 |
int |
6787 |
main () |
6788 |
{ |
6789 |
int i; |
6790 |
for (i = 0; i < 256; i++) |
6791 |
if (XOR (islower (i), ISLOWER (i)) |
6792 |
|| toupper (i) != TOUPPER (i)) |
6793 |
return 2; |
6794 |
return 0; |
6795 |
} |
6796 |
_ACEOF |
6797 |
if ac_fn_cxx_try_run "$LINENO"; then : |
6798 |
|
6799 |
else |
6800 |
ac_cv_header_stdc=no |
6801 |
fi |
6802 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6803 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
6804 |
fi |
6805 |
|
6806 |
fi |
6807 |
fi |
6808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
6809 |
$as_echo "$ac_cv_header_stdc" >&6; } |
6810 |
if test $ac_cv_header_stdc = yes; then |
6811 |
|
6812 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6813 |
|
6814 |
fi |
6815 |
|
6816 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6817 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6818 |
inttypes.h stdint.h unistd.h |
6819 |
do : |
6820 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6821 |
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
6822 |
" |
6823 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6824 |
cat >>confdefs.h <<_ACEOF |
6825 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6826 |
_ACEOF |
6827 |
|
6828 |
fi |
6829 |
|
6830 |
done |
6831 |
|
6832 |
|
6833 |
for ac_header in tr1/unordered_map ext/hash_map clocale |
6834 |
do : |
6835 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6836 |
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6837 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6838 |
cat >>confdefs.h <<_ACEOF |
6839 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6840 |
_ACEOF |
6841 |
|
6842 |
fi |
6843 |
|
6844 |
done |
6845 |
|
6846 |
|
6847 |
for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
6848 |
sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \ |
6849 |
sys/mman.h netinet/in.h |
6850 |
do : |
6851 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6852 |
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6853 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6854 |
cat >>confdefs.h <<_ACEOF |
6855 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6856 |
_ACEOF |
6857 |
|
6858 |
fi |
6859 |
|
6860 |
done |
6861 |
|
6862 |
for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h |
6863 |
do : |
6864 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6865 |
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
6866 |
#include <sys/types.h> |
6867 |
#include <sys/socket.h> |
6868 |
#ifdef HAVE_NETINET_IN_H |
6869 |
# include <netinet/in.h> |
6870 |
#endif |
6871 |
#ifdef HAVE_ARPA_INET_H |
6872 |
# include <arpa/inet.h> |
6873 |
#endif |
6874 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
6875 |
# include <netinet/in_systm.h> |
6876 |
#endif |
6877 |
|
6878 |
" |
6879 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6880 |
cat >>confdefs.h <<_ACEOF |
6881 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6882 |
_ACEOF |
6883 |
|
6884 |
fi |
6885 |
|
6886 |
done |
6887 |
|
6888 |
|
6889 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
6890 |
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
6891 |
if ${ac_cv_c_const+:} false; then : |
6892 |
$as_echo_n "(cached) " >&6 |
6893 |
else |
6894 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6895 |
/* end confdefs.h. */ |
6896 |
|
6897 |
int |
6898 |
main () |
6899 |
{ |
6900 |
|
6901 |
#ifndef __cplusplus |
6902 |
/* Ultrix mips cc rejects this sort of thing. */ |
6903 |
typedef int charset[2]; |
6904 |
const charset cs = { 0, 0 }; |
6905 |
/* SunOS 4.1.1 cc rejects this. */ |
6906 |
char const *const *pcpcc; |
6907 |
char **ppc; |
6908 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
6909 |
struct point {int x, y;}; |
6910 |
static struct point const zero = {0,0}; |
6911 |
/* AIX XL C 1.02.0.0 rejects this. |
6912 |
It does not let you subtract one const X* pointer from another in |
6913 |
an arm of an if-expression whose if-part is not a constant |
6914 |
expression */ |
6915 |
const char *g = "string"; |
6916 |
pcpcc = &g + (g ? g-g : 0); |
6917 |
/* HPUX 7.0 cc rejects these. */ |
6918 |
++pcpcc; |
6919 |
ppc = (char**) pcpcc; |
6920 |
pcpcc = (char const *const *) ppc; |
6921 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
6922 |
char tx; |
6923 |
char *t = &tx; |
6924 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
6925 |
|
6926 |
*t++ = 0; |
6927 |
if (s) return 0; |
6928 |
} |
6929 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
6930 |
int x[] = {25, 17}; |
6931 |
const int *foo = &x[0]; |
6932 |
++foo; |
6933 |
} |
6934 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
6935 |
typedef const int *iptr; |
6936 |
iptr p = 0; |
6937 |
++p; |
6938 |
} |
6939 |
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
6940 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
6941 |
struct s { int j; const int *ap[3]; } bx; |
6942 |
struct s *b = &bx; b->j = 5; |
6943 |
} |
6944 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
6945 |
const int foo = 10; |
6946 |
if (!foo) return 0; |
6947 |
} |
6948 |
return !cs[0] && !zero.x; |
6949 |
#endif |
6950 |
|
6951 |
; |
6952 |
return 0; |
6953 |
} |
6954 |
_ACEOF |
6955 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
6956 |
ac_cv_c_const=yes |
6957 |
else |
6958 |
ac_cv_c_const=no |
6959 |
fi |
6960 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6961 |
fi |
6962 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
6963 |
$as_echo "$ac_cv_c_const" >&6; } |
6964 |
if test $ac_cv_c_const = no; then |
6965 |
|
6966 |
$as_echo "#define const /**/" >>confdefs.h |
6967 |
|
6968 |
fi |
6969 |
|
6970 |
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
6971 |
if test "x$ac_cv_type_pid_t" = xyes; then : |
6972 |
|
6973 |
else |
6974 |
|
6975 |
cat >>confdefs.h <<_ACEOF |
6976 |
#define pid_t int |
6977 |
_ACEOF |
6978 |
|
6979 |
fi |
6980 |
|
6981 |
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6982 |
if test "x$ac_cv_type_size_t" = xyes; then : |
6983 |
|
6984 |
else |
6985 |
|
6986 |
cat >>confdefs.h <<_ACEOF |
6987 |
#define size_t unsigned int |
6988 |
_ACEOF |
6989 |
|
6990 |
fi |
6991 |
|
6992 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
6993 |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
6994 |
if ${ac_cv_header_time+:} false; then : |
6995 |
$as_echo_n "(cached) " >&6 |
6996 |
else |
6997 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6998 |
/* end confdefs.h. */ |
6999 |
#include <sys/types.h> |
7000 |
#include <sys/time.h> |
7001 |
#include <time.h> |
7002 |
|
7003 |
int |
7004 |
main () |
7005 |
{ |
7006 |
if ((struct tm *) 0) |
7007 |
return 0; |
7008 |
; |
7009 |
return 0; |
7010 |
} |
7011 |
_ACEOF |
7012 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7013 |
ac_cv_header_time=yes |
7014 |
else |
7015 |
ac_cv_header_time=no |
7016 |
fi |
7017 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7018 |
fi |
7019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
7020 |
$as_echo "$ac_cv_header_time" >&6; } |
7021 |
if test $ac_cv_header_time = yes; then |
7022 |
|
7023 |
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
7024 |
|
7025 |
fi |
7026 |
|
7027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
7028 |
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
7029 |
if ${ac_cv_struct_tm+:} false; then : |
7030 |
$as_echo_n "(cached) " >&6 |
7031 |
else |
7032 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7033 |
/* end confdefs.h. */ |
7034 |
#include <sys/types.h> |
7035 |
#include <time.h> |
7036 |
|
7037 |
int |
7038 |
main () |
7039 |
{ |
7040 |
struct tm tm; |
7041 |
int *p = &tm.tm_sec; |
7042 |
return !p; |
7043 |
; |
7044 |
return 0; |
7045 |
} |
7046 |
_ACEOF |
7047 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7048 |
ac_cv_struct_tm=time.h |
7049 |
else |
7050 |
ac_cv_struct_tm=sys/time.h |
7051 |
fi |
7052 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7053 |
fi |
7054 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
7055 |
$as_echo "$ac_cv_struct_tm" >&6; } |
7056 |
if test $ac_cv_struct_tm = sys/time.h; then |
7057 |
|
7058 |
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
7059 |
|
7060 |
fi |
7061 |
|
7062 |
|
7063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
7064 |
$as_echo_n "checking for socklen_t... " >&6; } |
7065 |
if ${ac_cv_type_socklen_t+:} false; then : |
7066 |
$as_echo_n "(cached) " >&6 |
7067 |
else |
7068 |
|
7069 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7070 |
/* end confdefs.h. */ |
7071 |
#include <sys/types.h> |
7072 |
#include <sys/socket.h> |
7073 |
int |
7074 |
main () |
7075 |
{ |
7076 |
socklen_t len = 42; return len; |
7077 |
; |
7078 |
return 0; |
7079 |
} |
7080 |
_ACEOF |
7081 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7082 |
ac_cv_type_socklen_t=yes |
7083 |
else |
7084 |
ac_cv_type_socklen_t=no |
7085 |
fi |
7086 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7087 |
|
7088 |
fi |
7089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 |
7090 |
$as_echo "$ac_cv_type_socklen_t" >&6; } |
7091 |
if test $ac_cv_type_socklen_t = yes; then |
7092 |
|
7093 |
$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
7094 |
|
7095 |
fi |
7096 |
|
7097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
7098 |
$as_echo_n "checking for struct addrinfo... " >&6; } |
7099 |
if ${ac_cv_struct_addrinfo+:} false; then : |
7100 |
$as_echo_n "(cached) " >&6 |
7101 |
else |
7102 |
|
7103 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7104 |
/* end confdefs.h. */ |
7105 |
#include <sys/types.h> |
7106 |
#include <sys/socket.h> |
7107 |
#include <netdb.h> |
7108 |
int |
7109 |
main () |
7110 |
{ |
7111 |
struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family; |
7112 |
; |
7113 |
return 0; |
7114 |
} |
7115 |
_ACEOF |
7116 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7117 |
ac_cv_struct_addrinfo=yes |
7118 |
else |
7119 |
ac_cv_struct_addrinfo=no |
7120 |
fi |
7121 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7122 |
|
7123 |
fi |
7124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 |
7125 |
$as_echo "$ac_cv_struct_addrinfo" >&6; } |
7126 |
if test $ac_cv_struct_addrinfo = yes; then |
7127 |
|
7128 |
$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
7129 |
|
7130 |
fi |
7131 |
|
7132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
7133 |
$as_echo_n "checking return type of signal handlers... " >&6; } |
7134 |
if ${ac_cv_type_signal+:} false; then : |
7135 |
$as_echo_n "(cached) " >&6 |
7136 |
else |
7137 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7138 |
/* end confdefs.h. */ |
7139 |
#include <sys/types.h> |
7140 |
#include <signal.h> |
7141 |
|
7142 |
int |
7143 |
main () |
7144 |
{ |
7145 |
return *(signal (0, 0)) (0) == 1; |
7146 |
; |
7147 |
return 0; |
7148 |
} |
7149 |
_ACEOF |
7150 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7151 |
ac_cv_type_signal=int |
7152 |
else |
7153 |
ac_cv_type_signal=void |
7154 |
fi |
7155 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7156 |
fi |
7157 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
7158 |
$as_echo "$ac_cv_type_signal" >&6; } |
7159 |
|
7160 |
cat >>confdefs.h <<_ACEOF |
7161 |
#define RETSIGTYPE $ac_cv_type_signal |
7162 |
_ACEOF |
7163 |
|
7164 |
|
7165 |
|
7166 |
ac_ext=c |
7167 |
ac_cpp='$CPP $CPPFLAGS' |
7168 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7169 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7170 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7171 |
|
7172 |
|
7173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7174 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7175 |
if ${ac_cv_header_stdc+:} false; then : |
7176 |
$as_echo_n "(cached) " >&6 |
7177 |
else |
7178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7179 |
/* end confdefs.h. */ |
7180 |
#include <stdlib.h> |
7181 |
#include <stdarg.h> |
7182 |
#include <string.h> |
7183 |
#include <float.h> |
7184 |
|
7185 |
int |
7186 |
main () |
7187 |
{ |
7188 |
|
7189 |
; |
7190 |
return 0; |
7191 |
} |
7192 |
_ACEOF |
7193 |
if ac_fn_c_try_compile "$LINENO"; then : |
7194 |
ac_cv_header_stdc=yes |
7195 |
else |
7196 |
ac_cv_header_stdc=no |
7197 |
fi |
7198 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7199 |
|
7200 |
if test $ac_cv_header_stdc = yes; then |
7201 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7202 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7203 |
/* end confdefs.h. */ |
7204 |
#include <string.h> |
7205 |
|
7206 |
_ACEOF |
7207 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7208 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7209 |
|
7210 |
else |
7211 |
ac_cv_header_stdc=no |
7212 |
fi |
7213 |
rm -f conftest* |
7214 |
|
7215 |
fi |
7216 |
|
7217 |
if test $ac_cv_header_stdc = yes; then |
7218 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7219 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7220 |
/* end confdefs.h. */ |
7221 |
#include <stdlib.h> |
7222 |
|
7223 |
_ACEOF |
7224 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7225 |
$EGREP "free" >/dev/null 2>&1; then : |
7226 |
|
7227 |
else |
7228 |
ac_cv_header_stdc=no |
7229 |
fi |
7230 |
rm -f conftest* |
7231 |
|
7232 |
fi |
7233 |
|
7234 |
if test $ac_cv_header_stdc = yes; then |
7235 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7236 |
if test "$cross_compiling" = yes; then : |
7237 |
: |
7238 |
else |
7239 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7240 |
/* end confdefs.h. */ |
7241 |
#include <ctype.h> |
7242 |
#include <stdlib.h> |
7243 |
#if ((' ' & 0x0FF) == 0x020) |
7244 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7245 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7246 |
#else |
7247 |
# define ISLOWER(c) \ |
7248 |
(('a' <= (c) && (c) <= 'i') \ |
7249 |
|| ('j' <= (c) && (c) <= 'r') \ |
7250 |
|| ('s' <= (c) && (c) <= 'z')) |
7251 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7252 |
#endif |
7253 |
|
7254 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7255 |
int |
7256 |
main () |
7257 |
{ |
7258 |
int i; |
7259 |
for (i = 0; i < 256; i++) |
7260 |
if (XOR (islower (i), ISLOWER (i)) |
7261 |
|| toupper (i) != TOUPPER (i)) |
7262 |
return 2; |
7263 |
return 0; |
7264 |
} |
7265 |
_ACEOF |
7266 |
if ac_fn_c_try_run "$LINENO"; then : |
7267 |
|
7268 |
else |
7269 |
ac_cv_header_stdc=no |
7270 |
fi |
7271 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7272 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7273 |
fi |
7274 |
|
7275 |
fi |
7276 |
fi |
7277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7278 |
$as_echo "$ac_cv_header_stdc" >&6; } |
7279 |
if test $ac_cv_header_stdc = yes; then |
7280 |
|
7281 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7282 |
|
7283 |
fi |
7284 |
|
7285 |
|
7286 |
for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall |
7287 |
do : |
7288 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7289 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7290 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7291 |
cat >>confdefs.h <<_ACEOF |
7292 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7293 |
_ACEOF |
7294 |
|
7295 |
fi |
7296 |
done |
7297 |
|
7298 |
|
7299 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
7300 |
# for constant arguments. Useless! |
7301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
7302 |
$as_echo_n "checking for working alloca.h... " >&6; } |
7303 |
if ${ac_cv_working_alloca_h+:} false; then : |
7304 |
$as_echo_n "(cached) " >&6 |
7305 |
else |
7306 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7307 |
/* end confdefs.h. */ |
7308 |
#include <alloca.h> |
7309 |
int |
7310 |
main () |
7311 |
{ |
7312 |
char *p = (char *) alloca (2 * sizeof (int)); |
7313 |
if (p) return 0; |
7314 |
; |
7315 |
return 0; |
7316 |
} |
7317 |
_ACEOF |
7318 |
if ac_fn_c_try_link "$LINENO"; then : |
7319 |
ac_cv_working_alloca_h=yes |
7320 |
else |
7321 |
ac_cv_working_alloca_h=no |
7322 |
fi |
7323 |
rm -f core conftest.err conftest.$ac_objext \ |
7324 |
conftest$ac_exeext conftest.$ac_ext |
7325 |
fi |
7326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
7327 |
$as_echo "$ac_cv_working_alloca_h" >&6; } |
7328 |
if test $ac_cv_working_alloca_h = yes; then |
7329 |
|
7330 |
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
7331 |
|
7332 |
fi |
7333 |
|
7334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
7335 |
$as_echo_n "checking for alloca... " >&6; } |
7336 |
if ${ac_cv_func_alloca_works+:} false; then : |
7337 |
$as_echo_n "(cached) " >&6 |
7338 |
else |
7339 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7340 |
/* end confdefs.h. */ |
7341 |
#ifdef __GNUC__ |
7342 |
# define alloca __builtin_alloca |
7343 |
#else |
7344 |
# ifdef _MSC_VER |
7345 |
# include <malloc.h> |
7346 |
# define alloca _alloca |
7347 |
# else |
7348 |
# ifdef HAVE_ALLOCA_H |
7349 |
# include <alloca.h> |
7350 |
# else |
7351 |
# ifdef _AIX |
7352 |
#pragma alloca |
7353 |
# else |
7354 |
# ifndef alloca /* predefined by HP cc +Olibcalls */ |
7355 |
void *alloca (size_t); |
7356 |
# endif |
7357 |
# endif |
7358 |
# endif |
7359 |
# endif |
7360 |
#endif |
7361 |
|
7362 |
int |
7363 |
main () |
7364 |
{ |
7365 |
char *p = (char *) alloca (1); |
7366 |
if (p) return 0; |
7367 |
; |
7368 |
return 0; |
7369 |
} |
7370 |
_ACEOF |
7371 |
if ac_fn_c_try_link "$LINENO"; then : |
7372 |
ac_cv_func_alloca_works=yes |
7373 |
else |
7374 |
ac_cv_func_alloca_works=no |
7375 |
fi |
7376 |
rm -f core conftest.err conftest.$ac_objext \ |
7377 |
conftest$ac_exeext conftest.$ac_ext |
7378 |
fi |
7379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
7380 |
$as_echo "$ac_cv_func_alloca_works" >&6; } |
7381 |
|
7382 |
if test $ac_cv_func_alloca_works = yes; then |
7383 |
|
7384 |
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
7385 |
|
7386 |
else |
7387 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
7388 |
# that cause trouble. Some versions do not even contain alloca or |
7389 |
# contain a buggy version. If you still want to use their alloca, |
7390 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
7391 |
|
7392 |
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
7393 |
|
7394 |
$as_echo "#define C_ALLOCA 1" >>confdefs.h |
7395 |
|
7396 |
|
7397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
7398 |
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
7399 |
if ${ac_cv_os_cray+:} false; then : |
7400 |
$as_echo_n "(cached) " >&6 |
7401 |
else |
7402 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7403 |
/* end confdefs.h. */ |
7404 |
#if defined CRAY && ! defined CRAY2 |
7405 |
webecray |
7406 |
#else |
7407 |
wenotbecray |
7408 |
#endif |
7409 |
|
7410 |
_ACEOF |
7411 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7412 |
$EGREP "webecray" >/dev/null 2>&1; then : |
7413 |
ac_cv_os_cray=yes |
7414 |
else |
7415 |
ac_cv_os_cray=no |
7416 |
fi |
7417 |
rm -f conftest* |
7418 |
|
7419 |
fi |
7420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
7421 |
$as_echo "$ac_cv_os_cray" >&6; } |
7422 |
if test $ac_cv_os_cray = yes; then |
7423 |
for ac_func in _getb67 GETB67 getb67; do |
7424 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7425 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7426 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7427 |
|
7428 |
cat >>confdefs.h <<_ACEOF |
7429 |
#define CRAY_STACKSEG_END $ac_func |
7430 |
_ACEOF |
7431 |
|
7432 |
break |
7433 |
fi |
7434 |
|
7435 |
done |
7436 |
fi |
7437 |
|
7438 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
7439 |
$as_echo_n "checking stack direction for C alloca... " >&6; } |
7440 |
if ${ac_cv_c_stack_direction+:} false; then : |
7441 |
$as_echo_n "(cached) " >&6 |
7442 |
else |
7443 |
if test "$cross_compiling" = yes; then : |
7444 |
ac_cv_c_stack_direction=0 |
7445 |
else |
7446 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7447 |
/* end confdefs.h. */ |
7448 |
$ac_includes_default |
7449 |
int |
7450 |
find_stack_direction (int *addr, int depth) |
7451 |
{ |
7452 |
int dir, dummy = 0; |
7453 |
if (! addr) |
7454 |
addr = &dummy; |
7455 |
*addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
7456 |
dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
7457 |
return dir + dummy; |
7458 |
} |
7459 |
|
7460 |
int |
7461 |
main (int argc, char **argv) |
7462 |
{ |
7463 |
return find_stack_direction (0, argc + !argv + 20) < 0; |
7464 |
} |
7465 |
_ACEOF |
7466 |
if ac_fn_c_try_run "$LINENO"; then : |
7467 |
ac_cv_c_stack_direction=1 |
7468 |
else |
7469 |
ac_cv_c_stack_direction=-1 |
7470 |
fi |
7471 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7472 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
7473 |
fi |
7474 |
|
7475 |
fi |
7476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
7477 |
$as_echo "$ac_cv_c_stack_direction" >&6; } |
7478 |
cat >>confdefs.h <<_ACEOF |
7479 |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
7480 |
_ACEOF |
7481 |
|
7482 |
|
7483 |
fi |
7484 |
|
7485 |
|
7486 |
|
7487 |
ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
7488 |
if test "x$ac_cv_func_socket" = xyes; then : |
7489 |
|
7490 |
else |
7491 |
|
7492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
7493 |
$as_echo_n "checking for connect in -lsocket... " >&6; } |
7494 |
if ${ac_cv_lib_socket_connect+:} false; then : |
7495 |
$as_echo_n "(cached) " >&6 |
7496 |
else |
7497 |
ac_check_lib_save_LIBS=$LIBS |
7498 |
LIBS="-lsocket $LIBS" |
7499 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7500 |
/* end confdefs.h. */ |
7501 |
|
7502 |
/* Override any GCC internal prototype to avoid an error. |
7503 |
Use char because int might match the return type of a GCC |
7504 |
builtin and then its argument prototype would still apply. */ |
7505 |
#ifdef __cplusplus |
7506 |
extern "C" |
7507 |
#endif |
7508 |
char connect (); |
7509 |
int |
7510 |
main () |
7511 |
{ |
7512 |
return connect (); |
7513 |
; |
7514 |
return 0; |
7515 |
} |
7516 |
_ACEOF |
7517 |
if ac_fn_c_try_link "$LINENO"; then : |
7518 |
ac_cv_lib_socket_connect=yes |
7519 |
else |
7520 |
ac_cv_lib_socket_connect=no |
7521 |
fi |
7522 |
rm -f core conftest.err conftest.$ac_objext \ |
7523 |
conftest$ac_exeext conftest.$ac_ext |
7524 |
LIBS=$ac_check_lib_save_LIBS |
7525 |
fi |
7526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
7527 |
$as_echo "$ac_cv_lib_socket_connect" >&6; } |
7528 |
if test "x$ac_cv_lib_socket_connect" = xyes; then : |
7529 |
cat >>confdefs.h <<_ACEOF |
7530 |
#define HAVE_LIBSOCKET 1 |
7531 |
_ACEOF |
7532 |
|
7533 |
LIBS="-lsocket $LIBS" |
7534 |
|
7535 |
fi |
7536 |
|
7537 |
|
7538 |
fi |
7539 |
|
7540 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
7541 |
if test "x$ac_cv_func_gethostbyname" = xyes; then : |
7542 |
|
7543 |
else |
7544 |
|
7545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
7546 |
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
7547 |
if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
7548 |
$as_echo_n "(cached) " >&6 |
7549 |
else |
7550 |
ac_check_lib_save_LIBS=$LIBS |
7551 |
LIBS="-lnsl $LIBS" |
7552 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7553 |
/* end confdefs.h. */ |
7554 |
|
7555 |
/* Override any GCC internal prototype to avoid an error. |
7556 |
Use char because int might match the return type of a GCC |
7557 |
builtin and then its argument prototype would still apply. */ |
7558 |
#ifdef __cplusplus |
7559 |
extern "C" |
7560 |
#endif |
7561 |
char gethostbyname (); |
7562 |
int |
7563 |
main () |
7564 |
{ |
7565 |
return gethostbyname (); |
7566 |
; |
7567 |
return 0; |
7568 |
} |
7569 |
_ACEOF |
7570 |
if ac_fn_c_try_link "$LINENO"; then : |
7571 |
ac_cv_lib_nsl_gethostbyname=yes |
7572 |
else |
7573 |
ac_cv_lib_nsl_gethostbyname=no |
7574 |
fi |
7575 |
rm -f core conftest.err conftest.$ac_objext \ |
7576 |
conftest$ac_exeext conftest.$ac_ext |
7577 |
LIBS=$ac_check_lib_save_LIBS |
7578 |
fi |
7579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
7580 |
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
7581 |
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
7582 |
cat >>confdefs.h <<_ACEOF |
7583 |
#define HAVE_LIBNSL 1 |
7584 |
_ACEOF |
7585 |
|
7586 |
LIBS="-lnsl $LIBS" |
7587 |
|
7588 |
fi |
7589 |
|
7590 |
|
7591 |
fi |
7592 |
|
7593 |
|
7594 |
|
7595 |
for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
7596 |
do : |
7597 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7598 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
7599 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7600 |
cat >>confdefs.h <<_ACEOF |
7601 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7602 |
_ACEOF |
7603 |
|
7604 |
fi |
7605 |
|
7606 |
done |
7607 |
|
7608 |
|
7609 |
for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
7610 |
do : |
7611 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7612 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7613 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7614 |
cat >>confdefs.h <<_ACEOF |
7615 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7616 |
_ACEOF |
7617 |
|
7618 |
fi |
7619 |
done |
7620 |
|
7621 |
|
7622 |
for ac_func in clock_gettime |
7623 |
do : |
7624 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
7625 |
if test "x$ac_cv_func_clock_gettime" = xyes; then : |
7626 |
cat >>confdefs.h <<_ACEOF |
7627 |
#define HAVE_CLOCK_GETTIME 1 |
7628 |
_ACEOF |
7629 |
|
7630 |
else |
7631 |
|
7632 |
if test $(uname) = Linux; then |
7633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
7634 |
$as_echo_n "checking for clock_gettime syscall... " >&6; } |
7635 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7636 |
/* end confdefs.h. */ |
7637 |
#include <unistd.h> |
7638 |
#include <sys/syscall.h> |
7639 |
#include <time.h> |
7640 |
int |
7641 |
main () |
7642 |
{ |
7643 |
struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
7644 |
; |
7645 |
return 0; |
7646 |
} |
7647 |
_ACEOF |
7648 |
if ac_fn_c_try_link "$LINENO"; then : |
7649 |
ac_have_clock_syscall=1 |
7650 |
|
7651 |
$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
7652 |
|
7653 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7654 |
$as_echo "yes" >&6; } |
7655 |
else |
7656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7657 |
$as_echo "no" >&6; } |
7658 |
fi |
7659 |
rm -f core conftest.err conftest.$ac_objext \ |
7660 |
conftest$ac_exeext conftest.$ac_ext |
7661 |
fi |
7662 |
if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
7663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
7664 |
$as_echo_n "checking for clock_gettime in -lrt... " >&6; } |
7665 |
if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
7666 |
$as_echo_n "(cached) " >&6 |
7667 |
else |
7668 |
ac_check_lib_save_LIBS=$LIBS |
7669 |
LIBS="-lrt $LIBS" |
7670 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7671 |
/* end confdefs.h. */ |
7672 |
|
7673 |
/* Override any GCC internal prototype to avoid an error. |
7674 |
Use char because int might match the return type of a GCC |
7675 |
builtin and then its argument prototype would still apply. */ |
7676 |
#ifdef __cplusplus |
7677 |
extern "C" |
7678 |
#endif |
7679 |
char clock_gettime (); |
7680 |
int |
7681 |
main () |
7682 |
{ |
7683 |
return clock_gettime (); |
7684 |
; |
7685 |
return 0; |
7686 |
} |
7687 |
_ACEOF |
7688 |
if ac_fn_c_try_link "$LINENO"; then : |
7689 |
ac_cv_lib_rt_clock_gettime=yes |
7690 |
else |
7691 |
ac_cv_lib_rt_clock_gettime=no |
7692 |
fi |
7693 |
rm -f core conftest.err conftest.$ac_objext \ |
7694 |
conftest$ac_exeext conftest.$ac_ext |
7695 |
LIBS=$ac_check_lib_save_LIBS |
7696 |
fi |
7697 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
7698 |
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } |
7699 |
if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
7700 |
cat >>confdefs.h <<_ACEOF |
7701 |
#define HAVE_LIBRT 1 |
7702 |
_ACEOF |
7703 |
|
7704 |
LIBS="-lrt $LIBS" |
7705 |
|
7706 |
fi |
7707 |
|
7708 |
unset ac_cv_func_clock_gettime |
7709 |
for ac_func in clock_gettime |
7710 |
do : |
7711 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
7712 |
if test "x$ac_cv_func_clock_gettime" = xyes; then : |
7713 |
cat >>confdefs.h <<_ACEOF |
7714 |
#define HAVE_CLOCK_GETTIME 1 |
7715 |
_ACEOF |
7716 |
|
7717 |
fi |
7718 |
done |
7719 |
|
7720 |
fi |
7721 |
|
7722 |
fi |
7723 |
done |
7724 |
|
7725 |
|
7726 |
for ac_func in nanosleep |
7727 |
do : |
7728 |
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
7729 |
if test "x$ac_cv_func_nanosleep" = xyes; then : |
7730 |
cat >>confdefs.h <<_ACEOF |
7731 |
#define HAVE_NANOSLEEP 1 |
7732 |
_ACEOF |
7733 |
|
7734 |
else |
7735 |
|
7736 |
if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
7737 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
7738 |
$as_echo_n "checking for nanosleep in -lrt... " >&6; } |
7739 |
if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7740 |
$as_echo_n "(cached) " >&6 |
7741 |
else |
7742 |
ac_check_lib_save_LIBS=$LIBS |
7743 |
LIBS="-lrt $LIBS" |
7744 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7745 |
/* end confdefs.h. */ |
7746 |
|
7747 |
/* Override any GCC internal prototype to avoid an error. |
7748 |
Use char because int might match the return type of a GCC |
7749 |
builtin and then its argument prototype would still apply. */ |
7750 |
#ifdef __cplusplus |
7751 |
extern "C" |
7752 |
#endif |
7753 |
char nanosleep (); |
7754 |
int |
7755 |
main () |
7756 |
{ |
7757 |
return nanosleep (); |
7758 |
; |
7759 |
return 0; |
7760 |
} |
7761 |
_ACEOF |
7762 |
if ac_fn_c_try_link "$LINENO"; then : |
7763 |
ac_cv_lib_rt_nanosleep=yes |
7764 |
else |
7765 |
ac_cv_lib_rt_nanosleep=no |
7766 |
fi |
7767 |
rm -f core conftest.err conftest.$ac_objext \ |
7768 |
conftest$ac_exeext conftest.$ac_ext |
7769 |
LIBS=$ac_check_lib_save_LIBS |
7770 |
fi |
7771 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
7772 |
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } |
7773 |
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
7774 |
cat >>confdefs.h <<_ACEOF |
7775 |
#define HAVE_LIBRT 1 |
7776 |
_ACEOF |
7777 |
|
7778 |
LIBS="-lrt $LIBS" |
7779 |
|
7780 |
fi |
7781 |
|
7782 |
unset ac_cv_func_nanosleep |
7783 |
for ac_func in nanosleep |
7784 |
do : |
7785 |
ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
7786 |
if test "x$ac_cv_func_nanosleep" = xyes; then : |
7787 |
cat >>confdefs.h <<_ACEOF |
7788 |
#define HAVE_NANOSLEEP 1 |
7789 |
_ACEOF |
7790 |
|
7791 |
fi |
7792 |
done |
7793 |
|
7794 |
fi |
7795 |
|
7796 |
fi |
7797 |
done |
7798 |
|
7799 |
|
7800 |
if test -z "$LIBEV_M4_AVOID_LIBM"; then |
7801 |
LIBM=m |
7802 |
fi |
7803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
7804 |
$as_echo_n "checking for library containing floor... " >&6; } |
7805 |
if ${ac_cv_search_floor+:} false; then : |
7806 |
$as_echo_n "(cached) " >&6 |
7807 |
else |
7808 |
ac_func_search_save_LIBS=$LIBS |
7809 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7810 |
/* end confdefs.h. */ |
7811 |
|
7812 |
/* Override any GCC internal prototype to avoid an error. |
7813 |
Use char because int might match the return type of a GCC |
7814 |
builtin and then its argument prototype would still apply. */ |
7815 |
#ifdef __cplusplus |
7816 |
extern "C" |
7817 |
#endif |
7818 |
char floor (); |
7819 |
int |
7820 |
main () |
7821 |
{ |
7822 |
return floor (); |
7823 |
; |
7824 |
return 0; |
7825 |
} |
7826 |
_ACEOF |
7827 |
for ac_lib in '' $LIBM; do |
7828 |
if test -z "$ac_lib"; then |
7829 |
ac_res="none required" |
7830 |
else |
7831 |
ac_res=-l$ac_lib |
7832 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
7833 |
fi |
7834 |
if ac_fn_c_try_link "$LINENO"; then : |
7835 |
ac_cv_search_floor=$ac_res |
7836 |
fi |
7837 |
rm -f core conftest.err conftest.$ac_objext \ |
7838 |
conftest$ac_exeext |
7839 |
if ${ac_cv_search_floor+:} false; then : |
7840 |
break |
7841 |
fi |
7842 |
done |
7843 |
if ${ac_cv_search_floor+:} false; then : |
7844 |
|
7845 |
else |
7846 |
ac_cv_search_floor=no |
7847 |
fi |
7848 |
rm conftest.$ac_ext |
7849 |
LIBS=$ac_func_search_save_LIBS |
7850 |
fi |
7851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
7852 |
$as_echo "$ac_cv_search_floor" >&6; } |
7853 |
ac_res=$ac_cv_search_floor |
7854 |
if test "$ac_res" != no; then : |
7855 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7856 |
|
7857 |
$as_echo "#define HAVE_FLOOR 1" >>confdefs.h |
7858 |
|
7859 |
fi |
7860 |
|
7861 |
|
7862 |
|
7863 |
|
7864 |
ac_ext=cpp |
7865 |
ac_cpp='$CXXCPP $CPPFLAGS' |
7866 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7867 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7868 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
7869 |
|
7870 |
|
7871 |
|
7872 |
cat >confcache <<\_ACEOF |
7873 |
# This file is a shell script that caches the results of configure |
7874 |
# tests run on this system so they can be shared between configure |
7875 |
# scripts and configure runs, see configure's option --config-cache. |
7876 |
# It is not useful on other systems. If it contains results you don't |
7877 |
# want to keep, you may remove or edit it. |
7878 |
# |
7879 |
# config.status only pays attention to the cache file if you give it |
7880 |
# the --recheck option to rerun configure. |
7881 |
# |
7882 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
7883 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
7884 |
# following values. |
7885 |
|
7886 |
_ACEOF |
7887 |
|
7888 |
# The following way of writing the cache mishandles newlines in values, |
7889 |
# but we know of no workaround that is simple, portable, and efficient. |
7890 |
# So, we kill variables containing newlines. |
7891 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
7892 |
# and sets the high bit in the cache file unless we assign to the vars. |
7893 |
( |
7894 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
7895 |
eval ac_val=\$$ac_var |
7896 |
case $ac_val in #( |
7897 |
*${as_nl}*) |
7898 |
case $ac_var in #( |
7899 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7900 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7901 |
esac |
7902 |
case $ac_var in #( |
7903 |
_ | IFS | as_nl) ;; #( |
7904 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7905 |
*) { eval $ac_var=; unset $ac_var;} ;; |
7906 |
esac ;; |
7907 |
esac |
7908 |
done |
7909 |
|
7910 |
(set) 2>&1 | |
7911 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7912 |
*${as_nl}ac_space=\ *) |
7913 |
# `set' does not quote correctly, so add quotes: double-quote |
7914 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
7915 |
sed -n \ |
7916 |
"s/'/'\\\\''/g; |
7917 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7918 |
;; #( |
7919 |
*) |
7920 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
7921 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
7922 |
;; |
7923 |
esac | |
7924 |
sort |
7925 |
) | |
7926 |
sed ' |
7927 |
/^ac_cv_env_/b end |
7928 |
t clear |
7929 |
:clear |
7930 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7931 |
t end |
7932 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7933 |
:end' >>confcache |
7934 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7935 |
if test -w "$cache_file"; then |
7936 |
if test "x$cache_file" != "x/dev/null"; then |
7937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7938 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
7939 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
7940 |
cat confcache >"$cache_file" |
7941 |
else |
7942 |
case $cache_file in #( |
7943 |
*/* | ?:*) |
7944 |
mv -f confcache "$cache_file"$$ && |
7945 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
7946 |
*) |
7947 |
mv -f confcache "$cache_file" ;; |
7948 |
esac |
7949 |
fi |
7950 |
fi |
7951 |
else |
7952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7953 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
7954 |
fi |
7955 |
fi |
7956 |
rm -f confcache |
7957 |
|
7958 |
|
7959 |
|
7960 |
# Check whether --with-kernel was given. |
7961 |
if test "${with_kernel+set}" = set; then : |
7962 |
withval=$with_kernel; kerneldir="$withval" |
7963 |
else |
7964 |
kerneldir="/usr/src/linux" |
7965 |
|
7966 |
fi |
7967 |
|
7968 |
|
7969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5 |
7970 |
$as_echo_n "checking for linux/if_tun.h... " >&6; } |
7971 |
if ${tinc_cv_linux_if_tun_h+:} false; then : |
7972 |
$as_echo_n "(cached) " >&6 |
7973 |
else |
7974 |
|
7975 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7976 |
/* end confdefs.h. */ |
7977 |
#include "$kerneldir/include/linux/if_tun.h" |
7978 |
int |
7979 |
main () |
7980 |
{ |
7981 |
int a = IFF_TAP; |
7982 |
; |
7983 |
return 0; |
7984 |
} |
7985 |
_ACEOF |
7986 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
7987 |
if_tun_h="\"$kerneldir/include/linux/if_tun.h\"" |
7988 |
else |
7989 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7990 |
/* end confdefs.h. */ |
7991 |
#include <linux/if_tun.h> |
7992 |
int |
7993 |
main () |
7994 |
{ |
7995 |
int a = IFF_TAP; |
7996 |
; |
7997 |
return 0; |
7998 |
} |
7999 |
_ACEOF |
8000 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
8001 |
if_tun_h="default" |
8002 |
else |
8003 |
if_tun_h="no" |
8004 |
|
8005 |
fi |
8006 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8007 |
|
8008 |
fi |
8009 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8010 |
|
8011 |
if test $if_tun_h = no; then |
8012 |
tinc_cv_linux_if_tun_h=none |
8013 |
else |
8014 |
tinc_cv_linux_if_tun_h="$if_tun_h" |
8015 |
fi |
8016 |
|
8017 |
fi |
8018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5 |
8019 |
$as_echo "$tinc_cv_linux_if_tun_h" >&6; } |
8020 |
|
8021 |
if test $tinc_cv_linux_if_tun_h != none; then |
8022 |
|
8023 |
$as_echo "#define HAVE_TUNTAP 1" >>confdefs.h |
8024 |
|
8025 |
if test $tinc_cv_linux_if_tun_h != default; then |
8026 |
|
8027 |
cat >>confdefs.h <<_ACEOF |
8028 |
#define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h |
8029 |
_ACEOF |
8030 |
|
8031 |
fi |
8032 |
fi |
8033 |
|
8034 |
|
8035 |
|
8036 |
|
8037 |
|
8038 |
|
8039 |
|
8040 |
|
8041 |
|
8042 |
|
8043 |
|
8044 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
8045 |
if test -n "$ac_tool_prefix"; then |
8046 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
8047 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
8048 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8049 |
$as_echo_n "checking for $ac_word... " >&6; } |
8050 |
if ${ac_cv_path_PKG_CONFIG+:} false; then : |
8051 |
$as_echo_n "(cached) " >&6 |
8052 |
else |
8053 |
case $PKG_CONFIG in |
8054 |
[\\/]* | ?:[\\/]*) |
8055 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
8056 |
;; |
8057 |
*) |
8058 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8059 |
for as_dir in $PATH |
8060 |
do |
8061 |
IFS=$as_save_IFS |
8062 |
test -z "$as_dir" && as_dir=. |
8063 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8064 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8065 |
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8066 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8067 |
break 2 |
8068 |
fi |
8069 |
done |
8070 |
done |
8071 |
IFS=$as_save_IFS |
8072 |
|
8073 |
;; |
8074 |
esac |
8075 |
fi |
8076 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
8077 |
if test -n "$PKG_CONFIG"; then |
8078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
8079 |
$as_echo "$PKG_CONFIG" >&6; } |
8080 |
else |
8081 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8082 |
$as_echo "no" >&6; } |
8083 |
fi |
8084 |
|
8085 |
|
8086 |
fi |
8087 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
8088 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
8089 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
8090 |
set dummy pkg-config; ac_word=$2 |
8091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8092 |
$as_echo_n "checking for $ac_word... " >&6; } |
8093 |
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
8094 |
$as_echo_n "(cached) " >&6 |
8095 |
else |
8096 |
case $ac_pt_PKG_CONFIG in |
8097 |
[\\/]* | ?:[\\/]*) |
8098 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
8099 |
;; |
8100 |
*) |
8101 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8102 |
for as_dir in $PATH |
8103 |
do |
8104 |
IFS=$as_save_IFS |
8105 |
test -z "$as_dir" && as_dir=. |
8106 |
for ac_exec_ext in '' $ac_executable_extensions; do |
8107 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8108 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
8109 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8110 |
break 2 |
8111 |
fi |
8112 |
done |
8113 |
done |
8114 |
IFS=$as_save_IFS |
8115 |
|
8116 |
;; |
8117 |
esac |
8118 |
fi |
8119 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
8120 |
if test -n "$ac_pt_PKG_CONFIG"; then |
8121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
8122 |
$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
8123 |
else |
8124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8125 |
$as_echo "no" >&6; } |
8126 |
fi |
8127 |
|
8128 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
8129 |
PKG_CONFIG="" |
8130 |
else |
8131 |
case $cross_compiling:$ac_tool_warned in |
8132 |
yes:) |
8133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8134 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
8135 |
ac_tool_warned=yes ;; |
8136 |
esac |
8137 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
8138 |
fi |
8139 |
else |
8140 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
8141 |
fi |
8142 |
|
8143 |
fi |
8144 |
if test -n "$PKG_CONFIG"; then |
8145 |
_pkg_min_version=0.9.0 |
8146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
8147 |
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
8148 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
8149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8150 |
$as_echo "yes" >&6; } |
8151 |
else |
8152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8153 |
$as_echo "no" >&6; } |
8154 |
PKG_CONFIG="" |
8155 |
fi |
8156 |
fi |
8157 |
|
8158 |
pkg_failed=no |
8159 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPTO" >&5 |
8160 |
$as_echo_n "checking for LIBCRYPTO... " >&6; } |
8161 |
|
8162 |
if test -n "$LIBCRYPTO_CFLAGS"; then |
8163 |
pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS" |
8164 |
elif test -n "$PKG_CONFIG"; then |
8165 |
if test -n "$PKG_CONFIG" && \ |
8166 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
8167 |
($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
8168 |
ac_status=$? |
8169 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8170 |
test $ac_status = 0; }; then |
8171 |
pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null` |
8172 |
test "x$?" != "x0" && pkg_failed=yes |
8173 |
else |
8174 |
pkg_failed=yes |
8175 |
fi |
8176 |
else |
8177 |
pkg_failed=untried |
8178 |
fi |
8179 |
if test -n "$LIBCRYPTO_LIBS"; then |
8180 |
pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS" |
8181 |
elif test -n "$PKG_CONFIG"; then |
8182 |
if test -n "$PKG_CONFIG" && \ |
8183 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5 |
8184 |
($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5 |
8185 |
ac_status=$? |
8186 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8187 |
test $ac_status = 0; }; then |
8188 |
pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null` |
8189 |
test "x$?" != "x0" && pkg_failed=yes |
8190 |
else |
8191 |
pkg_failed=yes |
8192 |
fi |
8193 |
else |
8194 |
pkg_failed=untried |
8195 |
fi |
8196 |
|
8197 |
|
8198 |
|
8199 |
if test $pkg_failed = yes; then |
8200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8201 |
$as_echo "no" >&6; } |
8202 |
|
8203 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8204 |
_pkg_short_errors_supported=yes |
8205 |
else |
8206 |
_pkg_short_errors_supported=no |
8207 |
fi |
8208 |
if test $_pkg_short_errors_supported = yes; then |
8209 |
LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
8210 |
else |
8211 |
LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1` |
8212 |
fi |
8213 |
# Put the nasty error message in config.log where it belongs |
8214 |
echo "$LIBCRYPTO_PKG_ERRORS" >&5 |
8215 |
|
8216 |
as_fn_error $? "Package requirements (libcrypto >= 1) were not met: |
8217 |
|
8218 |
$LIBCRYPTO_PKG_ERRORS |
8219 |
|
8220 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
8221 |
installed software in a non-standard prefix. |
8222 |
|
8223 |
Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
8224 |
and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
8225 |
See the pkg-config man page for more details." "$LINENO" 5 |
8226 |
elif test $pkg_failed = untried; then |
8227 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8228 |
$as_echo "no" >&6; } |
8229 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8230 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
8231 |
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
8232 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
8233 |
path to pkg-config. |
8234 |
|
8235 |
Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS |
8236 |
and LIBCRYPTO_LIBS to avoid the need to call pkg-config. |
8237 |
See the pkg-config man page for more details. |
8238 |
|
8239 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8240 |
See \`config.log' for more details" "$LINENO" 5; } |
8241 |
else |
8242 |
LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS |
8243 |
LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS |
8244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8245 |
$as_echo "yes" >&6; } |
8246 |
|
8247 |
fi |
8248 |
|
8249 |
# Check whether --enable-threads was given. |
8250 |
if test "${enable_threads+set}" = set; then : |
8251 |
enableval=$enable_threads; try_threads=$enableval |
8252 |
else |
8253 |
try_threads=yes |
8254 |
|
8255 |
fi |
8256 |
|
8257 |
|
8258 |
if test "x$try_threads" = xyes; then |
8259 |
ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
8260 |
if test "x$ac_cv_header_pthread_h" = xyes; then : |
8261 |
|
8262 |
LIBS="$LIBS -lpthread" |
8263 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8264 |
/* end confdefs.h. */ |
8265 |
#include <pthread.h> |
8266 |
int |
8267 |
main () |
8268 |
{ |
8269 |
pthread_t id; pthread_create (&id, 0, 0, 0); |
8270 |
; |
8271 |
return 0; |
8272 |
} |
8273 |
_ACEOF |
8274 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
8275 |
|
8276 |
cat >>confdefs.h <<_ACEOF |
8277 |
#define ENABLE_PTHREADS 1 |
8278 |
_ACEOF |
8279 |
|
8280 |
|
8281 |
fi |
8282 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8283 |
|
8284 |
fi |
8285 |
|
8286 |
|
8287 |
fi |
8288 |
|
8289 |
# Check whether --enable-static-daemon was given. |
8290 |
if test "${enable_static_daemon+set}" = set; then : |
8291 |
enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static |
8292 |
|
8293 |
fi |
8294 |
|
8295 |
|
8296 |
|
8297 |
|
8298 |
|
8299 |
|
8300 |
if test x$rohc = xtrue; then |
8301 |
ROHC_TRUE= |
8302 |
ROHC_FALSE='#' |
8303 |
else |
8304 |
ROHC_TRUE='#' |
8305 |
ROHC_FALSE= |
8306 |
fi |
8307 |
|
8308 |
|
8309 |
|
8310 |
ICMP=1 |
8311 |
# Check whether --enable-icmp was given. |
8312 |
if test "${enable_icmp+set}" = set; then : |
8313 |
enableval=$enable_icmp; if test "x$enableval" = xno; then |
8314 |
ICMP=0 |
8315 |
fi |
8316 |
|
8317 |
fi |
8318 |
|
8319 |
if test "x$ICMP" = x1; then |
8320 |
|
8321 |
cat >>confdefs.h <<_ACEOF |
8322 |
#define ENABLE_ICMP 1 |
8323 |
_ACEOF |
8324 |
|
8325 |
fi |
8326 |
|
8327 |
TCP=1 |
8328 |
# Check whether --enable-tcp was given. |
8329 |
if test "${enable_tcp+set}" = set; then : |
8330 |
enableval=$enable_tcp; if test "x$enableval" = xno; then |
8331 |
TCP=0 |
8332 |
fi |
8333 |
|
8334 |
fi |
8335 |
|
8336 |
if test "x$TCP" = x1; then |
8337 |
|
8338 |
cat >>confdefs.h <<_ACEOF |
8339 |
#define ENABLE_TCP 1 |
8340 |
_ACEOF |
8341 |
|
8342 |
fi |
8343 |
|
8344 |
HTTP=1 |
8345 |
# Check whether --enable-http-proxy was given. |
8346 |
if test "${enable_http_proxy+set}" = set; then : |
8347 |
enableval=$enable_http_proxy; if test "x$enableval" = xno; then |
8348 |
HTTP=0 |
8349 |
fi |
8350 |
|
8351 |
fi |
8352 |
|
8353 |
if test "x$HTTP" = x1; then |
8354 |
|
8355 |
cat >>confdefs.h <<_ACEOF |
8356 |
#define ENABLE_HTTP_PROXY 1 |
8357 |
_ACEOF |
8358 |
|
8359 |
fi |
8360 |
|
8361 |
# Check whether --enable-dns was given. |
8362 |
if test "${enable_dns+set}" = set; then : |
8363 |
enableval=$enable_dns; |
8364 |
ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" |
8365 |
if test "x$ac_cv_header_gmp_h" = xyes; then : |
8366 |
|
8367 |
else |
8368 |
as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5 |
8369 |
fi |
8370 |
|
8371 |
|
8372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 |
8373 |
$as_echo_n "checking for main in -lgmp... " >&6; } |
8374 |
if ${ac_cv_lib_gmp_main+:} false; then : |
8375 |
$as_echo_n "(cached) " >&6 |
8376 |
else |
8377 |
ac_check_lib_save_LIBS=$LIBS |
8378 |
LIBS="-lgmp $LIBS" |
8379 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8380 |
/* end confdefs.h. */ |
8381 |
|
8382 |
|
8383 |
int |
8384 |
main () |
8385 |
{ |
8386 |
return main (); |
8387 |
; |
8388 |
return 0; |
8389 |
} |
8390 |
_ACEOF |
8391 |
if ac_fn_cxx_try_link "$LINENO"; then : |
8392 |
ac_cv_lib_gmp_main=yes |
8393 |
else |
8394 |
ac_cv_lib_gmp_main=no |
8395 |
fi |
8396 |
rm -f core conftest.err conftest.$ac_objext \ |
8397 |
conftest$ac_exeext conftest.$ac_ext |
8398 |
LIBS=$ac_check_lib_save_LIBS |
8399 |
fi |
8400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 |
8401 |
$as_echo "$ac_cv_lib_gmp_main" >&6; } |
8402 |
if test "x$ac_cv_lib_gmp_main" = xyes; then : |
8403 |
cat >>confdefs.h <<_ACEOF |
8404 |
#define HAVE_LIBGMP 1 |
8405 |
_ACEOF |
8406 |
|
8407 |
LIBS="-lgmp $LIBS" |
8408 |
|
8409 |
else |
8410 |
as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5 |
8411 |
fi |
8412 |
|
8413 |
|
8414 |
|
8415 |
cat >>confdefs.h <<_ACEOF |
8416 |
#define ENABLE_DNS 1 |
8417 |
_ACEOF |
8418 |
|
8419 |
|
8420 |
|
8421 |
fi |
8422 |
|
8423 |
|
8424 |
RSA=3072 |
8425 |
# Check whether --enable-rsa-length was given. |
8426 |
if test "${enable_rsa_length+set}" = set; then : |
8427 |
enableval=$enable_rsa_length; RSA=$enableval |
8428 |
|
8429 |
fi |
8430 |
|
8431 |
|
8432 |
cat >>confdefs.h <<_ACEOF |
8433 |
#define RSABITS $RSA |
8434 |
_ACEOF |
8435 |
|
8436 |
|
8437 |
HMACSIZE=12 |
8438 |
# Check whether --enable-hmac-length was given. |
8439 |
if test "${enable_hmac_length+set}" = set; then : |
8440 |
enableval=$enable_hmac_length; HMACSIZE=$enableval |
8441 |
|
8442 |
fi |
8443 |
|
8444 |
|
8445 |
cat >>confdefs.h <<_ACEOF |
8446 |
#define HMACLENGTH $HMACSIZE |
8447 |
_ACEOF |
8448 |
|
8449 |
|
8450 |
MTU=1500 |
8451 |
# Check whether --enable-max-mtu was given. |
8452 |
if test "${enable_max_mtu+set}" = set; then : |
8453 |
enableval=$enable_max_mtu; MTU=$enableval |
8454 |
|
8455 |
fi |
8456 |
|
8457 |
|
8458 |
cat >>confdefs.h <<_ACEOF |
8459 |
#define MAX_MTU ($MTU + 14) |
8460 |
_ACEOF |
8461 |
|
8462 |
|
8463 |
COMPRESS=1 |
8464 |
# Check whether --enable-compression was given. |
8465 |
if test "${enable_compression+set}" = set; then : |
8466 |
enableval=$enable_compression; if test "x$enableval" = xno; then |
8467 |
COMPRESS=0 |
8468 |
fi |
8469 |
|
8470 |
fi |
8471 |
|
8472 |
|
8473 |
cat >>confdefs.h <<_ACEOF |
8474 |
#define ENABLE_COMPRESSION $COMPRESS |
8475 |
_ACEOF |
8476 |
|
8477 |
|
8478 |
CIPHER=aes_128_ctr |
8479 |
# Check whether --enable-cipher was given. |
8480 |
if test "${enable_cipher+set}" = set; then : |
8481 |
enableval=$enable_cipher; #if test "x$enableval" = xbf ; then CIPHER=bf_ctr ; fi |
8482 |
if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_ctr ; fi |
8483 |
if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_ctr ; fi |
8484 |
if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_ctr ; fi |
8485 |
#if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_ctr; fi |
8486 |
#if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_ctr; fi |
8487 |
|
8488 |
fi |
8489 |
|
8490 |
|
8491 |
cat >>confdefs.h <<_ACEOF |
8492 |
#define ENABLE_CIPHER EVP_${CIPHER} |
8493 |
_ACEOF |
8494 |
|
8495 |
|
8496 |
HMAC=sha1 |
8497 |
# Check whether --enable-hmac-digest was given. |
8498 |
if test "${enable_hmac_digest+set}" = set; then : |
8499 |
enableval=$enable_hmac_digest; if test "x$enableval" = xwhirlpool; then HMAC=whirlpool; fi |
8500 |
if test "x$enableval" = xsha512 ; then HMAC=sha512 ; fi |
8501 |
if test "x$enableval" = xsha256 ; then HMAC=sha256 ; fi |
8502 |
if test "x$enableval" = xsha1 ; then HMAC=sha1 ; fi |
8503 |
if test "x$enableval" = xripemd160; then HMAC=ripemd160; fi |
8504 |
|
8505 |
fi |
8506 |
|
8507 |
|
8508 |
cat >>confdefs.h <<_ACEOF |
8509 |
#define ENABLE_HMAC EVP_${HMAC} |
8510 |
_ACEOF |
8511 |
|
8512 |
|
8513 |
AUTH=sha512 |
8514 |
# Check whether --enable-auth-digest was given. |
8515 |
if test "${enable_auth_digest+set}" = set; then : |
8516 |
enableval=$enable_auth_digest; if test "x$enableval" = xwhirlpool; then AUTH=whirlpool; fi |
8517 |
if test "x$enableval" = xsha512 ; then AUTH=sha512 ; fi |
8518 |
if test "x$enableval" = xsha256 ; then AUTH=sha256 ; fi |
8519 |
|
8520 |
fi |
8521 |
|
8522 |
|
8523 |
cat >>confdefs.h <<_ACEOF |
8524 |
#define ENABLE_AUTH EVP_${AUTH} |
8525 |
_ACEOF |
8526 |
|
8527 |
|
8528 |
if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
8529 |
CXXFLAGS="$CXXFLAGS -fno-rtti" |
8530 |
fi |
8531 |
|
8532 |
#if $CXX -v --help 2>&1 | grep -q fexceptions; then |
8533 |
# CXXFLAGS="$CXXFLAGS -fno-exceptions" |
8534 |
#fi |
8535 |
|
8536 |
LIBS="$EXTRA_LIBS $LIBS" |
8537 |
|
8538 |
|
8539 |
|
8540 |
|
8541 |
ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" |
8542 |
|
8543 |
cat >confcache <<\_ACEOF |
8544 |
# This file is a shell script that caches the results of configure |
8545 |
# tests run on this system so they can be shared between configure |
8546 |
# scripts and configure runs, see configure's option --config-cache. |
8547 |
# It is not useful on other systems. If it contains results you don't |
8548 |
# want to keep, you may remove or edit it. |
8549 |
# |
8550 |
# config.status only pays attention to the cache file if you give it |
8551 |
# the --recheck option to rerun configure. |
8552 |
# |
8553 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
8554 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
8555 |
# following values. |
8556 |
|
8557 |
_ACEOF |
8558 |
|
8559 |
# The following way of writing the cache mishandles newlines in values, |
8560 |
# but we know of no workaround that is simple, portable, and efficient. |
8561 |
# So, we kill variables containing newlines. |
8562 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
8563 |
# and sets the high bit in the cache file unless we assign to the vars. |
8564 |
( |
8565 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
8566 |
eval ac_val=\$$ac_var |
8567 |
case $ac_val in #( |
8568 |
*${as_nl}*) |
8569 |
case $ac_var in #( |
8570 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8571 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
8572 |
esac |
8573 |
case $ac_var in #( |
8574 |
_ | IFS | as_nl) ;; #( |
8575 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
8576 |
*) { eval $ac_var=; unset $ac_var;} ;; |
8577 |
esac ;; |
8578 |
esac |
8579 |
done |
8580 |
|
8581 |
(set) 2>&1 | |
8582 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8583 |
*${as_nl}ac_space=\ *) |
8584 |
# `set' does not quote correctly, so add quotes: double-quote |
8585 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
8586 |
sed -n \ |
8587 |
"s/'/'\\\\''/g; |
8588 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
8589 |
;; #( |
8590 |
*) |
8591 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
8592 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
8593 |
;; |
8594 |
esac | |
8595 |
sort |
8596 |
) | |
8597 |
sed ' |
8598 |
/^ac_cv_env_/b end |
8599 |
t clear |
8600 |
:clear |
8601 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8602 |
t end |
8603 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8604 |
:end' >>confcache |
8605 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
8606 |
if test -w "$cache_file"; then |
8607 |
if test "x$cache_file" != "x/dev/null"; then |
8608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
8609 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
8610 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
8611 |
cat confcache >"$cache_file" |
8612 |
else |
8613 |
case $cache_file in #( |
8614 |
*/* | ?:*) |
8615 |
mv -f confcache "$cache_file"$$ && |
8616 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
8617 |
*) |
8618 |
mv -f confcache "$cache_file" ;; |
8619 |
esac |
8620 |
fi |
8621 |
fi |
8622 |
else |
8623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8624 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
8625 |
fi |
8626 |
fi |
8627 |
rm -f confcache |
8628 |
|
8629 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8630 |
# Let make expand exec_prefix. |
8631 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
8632 |
|
8633 |
DEFS=-DHAVE_CONFIG_H |
8634 |
|
8635 |
ac_libobjs= |
8636 |
ac_ltlibobjs= |
8637 |
U= |
8638 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8639 |
# 1. Remove the extension, and $U if already installed. |
8640 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8641 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
8642 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8643 |
# will be set to the directory where LIBOBJS objects are built. |
8644 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8645 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
8646 |
done |
8647 |
LIBOBJS=$ac_libobjs |
8648 |
|
8649 |
LTLIBOBJS=$ac_ltlibobjs |
8650 |
|
8651 |
|
8652 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
8653 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
8654 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8655 |
fi |
8656 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
8657 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
8658 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8659 |
fi |
8660 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
8661 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8662 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8663 |
fi |
8664 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
8665 |
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
8666 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8667 |
fi |
8668 |
if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then |
8669 |
as_fn_error $? "conditional \"ROHC\" was never defined. |
8670 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
8671 |
fi |
8672 |
|
8673 |
: "${CONFIG_STATUS=./config.status}" |
8674 |
ac_write_fail=0 |
8675 |
ac_clean_files_save=$ac_clean_files |
8676 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8678 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
8679 |
as_write_fail=0 |
8680 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
8681 |
#! $SHELL |
8682 |
# Generated by $as_me. |
8683 |
# Run this file to recreate the current configuration. |
8684 |
# Compiler output produced by configure, useful for debugging |
8685 |
# configure, is in config.log if it exists. |
8686 |
|
8687 |
debug=false |
8688 |
ac_cs_recheck=false |
8689 |
ac_cs_silent=false |
8690 |
|
8691 |
SHELL=\${CONFIG_SHELL-$SHELL} |
8692 |
export SHELL |
8693 |
_ASEOF |
8694 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
8695 |
## -------------------- ## |
8696 |
## M4sh Initialization. ## |
8697 |
## -------------------- ## |
8698 |
|
8699 |
# Be more Bourne compatible |
8700 |
DUALCASE=1; export DUALCASE # for MKS sh |
8701 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8702 |
emulate sh |
8703 |
NULLCMD=: |
8704 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
8705 |
# is contrary to our usage. Disable this feature. |
8706 |
alias -g '${1+"$@"}'='"$@"' |
8707 |
setopt NO_GLOB_SUBST |
8708 |
else |
8709 |
case `(set -o) 2>/dev/null` in #( |
8710 |
*posix*) : |
8711 |
set -o posix ;; #( |
8712 |
*) : |
8713 |
;; |
8714 |
esac |
8715 |
fi |
8716 |
|
8717 |
|
8718 |
as_nl=' |
8719 |
' |
8720 |
export as_nl |
8721 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
8722 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
8723 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
8724 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
8725 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
8726 |
# but without wasting forks for bash or zsh. |
8727 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
8728 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
8729 |
as_echo='print -r --' |
8730 |
as_echo_n='print -rn --' |
8731 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
8732 |
as_echo='printf %s\n' |
8733 |
as_echo_n='printf %s' |
8734 |
else |
8735 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
8736 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
8737 |
as_echo_n='/usr/ucb/echo -n' |
8738 |
else |
8739 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8740 |
as_echo_n_body='eval |
8741 |
arg=$1; |
8742 |
case $arg in #( |
8743 |
*"$as_nl"*) |
8744 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
8745 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
8746 |
esac; |
8747 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
8748 |
' |
8749 |
export as_echo_n_body |
8750 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
8751 |
fi |
8752 |
export as_echo_body |
8753 |
as_echo='sh -c $as_echo_body as_echo' |
8754 |
fi |
8755 |
|
8756 |
# The user is always right. |
8757 |
if test "${PATH_SEPARATOR+set}" != set; then |
8758 |
PATH_SEPARATOR=: |
8759 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
8760 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
8761 |
PATH_SEPARATOR=';' |
8762 |
} |
8763 |
fi |
8764 |
|
8765 |
|
8766 |
# IFS |
8767 |
# We need space, tab and new line, in precisely that order. Quoting is |
8768 |
# there to prevent editors from complaining about space-tab. |
8769 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
8770 |
# splitting by setting IFS to empty value.) |
8771 |
IFS=" "" $as_nl" |
8772 |
|
8773 |
# Find who we are. Look in the path if we contain no directory separator. |
8774 |
as_myself= |
8775 |
case $0 in #(( |
8776 |
*[\\/]* ) as_myself=$0 ;; |
8777 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8778 |
for as_dir in $PATH |
8779 |
do |
8780 |
IFS=$as_save_IFS |
8781 |
test -z "$as_dir" && as_dir=. |
8782 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
8783 |
done |
8784 |
IFS=$as_save_IFS |
8785 |
|
8786 |
;; |
8787 |
esac |
8788 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
8789 |
# in which case we are not to be found in the path. |
8790 |
if test "x$as_myself" = x; then |
8791 |
as_myself=$0 |
8792 |
fi |
8793 |
if test ! -f "$as_myself"; then |
8794 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
8795 |
exit 1 |
8796 |
fi |
8797 |
|
8798 |
# Unset variables that we do not need and which cause bugs (e.g. in |
8799 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
8800 |
# suppresses any "Segmentation fault" message there. '((' could |
8801 |
# trigger a bug in pdksh 5.2.14. |
8802 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
8803 |
do eval test x\${$as_var+set} = xset \ |
8804 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
8805 |
done |
8806 |
PS1='$ ' |
8807 |
PS2='> ' |
8808 |
PS4='+ ' |
8809 |
|
8810 |
# NLS nuisances. |
8811 |
LC_ALL=C |
8812 |
export LC_ALL |
8813 |
LANGUAGE=C |
8814 |
export LANGUAGE |
8815 |
|
8816 |
# CDPATH. |
8817 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
8818 |
|
8819 |
|
8820 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
8821 |
# ---------------------------------------- |
8822 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8823 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
8824 |
# script with STATUS, using 1 if that was 0. |
8825 |
as_fn_error () |
8826 |
{ |
8827 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
8828 |
if test "$4"; then |
8829 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
8830 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
8831 |
fi |
8832 |
$as_echo "$as_me: error: $2" >&2 |
8833 |
as_fn_exit $as_status |
8834 |
} # as_fn_error |
8835 |
|
8836 |
|
8837 |
# as_fn_set_status STATUS |
8838 |
# ----------------------- |
8839 |
# Set $? to STATUS, without forking. |
8840 |
as_fn_set_status () |
8841 |
{ |
8842 |
return $1 |
8843 |
} # as_fn_set_status |
8844 |
|
8845 |
# as_fn_exit STATUS |
8846 |
# ----------------- |
8847 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
8848 |
as_fn_exit () |
8849 |
{ |
8850 |
set +e |
8851 |
as_fn_set_status $1 |
8852 |
exit $1 |
8853 |
} # as_fn_exit |
8854 |
|
8855 |
# as_fn_unset VAR |
8856 |
# --------------- |
8857 |
# Portably unset VAR. |
8858 |
as_fn_unset () |
8859 |
{ |
8860 |
{ eval $1=; unset $1;} |
8861 |
} |
8862 |
as_unset=as_fn_unset |
8863 |
# as_fn_append VAR VALUE |
8864 |
# ---------------------- |
8865 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
8866 |
# advantage of any shell optimizations that allow amortized linear growth over |
8867 |
# repeated appends, instead of the typical quadratic growth present in naive |
8868 |
# implementations. |
8869 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
8870 |
eval 'as_fn_append () |
8871 |
{ |
8872 |
eval $1+=\$2 |
8873 |
}' |
8874 |
else |
8875 |
as_fn_append () |
8876 |
{ |
8877 |
eval $1=\$$1\$2 |
8878 |
} |
8879 |
fi # as_fn_append |
8880 |
|
8881 |
# as_fn_arith ARG... |
8882 |
# ------------------ |
8883 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
8884 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
8885 |
# must be portable across $(()) and expr. |
8886 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
8887 |
eval 'as_fn_arith () |
8888 |
{ |
8889 |
as_val=$(( $* )) |
8890 |
}' |
8891 |
else |
8892 |
as_fn_arith () |
8893 |
{ |
8894 |
as_val=`expr "$@" || test $? -eq 1` |
8895 |
} |
8896 |
fi # as_fn_arith |
8897 |
|
8898 |
|
8899 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
8900 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
8901 |
as_expr=expr |
8902 |
else |
8903 |
as_expr=false |
8904 |
fi |
8905 |
|
8906 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
8907 |
as_basename=basename |
8908 |
else |
8909 |
as_basename=false |
8910 |
fi |
8911 |
|
8912 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8913 |
as_dirname=dirname |
8914 |
else |
8915 |
as_dirname=false |
8916 |
fi |
8917 |
|
8918 |
as_me=`$as_basename -- "$0" || |
8919 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8920 |
X"$0" : 'X\(//\)$' \| \ |
8921 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8922 |
$as_echo X/"$0" | |
8923 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8924 |
s//\1/ |
8925 |
q |
8926 |
} |
8927 |
/^X\/\(\/\/\)$/{ |
8928 |
s//\1/ |
8929 |
q |
8930 |
} |
8931 |
/^X\/\(\/\).*/{ |
8932 |
s//\1/ |
8933 |
q |
8934 |
} |
8935 |
s/.*/./; q'` |
8936 |
|
8937 |
# Avoid depending upon Character Ranges. |
8938 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
8939 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
8940 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
8941 |
as_cr_digits='0123456789' |
8942 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
8943 |
|
8944 |
ECHO_C= ECHO_N= ECHO_T= |
8945 |
case `echo -n x` in #((((( |
8946 |
-n*) |
8947 |
case `echo 'xy\c'` in |
8948 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
8949 |
xy) ECHO_C='\c';; |
8950 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
8951 |
ECHO_T=' ';; |
8952 |
esac;; |
8953 |
*) |
8954 |
ECHO_N='-n';; |
8955 |
esac |
8956 |
|
8957 |
rm -f conf$$ conf$$.exe conf$$.file |
8958 |
if test -d conf$$.dir; then |
8959 |
rm -f conf$$.dir/conf$$.file |
8960 |
else |
8961 |
rm -f conf$$.dir |
8962 |
mkdir conf$$.dir 2>/dev/null |
8963 |
fi |
8964 |
if (echo >conf$$.file) 2>/dev/null; then |
8965 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
8966 |
as_ln_s='ln -s' |
8967 |
# ... but there are two gotchas: |
8968 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
8969 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
8970 |
# In both cases, we have to default to `cp -pR'. |
8971 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8972 |
as_ln_s='cp -pR' |
8973 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
8974 |
as_ln_s=ln |
8975 |
else |
8976 |
as_ln_s='cp -pR' |
8977 |
fi |
8978 |
else |
8979 |
as_ln_s='cp -pR' |
8980 |
fi |
8981 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8982 |
rmdir conf$$.dir 2>/dev/null |
8983 |
|
8984 |
|
8985 |
# as_fn_mkdir_p |
8986 |
# ------------- |
8987 |
# Create "$as_dir" as a directory, including parents if necessary. |
8988 |
as_fn_mkdir_p () |
8989 |
{ |
8990 |
|
8991 |
case $as_dir in #( |
8992 |
-*) as_dir=./$as_dir;; |
8993 |
esac |
8994 |
test -d "$as_dir" || eval $as_mkdir_p || { |
8995 |
as_dirs= |
8996 |
while :; do |
8997 |
case $as_dir in #( |
8998 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
8999 |
*) as_qdir=$as_dir;; |
9000 |
esac |
9001 |
as_dirs="'$as_qdir' $as_dirs" |
9002 |
as_dir=`$as_dirname -- "$as_dir" || |
9003 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9004 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
9005 |
X"$as_dir" : 'X\(//\)$' \| \ |
9006 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
9007 |
$as_echo X"$as_dir" | |
9008 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9009 |
s//\1/ |
9010 |
q |
9011 |
} |
9012 |
/^X\(\/\/\)[^/].*/{ |
9013 |
s//\1/ |
9014 |
q |
9015 |
} |
9016 |
/^X\(\/\/\)$/{ |
9017 |
s//\1/ |
9018 |
q |
9019 |
} |
9020 |
/^X\(\/\).*/{ |
9021 |
s//\1/ |
9022 |
q |
9023 |
} |
9024 |
s/.*/./; q'` |
9025 |
test -d "$as_dir" && break |
9026 |
done |
9027 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
9028 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
9029 |
|
9030 |
|
9031 |
} # as_fn_mkdir_p |
9032 |
if mkdir -p . 2>/dev/null; then |
9033 |
as_mkdir_p='mkdir -p "$as_dir"' |
9034 |
else |
9035 |
test -d ./-p && rmdir ./-p |
9036 |
as_mkdir_p=false |
9037 |
fi |
9038 |
|
9039 |
|
9040 |
# as_fn_executable_p FILE |
9041 |
# ----------------------- |
9042 |
# Test if FILE is an executable regular file. |
9043 |
as_fn_executable_p () |
9044 |
{ |
9045 |
test -f "$1" && test -x "$1" |
9046 |
} # as_fn_executable_p |
9047 |
as_test_x='test -x' |
9048 |
as_executable_p=as_fn_executable_p |
9049 |
|
9050 |
# Sed expression to map a string onto a valid CPP name. |
9051 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
9052 |
|
9053 |
# Sed expression to map a string onto a valid variable name. |
9054 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
9055 |
|
9056 |
|
9057 |
exec 6>&1 |
9058 |
## ----------------------------------- ## |
9059 |
## Main body of $CONFIG_STATUS script. ## |
9060 |
## ----------------------------------- ## |
9061 |
_ASEOF |
9062 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
9063 |
|
9064 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9065 |
# Save the log message, to keep $0 and so on meaningful, and to |
9066 |
# report actual input values of CONFIG_FILES etc. instead of their |
9067 |
# values after options handling. |
9068 |
ac_log=" |
9069 |
This file was extended by $as_me, which was |
9070 |
generated by GNU Autoconf 2.69. Invocation command line was |
9071 |
|
9072 |
CONFIG_FILES = $CONFIG_FILES |
9073 |
CONFIG_HEADERS = $CONFIG_HEADERS |
9074 |
CONFIG_LINKS = $CONFIG_LINKS |
9075 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
9076 |
$ $0 $@ |
9077 |
|
9078 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9079 |
" |
9080 |
|
9081 |
_ACEOF |
9082 |
|
9083 |
case $ac_config_files in *" |
9084 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
9085 |
esac |
9086 |
|
9087 |
case $ac_config_headers in *" |
9088 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
9089 |
esac |
9090 |
|
9091 |
|
9092 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9093 |
# Files that config.status was made for. |
9094 |
config_files="$ac_config_files" |
9095 |
config_headers="$ac_config_headers" |
9096 |
config_commands="$ac_config_commands" |
9097 |
|
9098 |
_ACEOF |
9099 |
|
9100 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9101 |
ac_cs_usage="\ |
9102 |
\`$as_me' instantiates files and other configuration actions |
9103 |
from templates according to the current configuration. Unless the files |
9104 |
and actions are specified as TAGs, all are instantiated by default. |
9105 |
|
9106 |
Usage: $0 [OPTION]... [TAG]... |
9107 |
|
9108 |
-h, --help print this help, then exit |
9109 |
-V, --version print version number and configuration settings, then exit |
9110 |
--config print configuration, then exit |
9111 |
-q, --quiet, --silent |
9112 |
do not print progress messages |
9113 |
-d, --debug don't remove temporary files |
9114 |
--recheck update $as_me by reconfiguring in the same conditions |
9115 |
--file=FILE[:TEMPLATE] |
9116 |
instantiate the configuration file FILE |
9117 |
--header=FILE[:TEMPLATE] |
9118 |
instantiate the configuration header FILE |
9119 |
|
9120 |
Configuration files: |
9121 |
$config_files |
9122 |
|
9123 |
Configuration headers: |
9124 |
$config_headers |
9125 |
|
9126 |
Configuration commands: |
9127 |
$config_commands |
9128 |
|
9129 |
Report bugs to the package provider." |
9130 |
|
9131 |
_ACEOF |
9132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9133 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9134 |
ac_cs_version="\\ |
9135 |
config.status |
9136 |
configured by $0, generated by GNU Autoconf 2.69, |
9137 |
with options \\"\$ac_cs_config\\" |
9138 |
|
9139 |
Copyright (C) 2012 Free Software Foundation, Inc. |
9140 |
This config.status script is free software; the Free Software Foundation |
9141 |
gives unlimited permission to copy, distribute and modify it." |
9142 |
|
9143 |
ac_pwd='$ac_pwd' |
9144 |
srcdir='$srcdir' |
9145 |
INSTALL='$INSTALL' |
9146 |
AWK='$AWK' |
9147 |
test -n "\$AWK" || AWK=awk |
9148 |
_ACEOF |
9149 |
|
9150 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9151 |
# The default lists apply if the user does not specify any file. |
9152 |
ac_need_defaults=: |
9153 |
while test $# != 0 |
9154 |
do |
9155 |
case $1 in |
9156 |
--*=?*) |
9157 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9158 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
9159 |
ac_shift=: |
9160 |
;; |
9161 |
--*=) |
9162 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9163 |
ac_optarg= |
9164 |
ac_shift=: |
9165 |
;; |
9166 |
*) |
9167 |
ac_option=$1 |
9168 |
ac_optarg=$2 |
9169 |
ac_shift=shift |
9170 |
;; |
9171 |
esac |
9172 |
|
9173 |
case $ac_option in |
9174 |
# Handling of the options. |
9175 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9176 |
ac_cs_recheck=: ;; |
9177 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
9178 |
$as_echo "$ac_cs_version"; exit ;; |
9179 |
--config | --confi | --conf | --con | --co | --c ) |
9180 |
$as_echo "$ac_cs_config"; exit ;; |
9181 |
--debug | --debu | --deb | --de | --d | -d ) |
9182 |
debug=: ;; |
9183 |
--file | --fil | --fi | --f ) |
9184 |
$ac_shift |
9185 |
case $ac_optarg in |
9186 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9187 |
'') as_fn_error $? "missing file argument" ;; |
9188 |
esac |
9189 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
9190 |
ac_need_defaults=false;; |
9191 |
--header | --heade | --head | --hea ) |
9192 |
$ac_shift |
9193 |
case $ac_optarg in |
9194 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9195 |
esac |
9196 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
9197 |
ac_need_defaults=false;; |
9198 |
--he | --h) |
9199 |
# Conflict between --help and --header |
9200 |
as_fn_error $? "ambiguous option: \`$1' |
9201 |
Try \`$0 --help' for more information.";; |
9202 |
--help | --hel | -h ) |
9203 |
$as_echo "$ac_cs_usage"; exit ;; |
9204 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9205 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
9206 |
ac_cs_silent=: ;; |
9207 |
|
9208 |
# This is an error. |
9209 |
-*) as_fn_error $? "unrecognized option: \`$1' |
9210 |
Try \`$0 --help' for more information." ;; |
9211 |
|
9212 |
*) as_fn_append ac_config_targets " $1" |
9213 |
ac_need_defaults=false ;; |
9214 |
|
9215 |
esac |
9216 |
shift |
9217 |
done |
9218 |
|
9219 |
ac_configure_extra_args= |
9220 |
|
9221 |
if $ac_cs_silent; then |
9222 |
exec 6>/dev/null |
9223 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
9224 |
fi |
9225 |
|
9226 |
_ACEOF |
9227 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9228 |
if \$ac_cs_recheck; then |
9229 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9230 |
shift |
9231 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
9232 |
CONFIG_SHELL='$SHELL' |
9233 |
export CONFIG_SHELL |
9234 |
exec "\$@" |
9235 |
fi |
9236 |
|
9237 |
_ACEOF |
9238 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9239 |
exec 5>>config.log |
9240 |
{ |
9241 |
echo |
9242 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
9243 |
## Running $as_me. ## |
9244 |
_ASBOX |
9245 |
$as_echo "$ac_log" |
9246 |
} >&5 |
9247 |
|
9248 |
_ACEOF |
9249 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9250 |
# |
9251 |
# INIT-COMMANDS |
9252 |
# |
9253 |
# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
9254 |
# POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
9255 |
# from automake. |
9256 |
eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
9257 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
9258 |
LINGUAS="${LINGUAS-%UNSET%}" |
9259 |
|
9260 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
9261 |
|
9262 |
_ACEOF |
9263 |
|
9264 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9265 |
|
9266 |
# Handling of arguments. |
9267 |
for ac_config_target in $ac_config_targets |
9268 |
do |
9269 |
case $ac_config_target in |
9270 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
9271 |
"default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
9272 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
9273 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9274 |
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
9275 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
9276 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
9277 |
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
9278 |
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
9279 |
|
9280 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9281 |
esac |
9282 |
done |
9283 |
|
9284 |
|
9285 |
# If the user did not use the arguments to specify the items to instantiate, |
9286 |
# then the envvar interface is used. Set only those that are not. |
9287 |
# We use the long form for the default assignment because of an extremely |
9288 |
# bizarre bug on SunOS 4.1.3. |
9289 |
if $ac_need_defaults; then |
9290 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
9291 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9292 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
9293 |
fi |
9294 |
|
9295 |
# Have a temporary directory for convenience. Make it in the build tree |
9296 |
# simply because there is no reason against having it here, and in addition, |
9297 |
# creating and moving files from /tmp can sometimes cause problems. |
9298 |
# Hook for its removal unless debugging. |
9299 |
# Note that there is a small window in which the directory will not be cleaned: |
9300 |
# after its creation but before its name has been assigned to `$tmp'. |
9301 |
$debug || |
9302 |
{ |
9303 |
tmp= ac_tmp= |
9304 |
trap 'exit_status=$? |
9305 |
: "${ac_tmp:=$tmp}" |
9306 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
9307 |
' 0 |
9308 |
trap 'as_fn_exit 1' 1 2 13 15 |
9309 |
} |
9310 |
# Create a (secure) tmp directory for tmp files. |
9311 |
|
9312 |
{ |
9313 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
9314 |
test -d "$tmp" |
9315 |
} || |
9316 |
{ |
9317 |
tmp=./conf$$-$RANDOM |
9318 |
(umask 077 && mkdir "$tmp") |
9319 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
9320 |
ac_tmp=$tmp |
9321 |
|
9322 |
# Set up the scripts for CONFIG_FILES section. |
9323 |
# No need to generate them if there are no CONFIG_FILES. |
9324 |
# This happens for instance with `./config.status config.h'. |
9325 |
if test -n "$CONFIG_FILES"; then |
9326 |
|
9327 |
|
9328 |
ac_cr=`echo X | tr X '\015'` |
9329 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
9330 |
# But we know of no other shell where ac_cr would be empty at this |
9331 |
# point, so we can use a bashism as a fallback. |
9332 |
if test "x$ac_cr" = x; then |
9333 |
eval ac_cr=\$\'\\r\' |
9334 |
fi |
9335 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
9336 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
9337 |
ac_cs_awk_cr='\\r' |
9338 |
else |
9339 |
ac_cs_awk_cr=$ac_cr |
9340 |
fi |
9341 |
|
9342 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
9343 |
_ACEOF |
9344 |
|
9345 |
|
9346 |
{ |
9347 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
9348 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
9349 |
echo "_ACEOF" |
9350 |
} >conf$$subs.sh || |
9351 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9352 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
9353 |
ac_delim='%!_!# ' |
9354 |
for ac_last_try in false false false false false :; do |
9355 |
. ./conf$$subs.sh || |
9356 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9357 |
|
9358 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
9359 |
if test $ac_delim_n = $ac_delim_num; then |
9360 |
break |
9361 |
elif $ac_last_try; then |
9362 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
9363 |
else |
9364 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
9365 |
fi |
9366 |
done |
9367 |
rm -f conf$$subs.sh |
9368 |
|
9369 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9370 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
9371 |
_ACEOF |
9372 |
sed -n ' |
9373 |
h |
9374 |
s/^/S["/; s/!.*/"]=/ |
9375 |
p |
9376 |
g |
9377 |
s/^[^!]*!// |
9378 |
:repl |
9379 |
t repl |
9380 |
s/'"$ac_delim"'$// |
9381 |
t delim |
9382 |
:nl |
9383 |
h |
9384 |
s/\(.\{148\}\)..*/\1/ |
9385 |
t more1 |
9386 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
9387 |
p |
9388 |
n |
9389 |
b repl |
9390 |
:more1 |
9391 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
9392 |
p |
9393 |
g |
9394 |
s/.\{148\}// |
9395 |
t nl |
9396 |
:delim |
9397 |
h |
9398 |
s/\(.\{148\}\)..*/\1/ |
9399 |
t more2 |
9400 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
9401 |
p |
9402 |
b |
9403 |
:more2 |
9404 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
9405 |
p |
9406 |
g |
9407 |
s/.\{148\}// |
9408 |
t delim |
9409 |
' <conf$$subs.awk | sed ' |
9410 |
/^[^""]/{ |
9411 |
N |
9412 |
s/\n// |
9413 |
} |
9414 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
9415 |
rm -f conf$$subs.awk |
9416 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9417 |
_ACAWK |
9418 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
9419 |
for (key in S) S_is_set[key] = 1 |
9420 |
FS = "" |
9421 |
|
9422 |
} |
9423 |
{ |
9424 |
line = $ 0 |
9425 |
nfields = split(line, field, "@") |
9426 |
substed = 0 |
9427 |
len = length(field[1]) |
9428 |
for (i = 2; i < nfields; i++) { |
9429 |
key = field[i] |
9430 |
keylen = length(key) |
9431 |
if (S_is_set[key]) { |
9432 |
value = S[key] |
9433 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
9434 |
len += length(value) + length(field[++i]) |
9435 |
substed = 1 |
9436 |
} else |
9437 |
len += 1 + keylen |
9438 |
} |
9439 |
|
9440 |
print line |
9441 |
} |
9442 |
|
9443 |
_ACAWK |
9444 |
_ACEOF |
9445 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9446 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
9447 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
9448 |
else |
9449 |
cat |
9450 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
9451 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
9452 |
_ACEOF |
9453 |
|
9454 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
9455 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
9456 |
# trailing colons and then remove the whole line if VPATH becomes empty |
9457 |
# (actually we leave an empty line to preserve line numbers). |
9458 |
if test "x$srcdir" = x.; then |
9459 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
9460 |
h |
9461 |
s/// |
9462 |
s/^/:/ |
9463 |
s/[ ]*$/:/ |
9464 |
s/:\$(srcdir):/:/g |
9465 |
s/:\${srcdir}:/:/g |
9466 |
s/:@srcdir@:/:/g |
9467 |
s/^:*// |
9468 |
s/:*$// |
9469 |
x |
9470 |
s/\(=[ ]*\).*/\1/ |
9471 |
G |
9472 |
s/\n// |
9473 |
s/^[^=]*=[ ]*$// |
9474 |
}' |
9475 |
fi |
9476 |
|
9477 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9478 |
fi # test -n "$CONFIG_FILES" |
9479 |
|
9480 |
# Set up the scripts for CONFIG_HEADERS section. |
9481 |
# No need to generate them if there are no CONFIG_HEADERS. |
9482 |
# This happens for instance with `./config.status Makefile'. |
9483 |
if test -n "$CONFIG_HEADERS"; then |
9484 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
9485 |
BEGIN { |
9486 |
_ACEOF |
9487 |
|
9488 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
9489 |
# here-document in config.status, that substitutes the proper values into |
9490 |
# config.h.in to produce config.h. |
9491 |
|
9492 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
9493 |
# handling of long lines. |
9494 |
ac_delim='%!_!# ' |
9495 |
for ac_last_try in false false :; do |
9496 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
9497 |
if test -z "$ac_tt"; then |
9498 |
break |
9499 |
elif $ac_last_try; then |
9500 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
9501 |
else |
9502 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
9503 |
fi |
9504 |
done |
9505 |
|
9506 |
# For the awk script, D is an array of macro values keyed by name, |
9507 |
# likewise P contains macro parameters if any. Preserve backslash |
9508 |
# newline sequences. |
9509 |
|
9510 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
9511 |
sed -n ' |
9512 |
s/.\{148\}/&'"$ac_delim"'/g |
9513 |
t rset |
9514 |
:rset |
9515 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
9516 |
t def |
9517 |
d |
9518 |
:def |
9519 |
s/\\$// |
9520 |
t bsnl |
9521 |
s/["\\]/\\&/g |
9522 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
9523 |
D["\1"]=" \3"/p |
9524 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
9525 |
d |
9526 |
:bsnl |
9527 |
s/["\\]/\\&/g |
9528 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
9529 |
D["\1"]=" \3\\\\\\n"\\/p |
9530 |
t cont |
9531 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
9532 |
t cont |
9533 |
d |
9534 |
:cont |
9535 |
n |
9536 |
s/.\{148\}/&'"$ac_delim"'/g |
9537 |
t clear |
9538 |
:clear |
9539 |
s/\\$// |
9540 |
t bsnlc |
9541 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
9542 |
d |
9543 |
:bsnlc |
9544 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
9545 |
b cont |
9546 |
' <confdefs.h | sed ' |
9547 |
s/'"$ac_delim"'/"\\\ |
9548 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
9549 |
|
9550 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9551 |
for (key in D) D_is_set[key] = 1 |
9552 |
FS = "" |
9553 |
} |
9554 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
9555 |
line = \$ 0 |
9556 |
split(line, arg, " ") |
9557 |
if (arg[1] == "#") { |
9558 |
defundef = arg[2] |
9559 |
mac1 = arg[3] |
9560 |
} else { |
9561 |
defundef = substr(arg[1], 2) |
9562 |
mac1 = arg[2] |
9563 |
} |
9564 |
split(mac1, mac2, "(") #) |
9565 |
macro = mac2[1] |
9566 |
prefix = substr(line, 1, index(line, defundef) - 1) |
9567 |
if (D_is_set[macro]) { |
9568 |
# Preserve the white space surrounding the "#". |
9569 |
print prefix "define", macro P[macro] D[macro] |
9570 |
next |
9571 |
} else { |
9572 |
# Replace #undef with comments. This is necessary, for example, |
9573 |
# in the case of _POSIX_SOURCE, which is predefined and required |
9574 |
# on some systems where configure will not decide to define it. |
9575 |
if (defundef == "undef") { |
9576 |
print "/*", prefix defundef, macro, "*/" |
9577 |
next |
9578 |
} |
9579 |
} |
9580 |
} |
9581 |
{ print } |
9582 |
_ACAWK |
9583 |
_ACEOF |
9584 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9585 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
9586 |
fi # test -n "$CONFIG_HEADERS" |
9587 |
|
9588 |
|
9589 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9590 |
shift |
9591 |
for ac_tag |
9592 |
do |
9593 |
case $ac_tag in |
9594 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
9595 |
esac |
9596 |
case $ac_mode$ac_tag in |
9597 |
:[FHL]*:*);; |
9598 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
9599 |
:[FH]-) ac_tag=-:-;; |
9600 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
9601 |
esac |
9602 |
ac_save_IFS=$IFS |
9603 |
IFS=: |
9604 |
set x $ac_tag |
9605 |
IFS=$ac_save_IFS |
9606 |
shift |
9607 |
ac_file=$1 |
9608 |
shift |
9609 |
|
9610 |
case $ac_mode in |
9611 |
:L) ac_source=$1;; |
9612 |
:[FH]) |
9613 |
ac_file_inputs= |
9614 |
for ac_f |
9615 |
do |
9616 |
case $ac_f in |
9617 |
-) ac_f="$ac_tmp/stdin";; |
9618 |
*) # Look for the file first in the build tree, then in the source tree |
9619 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
9620 |
# because $ac_f cannot contain `:'. |
9621 |
test -f "$ac_f" || |
9622 |
case $ac_f in |
9623 |
[\\/$]*) false;; |
9624 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
9625 |
esac || |
9626 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9627 |
esac |
9628 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9629 |
as_fn_append ac_file_inputs " '$ac_f'" |
9630 |
done |
9631 |
|
9632 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
9633 |
# use $as_me), people would be surprised to read: |
9634 |
# /* config.h. Generated by config.status. */ |
9635 |
configure_input='Generated from '` |
9636 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
9637 |
`' by configure.' |
9638 |
if test x"$ac_file" != x-; then |
9639 |
configure_input="$ac_file. $configure_input" |
9640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9641 |
$as_echo "$as_me: creating $ac_file" >&6;} |
9642 |
fi |
9643 |
# Neutralize special characters interpreted by sed in replacement strings. |
9644 |
case $configure_input in #( |
9645 |
*\&* | *\|* | *\\* ) |
9646 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
9647 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9648 |
*) ac_sed_conf_input=$configure_input;; |
9649 |
esac |
9650 |
|
9651 |
case $ac_tag in |
9652 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
9653 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
9654 |
esac |
9655 |
;; |
9656 |
esac |
9657 |
|
9658 |
ac_dir=`$as_dirname -- "$ac_file" || |
9659 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9660 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
9661 |
X"$ac_file" : 'X\(//\)$' \| \ |
9662 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9663 |
$as_echo X"$ac_file" | |
9664 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9665 |
s//\1/ |
9666 |
q |
9667 |
} |
9668 |
/^X\(\/\/\)[^/].*/{ |
9669 |
s//\1/ |
9670 |
q |
9671 |
} |
9672 |
/^X\(\/\/\)$/{ |
9673 |
s//\1/ |
9674 |
q |
9675 |
} |
9676 |
/^X\(\/\).*/{ |
9677 |
s//\1/ |
9678 |
q |
9679 |
} |
9680 |
s/.*/./; q'` |
9681 |
as_dir="$ac_dir"; as_fn_mkdir_p |
9682 |
ac_builddir=. |
9683 |
|
9684 |
case "$ac_dir" in |
9685 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9686 |
*) |
9687 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
9688 |
# A ".." for each directory in $ac_dir_suffix. |
9689 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
9690 |
case $ac_top_builddir_sub in |
9691 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9692 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9693 |
esac ;; |
9694 |
esac |
9695 |
ac_abs_top_builddir=$ac_pwd |
9696 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
9697 |
# for backward compatibility: |
9698 |
ac_top_builddir=$ac_top_build_prefix |
9699 |
|
9700 |
case $srcdir in |
9701 |
.) # We are building in place. |
9702 |
ac_srcdir=. |
9703 |
ac_top_srcdir=$ac_top_builddir_sub |
9704 |
ac_abs_top_srcdir=$ac_pwd ;; |
9705 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
9706 |
ac_srcdir=$srcdir$ac_dir_suffix; |
9707 |
ac_top_srcdir=$srcdir |
9708 |
ac_abs_top_srcdir=$srcdir ;; |
9709 |
*) # Relative name. |
9710 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
9711 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
9712 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
9713 |
esac |
9714 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9715 |
|
9716 |
|
9717 |
case $ac_mode in |
9718 |
:F) |
9719 |
# |
9720 |
# CONFIG_FILE |
9721 |
# |
9722 |
|
9723 |
case $INSTALL in |
9724 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
9725 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9726 |
esac |
9727 |
_ACEOF |
9728 |
|
9729 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9730 |
# If the template does not know about datarootdir, expand it. |
9731 |
# FIXME: This hack should be removed a few years after 2.60. |
9732 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
9733 |
ac_sed_dataroot=' |
9734 |
/datarootdir/ { |
9735 |
p |
9736 |
q |
9737 |
} |
9738 |
/@datadir@/p |
9739 |
/@docdir@/p |
9740 |
/@infodir@/p |
9741 |
/@localedir@/p |
9742 |
/@mandir@/p' |
9743 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
9744 |
*datarootdir*) ac_datarootdir_seen=yes;; |
9745 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9747 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9748 |
_ACEOF |
9749 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9750 |
ac_datarootdir_hack=' |
9751 |
s&@datadir@&$datadir&g |
9752 |
s&@docdir@&$docdir&g |
9753 |
s&@infodir@&$infodir&g |
9754 |
s&@localedir@&$localedir&g |
9755 |
s&@mandir@&$mandir&g |
9756 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
9757 |
esac |
9758 |
_ACEOF |
9759 |
|
9760 |
# Neutralize VPATH when `$srcdir' = `.'. |
9761 |
# Shell code in configure.ac might set extrasub. |
9762 |
# FIXME: do we really want to maintain this feature? |
9763 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9764 |
ac_sed_extra="$ac_vpsub |
9765 |
$extrasub |
9766 |
_ACEOF |
9767 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9768 |
:t |
9769 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
9770 |
s|@configure_input@|$ac_sed_conf_input|;t t |
9771 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
9772 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
9773 |
s&@srcdir@&$ac_srcdir&;t t |
9774 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
9775 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
9776 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
9777 |
s&@builddir@&$ac_builddir&;t t |
9778 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
9779 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
9780 |
s&@INSTALL@&$ac_INSTALL&;t t |
9781 |
$ac_datarootdir_hack |
9782 |
" |
9783 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9784 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9785 |
|
9786 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9787 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9788 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
9789 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
9790 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9791 |
which seems to be undefined. Please make sure it is defined" >&5 |
9792 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9793 |
which seems to be undefined. Please make sure it is defined" >&2;} |
9794 |
|
9795 |
rm -f "$ac_tmp/stdin" |
9796 |
case $ac_file in |
9797 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9798 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
9799 |
esac \ |
9800 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9801 |
;; |
9802 |
:H) |
9803 |
# |
9804 |
# CONFIG_HEADER |
9805 |
# |
9806 |
if test x"$ac_file" != x-; then |
9807 |
{ |
9808 |
$as_echo "/* $configure_input */" \ |
9809 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9810 |
} >"$ac_tmp/config.h" \ |
9811 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9812 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
9813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9814 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
9815 |
else |
9816 |
rm -f "$ac_file" |
9817 |
mv "$ac_tmp/config.h" "$ac_file" \ |
9818 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9819 |
fi |
9820 |
else |
9821 |
$as_echo "/* $configure_input */" \ |
9822 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9823 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
9824 |
fi |
9825 |
# Compute "$ac_file"'s index in $config_headers. |
9826 |
_am_stamp_count=1 |
9827 |
for _am_header in $config_headers :; do |
9828 |
case $_am_header in |
9829 |
"$ac_file" | "$ac_file":* ) |
9830 |
break ;; |
9831 |
* ) |
9832 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
9833 |
esac |
9834 |
done |
9835 |
echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || |
9836 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9837 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
9838 |
X"$ac_file" : 'X\(//\)$' \| \ |
9839 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9840 |
$as_echo X"$ac_file" | |
9841 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9842 |
s//\1/ |
9843 |
q |
9844 |
} |
9845 |
/^X\(\/\/\)[^/].*/{ |
9846 |
s//\1/ |
9847 |
q |
9848 |
} |
9849 |
/^X\(\/\/\)$/{ |
9850 |
s//\1/ |
9851 |
q |
9852 |
} |
9853 |
/^X\(\/\).*/{ |
9854 |
s//\1/ |
9855 |
q |
9856 |
} |
9857 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
9858 |
;; |
9859 |
|
9860 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9861 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
9862 |
;; |
9863 |
esac |
9864 |
|
9865 |
|
9866 |
case $ac_file$ac_mode in |
9867 |
"default-1":C) |
9868 |
for ac_file in $CONFIG_FILES; do |
9869 |
# Support "outfile[:infile[:infile...]]" |
9870 |
case "$ac_file" in |
9871 |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
9872 |
esac |
9873 |
# PO directories have a Makefile.in generated from Makefile.in.in. |
9874 |
case "$ac_file" in */Makefile.in) |
9875 |
# Adjust a relative srcdir. |
9876 |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
9877 |
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
9878 |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
9879 |
# In autoconf-2.13 it is called $ac_given_srcdir. |
9880 |
# In autoconf-2.50 it is called $srcdir. |
9881 |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
9882 |
case "$ac_given_srcdir" in |
9883 |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
9884 |
/*) top_srcdir="$ac_given_srcdir" ;; |
9885 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
9886 |
esac |
9887 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
9888 |
rm -f "$ac_dir/POTFILES" |
9889 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
9890 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
9891 |
# ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
9892 |
# on $ac_dir but don't depend on user-specified configuration |
9893 |
# parameters. |
9894 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
9895 |
# The LINGUAS file contains the set of available languages. |
9896 |
if test -n "$ALL_LINGUAS"; then |
9897 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
9898 |
fi |
9899 |
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
9900 |
# Hide the ALL_LINGUAS assigment from automake. |
9901 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
9902 |
fi |
9903 |
case "$ac_given_srcdir" in |
9904 |
.) srcdirpre= ;; |
9905 |
*) srcdirpre='$(srcdir)/' ;; |
9906 |
esac |
9907 |
POFILES= |
9908 |
GMOFILES= |
9909 |
UPDATEPOFILES= |
9910 |
DUMMYPOFILES= |
9911 |
for lang in $ALL_LINGUAS; do |
9912 |
POFILES="$POFILES $srcdirpre$lang.po" |
9913 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
9914 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
9915 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
9916 |
done |
9917 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
9918 |
# environment variable. |
9919 |
INST_LINGUAS= |
9920 |
if test -n "$ALL_LINGUAS"; then |
9921 |
for presentlang in $ALL_LINGUAS; do |
9922 |
useit=no |
9923 |
if test "%UNSET%" != "$LINGUAS"; then |
9924 |
desiredlanguages="$LINGUAS" |
9925 |
else |
9926 |
desiredlanguages="$ALL_LINGUAS" |
9927 |
fi |
9928 |
for desiredlang in $desiredlanguages; do |
9929 |
# Use the presentlang catalog if desiredlang is |
9930 |
# a. equal to presentlang, or |
9931 |
# b. a variant of presentlang (because in this case, |
9932 |
# presentlang can be used as a fallback for messages |
9933 |
# which are not translated in the desiredlang catalog). |
9934 |
case "$desiredlang" in |
9935 |
"$presentlang"*) useit=yes;; |
9936 |
esac |
9937 |
done |
9938 |
if test $useit = yes; then |
9939 |
INST_LINGUAS="$INST_LINGUAS $presentlang" |
9940 |
fi |
9941 |
done |
9942 |
fi |
9943 |
CATALOGS= |
9944 |
if test -n "$INST_LINGUAS"; then |
9945 |
for lang in $INST_LINGUAS; do |
9946 |
CATALOGS="$CATALOGS $lang.gmo" |
9947 |
done |
9948 |
fi |
9949 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
9950 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
9951 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
9952 |
if test -f "$f"; then |
9953 |
case "$f" in |
9954 |
*.orig | *.bak | *~) ;; |
9955 |
*) cat "$f" >> "$ac_dir/Makefile" ;; |
9956 |
esac |
9957 |
fi |
9958 |
done |
9959 |
fi |
9960 |
;; |
9961 |
esac |
9962 |
done ;; |
9963 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
9964 |
# Strip MF so we end up with the name of the file. |
9965 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
9966 |
# Check whether this is an Automake generated Makefile or not. |
9967 |
# We used to match only the files named `Makefile.in', but |
9968 |
# some people rename them; so instead we look at the file content. |
9969 |
# Grep'ing the first line is not enough: some people post-process |
9970 |
# each Makefile.in and add a new line on top of each file to say so. |
9971 |
# So let's grep whole file. |
9972 |
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
9973 |
dirpart=`$as_dirname -- "$mf" || |
9974 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9975 |
X"$mf" : 'X\(//\)[^/]' \| \ |
9976 |
X"$mf" : 'X\(//\)$' \| \ |
9977 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
9978 |
$as_echo X"$mf" | |
9979 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9980 |
s//\1/ |
9981 |
q |
9982 |
} |
9983 |
/^X\(\/\/\)[^/].*/{ |
9984 |
s//\1/ |
9985 |
q |
9986 |
} |
9987 |
/^X\(\/\/\)$/{ |
9988 |
s//\1/ |
9989 |
q |
9990 |
} |
9991 |
/^X\(\/\).*/{ |
9992 |
s//\1/ |
9993 |
q |
9994 |
} |
9995 |
s/.*/./; q'` |
9996 |
else |
9997 |
continue |
9998 |
fi |
9999 |
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
10000 |
# Extract the definition of DEP_FILES from the Makefile without |
10001 |
# running `make'. |
10002 |
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
10003 |
test -z "$DEPDIR" && continue |
10004 |
# When using ansi2knr, U may be empty or an underscore; expand it |
10005 |
U=`sed -n -e '/^U = / s///p' < "$mf"` |
10006 |
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
10007 |
# We invoke sed twice because it is the simplest approach to |
10008 |
# changing $(DEPDIR) to its actual value in the expansion. |
10009 |
for file in `sed -n -e ' |
10010 |
/^DEP_FILES = .*\\\\$/ { |
10011 |
s/^DEP_FILES = // |
10012 |
:loop |
10013 |
s/\\\\$// |
10014 |
p |
10015 |
n |
10016 |
/\\\\$/ b loop |
10017 |
p |
10018 |
} |
10019 |
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
10020 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
10021 |
# Make sure the directory exists. |
10022 |
test -f "$dirpart/$file" && continue |
10023 |
fdir=`$as_dirname -- "$file" || |
10024 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
10025 |
X"$file" : 'X\(//\)[^/]' \| \ |
10026 |
X"$file" : 'X\(//\)$' \| \ |
10027 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
10028 |
$as_echo X"$file" | |
10029 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
10030 |
s//\1/ |
10031 |
q |
10032 |
} |
10033 |
/^X\(\/\/\)[^/].*/{ |
10034 |
s//\1/ |
10035 |
q |
10036 |
} |
10037 |
/^X\(\/\/\)$/{ |
10038 |
s//\1/ |
10039 |
q |
10040 |
} |
10041 |
/^X\(\/\).*/{ |
10042 |
s//\1/ |
10043 |
q |
10044 |
} |
10045 |
s/.*/./; q'` |
10046 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
10047 |
# echo "creating $dirpart/$file" |
10048 |
echo '# dummy' > "$dirpart/$file" |
10049 |
done |
10050 |
done |
10051 |
;; |
10052 |
|
10053 |
esac |
10054 |
done # for ac_tag |
10055 |
|
10056 |
|
10057 |
as_fn_exit 0 |
10058 |
_ACEOF |
10059 |
ac_clean_files=$ac_clean_files_save |
10060 |
|
10061 |
test $ac_write_fail = 0 || |
10062 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
10063 |
|
10064 |
|
10065 |
# configure is writing to config.log, and then calls config.status. |
10066 |
# config.status does its own redirection, appending to config.log. |
10067 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
10068 |
# by configure, so config.status won't be able to write to it; its |
10069 |
# output is simply discarded. So we exec the FD to /dev/null, |
10070 |
# effectively closing config.log, so it can be properly (re)opened and |
10071 |
# appended to by config.status. When coming back to configure, we |
10072 |
# need to make the FD available again. |
10073 |
if test "$no_create" != yes; then |
10074 |
ac_cs_success=: |
10075 |
ac_config_status_args= |
10076 |
test "$silent" = yes && |
10077 |
ac_config_status_args="$ac_config_status_args --quiet" |
10078 |
exec 5>/dev/null |
10079 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
10080 |
exec 5>>config.log |
10081 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
10082 |
# would make configure fail if this is the last instruction. |
10083 |
$ac_cs_success || as_fn_exit 1 |
10084 |
fi |
10085 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
10086 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
10087 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
10088 |
fi |
10089 |
|
10090 |
|
10091 |
echo |
10092 |
echo "***" |
10093 |
echo "*** Configuration Summary" |
10094 |
echo "***" |
10095 |
echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE" |
10096 |
echo "*** RSA size: $RSA" |
10097 |
echo "*** Cipher used: $CIPHER" |
10098 |
echo "*** Digest used: $DIGEST" |
10099 |
echo "*** Authdigest: $AUTH" |
10100 |
echo "*** HMAC length: $HMAC" |
10101 |
echo "*** Max. MTU: $MTU" |
10102 |
|
10103 |
echo "***" |
10104 |
echo "*** Enable options:" |
10105 |
grep ENABLE_ config.h | sed -e 's/^/*** /' |
10106 |
|
10107 |
if test "$HMACSIZE" -lt 12; then |
10108 |
echo "***" |
10109 |
echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure" |
10110 |
fi |
10111 |
|
10112 |
echo "***" |
10113 |
echo |
10114 |
|
10115 |
if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then |
10116 |
cat <<EOF |
10117 |
[33m |
10118 |
*** |
10119 |
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
10120 |
*** |
10121 |
*** You seem to configure gvpe with OpenSSL 1.1 or newer. |
10122 |
*** While this probably compiles, please note that this is not only |
10123 |
*** unsupported, but also discouraged. |
10124 |
*** |
10125 |
*** It is recommended to use either OpenSSL 1.0, as long as that is still |
10126 |
*** supported, or LibreSSL (https://www.libressl.org/). |
10127 |
*** |
10128 |
*** This is not a political issue - while porting GVPE to the newer |
10129 |
*** OpenSSL 1.1 API, I encountered two incompatible API changes that were |
10130 |
*** not documented, were not caught while compiling but caused security |
10131 |
*** issues. When reported, the reaction of the OpenSSL developers was to |
10132 |
*** update the documentation. |
10133 |
*** |
10134 |
*** As a result, I lost all confidence in the ability and desire of |
10135 |
*** OpenSSL developers to create a safe API, and would highly recommend |
10136 |
*** switching to LibreSSL which explicitly avoids such braking changes. |
10137 |
*** |
10138 |
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
10139 |
*** |
10140 |
*** Again, do not use OpenSSL 1.1 and complain if stuff breaks. |
10141 |
*** You have been warned, but your choice is respected. |
10142 |
*** |
10143 |
[0m |
10144 |
|
10145 |
EOF |
10146 |
fi |
10147 |
|
10148 |
|